Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Sign in to follow this  
entryway

DEH for ability to see VPO (numvisplanes>128) with doom2+

Recommended Posts

Only for doom2-plus-1.92.6

Usage: apply this DEH for doom2p.exe, start any pwad with hacked exe, activate pistol. If AMMO is 0 in statusbar - there was no overflow of 'vanilla' visplanes limit (MAXVISPLANES = 128)

Patch File for DeHackEd v3.0

# Note: Use the pound sign ('#') to start comment lines.

Doom version = 19
Patch format = 6

Weapon 1 (Pistol)
Ammo type = 124732
Already patched doom2p.exe and show_vpo.deh:
http://prboom-plus.sourceforge.net/doom2p_show_vpo.zip

Share this post


Link to post
esselfortium said:

....HOW?!

With "Ammo type" overflow it's possible to see any memory value in AMMO part of statusbar.

124732 = (0x100000 + 0x298 * 128 - 0x9AF14) / 4 + 1

0x100000 - address of visplanes table from doom2+
0x298 - size of one visplane (sizeof(visplane_t))
128 - MAXVISPLANES from doom2.exe
0x100000 + 0x298 * 128 == &visplanes[128]
0x9AF14 - address of players[0].ammo[0]
+1 is for visplane_t::pichum instead of visplane_t::height

Thus, address of players[0].ammo[124732] actually is equal to address of visplanes[128].picnum which is initialized to 0 at start.

Share this post


Link to post

Ah, see, VPOs are a good thing now... they give you ammo!

(This should be useful while testing Doom levels from the DOS prompt.)

Share this post


Link to post

What if vanilla mods appear, replacing gun slots with various indicators?

Heh heh. Not even CHOCOLATE DOOM will work with them!

Share this post


Link to post

PROTIP: When visplanes overflow, shoot at them until they die.

Share this post


Link to post
printz said:

Heh heh. Not even CHOCOLATE DOOM will work with them!

But you can try this in Choco:

Patch File for DeHackEd v3.0

# Note: Use the pound sign ('#') to start comment lines.

Doom version = 21
Patch format = 6

Weapon 1 (Pistol)
Ammo type = 12
Will give you one bullet for every killed monster (14 for secrets count). Works in prb+ 2.5.0.4.test too.

Share this post


Link to post

Oh. I can finally make necro weapons in vanilla or chocolate Doom! (soul cube for Doom 1 -- yet gotta resolve the restoration part...)

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  
×