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

Cannot re-modify deh patches

Recommended Posts

So, I have WhackED 2. When I'm creating new .deh patches, they work just fine, but when I'm trying to edit them later, it says that

modPatchFiles.LoadPatch: Could not find string replacement.

I however managed to edit someone else's patch and it worked. Every my patch contained Strings, Things and Other edits and succesfully edited patch contained strings edit only, so that might be the point.

On related note, why can't I edit quit messages? Strings to edit doesn't contain them.

Share this post


Link to post

There are two DeHackEd standards: the first is the vanilla-compatible format that comes in two flavors depending on the age of the patch: the older binary format, and the newer text-based format; and the second is the Boom Extended format (.bex) which are supported only by source ports.

In vanilla DeHacked, the [STRINGS] and [CODEPTR] sections aren't supported, so this patch you are editing is .bex, not .deh (although most ports don't care about the file extension... just the header information at the top of the patch file). You can usually adjust the two numbers to correct version detection problems. I don't know how to convert one patch to a different format though.


This is what WhackEd2 outputs (in both vanilla and bex formats):

Patch File for DeHackEd v3.0
Doom version = 21
Patch format = 6
And this is what DeHackEd 3.1 outputs:
Patch File for DeHackEd v3.0
Doom version = 19
Patch format = 6
Sorry, but I don't actually have a full understanding of what numbers mean what. Both of these are patches meant to work with Doom II.

Also, it seems there are no strings corresponding to quit messages in vanilla DeHackEd or even with Boom Extensions. You can use the ZDoom string extensions, so any source ports that actually support changing the quit messages may do so. Just note that you have to manually add them to the [STRINGS] section. If you edit the file after the fact with DeHackEd or WhackEd, then those strings will be discarded and you have to add them again.

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  
×