Recommended Posts

reone toolkit

toolkit is a GUI application that can be used to inspect, extract, convert and create game resources. Part of reone engine project.

## Features

Preview 3D models, images and audio files
Extract BIF/RIM/ERF archives
Unwrap WAV to WAV/MP3
Convert TPC to TGA/TXI
Create RIM/ERF/MOD archive from directory
Disassemble NCS to PCODE
Assemble NCS from PCODE
Decompile NCS (experimental)


Share this post

Link to post
Share on other sites

Command-line reone-tools have been converted to a GUI application. Hopefully will be useful to some.

  • Like 1
  • Thanks 1

Share this post

Link to post
Share on other sites

Released version 0.2 of the toolkit, most significant improvement being in NCS decompilation.

Decompilation now happens in four steps:

  1. Compiled script is parsed into assembly-like list of instructions
  2. Instruction list is converted into equivalent language-agnostic expression tree
  3. Expression tree is optimized for readibility, making a heavy use of inlining
  4. Optimized expression tree is converted to pseudo-NWScript code

Decompiler tries to convert instructions into expressions in the most straightforward manner and does not rely on specific instruction patterns produced by the Bioware compiler. Downside is that it doesn't yet know how to detect loops and structures, hence the output is only a pseudo-code and cannot be compiled without some manual refactoring.

Known issues:

  • Decompiler hangs on some large scripts, in particular combat-related

Comparison between version 0.1 and version 0.2 of the decompiler:



  • Like 1

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this