Jump to content

Home

Module Editor Won't Save or Build.


goldberry

Recommended Posts

Ok, I've been working on a private mod for a while now, and without any problems. I opened up my mod in the module editor to build the .mod file to test it. That's all I did today- tried to build the .mod file. It gave me the following message:

 

See the end of this message for details on invoking

just-in-time (JIT) debugging instead of this dialog box.

 

************** Exception Text **************

System.NullReferenceException: Object reference not set to an instance of an object.

at kotor_tool.clsGFF.WriteFile(String path, String filetype)

at kotor_tool.frmModule_Editor.miSave_Click(Object sender, EventArgs e)

at kotor_tool.frmModule_Editor.BuildModFile()

at kotor_tool.frmModule_Editor.miBuildModFile_Click(Object sender, EventArgs e)

 

<snip>

 

 

 

When this happened, the .git file for the mod was reduced from 16kb to just over 1kb. I used Norton Goback to return th .git file and try again, but the same thing happened.

 

Waddyou think, Fred?

Link to comment
Share on other sites

Ok, I've been working on a private mod for a while now, and without any problems. I opened up my mod in the module editor to build the .mod file to test it. That's all I did today- tried to build the .mod file. It gave me the following message:

 

(stack trace)

 

 

When this happened, the .git file for the mod was reduced from 16kb to just over 1kb. I used Norton Goback to return th .git file and try again, but the same thing happened.

 

Waddyou think, Fred?

 

Have you ever edited the .git, .are, or .ifo files by hand? It is possible that you entered a value that is out-of-range for a field in one of those files. Is the error consistently reproducable?

Link to comment
Share on other sites

Never, EVER have I edited any one of these files by hand.

 

And this error won't stop appearing!

 

Here is a link to the zipped up folder: http://www.geocities.com/goldberry2006/001CCS.zip

 

I realise you're busy, but could you please help me get to the bottom of the problem ASAP?

 

Just to clarify, everything from your site is up to date, so I have all of the new KOTOR tool and stuff.

Link to comment
Share on other sites

I'll take a look at it for you... but it will cost you some Jelly Babies.

 

EDIT: The problem is that the .git file is corrupted. If you delete the merchant (store) and re-add it, this should fix the problem.

 

There's no way to know what caused the corruption without being able to reproduce the exact steps needed to create a corrupt file, but most likely it is due to a bug in either the module editor or the GFF code.

 

Another way you can try to fix these things is to open the file in K-GFF, then save it back out. Because it parses the file in a different manner, it may be able to "fix" the problem by re-writing the file based on the structures contained therein. An indication that this has occurred is when the file size drops after you save the file back out.

 

Attached is the built mod file (001ccs.zip) and a fixed .git file (001ebo.zip). You will probably want to check the position/orientation of the store.

001ccs.zip

001ebo.zip

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...