"Replaces" doesn't always work in DECORATE?

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
User avatar
Ceeb
Posts: 5125
Joined: Wed Jun 11, 2008 4:07 pm
Location: Castle Wut

"Replaces" doesn't always work in DECORATE?

Post by Ceeb »

In my mod I've replaced most of the original Doom arsenal, and so I used, in the first line of each weapon, the line "Weapon Replaces (weapon here)". Some of these work, like my chainsaw in place of the old one, the Photon Rifle replacing the Plasma Rifle, my minigun, and my RPG.

Others, like my weapons to replace the shotgun, double-barrel shotgun, and BFG don't. :? Here's some culprit code, for example.

Code: Select all

ACTOR TripleShotgun : Weapon Replaces SuperShotgun
I know this should cause each Super Shotgun to be replaced with my Triple Shotgun, but wherever I look, there's Super Shotguns.

EDIT

I just tried running my WAD without it's dehacked patch and it worked. I did use frames from the shotgun and super shotgun... But why would that have any bearing on this? :?
User avatar
Rachael
Posts: 13957
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her
Contact:

Re: "Replaces" doesn't always work in DECORATE?

Post by Rachael »

Replaces only changes certain references to the item.

EDIT: I am not really sure exactly what is going on here.
User avatar
Ceeb
Posts: 5125
Joined: Wed Jun 11, 2008 4:07 pm
Location: Castle Wut

Re: "Replaces" doesn't always work in DECORATE?

Post by Ceeb »

SoulPriestess wrote:Replaces only changes certain references to the item.

EDIT: I am not really sure exactly what is going on here.
Note my edit, running it without my DeHackEd patch fixed things. I just went ahead and rewrote my patch (the damn thing was a mess anyway) and wrote most of the stuff in DECORATE. (Like, I was using fireballs from Doom 64, which had more frames.)
User avatar
Enjay
 
 
Posts: 27115
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Re: "Replaces" doesn't always work in DECORATE?

Post by Enjay »

I don't know if this is what's happening, or even if it is supposed to. However, when a pickup is changed by dehacked, it gets replaced with an internally generated dehacked pickup (I think). So, perhaps, Zdoom is no longer seeing the supershotgun as a supershotgun, but a dehacked actor, and so it isn't replacing it :?:
User avatar
Zippy
Posts: 3302
Joined: Wed Mar 23, 2005 5:31 pm
Location: New Jersey

Re: "Replaces" doesn't always work in DECORATE?

Post by Zippy »

Definately sounds like DeHackEd could be the issue. Considering the purpose of DeHackEd is to mix around the frames and properties of actors, it actually wouldn't be terribly surprising if running DECORATE alongside it was problematic.
Locked

Return to “Editing (Archive)”