Sign in to follow this  
5rTZpq

Need help compiling force power script

Recommended Posts

Hi,

I'm trying to make new force powers. For that, I have edited k_inc_force,nss. Yet when I try to compile k_sp1_generic.nss (k_inc_force and k_inc_debug are in the same folder), I get this....

---------------------------
Compiler output
---------------------------
Lookup path root set to: D:\KotOR2\

Loaded nwscript.nss from D:\KotOR2\override/

Compiling: k_sp2_generic.nss

Loaded k_inc_debug.nss from D:\KotOR2\override/

Loaded k_inc_force.nss from D:\KotOR2\override/

Loaded k_inc_debug.nss from D:\KotOR2\override/

Loaded k_inc_force.nss from D:\KotOR2\override/

k_inc_force.nss(5948): Error: Undeclared identifier "FORCE_POWER_INCINERATION"

k_inc_force.nss(6088): Error: Undeclared identifier "FORCE_POWER_COMBUSTION"

Compilation aborted with errors

Total Execution time = 31 ms


---------------------------
OK   
---------------------------


How do I declare the force power names?

 

Before you answer, it is not a problem of my actual changes to the script. Any changes to force power names (new or old) lead to the undeclared identifier error.

 

I'm using kotor tool for compilation.

Share this post


Link to post
Share on other sites

Vanilla Force power values are declared in nwscript.nss. If you have added new ones (the errors are not vanilla powers) and want to use a constant then you need to declare it one of the scripts you are compiling (doesn't matter which, as the compiler will pull it in from an include if it is there). The value is an INT, derived from the row ID in spells.2da.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this