View Full Version : KOTOR Explorer: Linux/Qt4 GUI extractor

02-27-2007, 03:29 PM
Open source (GPL). Supports an unlimited number of KOTOR/TSL installations, BIF, RIM and ERF formats.

Screenshot: http://lucidfox.org/dump/kotorexp.png

SF.net project page: http://sourceforge.net/project/showfiles.php?group_id=157123

Includes a console extraction utility (not dependent on Qt, but requires qmake to build).

I intend future releases to be cross-platform and build on Windows as well.

02-28-2007, 06:04 AM
Version 0.2 is out.

- fixed crash for non-lowercase BIF files
- fixed crash after pressing Refresh
- ktscommon: path separators are now platform-dependent (/ for Unix, \ for Windows)
- added file type descriptions
- support for custom file associations and opening files

This version should theoretically build on all platforms Qt4 supports, but I can only test it in Ubuntu 6.10 for now (and only build packages for this distribution). It is also feature complete, as I planned it; any new tools (2DA editor, TLK editor, etc.) will be released as separate applications within a single qmake project.

Ubuntu 6.10 repository: deb http://lucidfox.org/gaia-deb edgy all
GUI: sudo apt-get install kotorexp
CLI: sudo apt-get install ktsextract

03-01-2007, 01:12 PM
Forked nwnnsscomp from OpenKnights and added support for Fred Tetra's command line options.

http://sourceforge.net/project/showfiles.php?group_id=157123 (source also available in SVN in the /compiler directory)

There appears to be a bug with exactly one function in nwscript.nss, so you should replace this

void SetAvailableNPCId(INT nNPC, OBJECT_ID oidNPC);

with this:

void SetAvailableNPCId(int nNPC, object oidNPC);

This version of nwnnsscomp can be used in Linux instead of Fred Tetra's version, which is only available for Windows. Here is how to run DeNCS natively in Linux:

- create a ~/.nwnnsscomp file with the following content:


- move the "nwnnsscomp" executable you will get after compiling the compiler to /usr/local/bin or /usr/bin
- link to it under the name "nwnnsscomp.exe" in your open directory (the directory which DeNCS searches for nwscript.nss) - this is because DeNCS checks if this file exists, but doesn't touch it otherwise
- copy the modified nwscript.nss to that directory and to the game's override directory
- run the jar file, as usual: java -jar DeNCS.jar

So, as you see, instead of searching the Windows registry for the games, this version of nwnnsscomp checks a text configuration file. It consists of lines of the following format:


where GSTR is the string passed to the -g parameter. Fred Tetra's version understands only -g 1 for KOTOR and -g 2 for TSL. This version supports any string after -g.

Alternatively, you can pass the path in the environment variable NSSPATH_GSTR (the Fred Tetra compatibility modes would use NSSPATH_1 and NSSPATH_2 respectively). Doing so will override the paths in the iconfiguration file. So, instead of creating the ~/.nwnnsscomp file, you could instead launch DeNCS like this:

NSSPATH_2=/path/to/kotor/or/tsl java -jar DeNCS.jar

03-03-2007, 12:51 PM
Added a Windows build for kotorexp. There are two zip files on SourceForge: one with the Qt runtime prepackaged, one without. If you don't have Qt installed, select the first one.

Although on Windows, it probably makes sense to use KOTOR Tool instead.