Adrianotiger / desktopPet

Remembering the lovely eSheep (stray sheep) from 1995 -

Home Page:https://adrianotiger.github.io/desktopPet/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pet Editor crashes when entering invalid values.

Estecka opened this issue · comments

When entering an invalid value in some fields (e.g: setting an animation's Repeats to -1, or its Interval to 0), the following message pops up :

Unhandled exception has occurred in your application. If you click Continue, the Application will ignore this error and attempt to continue. If you click Quit, the application will close immediately.

When clicking Continue, the same error instantly pops back; so quitting is really the only option.
I'd expect the Editor to correct the value in some way after displaying the error, so as to avoid loosing unsaved changes, or saving a corrupted xml.

Here are the traces for the cases mentioned above :
Repeats.log
Interval.log

Unfortunately this is a problem i have learned to work around, as all unsaved progress is lost when this error occurs. ive since gotten into the habit of placing the number i want first and then deleting the previous number.

Ive also found that when two child spawn from one animation, the editor only displays the contents of one child for both child spawns. I do this manually in the XML file instead.

The editor also does not properly upload icons (missing colours) so ive begun using a base64 convertor to convert the icon and then copy and replace the contents in the xml file manually.

i hope this helps a little and fixes can be made soon!

Thank you for the feedback. I will solve it as soon as possible.

It's fixed in the new version in most areas, but leaving the "Interval" field blank will still cause this error and crash the editor.