Jump to content


Photo

How does one decompile a script


  • Please log in to reply
7 replies to this topic

#1 Diana

Diana
  • Modder
  • 341 posts

Posted 29 April 2004 - 07:03 AM

All the tutorials I've found tell how to compile one from scratch. How does a person decompile an existing NPC's script?

Thanks.

#2 -Ashara-

-Ashara-
  • Guest

Posted 29 April 2004 - 07:14 AM

You can just open the script with Near Infinity, it will appear as compiled in the top window and as decomplied in the bottom window.

#3 Diana

Diana
  • Modder
  • 341 posts

Posted 29 April 2004 - 07:31 AM

Thank you! I'm trying to teach myself.

#4 -Ashara-

-Ashara-
  • Guest

Posted 29 April 2004 - 07:41 AM

Glad it's helpful. That's a good way to do it. And if you want a small training project - drop me a line - I am always on the look out for people to help with a few simple dialogues or scripts, or whatever and I always provide instructions and feedback on what needs to be corrected.

#5 Diana

Diana
  • Modder
  • 341 posts

Posted 29 April 2004 - 10:06 AM

Thanks again. I'm getting the hang of coding dialog in Weidu from the examples I've seen here and from what I've converted with Weidu from BG2 and user created mods.

Plus the explanations you've added to Ghrey's tutorial in the other thread will help as well.
:)

#6 Diana

Diana
  • Modder
  • 341 posts

Posted 29 April 2004 - 03:23 PM

Sigh...sorry I have to ask this. I downloaded NI. Extracted it to a directory. But how do you run it? I don't see anything like an .exe file!

I hate having to ask simple questions which you all have probably already covered.

#7 Seifer

Seifer

    The best Anti-Paladin weapon is a tin opener...!

  • Member
  • 4505 posts

Posted 29 April 2004 - 03:27 PM

NI is a JAR file, one used in a Sunsystem (I tihnk) external Java system. If you have this installed, click on the downloaded file and it should open it up.

It may also be worth noting that when you save it, it needs to be saved as the 'other' category.

how come you always look so damn cool in every photo I see you in?!?


Speaking of modding, I listened to IER 3 yesterday, so you can have another quote for your signature: how come you sound so damn cool, as well as look it? It's unfair. Seriously.


Still a cyberjock, still hacking the matrix, still unsure of what that means.

TeamBG member - http://www.teambg.eu

#8 Scar

Scar
  • Member
  • 22 posts

Posted 08 May 2004 - 06:24 AM

You can also use WeiDU for decompiling scripts. Simply type "weidu scriptname.bcs" within your BG dir, and you'll get a readable scriptname.baf in there.