Author Topic: Whenever I use the levelexitarea script, my game crashes  (Read 3680 times)

DinoDan

  • Posts: 1
  • Maggot Crusher.
    • View Profile
Whenever I use the levelexitarea script, my game crashes
« on: November 29, 2014, 05:48:49 PM »
For some reason whenever I use the levelexitarea script and I test it the debug mode shutsdown. Please fix it.( I put the level Im working on with it.)

dingoZero

  • Posts: 50
  • Dingovania
    • View Profile
Re: Whenever I use the levelexitarea script, my game crashes
« Reply #1 on: December 06, 2014, 12:28:06 PM »
Next time post in the Editor Discussion forum for better feedback.

Anyway, your problem is that you are referencing the level by entering it's file name. You should instead reference a number that is consistent with the level id in the levels.xml index file.

Essentially what I am saying is that in this screenshot: http://gyazo.com/879a0a31ea21e97501be30d328463455 where it says "dloor 2" it should instead be a number.

A proper level file looks like this (I've edited it for your map).

Code: XML
  1. <levels start="1">
  2.         <act name="lvl.act1">
  3.                 <level id="1" res="levels/test.xml" name="Test" />
  4.                 <level id="2" res="levels/dloor 2.xml" name="Dloor 2" />
  5.         </act>
  6. </levels>

If you want to add more levels to it, just add another line, make sure there are no duplicate level ids, and it should work correctly.

One more thing. This is a pet peeve of mine, but these: http://gyazo.com/031e36c94b0f76382f984c3baaad2565

Should look like this: http://gyazo.com/931a17d84d2d5b19272743e1f972db82

Good luck with your endeavors.