Author Topic: Custom map loading crash  (Read 5632 times)

TXI

  • Member
  • Posts: 47
  • Karma: +2/-0
  • Sword of Justice
    • View Profile
    • My Facebook account
Custom map loading crash
« on: March 06, 2014, 04:19:38 PM »
Hello!

When I edit or create a map for A&A, the game crashes while loading the map. Why?
« Last Edit: March 06, 2014, 04:21:37 PM by Faremmy »
AA4E

peewee_RotA

  • Sr. Member
  • Posts: 272
  • Karma: +8/-0
    • View Profile
Re: Custom map loading crash
« Reply #1 on: March 06, 2014, 07:31:40 PM »
There's a lot of possibilities. First, make sure that you have the latest copy of the DoomBuilder files. They've been updated many times recently.
http://amuletsandarmor.com/download.htm

Secondly, make sure that you have all 5 files that go with the new map. You need:
L##.MAP
L##.GEN
L##.I
L##.LIT
S##.SRP

Note that one of these files begins with an S, not an L. This was an issue that took me a while to figure out and caused crashes after loading.


Thirdly, make sure that you did not copy the wrong script file. The one in the TemplateMap folder that comes with the doom builder files is an empty script file, this is what should be used with most levels unless you've started making custom scripts.

Fourthly, make sure that no linedefs or sectors have any actions. Actions try to call scripts and if they don't exist at level load, the game will crash. Traps, platforms, and all other moving objects do not work like they do in doom. Except for doors which use alter sector things, all moving objects require scripting which is triggered based on action numbers.

Fifthly, back up your map and then delete all of the THINGS in the map. Then add a player 1 start. This will let you know if you have either a bad thing number OR an alter sector thing in weird geometry.

(Strangely enough, having too many alter sector things within nearby sectors can cause issues. Also if your sectors are concave, certain alter sectors don't always work right. You can fix this issue by turning one strange shaped sector into many sectors with linedefs.)


Lastly, check all of your sectors and make sure that they are not still a part of another cut sector. Sometimes if you try to draw a new sector in between a larger sector, the two halves of the larger sector remain with the same number. The most common way to achieve this is while making doors. Sometimes two sectors don't split properly. Use the Create Sector tool to split them up if this is the case anywhere. I actually had a crash during load because of it at one point as well.

Another helpful thing is to check the error.log to see what crashed. Post that here and we can hopefully provide some more info.
« Last Edit: March 06, 2014, 07:41:17 PM by peewee_RotA »

TXI

  • Member
  • Posts: 47
  • Karma: +2/-0
  • Sword of Justice
    • View Profile
    • My Facebook account
Re: Custom map loading crash
« Reply #2 on: March 06, 2014, 08:46:07 PM »
I've only added some enemies to the first map of the "Visions of Jugurtha" quest. I have also created my own map ( L400.map) which has only two sectors and one player start ( all files included, template script copied and renamed to "S400.SRP" ),
but still crashing :(

I always get an "convert.exe" error when opening a map in DooMBuilder.
AA4E

LysleShields

  • Administrator
  • Full Member
  • Posts: 208
  • Karma: +6/-1
  • Is the potion half full or half empty?
    • View Profile
    • Amulets & Armor
Re: Custom map loading crash
« Reply #3 on: March 06, 2014, 09:24:32 PM »
What version of the doom builder release do you have?  I put out a version that caused all types of bad things to happen to the things at one point.

TXI

  • Member
  • Posts: 47
  • Karma: +2/-0
  • Sword of Justice
    • View Profile
    • My Facebook account
Re: Custom map loading crash
« Reply #4 on: March 07, 2014, 12:09:01 PM »
I have downloaded the version from the "amuletsandarmor.com" site (3/2/2014 - Doom Builder 2 BETA v0.02d).
AA4E

peewee_RotA

  • Sr. Member
  • Posts: 272
  • Karma: +8/-0
    • View Profile
Re: Custom map loading crash
« Reply #5 on: March 07, 2014, 12:47:27 PM »
Do you have any way of sending a copy of your .MAP. I'd like to load it up and take a look.

TXI

  • Member
  • Posts: 47
  • Karma: +2/-0
  • Sword of Justice
    • View Profile
    • My Facebook account
Re: Custom map loading crash
« Reply #6 on: March 07, 2014, 01:04:04 PM »
AA4E

LysleShields

  • Administrator
  • Full Member
  • Posts: 208
  • Karma: +6/-1
  • Is the potion half full or half empty?
    • View Profile
    • Amulets & Armor
Re: Custom map loading crash
« Reply #7 on: March 08, 2014, 07:57:58 PM »
I've downloaded your file and tried to open it in the game.  Naturally, this crashed just like you said yours was doing.  I looked at the error in the debugger and found that it was crashing in some weird location.  Okay.  Then I tried to open the file in Doom Builder, and well, it does not open it either.

Looks like we have some really corrupt file.  It's kind of a small file (1.6k).  I guess at this point, I would just recommend you start over and try again.

peewee_RotA

  • Sr. Member
  • Posts: 272
  • Karma: +8/-0
    • View Profile
Re: Custom map loading crash
« Reply #8 on: March 08, 2014, 10:51:47 PM »
I had the same error saying that it was corrupted yesterday, but didn't have the opportunity to double check by redownloading and whatnot.

TXI

  • Member
  • Posts: 47
  • Karma: +2/-0
  • Sword of Justice
    • View Profile
    • My Facebook account
Re: Custom map loading crash
« Reply #9 on: March 09, 2014, 10:53:41 AM »
Yes it is small because it's a map with only two sectors and a player start.

I've tried an original map from A&A ( L64 ), changed it's extension to WAD, opened it with DoomBuilder and added some enemies, saved and then changed back to MAP file type. The game crashes...

I've forgot to mention that I use "Windows Notepad" to change the WAD to MAP. Could that cause the problem?
AA4E

LysleShields

  • Administrator
  • Full Member
  • Posts: 208
  • Karma: +6/-1
  • Is the potion half full or half empty?
    • View Profile
    • Amulets & Armor
Re: Custom map loading crash
« Reply #10 on: March 09, 2014, 12:19:25 PM »
Ok.  Yes, Notepad will modify and corrupt the file.  Instead of renaming the file at all, when opening a file in doom builder, type "*.map" to search for .map files.  Then double click on them to load.  Renaming will not be needed this way.  I should probably put this in the drop down on the file open dialog.

TXI

  • Member
  • Posts: 47
  • Karma: +2/-0
  • Sword of Justice
    • View Profile
    • My Facebook account
Re: Custom map loading crash
« Reply #11 on: March 09, 2014, 04:42:26 PM »
It works! Thank You very much!!!
AA4E