forums | blogs | polls | tutorials | downloads | rules | help

Error message

Deprecated function: The each() function is deprecated. This message will be suppressed on further calls in remember_me_form_alter() (line 78 of /var/www/siegetheday.org/sites/all/modules/contrib/remember_me/remember_me.module).

Here's a new one (Regarding Single Player Save Files)

So recently I decided to add Single Player support to a mod that I'm working on, but unfortunately the inevitable occurred and my save file became corrupt and is throwing an exception on load, and I only have one save file so the file is essentially worthless and I need to start over. Which is fine this early in testing, but...

I ran the load through DSMOD and noticed that it's throwing the exception when it's loading one of my shop keepers, but there was no such issue when he initially loaded into the game, so I'm wondering if I corrupted his inventory somehow when I sold a bunch of junk to him. Does anyone know if it's possible to 'corrupt' a shop keepers inventory? Is it possible I sold him over 255 items and the overflow may have caused a crash? I know it's not pcontent generation because his static inventory prior to anything being sold has fixed templates that don't have anything to do with pcontent generation.

My second major question: is there any way to edit the data files that come with the save files in order to see if I can hunt down what is causing the corruption in the save itself? Obviously the info.gas and party.gas are easy enough to see, but the data files (I think they're xDat or something?) that contain the majority of load info for the world are a bit tougher to crack into. These are the files I want to take a look at.

I could test the overflow theory by playing the game vanilla and seeing if I can get more than 255 items into a shopkeepers inventory, save and quit, then load it up. Something tells me it's still going to load though, because vanilla DS with no mods is pretty stable as far as I've observed over the years.

Hey Lloyd-

You may wish to try opening those files with a hex editor. I recall someone mentioning they were able to edit their game file in that manner. I would point you to something more concrete, but I'm sort of sketchy about what editor they used. I am not familiar with hex editors, but if you need one:

A search yields these results. This site offers info on using a hex editor "add on" with Notepad++ . As always, be cautious about downloads and such.

Thanks, Kathy. I happen to have a Hex editor.

I actually de-tanked my save file in SE and was able to open the xdat file in notepad as well, and it's mostly readable. I couldn't pinpoint the exact problem though, but I did notice that my vendor's shop was overloaded with templates. My theory that it was an overloaded inventory is still my top suspect.

Lloyd2k4 wrote:
Thanks, Kathy. I happen to have a Hex editor.

Oh, I see. Is your hex editor perhaps an easy to use one? *blush*

The one that I have doesn't make a lot of sense to me. I must try again with opening the files in notepad as well. When I did that some time ago it looked like a bunch of gibberish. Or perhaps it's my brain that is full of gibberish.

Tongue

kathycf wrote:

Lloyd2k4 wrote:Thanks, Kathy. I happen to have a Hex editor.

Oh, I see. Is your hex editor perhaps an easy to use one? *blush*

The one that I have doesn't make a lot of sense to me. I must try again with opening the files in notepad as well. When I did that some time ago it looked like a bunch of gibberish. Or perhaps it's my brain that is full of gibberish.

Tongue

I would go out of my way to say that *no* hex editor is truly easy to use. Being presented with a wall of hex with a bazillion offsets isn't fun in any scenario or application setting.

UPDATE: it is not because I overloaded my vendor's inventory. I just attempted to load another save and it crashed on loading this vendor again, even though I only sold a couple of items to him. Very confusing because I can't see *anything* in his template that should be causing any problems. I'm very lost right now.