Note: LucasForums Archive Project
The content here was reconstructed by scraping the Wayback Machine in an effort to restore some of what was lost when LF went down. The LucasForums Archive Project claims no ownership over the content or assets that were archived on archive.org.

This project is meant for research purposes only.

Adding Force Power to Level Up Screen

Page: 1 of 1
 Star Admiral
12-07-2008, 2:03 PM
#1
Title sums it up. I've scripted an hostile force power into K1, tested it, and it works perfectly. The icon/sounds/animation all work fine. The problem is, it does not show up for selection in the level-up screen and even though I have the power, I can't view its description when I look at my character's available powers screen. I did add an entry into the dialog.tlk file, so I'm a little lost.

Any clues? Thanks!

- Star Admiral
 glovemaster
12-07-2008, 2:43 PM
#2
Sounds like a 2da problem; make sure that in the 2da file the "name" and "description" fields are the right line references in the dialog.tlk file. I generally set up the TSLPatcher to write the lines and the 2da for me. ;)

Hope that helps :)
 Star Admiral
12-07-2008, 3:02 PM
#3
No, they match. I triple-checked it to be sure. :xp:

- Star Admiral
 Istorian
12-08-2008, 2:56 AM
#4
Well, TG had this problem when making the Lost Force Powers Pack 1. Going through his read-me, I found out that eventually, you have to start a new game for the Force Power to show up. Hope this helps! ;)

|I|
 Star Admiral
12-09-2008, 3:19 AM
#5
Hmm, doesn't work. If I add the power using KSE, I can use it, but it doesn't show up in the list of all powers that I currently have. Bizarre. :confused:

- Star Admiral
 Istorian
12-09-2008, 6:21 AM
#6
In fact, I have now the same problem, except for the fact that it previously worked for me...It is a .2da problem, because I messed up with it a bit...And I can't even use it when I'm attacking! That's really odd.:(

|I|
 TriggerGod
12-09-2008, 10:17 AM
#7
Ah, this problem. As Istorian said, I did have this problem while me and Ferc were working on the Force Powers Pack. First off, make sure that the tlk entries are made and are labeled correctly in spells.2da. And, for good precaution, start a new game. Its been a while since that mod, and I don't exactly remember how I fixed the problems on my end, but I believe that is what I did.
Also, there was an error in Ferc labeling a script in the 2da file we shared, that made the PC's animation play, but the power didn't play. Make sure that you labeled the script correctly in the 2da file as well.
 Star Admiral
12-09-2008, 12:50 PM
#8
Well, here is a copy of my force power, here. Could someone please give a peck at the spells.2da and the dialog.tlk files to see if I'm missing something? It's for K1, by the way.

- Star Admiral
 TriggerGod
12-09-2008, 1:04 PM
#9
Well, here is a copy of my force power, here (http://rapidshare.com/files/171821739/force_power.zip). Could someone please give a peck at the spells.2da and the dialog.tlk files to see if I'm missing something? It's for K1, by the way.

- Star Admiral

Ohhh... I see your problem now. Its not a problem with spells.2da, but with the dialog.tlk file. You forgot to put down the prerequisites. Try using it with this (http://e.imagehost.org/download/0020/dialog) .tlk file. (go to your tlk entry that has the description if you want to change the level you can get it at.)

If that doesn't work, I don't know what would...
 Star Admiral
12-09-2008, 1:20 PM
#10
Sadly, no luck. :( I tried messing around further with the dialog.tlk, but nothing gives. Could it be because I test it by adding a Jedi class to my character using KSE? Doubt it, because the other powers show up fine.

- Star Admiral
 glovemaster
12-09-2008, 1:33 PM
#11
Hmm, its probably a good idea to say what you got written in your 2da row.
 Star Admiral
12-09-2008, 1:38 PM
#12
Here goes, starting from the leftmost side

132
FORCE_POWER_FIRE_ERUPTION
49150
49151
0
E
1
****
****
0
0
0
0
6
0x2111
S
ip_storm
k1_force_power
170
up
****
****
****
****
****
****
up
1330
v_con_dark
****
****
v_imp_flame
0
****
0
****
linked
hand
****
path
Fire
1
20
****
****
2
31
****
0x00
0x0000
0x0000
1
****
1

The spells.2da is included within the link I posted above.

- Star Admiral
 glovemaster
12-09-2008, 4:38 PM
#13
Ah rapidshare doesn't like me <_< :lol:

It all looks fine but the category: 0x2111 is similar to Force Storm, which is an attack over all nearby enemies, but you have the 2da row similar to force lightning. I can only suggest that you perhaps change it to suit one and not both. I can only think of that being the problem. Otherwise, regardless of whether or not the script is correct, it should show in the force powers screen.
 tk102
12-09-2008, 5:04 PM
#14
Have you tried increasing forcepoints from 0 to 10? 0 may be considered innate. Though it's been a number of years since I did this, I recall having problems like this related to my icon being screwed up.

Are there any weird symptoms in-game when testing the force power added via KSE?
 Star Admiral
12-09-2008, 5:07 PM
#15
Nope, the power tests out fine. Animation/damages/saves are done correctly. The custom icon and force power name even shows up when I have a target selected and am choosing which one to use. It just refuses to show up in the level-up screen. I can post some screenshots if you like.

- Star Admiral
 Star Admiral
12-10-2008, 10:25 PM
#16
Got it. It works now. Turns out that in my desire to copy an existing entry, I copied the Force Storm row and changed it to use my custom scripts. The only entry I didn't think to change was the forcepriority one. It apparently has to be set to one less than the value in the pips column, else the game gets confused and thinks there should be a prerequisite power for it. Since there is no prerequisite power for mine, but there is for Force Storm, my power wasn't shown.

Thanks to all the people who helped me to figure out this problem. It was much appreciated!

- Star Admiral
Page: 1 of 1