DOOM 3: BFG Edition

DOOM 3: BFG Edition

View Stats:
Broy Apr 30, 2020 @ 11:14pm
Weapon settings
How to change weapon settings in Doom 3 BFG? I have a no-steam version of Doom 3 BFG and I want to change shotgun configuration.:p2turret:
< >
Showing 1-15 of 17 comments
MaDShadoW Apr 30, 2020 @ 11:39pm 
no-steam as in GOG /Bethesda.net version (or Retail)?
Last edited by MaDShadoW; Apr 30, 2020 @ 11:39pm
Broy May 1, 2020 @ 1:08am 
Originally posted by MaDShadoW:
no-steam as in GOG /Bethesda.net version (or Retail)?
GOG version
MaDShadoW May 1, 2020 @ 2:44am 
Originally posted by drvmoz:
GOG version
Well, in any case.
A) You might need to use a source port like DOOM: BFA Edition

B) Open it with active console (+set com_allowConsole 1 as a lunch argument or use CDL.exe)

C) Open Doom 3 and activate the console (~ key)

D) Type
extractResourceFile _common.resources base/common

E) Go to your game's folder and inside the base folder

F) Open the common folder

G) Open the def folder

H) Search for weapon_*.def files and open with notepad the one you want

I) After you done with editing it, create a new folder on the game's directory and inside that folder create a def folder and copy paste the file here.

J) Load that folder to the game as a mod (+set fs_game <foldername> as a launch argument or load it as a mod with CDL.exe)
Broy May 1, 2020 @ 3:55am 
Originally posted by MaDShadoW:
Originally posted by drvmoz:
GOG version
Well, in any case.
A) You might need to use a source port like DOOM: BFA Edition

B) Open it with active console (+set com_allowConsole 1 as a lunch argument or use CDL.exe)

C) Open Doom 3 and activate the console (~ key)

D) Type
extractResourceFile _common.resources base/common

E) Go to your game's folder and inside the base folder

F) Open the common folder

G) Open the def folder

H) Search for weapon_*.def files and open with notepad the one you want

I) After you done with editing it, create a new folder on the game's directory and inside that folder create a def folder and copy paste the file here.

J) Load that folder to the game as a mod (+set fs_game <foldername> as a launch argument or load it as a mod with CDL.exe)
I extracted the BFA mod to the Doom 3 BFG folder and cannot start the game in CDL.exe. A black screen appears for a second and then the game turns off.
MaDShadoW May 1, 2020 @ 4:31am 
Originally posted by drvmoz:
I extracted the BFA mod to the Doom 3 BFG folder and cannot start the game in CDL.exe. A black screen appears for a second and then the game turns off.

Try the launch argument +set r_fullscreen 0
Broy May 1, 2020 @ 4:50am 
Originally posted by MaDShadoW:
Originally posted by drvmoz:
I extracted the BFA mod to the Doom 3 BFG folder and cannot start the game in CDL.exe. A black screen appears for a second and then the game turns off.

Try the launch argument +set r_fullscreen 0
It doesn't works too
MaDShadoW May 1, 2020 @ 5:42am 
Specs ?
Centurian42 May 4, 2020 @ 11:56pm 
So the files in the Doom 3 folder are quite different from Doom 3 BFG edition.

