Archvile
Register | User Profile | Member List | F.A.Q | Privacy Policy | New Blog | Search Forums | Forums Home
Doomworld Forums : Powered by vBulletin version 2.2.5 Doomworld Forums > Classic Doom > Doom Editing > Garbled mess when opening certain maps
 
Author
All times are GMT. The time now is 02:50. Post New Thread    Post A Reply
Bloodite Krypto
Member


Posts: 289
Registered: 02-09


So I was wondering on a few occasions when attempting to a view a map in Doombuilder it comes up as a garbled mess with lines all over the place, could it be due to the inept mess the author made or am I just opening it in the wrong format?

For instance this is from Dark Tartarus V1 - MAP30, I opened it in (Skulltag Doom in Doom Format) all the other maps open fine with the exception of this. I've also noticed the same effect if viewing Nuts3.wad, you can't actually view the map just a horrendous string of a cobbled mess.

http://i98.photobucket.com/albums/l244/StarScream_01/Builder2013-08-0611-25-46-60_zpsd4dd9475.jpg

Old Post 08-06-13 11:31 #
Bloodite Krypto is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
Eris Falling
Forum Staple


Posts: 3038
Registered: 07-12


Try Doom in Hexen format

Old Post 08-06-13 11:43 #
Eris Falling is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
GreyGhost
Why don't I have a custom title by now?!


Posts: 8754
Registered: 01-08


Yep, wrong format.


Bloodite Krypto said:
you can't actually view the map just a horrendous string of a cobbled mess.
The "Doom in Doom" and Doom in Hexen" Linedef lump formats are incompatible, which is why you're seeing that mess.

Old Post 08-06-13 12:43 #
GreyGhost is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
andrewj
Senior Member


Posts: 1638
Registered: 04-02


DoomBuilder should notice the BEHAVIOR lump and automatically switch to a Hexen format (or at the very least put up a warning dialog), no?

Old Post 08-07-13 07:52 #
andrewj is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
Bloodite Krypto
Member


Posts: 289
Registered: 02-09


Nope, gives no such warning or any indication at all. Using 2.1.2.1553.

Old Post 08-07-13 10:05 #
Bloodite Krypto is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
GreyGhost
Why don't I have a custom title by now?!


Posts: 8754
Registered: 01-08



andrewj said:
DoomBuilder should notice the BEHAVIOR lump and automatically switch to a Hexen format (or at the very least put up a warning dialog), no?
Part of what's required is already there in the Game Detect Pattern, I'll poke my nose into the development forum to see if there's been a feature request.

Old Post 08-07-13 11:58 #
GreyGhost is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
boris
meow


Posts: 3629
Registered: 05-00


IIRC CodeImp deliberately decided against trying to auto-detect the map format.

Old Post 08-07-13 21:28 #
boris is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
kb1
Member


Posts: 379
Registered: 11-06


If any one of these statements is true, it's definitely not a Doom map (or it's ill-formed), and it's most-likely a Hexen map:
code:
1. Size("LINEDEFS") / 14 <> Int(Size("LINEDEFS") / 14) 2. Size("THINGS") / 10 <> Int(Size("THINGS") / 10) 3. // Treat "LINEDEFS" as as array of unsigned 16-bit INTs. IsDoom = True // Loop through the LineDefs_as_INT16 array, 7 INTs at a time for (i = 0; i < arraysize; i += 7) { if (LineDefINTs[i+0] >= VertexCount || LineDefINTs[i+1] >= VertexCount) { IsDoom = False Exit Loop } }

Last edited by kb1 on 08-08-13 at 01:57

Old Post 08-08-13 00:43 #
kb1 is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
Bloodite Krypto
Member


Posts: 289
Registered: 02-09


Well it certainly was built in (Hexen Format) given it utilizes ACS Scripts.

Old Post 08-08-13 13:41 #
Bloodite Krypto is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
boris
meow


Posts: 3629
Registered: 05-00



kb1 said:
code:
2. Size("THINGS") / 10 <> Int(Size("THINGS") / 10)


Hexen things are 20 byte long, so this will always be true.

