Jump to content

Home

Cannot compile scripts using KOTOR tool


Allronix

Recommended Posts

OK.

 

1. I am using KOTOR Tool to compile my script.

2. I have written it up as

 

void main() {

object oPC=GetFirstPC();

AddMutliClass(CLASS_TYPE_JEDICONSULAR,oPC);

GiveXPToCreature(oPC,1000);

}

 

A very simple Padawan mod script.

 

3. I save this as "makeconsular.nss"

4. I select "Script is for KOTOR 1"

5. I hit F5 to compile.

 

Error message:

 

Lookup path root set to c:\Program files\LucasArts\SWKotOR.

Error: Could not initialize the NwnStdLoader

 

My installation path is actually C:\Program Files (x86)\LucasArts\Star Wars Knights of The Old Republic

 

I went under KOTOR Tool's file menu and hit Manage paths. ALL the paths are set up correctly.

 

I tried a source script I know worked (one of RedHawke's) and tried running the compiler to rule out bad scripting on my part. Still no luck.

 

What is wrong, and how can it be fixed?

 

Any way to steer this thing in the right direction so I can compile scripts?

Link to comment
Share on other sites

Error message:

 

Quote:

Lookup path root set to c:\Program files\LucasArts\SWKotOR.

Error: Could not initialize the NwnStdLoader

My installation path is actually C:\Program Files (x86)\LucasArts\Star Wars Knights of The Old Republic

 

I went under KOTOR Tool's file menu and hit Manage paths. ALL the paths are set up correctly.

Vista or Win7?

 

Not sure, but I seem to remember there are underlying permission problems when trying to write to/overwrite/change files in the (x86) folder.

 

I know when modding Oblivion, this was the first thing you always checked for. ;)

 

You could always try installing K1 to it's own directory NOT in the (x86) folder. Might be worth a shot. :giveup:

Link to comment
Share on other sites

void main() 
{
object oPC=GetFirstPC();
AddMutliClass(CLASS_TYPE_JEDICONSULAR,oPC);
GiveXPToCreature(oPC,1000);
} 

 

try that... because this script:

void main() {
object oPC=GetFirstPC();
AddMutliClass(CLASS_TYPE_JEDICONSULAR,oPC);
GiveXPToCreature(oPC,1000);
} 

wouldn't compile for me then I moved the { after void main() down one notch and it compiled for me :)

Link to comment
Share on other sites

Haven't had a problem with this, and I also use Win7 x64. Try running KOTOR Tool as an administrator and check if the program still looks in the correct folder for your K1 and TSL installations. If that fails, look at the settings.xml file in the folder you installed KOTOR Tool in and check the <defaultKotORLocation> and the <defaultKotORLocation2> tags to see if the location is set correctly.

 

- Star Admiral

Link to comment
Share on other sites

It appears that uninstalling it and reinstalling it solved the trouble. Now, to get all these lovely mods talking to one another.

 

Hmmm.. well at least you got it fixed :) I would have helped as much as I can... because I've had other things like that happen to me and it frustrated me to no ends... and no one wanted to help me (before I registered here... lol at the time I didn't even know these forums existed lol)

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...