In Doom 3, if you want to make changes to the weapons, you would open pak000.pk4 in the "base" folder with any zip application (I'm using WinRAR). From there go to the "def" folder, and make your desired changes to the relevant .def file in notepad (they are all named pretty clearly).

Doom 3 BFG edition does not have the files organized into pk4 folders, and there are no .def files. In your main Doom 3 BFG edition folder open the "base" folder, and then open _common.resources in notepad. This contains all of the weapon stats as well as enemy stats. It is not a top level folder with organized subfolders as with the vanilla Doom 3 filestructure. Consequently there are over 80,000 lines of text in this file. As such you will want to make liberal use of Ctrl-F in order to find the values that you want to change, unless you really like scrolling.

Of course this is all assuming that the file structure for the Steam versions of these games is identical to all other versions. I see no reason why different versions would have different file structures, but then again I see no reason why Doom 3 would have a different file structure than Doom 3 BFG, and yet...
Last edited by Centurian42; May 5, 2020 @ 12:05am
Centurian42 May 4, 2020 @ 11:58pm 
The problem I haven't figured out yet though is that anytime I make a change to _common.resources my game is then unable to load. I can restore an unmodified backup of the file (always make backups of files before you modify them) and everything works fine. I am not changing any syntax, merely numbers. For example, under "weapon_shotgun" I will change the line ("spread" "22") to ("spread" "1") and saving that single change will be enough to prevent my game from launching.

I get the following error message whenever I try to load Doom 3 BFG edition after making changes to the _common.resources file:

QA Timing INIT: 000094ms
D3BFG 1.1400 win-x86 Nov 9 2012 10:38:21
3992 MHz AMD CPU with MMX & SSE & SSE2 & SSE3 & HTT
16320 MB System Memory
-1 MB Video Memory
Winsock Initialized
Found interface: {} Realtek PCIe GbE Family Controller - 0.0.0.0 NULL netmask - skipped
Found interface: {} TAP-NordVPN Windows Adapter V9 - 0.0.0.0 NULL netmask - skipped
Found interface: {} NordLynx Tunnel - 169.254.57.70/255.255.0.0
Found interface: {} Intel(R) Dual Band Wireless-AC 3168 - 0.0.0.0 NULL netmask - skipped
Found interface: {} Microsoft Wi-Fi Direct Virtual Adapter #3 - 0.0.0.0 NULL netmask - skipped
Found interface: {} Microsoft Wi-Fi Direct Virtual Adapter #4 - 0.0.0.0 NULL netmask - skipped
Found interface: {} Realtek 8814AU Wireless LAN 802.11ac USB NIC -
Sys_InitNetworking: adding loopback interface
doom using MMX & SSE for SIMD processing
enabled Flush-To-Zero mode
enabled Denormals-Are-Zero mode
------ Initializing File System ------
Unknown command 'vid_restart'
resourceFileMagic != RESOURCE_FILE_MAGIC
Shutting down OpenGL subsystem
...shutting down QGL


What I find interesting is the line "resouceFileMagic != RESOURCE_FILE_MAGIC". File Magic is the name of one of the applications I had tried while I was trying to figure out how to open the various file types stored in the Doom 3 BFG folders. I ended up not needing it when I found that the files I needed were the .resources files which could simply be opened in notepad, so I uninstalled it. I find it odd that this error message is referencing it and I wonder if some parameter got confused along the way and thinks it needs to be looking for File Magic.

If anyone knows what to do about this I am all ears.
Last edited by Centurian42; May 11, 2020 @ 10:14am
Centurian42 May 5, 2020 @ 8:05am 
File Magic is not a reference to a file editing tool I had previously used. It is a unique identifier for the .resources files. Somehow, whenever I make changes to the common.resources file and save it in notepad I am changing its magic identifier. I am working out how to get around this. I was told that using Doom BFA should help.
Broy May 6, 2020 @ 1:25am 
Originally posted by Centurian42:
So the files in the Doom 3 folder are quite different from Doom 3 BFG edition.

In Doom 3, if you want to make changes to the weapons, you would open pak000.pk4 in the "base" folder with any zip application (I'm using WinRAR). From there go to the "def" folder, and make your desired changes to the relevant .def file in notepad (they are all named pretty clearly).

Doom 3 BFG edition does not have the files organized into pk4 folders, and there are no .def files. In your main Doom 3 BFG edition folder open the "base" folder, and then open _common.resources in notepad. This contains all of the weapon stats as well as enemy stats. It is not a top level folder with organized subfolders as with the vanilla Doom 3 filestructure. Consequently there are over 80,000 lines of text in this file. As such you will want to make liberal use of Ctrl-F in order to find the values that you want to change, unless you really like scrolling.

Of course this is all assuming that the file structure for the Steam versions of these games is identical to all other versions. I see no reason why different versions would have different file structures, but then again I see no reason why Doom 3 would have a different file structure than Doom 3 BFG, and yet...
Thanks for help. What I need to write after using of Ctrl-F to go to 80 000 line?
Last edited by Broy; May 6, 2020 @ 1:31am
Centurian42 May 6, 2020 @ 11:50pm 
Well if you want to modify the shotgun then you would search "shotgun" or "weapon_shotgun" until you reach a section that included a bunch of stats under it. I limit myself strictly to adjusting numbers, since I don't want to introduce any errors into the code. I wanted to modify the spread angle so the line I was interested in was: "spread" "22". I chose to change it to: "spread" "1", as I am assuming the units are degrees and 1 degree is a very realistic spread angle for buckshot and I am nothing if not obsessed with realism (0.5 to 1.5 degrees seem to be typical for real world shotguns). Although it is far narrower than you will see in any video game so you may want to go for a wider angle. A spread of "5" is probably more reasonable and will make your shotgun equivalent to the shotgun zombies, who also have a spread angle of 5 by default (although you can change this is well).

You can also adjust damage and various other things. But the problem seems to be that notepad still can't read every character in the file quite right. And so notepad is opening it up with a bunch of gibberish replacement characters, which get saved in place of the correct characters whenever I save the file after making changes. But there should be a way to unpack common.resources using commands in the Doom BFA edition, which will allow you to make your changes and then repack it. I am having a bit of trouble bringing up the console in the BFA edition so that I can enter any commands, so I haven't actually been able to make any of the changes that I wanted to in Doom 3 BFG yet, but I am getting closer and I will keep you updated.
Centurian42 May 6, 2020 @ 11:52pm 
If you can bring the console up the commands are supposed to be as follows:

to extract a resource file: extractresourcefile <resource file> <extraction directory(relative)>

to pack your changes back into a new resource file: writeresourcefilewithdir <relative directory>
MaDShadoW May 7, 2020 @ 4:42am 
Originally posted by Centurian42:
But there should be a way to unpack common.resources using commands in the Doom BFA edition, which will allow you to make your changes and then repack it. I am having a bit of trouble bringing up the console in the BFA edition so that I can enter any commands
To use the console you must run it with the launch argument +set com_allowconsole 1 and in DOOM 3's menu press the ~ key
Centurian42 May 11, 2020 @ 10:19am 
Ok, I succeeded in unpacking the common.resources file and making my changes. I didn't manage to pack them back into a new .resources file, but that ended up not mattering for my purposes since I only wanted to mod the BFG edition so that I could play with my changes in the "Fully Possessed" VR mod. So all I had to do was drop my modified .def files into the "Fully Possessed" folder. Everything seems to be working as intended now.
< >
Showing 1-15 of 17 comments
Per page: 1530 50