PDA

View Full Version : Translating byte code...


Keneth
09-26-2006, 11:54 AM
I'm trying to get back into modding this engine but I got stuck at byte code. I can't seem to find a reference for it, the previous link I had seems to be dead so I would appreciate it if someone would be kind enough to direct me to a new one. Thanks in advance :jawa

ChAiNz.2da
09-26-2006, 12:28 PM
Byte Code? ewwww...

Try this link for a source of pre-decompiled scripts (TSL)
http://www.pcgamemods.com/mod/14269.html

If you're looking to decompile another mod's script's and they didn't unclude the source, try jmac's program here:
http://www.pcgamemods.com/mod/14219.html

If all else fails, feel free to post a thread asking for a specific byte code translation (unless you just really want to learn how to decode it)... hehehe

stoffe
09-26-2006, 12:35 PM
If you're looking to decompile another mod's script's and they didn't unclude the source, try jmac's program here:
http://www.pcgamemods.com/mod/14219.html


That one does not decompile scripts as far as I know, it's automatically generating some types of scripts from scratch. For automatic decompilation of existing scripts try JdNoa's and Dashus' DeNCS (http://www.starwarsknights.com/tools.php#sct) utility. It requires Java to run, but should be able to handle most scripts as far as I have heard (don't have Java so I haven't tested it myself).

DOH! :headbump ~ Cz

Keneth
09-26-2006, 12:39 PM
lol, that's great and all guys but I forgot to mention I'm working with KotOR 1 not TSL, so I don't think either of those are of much use to me -> hence the problem...

stoffe
09-26-2006, 12:51 PM
lol, that's great and all guys but I forgot to mention I'm working with KotOR 1 not TSL, so I don't think either of those are of much use to me -> hence the problem...

DeNCS should work with KotOR1 scripts as well if you use the nwscript.nss file from that game, if I remember correctly.

Keneth
09-26-2006, 01:16 PM
Well it doesn't hurt to try either way, although I would have prefered to do it manually (I like doing things the hard way). If all else fails, I'm just gonna rewrite a few things and run over others. Thanks for the help.

stoffe
09-26-2006, 01:32 PM
Well it doesn't hurt to try either way, although I would have prefered to do it manually (I like doing things the hard way). If all else fails, I'm just gonna rewrite a few things and run over others. Thanks for the help.

If you haven't saved the documentation there is probably little else to do; the Torlack.com domain has expired so the site is likely not coming back. Since Torlack had written that documentation himself I doubt you'd find it elsewhere. I think I have a copy of if on my harddrive somewhere, but couldn't make it available to others without Torlacks permission without risking to break copyright laws.

You could try to see if it's still in either google's cache or in the Wayback Machine (http://www.archive.org/web/web.php) site's archive if you're lucky.

Keneth
09-26-2006, 01:53 PM
I could have sworn I had it somewhere on my hard drive too but things get lost after a few formats. In either case the DeNCS works, it's not perfect but nothing I couldn't fix myself.