[DONE] MapInfo replacements for multiple iwads in same mod?

Ask about ACS, DECORATE, ZScript, or any other scripting questions here!

Moderator: GZDoom Developers

Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.

Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)

[DONE] MapInfo replacements for multiple iwads in same mod?

Postby eharper256 » Sat May 21, 2022 2:35 am

So, this is just a query before I start down a long road into a mire: I was thinking of creating and adding in new intermission backgrounds for Heretic and Hexen to Walpurgis, which would require me to do some re-write's to the MAPINFO lumps.

Obviously, Walp is currently compatible with Doom (+Wadsmoosh), Heretic, and Hexen all at once.

What I need to know is if there any pitfalls in replacing multiple game MAPINFO's, or if that's even possible?

I ~assume~ what I do is copy the format used in the zdoom.pk3, and have a folder called /mapinfo/ with a heretic.txt and hexen.txt which would override the base ones. Is that right?

And in that case, do I need to copy the full contents of the file from zdoom.pk3, or will be my changes be merged?

Thanks!
Last edited by eharper256 on Sun May 22, 2022 8:06 am, edited 1 time in total.
User avatar
eharper256
Author of Hexen: Walpurgis
 
Joined: 25 Feb 2018
Location: UK

Re: MapInfo replacements for multiple iwads in same mod?

Postby Blue Shadow » Sat May 21, 2022 6:48 pm

I'd imagine you only need to copy the relevant parts (the cluster definitions). Each MAPINFO, then, is put in its own filter. For example, the filter for Heretic: Shadow of the Serpent Riders and Hexen: Beyond Heretic should be like this:

Code: Select allExpand view
filter/heretic/heretic.shadow/mapinfo.txt
filter/hexen/hexen.hexen/mapinfo.txt
User avatar
Blue Shadow
 
Joined: 14 Nov 2010
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: ATI/AMD (Modern GZDoom)

Re: MapInfo replacements for multiple iwads in same mod?

Postby eharper256 » Sun May 22, 2022 7:57 am

Blue Shadow wrote:I'd imagine you only need to copy the relevant parts (the cluster definitions). Each MAPINFO, then, is put in its own filter. For example, the filter for Heretic: Shadow of the Serpent Riders and Hexen: Beyond Heretic should be like this:

Code: Select allExpand view
filter/heretic/heretic.shadow/mapinfo.txt
filter/hexen/hexen.hexen/mapinfo.txt

Okay, so it seems that it appends to my standard mapinfo.txt I have in the root, AND overwrites any iwad resources when in /filter/ from my testing. Interesting to know.

For some reason I had it in my head that the filter directory was only for textures. :shock:

Anyway, thanks for the tip. Here's the result:
User avatar
eharper256
Author of Hexen: Walpurgis
 
Joined: 25 Feb 2018
Location: UK


Return to Scripting

Who is online

Users browsing this forum: AshHouswares and 0 guests