Alice Community

Alice Community (http://www.alice.org/community/index.php)
-   Bugs and Troubleshooting (http://www.alice.org/community/forumdisplay.php?f=18)
-   -   Multiple critical errors while saving (http://www.alice.org/community/showthread.php?t=5613)

General Patton 12-06-2010 05:41 PM

Multiple critical errors while saving
 
4 Attachment(s)
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
[ATTACH]3973[/ATTACH]

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.

[ATTACH]3976[/ATTACH]

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

this just happened
 
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


All times are GMT -5. The time now is 11:32 AM.

Copyright ©2024, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.