Jump to content

Home

NSS Script Compiler tool problem...


skunk12

Recommended Posts

Next time you use notepad, when you Save As, choose *.* All Files and then you can save with .nss extension.

 

If you choose *.txt Text Files and try to save with .nss, Notepad will save as .nss.txt.

 

It sounds like you have "Hide extensions of known file types" turned on. For your own peace of mind and to protect you from virii that disguise themselves, you should have that unchecked -- In Windows Explorer: Tools: Folder Options: View: uncheck "Hide extensions of known file types" and click OK.

Link to comment
Share on other sites

  • 1 month later...

Hi everybody!

Here's my problem I can't seem to be able to solve and I hope you guys will be able to help me with.

 

So, here it is: We have almost translated KotOR to Czech, but during final betatest we found a problem on Korriban. In the final tomb there is a puzzle with several pillars and you have to transfer systems from one pillar to the other and even though we translated lines describing the currtent state of pillars (like No systems active or Mid-Upper System, Top System), they still appear in English in the game. So I made a little digging and found these lines in modules\korr_m39aa_s.rim\k_pkor_pillar01.ncs. I got this .ncs file out ouf the .rim file. Now I use HazardX's script compiler/decompiler (nwnnsscomp.exe -d k_pkor_pillar01.ncs) to get k_pkor_pillar01.pcode that I can edit in Notepad. Save it and what now? When I try to compile it back (nwnnsscomp.exe -c k_pkor_pillar01.pcode) it says "Error: Unable to open input file...". So i rename it to k_pkor_pillar01.nss. But then it says "Leaked PStackEntry h:\programmieren.... Compilation aborted with errors". So, what am I doing wrong here, guys? Can you help me with this problem? Thanks!

Link to comment
Share on other sites

Hello KoviCZ, and welcome to the forums! :D

 

HazardX's compiler will compile .nss scripts into the .ncs file the game needs. You can delete the .ndb files it creates.

 

But HazardX's compiler does not decompile scripts very well, and when you do use it to decompile you can only get the main function calls from the script, along with a lot of gibberish, and most importantly you can't recompile a script decompiled with HazardX's compiler, so unless you can find the source .nss file for the script somewhere you are mostly out of luck.

 

Sorry to be the bearer of bad news on this one, but we can only alter the .nss source scripts and then use HazardX's compiler to compile them.

 

EDIT: In KOTOR Tool look in BIF's / Scripts / Script,Source for the available source scripts in the game, the script you are looking for could be in there.

 

I hope this helps! :D

Link to comment
Share on other sites

RedHawke: Thank you for welcoming me here and for your information... well... but yes, thanx for it, because I would otherwise be trying to make it somehow forever:-) I see, so that is why the "decompiled" version I got looked so different from the .nss file I downloaded somewhere on nwvault.ign.com:-) I tried to find the needed source script in the BIFs, but it seems that it is not in there... OK... Well... I will have to think up something else:-) But thank you once again for your reply.

Link to comment
Share on other sites

Originally posted by ReLoaD2K

A bit nothing to do with the topic but I had to say.

I still will meet a person that didnt had problems with teh Compiler Tool :D:p;)

 

Nice to see you still around ReLoaD2K. (Just saw what you posted on Pcgamemods about the Patch I released for my item pack so I fully recind this statement!!! :mad: )

 

Yes the compiler is kinda tricky for some people I have the compiler .exe in a seperate folder and have a .bat file with it made to compile all .nss scripts that I place in the folder.

 

Here is the contents of the Compile.bat I use.

 

NWNNSSCOMP -v1.00 *.nss
pause

 

then all I have to do is drop in the .nss files in that folder and double click compile.bat and it does its magic! :D

Link to comment
Share on other sites

  • 1 month later...
Originally posted by tk102

Next time you use notepad, when you Save As, choose *.* All Files and then you can save with .nss extension.

 

If you choose *.txt Text Files and try to save with .nss, Notepad will save as .nss.txt.

 

It sounds like you have "Hide extensions of known file types" turned on. For your own peace of mind and to protect you from virii that disguise themselves, you should have that unchecked -- In Windows Explorer: Tools: Folder Options: View: uncheck "Hide extensions of known file types" and click OK.

 

 

That was his problem .. youve solved it :) nice job

Link to comment
Share on other sites

  • 2 weeks later...
Originally posted by banjinsan

Help, i need to decomplile a NCS for NWN. I don't have kotor so kotor tools does not work, and when i try to open nwnnsscomp, an MSDOS window blinks ounce then nothing. Is there a simple way of decompiling a NCS ?

 

Erm...this script compiler is for Kotor but was made after Torlak's script compiler for NWN which you can get here: http://www.torlack.com/index.html?topics=nwnnsscomp (but it works the same as explained in this thread) Torlacks also provides complete documentation with his compiler.

 

But it works the same as explained in this thread.

Link to comment
Share on other sites

  • 3 weeks later...
Originally posted by Darth Khasei

Just get an exsisting NSS from somewhere and replace the guts and save.

 

Im not getting this what kind of program should i use to take all the guts and stuff out im having a problom i did all the stuff darth333 told vor to do but when i click on compile thing it go's in to the little dos thing and compiles everything just fine but it dousn't even seem to be able to find my .nss file that i made please help:(

Link to comment
Share on other sites

Originally posted by whitguy

Im not getting this what kind of program should i use to take all the guts and stuff out im having a problom i did all the stuff darth333 told vor to do but when i click on compile thing it go's in to the little dos thing and compiles everything just fine but it dousn't even seem to be able to find my .nss file that i made please help:(

Huh? Then if it compiles everything just fine, I don't understand what the problem is.

 

Suppose that you compile a script called my_script.nss, you will get two additional files, my_script.ncs (the compiled script) and my_script.ndb (debug info used in nwn). You .nss file will still be there.

 

Or do you mean that other scripts compile fine but not the script you made by yourself???

Link to comment
Share on other sites

You could try out the new Project Manager in Kotor Tool...

 

You just create a new project, drag some files to the treeview under the right branch and select Build from the menu.

 

Take a look in the Kotor Tool thread...

 

http://www.lucasforums.com/showthread.php?s=&threadid=121572&perpage=40&pagenumber=14

 

Look about half-way down the page for a description of the features; I think you'll like how it makes things easier!

 

You can get Kotor Tool from here

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...