Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
HPL Level editor crashing when opening a certain map
Apjjm Offline
Is easy to say

Posts: 496
Threads: 18
Joined: Apr 2011
Reputation: 52
#8
Solved: 9 Years, 4 Months, 1 Week ago RE: HPL Level editor crashing when opening a certain map

Maps are stored in an xml format - so it should be possible to just remove those entities from your map file by hand in notepad or some other editor. I must stress though, that you should 100% absolutely back up your map files before doing this, and always work on a copy - never the original.
This is probably an unreasonable thing to try until you know it is your entities causing the problem, and that you can't fix the entities. To find this out create a map and add 1 of each custom entity to it - after adding a new entity save, exit and re-load. If the map no longer loads, you have just found your problem entity. It is first worth attempting (after backing up the entity) to change the settings in it until it loads (Try making the item static to start with; as stating a non existing physics body as the main body I think does crash the level editor). It is possible that more than one entity has a problem, so after fixing one entity continue on with the testing until you know every single custom entity works.

If this still doesn't fix your problem, i suggest looking at the xml in the map file. It isn't impossible that the map file has become corrupted and the game is running off of the .cmap file - as opposed to the one you edit? Anyway if this is the case, you may be best taking the hit and starting the map again if the whole file is damaged or even if you just cannot figure out the problem (it may take longer to work it out and fix it than to do the map again - as you shouldn't have to redo the script, and know exactly what goes where this time!) - After 1 hard disk failure screwing over a day of scripting, I always back up my current projects after i finish working on them for that session.
(This post was last modified: 05-06-2011, 03:12 AM by Apjjm.)
05-06-2011, 03:07 AM
Find


Messages In This Thread
RE: HPL Level editor crashing when opening a certain map - by Apjjm - 05-06-2011, 03:07 AM



Users browsing this thread: 1 Guest(s)