NWN File Format Tools in Python ***BETA SOFTWARE***NEEDS TESTING*** Current version includes: a. read, write and extract ERF, MOD, HAK b. read and write 2DA c. read and write TLK d. read and write GFF It also includes the beginning of a high-level interface to the various GFF-based file formats, with support for IFO and ARE files are the moment. The module is licensed under the GNU General Public License, and has extensive function-level documentation at the head of the file. These functions need to be tested as widely as possible, but should be considered dangerous to NWN data at the moment. Please don't let these functions handle NWN data which you haven't backed up. To help test these functions, use them to read and write various NWN files, then test the written files in both the toolset and the game. Please email me with any bugs, issues or suggestions.
Posted by CinderBDT at 2005-04-30 14:51:19 Voted 8.00 on 04/30/05
Posted by CinderBDT at 2005-04-30 14:50:00 Voted 8.00 on 04/30/05
I ran into a problem with read2da. Here's a patch.
Thanks for a very useful program!
--- ORIG
+++ REV
@@ -272,9 +272,11 @@
# read each 2da record in order
records = []
for line in source:
record = line.strip().split()[ 1: ]
- records.append( record )
+ #need to do something about blank lines that crept into HotU patches
+ if (len(record) != 0):
+ records.append( record )
# close the source file if owner and return the 2da structure
if openfile is not None:
openfile.close()
Posted by CinderBDT at 2005-04-30 14:49:00 Voted 8.00 on 04/30/05
I ran into a problem with read2da. Here's a patch.
Thanks for a very useful program!
--- ORIG
+++ REV
@@ -272,9 +272,11 @@
# read each 2da record in order
records = []
for line in source:
record = line.strip().split()[ 1: ]
- records.append( record )
+ #need to do something about blank lines that crept into HotU patches
+ if (len(record) != 0):
+ records.append( record )
# close the source file if owner and return the 2da structure
if openfile is not None:
openfile.close()
Posted by leaf at 2004-03-17 22:18:52 Voted 10.00 on 03/17/04
You must be Logged In to post comments in this section.