uwadmin12 28 Posted July 19, 2019 (edited) This may be a dumb question. Before I begin, I installed the Kotor Tool from here, and I am pretty sure I installed it properly. When I double click the nss and ncs files in the Kotor Tool resource list (Tree View), the text editor brought up the code and there is no problem. However, when I extract a single file or a group of nss and/or ncs files to a new directory, and try to open it through Right Click -> Open With -> Kotor Tool, then I get two weird errors: 1. Opening Nss File, I get System.OutOfMemoryException: The complete error message is here: NssError.txt 2. Opening Ncs File, I get Unable to read beyond the end of the stream Error: The complete error message is here: NcsError.txt --------------------------------------- I highly suspect I am missing something obvious. I double checked the README file, the description in the download page but might still missed it. Has anyone dealt with similar issue and can shed some light? I am really hoping to fix this issue and start working with scripts. Any help would be much appreciated! Edited July 19, 2019 by uwadmin12 Quote Share this post Link to post Share on other sites
Guest Qui-Gon Glenn Posted July 19, 2019 Interesting errors, but entirely avoidable. 1 - .nss file, open KTool text editor first and then open the file in question. 2 - .ncs file, nothing to see it is byte code. .ncs is simply the compilation of .nss 3 - any text editor can open and edit .nss scripts, I use notepad quite a bit for this purpose. Quote Share this post Link to post Share on other sites
uwadmin12 28 Posted July 19, 2019 Thanks man for the tip! Now I see this issue isn't a blocker and is just some slight inconvenience. The reason I tried to open ncs file to begin with was to DeNCS certain module-contained scripts. The DeNCS failed, and I wanted to open it to ensure the file is in good condition, but got blocked by this error. 💀 Now that I tried DeNCS again, I am able to DeNCS/partially DeNCS most files except the one I wanted, (k_trg_calonord2.ncs in eastern dune sea module). Smh, smh... I'll do more trial and error to figure sh#t out and would appreciate any enlightenment on this matter. Quote Share this post Link to post Share on other sites
DarthParametric 3,777 Posted July 19, 2019 53 minutes ago, uwadmin12 said: most files except the one I wanted, (k_trg_calonord2.ncs in eastern dune sea module) There are three potential cases for a decompile error: The file cannot be decompiled, period (not true in this case). Obtaining bytecode is the only option. The file will only decompile with the game-appropriate nwscript.nss in the DeNCS folder. You have the @JCarter426 disease and can't decompile a script that everyone else can due to some weird system shenanigans. k_trg_calonord2.nss For reading/editing NSS, I would recommend Notepad++ with the Odyssey++ user defined language. 1 Quote Share this post Link to post Share on other sites
uwadmin12 28 Posted July 19, 2019 (edited) Thank you @DarthParametric so much for saving my ass again!!! I will try installing some Windows VM and decompile on there to see if it resolves my issue. Worse comes to worst I'll try it on some school lab computer 💀. Quote For reading/editing NSS, I would recommend Notepad++ with the Odyssey++ user defined language. Will try! Edited July 19, 2019 by uwadmin12 Quote Share this post Link to post Share on other sites
JCarter426 1,214 Posted July 20, 2019 On 7/19/2019 at 12:52 AM, DarthParametric said: You have the @JCarter426 disease and can't decompile a script that everyone else can due to some weird system shenanigans. Hey, I was able to decompile this script. 1 Quote Share this post Link to post Share on other sites