Cyberdemon
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 > Source Ports > Using DOOM1.WAD (Shareware Doom) as a resource PWAD ?
 
Author
All times are GMT. The time now is 06:57. Post New Thread    Post A Reply
soner du
Mini-Member


Posts: 68
Registered: 10-11


I want to spread some Doom love among my friends, as legally as possible (free WADs, not modifying Id Software stuff).

I'm OK with Freedoom, except I hate their troopers & sergeants.
One thing I want to do is using the Freedoom IWAD with the sprites & textures available in DOOM1.WAD, the shareware WAD.

It's easy to do it in the ZDoom family, and also in 3DGE, with the arguments : "-iwad doom2.wad -file DOOM1.WAD"

Chocolate Doom won't run the Freedoom IWAD, but a mix'n'match perfectly works when using another PWAD and the "-merge" argument, for example Alien Vendetta : "chocolate-doom.exe -iwad doom2.wad -merge DOOM1.WAD -file AV.WAD"

Is it possible to do something similar in PrBoom, Eternity and other source ports ?
ZDOOM is cool, but I'm just curious... (and I like Eternity and PrBoom)

Last edited by soner du on 01-01-13 at 11:36

Old Post 01-01-13 10:12 #
soner du is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit || Quote
Maes
I like big butts!


Posts: 12750
Registered: 07-06


Boom and its derivatives automatically do what the -merge switch does in Chocolate (it was one of the very first fixes introduced by Killough). Chocolate has that "behave exactly like doom.exe" clause in its contract, which would normally "forbid" it from doing the same, but the -merge switch was added anyway as a courtesy/convenience.

Old Post 01-01-13 11:49 #
Maes is offline Profile || Blog || PM || Homepage || Search || Add Buddy IP || Edit || Quote
soner du
Mini-Member


Posts: 68
Registered: 10-11


PrBoom-plus can not run the freedoom doom2.wad with DOOM1.WAD resources.
"glboom-plus -iwad doom2.wad -file DOOM1.WAD" just launches DOOM1.WAD, basically (and crashes).
The mix works with PWADs, though : "glboom-plus -iwad doom2.wad -file DOOM1.WAD AV.WAD" runs the Alien Vendetta PWAD, with DOOM1.WAD textures & sprites, and other textures from the Freedoom doom2.wad.

Eternity starts the Freedoom doom2.wad with DOOM1.WAD sprites & textures, as expected, but textures from doom2.wad are ignored...

Old Post 01-03-13 10:44 #
soner du is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit || Quote
Gez
Why don't I have a custom title by now?!


Posts: 11379
Registered: 07-07


ZDoom is the only port to ever implement cumulative texture lumps. That's why you will only get the doom1.wad textures.

You can be sneaky and edit the freedoom IWAD to rename TEXTURE1 into TEXTURE2, but PNAMES aren't cumulative either so the Freedoom textures will look very weird.

Old Post 01-03-13 11:24 #
Gez is offline Profile || Blog || PM || Search || Add Buddy IP || Edit || Quote
Maes
I like big butts!


Posts: 12750
Registered: 07-06



soner du said:
PrBoom-plus can not run the freedoom doom2.wad with DOOM1.WAD resources.
"glboom-plus -iwad doom2.wad -file DOOM1.WAD" just launches DOOM1.WAD, basically (and crashes).



That's because it "sees" two IWADs, and the IWAD priority mechanism selects DOOM1.WAD (I'm surprised that the -iwad switch doesn't get absolute priority, though, that's something that probably needs fixing). Try a "WAD gender changer" tool that switches the IWAD marker for PWAD.

@Gez: yeah, that's another sore point... so if you want to use DOOM1.WAD as a resource wad, you'll also need a "helper" PWAD with cumulative (precomputed) TEXTURE1/2 and PNAMES lumps. That is, if you want broad compatibility.

Last edited by Maes on 01-03-13 at 14:47

Old Post 01-03-13 11:47 #
Maes is offline Profile || Blog || PM || Homepage || Search || Add Buddy IP || Edit || Quote
GhostlyDeath
Forum Retard


Posts: 1027
Registered: 08-05



Gez said:
ZDoom is the only port to ever implement cumulative texture lumps. That's why you will only get the doom1.wad textures.


No. ReMooD also supports such things too, not only ZDoom. Therefor if one did `-iwad freedoom.wad -file doom1.wad av.wad` you would get the following precendence: AV, then DOOM1, then FREEDOOM.

So basically for sprites, textures, sounds, etc:
* The SSG, BFG, and Plasma are Freedoom, while the remaining guns are Doom (from DOOM1)
* Textures that do not exist in DOOM1 are using FREEDOOM textures instead.

A screenshot is easier:
http://remood.org/images/freedoom-doom1-av.png

Old Post 01-03-13 13:50 #
GhostlyDeath is offline Profile || Blog || PM || Homepage || Search || Add Buddy IP || Edit || Quote
DaniJ
Senior Member


Posts: 2142
Registered: 08-03



