Script Compiling.
NK1990
Member Posts: 76
Hello I have been trying to solve compiling a custom script for the Firebrand spell just for own use, as I find the visual effects of flame arrow wrong for the spell compared to the description of the spell itself. And I was able to find what I needed, and to export the script x0_s0_Firebrand.NSS with the NWN Explorer.
I also found multiple other tools to help me finding a new VFX for the spell in the .2da files.
I then proceeded writing the code just making and extreme alteration of the original script just to learn by mistakes showing up.
Know my problem is to find a compiler to use to package the x0_s0_Friebrand.NSS to .NCS as from what little knowledge i could find on the forums, suggested that it had to be done for the game to read in the file to the game, in the override folder.
I have made a workspace in visual studio code and put in the json code from the script tutorial on wikipage and it worked as intended being able to read the nwscript.nss and highlight text colouration in the code correctly. But to my big distress the compiler is from what I could understand outdated to the nwscript.nss so no matter what I do it will pop with the error code which is in the image. I haven't been able to find a working compiler anywhere or a work around to this compiler. and I don't know how to implement a different compiler as all the inputs in the json file has to be changed, as well as the way the dirs are written, and I can't do that as non of the compilers have a tutorial or information on how to put up a working json for it. If anyone can help with making a working compiler I would be very interested in hearing from you.
I also found multiple other tools to help me finding a new VFX for the spell in the .2da files.
I then proceeded writing the code just making and extreme alteration of the original script just to learn by mistakes showing up.
Know my problem is to find a compiler to use to package the x0_s0_Friebrand.NSS to .NCS as from what little knowledge i could find on the forums, suggested that it had to be done for the game to read in the file to the game, in the override folder.
I have made a workspace in visual studio code and put in the json code from the script tutorial on wikipage and it worked as intended being able to read the nwscript.nss and highlight text colouration in the code correctly. But to my big distress the compiler is from what I could understand outdated to the nwscript.nss so no matter what I do it will pop with the error code which is in the image. I haven't been able to find a working compiler anywhere or a work around to this compiler. and I don't know how to implement a different compiler as all the inputs in the json file has to be changed, as well as the way the dirs are written, and I can't do that as non of the compilers have a tutorial or information on how to put up a working json for it. If anyone can help with making a working compiler I would be very interested in hearing from you.
0
Comments
Open an empty script if necessary, paste your code and compile.
If you need to export the .ncs, you can use the toolset export, amongst other methods.
https://neverwintervault.org/project/nwnee/other/tool/nwnsc-nwn-enhanced-edition-script-compiler
but I couldn't tell you whether they're significantly better.
this is the compiler I was using that was out of date.
Where in the toolset is the option to compile. I can only find the option to open a script in a specific module. If I export I can only find a way to do it with the NWN Explorer the toolsets script editor does not have any option like that.
The toolset Build menu has the option to recompile all local scripts - handy when messing with includes.
The toolset File menu has Import / Export. You can export scripts and many other game objects.
Refer to the Toolset Manual which you can download from Neverwinter Vault.
https://neverwintervault.org/project/nwn1/other/guide-building-volume-i-–-aurora-toolset-manual
https://neverwintervault.org/project/nwn1/other/guide-building-volume-ii-design-manual
https://github.com/niv/neverwinter.nim
Okay I will try and see if I can get it to work. Thanks for the help, it was really nice you were so fast in posting a helpful answers.