Sarge
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 > ZDoom works incorrectly with attached DEH
 
Author
All times are GMT. The time now is 20:55. Post New Thread    Post A Reply
entryway
Forum Staple


Posts: 2522
Registered: 01-04


Test level with DEHACKED lump inside the wad:
http://prboom-plus.sourceforge.net/zdoom_deh.zip

You can see correct behavior with any compatible port. With PrBoom-Plus for example. Monsters should not be spawned there.

code:
Thing 29 (Demon Spawn Cube) Death frame = 791 Exploding frame = 791 Bits = NOBLOCKMAP + NOGRAVITY + DROPOFF + MISSILE # Originally: # Death frame = 0 # Exploding frame = 0 # Bits = NOBLOCKMAP + NOGRAVITY + DROPOFF + NOCLIP + MISSILE [CODEPTR] Frame 788 = NULL Frame 789 = NULL Frame 790 = NULL # Originally: # Frame 788 = SpawnFly # Frame 789 = SpawnFly # Frame 790 = SpawnFly

Last edited by entryway on 11-04-09 at 17:48

Old Post 11-04-09 17:27 #
entryway is online now Profile || Blog || PM || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
Graf Zahl
Why don't I have a custom title by now?!


Posts: 6963
Registered: 01-03


If you create patches that depend on timing glitches proper function is not guaranteed. You didn't clear the A_SpawnSound call which in turn also calls A_SpawnFly and it just so happens that ZDoom reaches this and spawns the monster.

A_SpawnFly depends on very special setup to work (e.g. all frames having the same duration) and some of this had to be changed to allow custom cubes. In particular this means that ZDoom does no longer count A_SpawnFly calls but actual gametics to determine the cube's location.

Sorry, but this can't be changed unless a compatibility option was added. I'll do that if some real world WAD proves that this is essential. But to me all this seems to do is create useless cubes.

Old Post 11-04-09 17:54 #
Graf Zahl is online now Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
entryway
Forum Staple


Posts: 2522
Registered: 01-04



Graf Zahl said:
If you create patches that depend on timing glitches proper function is not guaranteed. You didn't clear the A_SpawnSound call which in turn also calls A_SpawnFly and it just so happens that ZDoom reaches this and spawns the monster

Oh, thanks! I removed A_SpawnSound for 32innail, but forgot for new one. Yeah, it also calls A_SpawnFly.

Old Post 11-04-09 18:06 #
entryway is online now Profile || Blog || PM || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
entryway
Forum Staple


Posts: 2522
Registered: 01-04



Graf Zahl said:
If you create patches that depend on timing glitches proper function is not guaranteed. You didn't clear the A_SpawnSound call which in turn also calls A_SpawnFly and it just so happens that ZDoom reaches this and spawns the monster.

A_SpawnFly depends on very special setup to work (e.g. all frames having the same duration) and some of this had to be changed to allow custom cubes. In particular this means that ZDoom does no longer count A_SpawnFly calls but actual gametics to determine the cube's location.

Sorry, but this can't be changed unless a compatibility option was added. I'll do that if some real world WAD proves that this is essential. But to me all this seems to do is create useless cubes.



http://prboom-plus.sf.net/zdoom_deh_test2.zip

The only difference between two wads is Z coordinate of spawner ("spawned on ceiling" flag)

Why these wads work differently if zdoom is precise?

ADDED:
To avoid crashes you probably want to add check for NULL after
spit = P_SpawnMissile (self, targ, spawntype);
See map30 with DEH from the first post.

Last edited by entryway on 11-04-09 at 19:07

Old Post 11-04-09 18:41 #
entryway is online now Profile || Blog || PM || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
Graf Zahl
Why don't I have a custom title by now?!


Posts: 6963
Registered: 01-03



entryway said:



Why these wads work differently if zdoom is precise?




I'll have to check in a debugger. This is certainly not right.

Old Post 11-04-09 21:31 #
Graf Zahl is online now Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
entryway
Forum Staple


Posts: 2522
Registered: 01-04



Graf Zahl said:
I'll have to check in a debugger. This is certainly not right.

And please, fix speed of cubes or add compatibility option (i think it's possible to force them from mapinfo), because some upcoming (sure very nice) pwad works differently in glboom-plus and gzdoom. In compatible ports speed depends from pitch angle. Check zdoom_deh_0.wad with glboom-plus.

Old Post 11-04-09 21:54 #
entryway is online now Profile || Blog || PM || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
Graf Zahl
Why don't I have a custom title by now?!


Posts: 6963
Registered: 01-03



entryway said:

Why these wads work differently if zdoom is precise?




These don't work because you took the NOCLIP flag off the cube. As a result of this change the cube behaves just like a normal projectile and explodes when it hits an obstacle. And precisely that happens before it has a chance to spawn something.

Old Post 11-04-09 22:31 #
Graf Zahl is online now Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
All times are GMT. The time now is 20:55. Post New Thread    Post A Reply
 
Doomworld Forums : Powered by vBulletin version 2.2.5 Doomworld Forums > Classic Doom > Source Ports > ZDoom works incorrectly with attached DEH

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.

Forums Directory