Pocket Plane Group

Miscellany, Inc. => Infinity Engine Modding Q&A => Topic started by: Duality on April 10, 2006, 04:14:51 PM

Title: Area file corruption
Post by: Duality on April 10, 2006, 04:14:51 PM
I have an area file that wont open in NI OR DLTCEP. NI returns some sort of null and DLTCEP just doesn't like it.
And it's NOT null.... There's a whole bunch of information in it that I need to edit. But I have didn't make the area originally, so I can't recreate it either.
I thought maybe the download was corrupted, so I re-downloaded it, but no luck.

Does anyone have any idea what might be wrong?

The file is part of the planarsphere mod, called arpsq2. I can upload it somewhere if anyone wants to take a look at it.

Any help would be appreciated because at the moment I am going to be reduced to editing the datafork, and that sucks.
Title: Re: Area file corruption
Post by: devSin on April 10, 2006, 05:11:43 PM
If NI reports "null," then it's most likely trying to read past EOF. Use HexEdit and the IESDP to verify the counts (both top-level structures, and items and vertices) and the offsets. Afterward, make sure that all the item and vertex indexes are correct.
Title: Re: Area file corruption
Post by: Duality on April 10, 2006, 10:42:44 PM
Wow. You win the prize. I would never have figured that out on my own.

It was the "spawn on rest" offset that was the problem, well, it seems to have a few other problems but that was why I couldn't open it. Once I changed it to the actual line reference, it worked fine!

Yay!
Thank you thank you thank you!