Help! Can't load map after Error Message

Archive of the old editing forum
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Locked
droscoe
Posts: 37
Joined: Fri Mar 13, 2015 9:03 pm

Help! Can't load map after Error Message

Post by droscoe »

I'm very concerned I just lost my map wad. All of a sudden when I tried to save, it would pop up and say that the nodebuilder couldn't function due to a script error. I don't even have any fancy scripts..? Been working on my map for over a week and never saw this before. Went to test map and it said the message below, then gzdoom builder crashed.
------
Script Error, map01, line 28451
Floating point value expected for key 'x'
Script error, map01, line 28542
Floating point value expected for key 'y'
------
Now, I opened gzdoom builder and when I go back to open my map it says the following.
------
Error when trying to open map again. Unable to read map data with specified configuration.

Error on line 28452 while parsing UDMF map data. Unknown keyword in assignment. Missing a previous terminator symbol?

Unrecognized token: "NaN"
------
Did I just lose my map? This all happened right after I lost internet at home. Doubt it is related. It was a bomb ass map...I wasn't doing anything fancy with scripts or anything when this popped up for the first time.
Nevander
Posts: 2254
Joined: Mon Jan 06, 2014 11:32 pm

Re: Help! Can't load map after Error Message

Post by Nevander »

Try this:

Delete the GZDB cfg file (temporarily for now). Open it back up, set up UDMF again and then try to open your map. If it works, it's something screwed in the cfg file, if it crashes even with a fresh config then unfortunately it's the map. Not sure if it can be salvaged unless you try to open it under a configuration that doesn't support scripting of any kind, like vanilla. The map might open but you'll lose the UDMF stuff.
User avatar
MaxED
Posts: 2246
Joined: Tue Feb 28, 2012 12:55 pm

Re: Help! Can't load map after Error Message

Post by MaxED »

Don't listen to him. He has no idea what he's talking about.

Looks like some chain of events lead to the editor saving vertex coordinates as not-a-number (NaN) values. It would help me fix this issue if you can figure out a way to reproduce this issue.
In the meantime, you can either fix the coordinates yourself by opening TEXTMAP lump in Slade 3 and finding & replacing all "NaN" values with some numbers, or upload your map so others can do it for you.
droscoe
Posts: 37
Joined: Fri Mar 13, 2015 9:03 pm

Re: Help! Can't load map after Error Message

Post by droscoe »

Holy cow. That worked. Absolutely fixed the issue.

I have no idea what I did, so I can't replicate it to my knowledge. But I edited the x-y positions to a real number value, and voila, now it works.

I sincerely appreciate you helping me. I'm very excited about this map and you saved me heartache and frustration. And I learned something in the process! :) What a great day. lol

Take care.
Nevander
Posts: 2254
Joined: Mon Jan 06, 2014 11:32 pm

Re: Help! Can't load map after Error Message

Post by Nevander »

MaxED wrote:Don't listen to him. He has no idea what he's talking about.
Gee thanks.
Locked

Return to “Editing (Archive)”