Old Post 08-08-13 19:09 #
boris is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
Quasar
Moderator


Posts: 6087
Registered: 08-00


You can't really reliably use lumpsize % sizeof(struct) to detect map formats because of common multiples. For either struct size there will be multiples of them that are divisible by both possible structure sizes, so for those maps you're unable to eliminate either format as a possibility.

This is why all ports to date use the presence of BEHAVIOR to detect Hexen format, and require that BEHAVIOR never be placed after a Doom-format map.

Old Post 08-08-13 19:52 #
Quasar is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
kb1
Member


Posts: 379
Registered: 11-06



Quasar said:
You can't really reliably use lumpsize % sizeof(struct) to detect map formats because of common multiples. For either struct size there will be multiples of them that are divisible by both possible structure sizes, so for those maps you're unable to eliminate either format as a possibility.

This is why all ports to date use the presence of BEHAVIOR to detect Hexen format, and require that BEHAVIOR never be placed after a Doom-format map.

...Which is, of course proper. But, again, if any of those tests ARE true, you definitely do not have a Doom-format map, which is what I wanted to say. I've been using these tests in a home-brew lump editor/map viewer for many years now, as a primary method of detection. The 3rd test is practically guaranteed to be right, on all but the most trivial of maps. I suppose you could contrive one, but the test is really quite reliable. If you've worked with enough WAD files, you see all manners of crazy invalid shit - lumps skewed one byte, pieces of maps cut+pasted into different WADs, etc. I though we were discussing detection, and I guess I assumed that meant "above and beyond presence/absense of the BEHAVIOR lump", cause that's what I do, but, maybe not.

Didn't realize Hexen things were 20 bytes (are you sure? wow - a wasted clause). Then again if not divisible by 10, you'd really have a problem... I wonder about Strife things (Quasar?) I must have used that test for something. I guess the test would be better reversed - then, at least it would find 50% of them!

There was a time when I wanted a way for software to identify which game/port a map needed to run on. That involved all manners of crazy things: Checking lump sizes, line triggers, things/thing flags, BEHAVIOR, etc. Can't say I really succeeded, though I was able to sort a whole lot of maps that way. Legacy had a neat idea with the "text in map identifier lump" thing, used for FraggleScript, I think. Oh well.

Old Post 08-09-13 03:17 #
kb1 is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
Kappes Buur
Forum Regular


Posts: 874
Registered: 11-02



andrewj said:
DoomBuilder should notice the BEHAVIOR lump and automatically switch to a Hexen format (or at the very least put up a warning dialog), no?


Bloodite Krypto said:
Nope, gives no such warning or any indication at all. Using 2.1.2.1553.

GZDoombuilder r1760 FTW

If BEHAVIOR lump is present, a map can no longer be detected as a map in Doom map format.

Old Post 08-10-13 20:10 #
Kappes Buur is offline Profile || Blog || Search || Add Buddy IP || Edit/Delete || Quote
Quasar
Moderator


Posts: 6087
Registered: 08-00



kb1 said:
...I wonder about Strife things (Quasar?)...

Strife maps are in pure Doom format. Only the numbers differ (thing types, line specials, sector types). Some linedefs and sectors use a ghetto form of argument, in the form of setting certain other fields such as the texture y offset, to specific values, though.

Old Post 08-10-13 21:51 #
Quasar is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
Netherstorm
Member


Posts: 374
Registered: 04-12


I hate it when that happens, always did with my older wads. Changing the format should fix it.

Old Post 08-10-13 22:41 #
Netherstorm is offline Profile || Blog || PM || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
All times are GMT. The time now is 02:50. Post New Thread    Post A Reply
 
Doomworld Forums : Powered by vBulletin version 2.2.5 Doomworld Forums > Classic Doom > Doom Editing > Garbled mess when opening certain maps

Show Printable Version | Email this Page | Subscribe to this Thread

 

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are OFF
[IMG] code is ON
 

< Contact Us - Doomworld >

Powered by: vBulletin Version 2.2.5
Copyright ©2000, 2001, Jelsoft Enterprises Limited.