Creating String Mods

See Extracting Strings before proceeding.

Make sure to backup the unmodified BLANG file.

Strings can be added to BLANG files, but you must reference them with decls files.

String Editing ( BlangJsonGeneratorUI )

screenshot.png

gameresources_patch1\EternalMod\strings

String Editing ( BlangJsonGenerator )

Any unused string can be deleted, so it can be compatible with other mods that affect other strings.

image-1631218573399.png

1) image-1631217604007.PNG
"identifier":
"name":

The "Replace with : " box is empty for screenshot 2.

2) image-1631217614687.PNG
"modified": 0

The "Replace with : " box is empty for screenshot 3.

3) image-1631217622425.PNG
^(?:[\t ]*(?:\r?\n|\r))+

image-1631218052834.png

gameresources_patch1\EternalMod\strings

The commas "," at the end of each string name and text are unnecessary and can be deleted.
However, they do not impact the syntax in any way.

Since JSON files can be edited with raw text editors,
you can execute scripts or regular expressions to edit strings more efficiently.

String Editing ( BlangParser )

The entire BLANG file will be modified, which means it will be incompatible with other string mods.

image-1631220049230.PNG

gameresources_patch1\strings

It is not recommended to delete existing string lines because DOOM Eternal will fail to recognize them.


Revision #15
Created 9 September 2021 11:56:07 by Velser
Updated 15 April 2022 11:38:02 by SamPT