Jump to content

Home

Scripting Problem


Bigman

Recommended Posts

When ever i try to script something i get an error. With HazardX script compiler i get an error of "unable to open or locate Neverwinter Night" and with Fred Tetra's nwnnsscomp I get an error saying "Couldn't initalize the NwnStdLoader". I aslo tried the KOTOR Tool but it gives me the same error as Fred Tetra's nwnnsscomp. How do i fix this problem?

Link to comment
Share on other sites

It looks like it's not locating kotor's nwscript.nss . Check this tutorial: http://www.lucasforums.com/showthread.php?s=&threadid=143681

 

If you are using Hazard X script compiler with Kotor2, you have to extract nwscript.nss to the same folder as your scripts.

 

With Fred Tetra's compiler, you have to specify which game -g 1 for kotor1 and -g 2 for kotor2.

 

Also if you have the international version of the game (other than the US version - note that the UK version is not the same as the US version), and did not installed patch 1.0b, you will have to download the patched nwscript.nss posted in the tutorial. Check the tutotrial for all the details concerning the use of the compiler with the patched nwscript.nss.

Link to comment
Share on other sites

ok, i tried that but it still comes up the same. Does it matter that i am trying to mod tsl for xbox. I did fix the error in the nwscript having to do with the object oCreature = OBJECT_SELF and i have it in the same folder as the compiler exe but it still comes up with the same errors. when i tried the HazardX way and used the .bat you have for download there i put the .bat, the compiler, the nwscript, and the scripts in the same folder and i got this problem

 

" __ __

" ___ ___ ___ _______ __ _ ___ / / ___ _/ /_

" / _ \(_-<(_-</ __/ _ \/ ' \/ _ \_ / _ \/ _ `/ __/

" /_//_/___/___/\__/\___/_/_/_/ .__(_)_.__/\_,_/\__/

" /_/

Contents of nsscomp-log.txt is as follows:

Could Not Find C:\Documents and Settings\(My Login Name)\Desktop\nwscript\*.ndb

-------------------------------------------

NSSCOMP.bat output Mon 07/11/2005 06:09

-------------------------------------------

Unable to locate or open Neverwinter Night

-------------------------------------------

Compilation complete: 1/1 file compiled

Press any key to continue . . ."

But it says 1/1 were compiled but nothing was.

Link to comment
Share on other sites

Hazard x's compiler works fine with the xbox version. Did you tried using the .bat file made by tk102 (available from the tutorial) and putting everything in the same folder (nwscript.nss, your scripts, the compiler and the .bat file) ?

 

edit. what script are you trying to compile? Can you post it here?

Link to comment
Share on other sites

Try just using the command line with HazardX's nwnsscomp.exe (no batch file).

 

The command line will not lie to you.

 

nwnnsscomp -v1.00 myscript.nss

 

where:

 

nwnnsscomp.exe, myscript.nss, and nwscript.nss are all in the same folder.

Link to comment
Share on other sites

well since i was having troubles with compiling i decided to see if it was just my script. So i am really just trying it with a script i know works since it works in game from a mod i downloaded a long time ago. The problem might be the reason that my computer has been acting really strange when i launch any thing from a comand prompt (such as a comand that lets me se they network configuration on the computer) lately. I am going to try this out on my older pc to see if it works out. I'll reply some time tomorrow to say if it works or not, right now i have to focus on some more important things. Also do you know if there are any compilers that run based on Microsoft .net framework because all the programs i run that need that run 100% smooth.

Link to comment
Share on other sites

Also do you know if there are any compilers that run based on Microsoft .net framework because all the programs i run that need that run 100% smooth.

 

No, not at this moment, but I'll have that in KotOR Script Generator 2.1, which, without any delays, will be out this weekend. It'll have a text editor, so you can type the script in that (or paste it in), then select File->Save and Compile.

Link to comment
Share on other sites

ok it had then same problem but i think it might be witht he nwscript file. I'm gonna recheck and redo that or just wait for jmac's program. O and to jmac good luck. I tried out your program before and it was pretty good. I'm glad you are putting in a text editor and scripter in the new one. Those were my two problems with it.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...