Gez said:
ZDoom is the only port to ever implement cumulative texture lumps. That's why you will only get the doom1.wad textures.

No. Doomsday does this also.

Old Post 01-04-13 12:47 #
DaniJ is offline Profile || Blog || PM || Search || Add Buddy IP || Edit || Quote
GhostlyDeath
Forum Retard


Posts: 1027
Registered: 08-05


There would be a problem using this with The Ultimate FreeDoom, but ReMooD can do per WAD level switching anyway.

Old Post 01-04-13 16:39 #
GhostlyDeath is offline Profile || Blog || PM || Homepage || Search || Add Buddy IP || Edit || Quote
fabian
Member


Posts: 386
Registered: 12-12



Maes said:

That's because it "sees" two IWADs, and the IWAD priority mechanism selects DOOM1.WAD (I'm surprised that the -iwad switch doesn't get absolute priority, though, that's something that probably needs fixing). Try a "WAD gender changer" tool that switches the IWAD marker for PWAD.


Do you have a clue how/where to fix this in prboom-plus' code?

Old Post 03-27-13 21:39 #
fabian is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit || Quote
fabian
Member


Posts: 386
Registered: 12-12



fabian said:

Do you have a clue how/where to fix this in prboom-plus' code?


To answer my own question, I have supplied the following patch to the corresponding bug [1] in prboom-plus' bug tracker on sourceforge:
code:
--- a/src/w_wad.c +++ b/src/w_wad.c @@ -253,6 +253,12 @@ static void W_AddFile(wadfile_info_t *wa } strncpy (lump_p->name, fileinfo->name, 8); lump_p->source = wadfile->src; // Ty 08/29/98 + + // IWAD file used as recource PWAD must not override TEXTURE1 or PNAMES + if (wadfile->src != source_iwad && !strncmp(header.identification,"IWAD",4) && + (!strnicmp(fileinfo->name,"TEXTURE1",8) || + !strnicmp(fileinfo->name,"PNAMES",6))) + strncpy (lump_p->name, "-IGNORE-", 8); } free(fileinfo2free); // killough


It prevents IWADs that are not used as *the* current IWAD from overriding the current IWAD's TEXTURE1/2 and PNAMES lumps. I admit it is a bit hackish, but it works for the decribed use case: "prboom-plus -iwad freedoom.wad -file doom1.wad" works as expected. Furthermore, PWADs that supply their own TEXTURE1/2 lumps for a reason are still allowed to do so (but for additional IWADs this is usually wrong). It fails, however, for IWADs that declare themselves as PWADs like CHEX.WAD or DOOM.WAD and DOOM2.WAD from the Doom 3 BFG Edition.

A more clean solution would be to introduce the aforementioned cummulative TEXTURE and PNAMES lumps, but that is bexond the scope of my approach.

[1] http://sourceforge.net/tracker/?fun...658&atid=772946

Last edited by fabian on 05-06-13 at 09:19

Old Post 04-13-13 09:24 #
fabian is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit || Quote
fabian
Member


Posts: 386
Registered: 12-12



soner du said:
The mix works with PWADs, though : "glboom-plus -iwad doom2.wad -file DOOM1.WAD AV.WAD" runs the Alien Vendetta PWAD, with DOOM1.WAD textures & sprites, and other textures from the Freedoom doom2.wad.

The reason why it worked with "-file doom1.wad av.wad" (in *that* order) should be that av.wad contains a TEXTURE1 lump based on doom2.wad's that re-overrides doom1.wad's one. However, in recent builds of prboom-plus it should work in any order.

Old Post 06-23-13 21:31 #
fabian is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit || Quote
printz
CRAZY DUMB ZEALOT


Posts: 8891
Registered: 06-06


Trying to mix Doom textures is a nightmare. And it's especially a problem if you try to use Doom 2 common texture packs with a Doom 1 pwad.

__________________
Automatic Wolfenstein - Version 1.0 - also on Android

Old Post 06-23-13 21:51 #
printz is offline Profile || Blog || PM || Homepage || Search || Add Buddy IP || Edit || Quote
soner du
Mini-Member


Posts: 68
Registered: 10-11



soner du said:
It's easy to do it in the ZDoom family, and also in 3DGE, with the arguments : "-iwad doom2.wad -file DOOM1.WAD"
It now works on the latest test version of prboom+.

2.5.1.4.test @ 2013-jul-06 15:36 :
[*] Ability to use e.g. doom1.wad as a resource for a doom2 IWAD, e.g. freedoom (prboom-plus -iwad freedoom.wad -file doom1.wad), by Fabian Greffrath.
Good work, Fabian !

Old Post 09-19-13 12:13 #
soner du is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit || Quote
All times are GMT. The time now is 06:57. Post New Thread    Post A Reply
 
Doomworld Forums : Powered by vBulletin version 2.2.5 Doomworld Forums > Classic Doom > Source Ports > Using DOOM1.WAD (Shareware Doom) as a resource PWAD ?

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.