Crash Bug, replicatable at least as far back as 2012
Posted: Sun Feb 15, 2015 8:47 pm
The title might be a bit alarmist, because it isn't strictly speaking a "crash" but the results are the same. I accidentally stumbled onto it today (Didn't lose any work, fortunately! Maybe it's impossible to lose work this way, I dont' know!). At any rate, here's how it goes down:
Step 1: Open an instance of Custom, but don't do anything
Step 2: "Accidentally" open a second instance of Custom. Load a game
Step 3: Go to one of the sprite editors. In my case, I went to the Hero Editor. Choose a picture to edit.
Step 4: "Notice" that you have a second instance of Custom open. Close that instance.
Step 5: Back in the window where you're editing a hero sprite, hit the "[" key to change your palette. Crash get!
If I were to guess at the cause, I would say opening an instance of Custom creates some kind of placeholders for various things (Whatever happened to OHRRPGCE.pal, etc? Probably that stuff) and that custom is courteous and gets rid of that stuff when you close. However, if you have a game open and are editing it, the other custom erroneously gets rid of those placeholders leaving your editing custom confused.
An easy(?) solution would probably be to prohibit Custom from having two instances running in the first place. You already are forbidden to edit 2 RPGs at the same time by the "Custom has found an RPG already unlumped!" thing so I don't think there'd be any lost functionality.
So far my game still runs fine and I don't seem to have lost any data so whatever failsafes and safety measures you guys have in place for things like this seem top notch, though I've been saving religiously just in case. I only bring it up because it's a semi-easy thing to accidentally do, and now that I think about it it might even be something I've done before.
Versions I've tested in are November 11th-ish 2012, February 13th 2015 and January 20-ish 2015. Behavior is identical.
Step 1: Open an instance of Custom, but don't do anything
Step 2: "Accidentally" open a second instance of Custom. Load a game
Step 3: Go to one of the sprite editors. In my case, I went to the Hero Editor. Choose a picture to edit.
Step 4: "Notice" that you have a second instance of Custom open. Close that instance.
Step 5: Back in the window where you're editing a hero sprite, hit the "[" key to change your palette. Crash get!
If I were to guess at the cause, I would say opening an instance of Custom creates some kind of placeholders for various things (Whatever happened to OHRRPGCE.pal, etc? Probably that stuff) and that custom is courteous and gets rid of that stuff when you close. However, if you have a game open and are editing it, the other custom erroneously gets rid of those placeholders leaving your editing custom confused.
An easy(?) solution would probably be to prohibit Custom from having two instances running in the first place. You already are forbidden to edit 2 RPGs at the same time by the "Custom has found an RPG already unlumped!" thing so I don't think there'd be any lost functionality.
So far my game still runs fine and I don't seem to have lost any data so whatever failsafes and safety measures you guys have in place for things like this seem top notch, though I've been saving religiously just in case. I only bring it up because it's a semi-easy thing to accidentally do, and now that I think about it it might even be something I've done before.
Versions I've tested in are November 11th-ish 2012, February 13th 2015 and January 20-ish 2015. Behavior is identical.