changing map# in lmp file with hex

Discuss anything ZDoom-related that doesn't fall into one of the other categories.
Post Reply
TimeOfDeath
Posts: 57
Joined: Sun Apr 09, 2006 12:54 pm
Contact:

changing map# in lmp file with hex

Post by TimeOfDeath »

Where is the map# info located in a zdoom demo file? I'd like to make the demo playback on a different map# (it's the same exact map, but the map# changed after the demo was recorded).
Gez
 
 
Posts: 17946
Joined: Fri Jul 06, 2007 3:22 pm

Re: changing map# in lmp file with hex

Post by Gez »

Looking at [wiki=demo]the wiki[/wiki], it'll be in the ZDHD chunk. This chunk is not compressed.
TimeOfDeath
Posts: 57
Joined: Sun Apr 09, 2006 12:54 pm
Contact:

Re: changing map# in lmp file with hex

Post by TimeOfDeath »

You the man, thanks.
User avatar
edward850
Posts: 5890
Joined: Tue Jul 19, 2005 9:06 pm
Location: New Zealand
Contact:

Re: changing map# in lmp file with hex

Post by edward850 »

Too be more specific (if anybody else wants to know), the map lump name starts off at offset 18, and must always 8 bytes long. Short names are null terminated with all values after it ignored.
Interestingly, most of the time zdoom ends up writing "pk" as garbage data at the end of MAP## strings.
Post Reply

Return to “General”