nonameperson66 Posted May 3, 2025 Posted May 3, 2025 Hello everyone. I have been working on a mod that basically ports the TSLRCM Malachor V restored content to the Kotor II Unofficial Patch mod. I am stuck on getting the 904sion.dlg scene in the 907mal module to work properly. I downloaded the Script Source from the Kotor Community Patch Github page, but it does not have the script I need to look at. If anyone could either decompile the script 'a_904sion.ncs' or if someone could give me the .nss file for me I would really appreciate it! Quote
JCarter426 Posted May 4, 2025 Posted May 4, 2025 DeNCS isn't able to decompile this script. ---> starting decompilation: a_904sion.ncs <--- com.knights2end.nwscript.decomp.lexer.LexerException: [1,1029] Unknown token: E- at com.knights2end.nwscript.decomp.lexer.Lexer.getToken(Lexer.java:869) at com.knights2end.nwscript.decomp.lexer.Lexer.peek(Lexer.java:278) at com.knights2end.nwscript.decomp.parser.Parser.parse(Parser.java:404) at com.knights2end.nwscript.decomp.FileDecompiler.decompileNcs(FileDecompiler.java:541) at com.knights2end.nwscript.decomp.FileDecompiler.decompile(FileDecompiler.java:106) at com.knights2end.nwscript.decomp.Decompiler.decompile(Decompiler.java:216) at com.knights2end.nwscript.decomp.Decompiler.main(Decompiler.java:203) Failure! (file: 'a_904sion.nss') Quote
DarthParametric Posted May 4, 2025 Posted May 4, 2025 It can be disassembled into bytecode though. a_904sion_BYTECODE.nss Quote
JCarter426 Posted May 5, 2025 Posted May 5, 2025 The .ncs file is bytecode. This is an assembly representation of the same instructions. Quote
DarthParametric Posted May 5, 2025 Posted May 5, 2025 Added a manual reconstruction from bytecode to the repo - https://github.com/KOTORCommunityPatches/Vanilla_KOTOR_Script_Source/blob/master/TSL/TSLRCM/Modules/907MAL_Malachor_V_Trayus_Core_(cutscene)/a_904sion.nss Quote
nonameperson66 Posted May 8, 2025 Author Posted May 8, 2025 Thank you very much for adding that to the repo! Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.