Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
maxmanium

Minor DEHACKED string bug with doom2.exe

Recommended Posts

I edited the string "(press y to quit to dos.)" It's causing issues with one of the random messages though and I can't figure out why -- I don't think those can even be edited. It works fine in Chocolate Doom:

 

Spoiler

Untitled.png.e75653004e5c2b8c9c61221b24f5c826.png

 

But this is what happens with doom2.exe in DOSBOX:

 

Spoiler

Untitled.png.b493dc2ee17973e702e79a371605436f.png

 

Share this post


Link to post
Posted (edited)

Just after posting this I managed to fix it. The string in question is originally 29 characters and my replacement was 27. Apparently by padding the text with spaces on either side and making it the same character length it solved the problem. I'm not sure why it happened in the first place, unless it has something to do with how the original DEHACKED did its patching.

Share this post


Link to post

In rare fringe cases, the vanilla engine flips out if the number of characters in a string isn't the same, but only sometimes.. Good job figuring it out.

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
×