PDA

View Full Version : HELP WONT COMPILE SCRIPT FOR RECRUIT!!!


luke130697
09-03-2009, 02:40 PM
I need some help i listened to darth333's script compiling tutorial (kotor tool part), i did everything it said but when i clicked compile and typed in its name and saved it said "lookup path set to ..........
loaded nwscript.nss from ............
ERROR unable to open input file. Its my first mod and im working hard on it, Please help :)

Godric Volturi
09-03-2009, 05:05 PM
Try this...

void main() {
RemoveAvailableNPC(5);
AddAvailableNPCByTemplate(5, "p_byron");
DelayCommand(1.5,ShowPartySelectionGUI());
}

because Darth333's is a bit out of date. :xp:
it uses the

void main()
{
blah blah blah
}

Though if that doesn't fix it, I will be willing to help you even further. :)

oh and welcome to the forums (and replace p_byron with your recruitment .utc file... :) )

luke130697
09-04-2009, 02:21 PM
the same error happened i think its not the script

Achilles
09-04-2009, 05:12 PM
Do you have a copy of nwscript.nss in your override folder?

Godric Volturi
09-04-2009, 11:54 PM
Did you compile it in the same folder as the .nss document? If not then that is your problem, I had the same thing happen to me. :)

luke130697
09-09-2009, 03:16 PM
i did that

VarsityPuppet
09-09-2009, 03:20 PM
pm me your script, I'll take a look at it and see if I can get it to compile.

Is it for k1 or k2?

Godric Volturi
09-09-2009, 11:34 PM
pm me your script, I'll take a look at it and see if I can get it to compile.

Is it for k1 or k2?

I will too... you can have double help. LOL :)

luke130697
09-13-2009, 06:23 AM
ok it is:
void main() {
RemoveAvailableNPC(2);
AddAvailableNPCByTemplate(2, "recruit_repsold");
DelayCommand(1.5,ShowPartySelectionGUI());
}
and it is for kotor 1

Godric Volturi
09-13-2009, 10:25 AM
This is strange... it let me compile the script... perhaps when you saved it in notepad, did you change the extension to .nss like, did you save the document as (this is an example) rec_republic.nss and then when you compiled and it asked for a name, did you put the same name but with a .ncs extension, such as if you labeled it rec_republic.nss then it would need to be named rec_republic.ncs while you are compiling it. If you still have problems, pm me your email address and I'll send you the source script and the compiled script.

:EDIT:
I just realized something. You used a massively used (by the game) template. If I were you, I'd make it something unique... I wouldn't use the repsoldier... change it to whatever the name of the new party member is. :)