PDA

View Full Version : Multiple critical errors while saving


General Patton
12-06-2010, 05:41 PM
Alice has been consistently screwing up the saves after making certain edits. By using backups and making new saves after small incremental edits, I managed to track down one of the points after which things go to hell when saved.

Here is the program right before the final bug-inducing change
3973

To make it crash, just go to Knight.Run and in the If statement, right after Knight.GainXP (StatIndex=1, Gain=1), put a Knight.GainXP (StatIndex=2, Gain=Knight.Encumbrance%). Saving will then fail catastrophically.

Here are screenshots of two different incidences of this bug. After the first pic was taken, I completely deleted the Knight.Run method and the event that called it, and then recreated them exactly, before saving (as the version which has been attached), closing Alice, reopening it and then making the error happen for the second screenshot. So the two bug reports are similar, but the second one is slightly more relevant to the attached world.

3976

zonedabone
12-06-2010, 08:10 PM
Yay! It has something to do with the old method being corrupted. Anyway, I just copied the function, so now use the new one I made. Or, if you want, you can make a new one yourself. This would be good because I cheated. Since I just directly copied the code, you can't delete the old one without messing up the new one. I recommend deleting both function and making a new one just like a it from scratch. Also, only use letters, numbers, and underscores in names, please!

cfisch6
12-15-2010, 03:30 AM
hi im new to alice and working on it for a project. My program just went red and now wont load, how did you get back to yours. i dont know how to even find my backup. please help