
Suggestions for improvement??
Download link for test it: http://www.mediafire.com/download/hpio6 ... Editor.rar
Crash/exception:salvadorc17 wrote:Suggestions for improvement??
Code: Select all
System.IndexOutOfRangeException: Index was outside the bounds of the array.
Code: Select all
System.ArgumentException: Requested value 'none' was not found.
Thanks for your time testing this David, btw why you want to add guard multiple times to same tile, and why to up 61 guards?? Ill fix this crash becuase they are priority, for the bugs, ill take time to do further testing...David wrote: Crash/exception:
- When I put a guard at the same place multiple times, his sword becomes more and more white. As if there were multiple guards drawn on top of each other.
- After I put the guard 61 times, I get an unhandled exception:
Code: Select all
System.IndexOutOfRangeException: Index was outside the bounds of the array.
- The same happens if I reload a room with a guard. For example load "guards.xml" and click "Start Room" many times.
- Open a level, but don't select a room. Click File -> Save:
Code: Select all
System.ArgumentException: Requested value 'none' was not found.
Just for testing. Anyway, it crashes even if I choose a different tile every time.salvadorc17 wrote: btw why you want to add guard multiple times to same tile,
I tested it again and now it's 31. Maybe I was clicking too fast the first time.salvadorc17 wrote: and why to up 61 guards??
Yes, i have checked the code and made some fixes, also im trying to overlap tiles to get better graphic level layout, the real problem is that for the editor, the real tiles coordinate does not fit with the mouse coordinates.David wrote: Just for testing. Anyway, it crashes even if I choose a different tile every time.
I tested it again and now it's 31. Maybe I was clicking too fast the first time.
You probably used an array of size 30 somewhere and it's overflowing.
David wrote:I see you uploaded the source here: https://github.com/salvadorc17/Prince-Monogame (PrinceEditor folder)
David, are you still interested in testing this? also want some help, about know how should change room connections into the xml format..David wrote:I see you uploaded the source here: https://github.com/salvadorc17/Prince-Monogame (PrinceEditor folder)