You are not logged in.
New joiner here:
Is it possible to edit the game's config files without being rejected by the game because it's been altered? Two things I'd like to alter. First of all, I keep hitting the tilde key(~) by accident when hastily going for the 1 key (which is right next to it). There's no "Options" to reassign the tilde key. Second annoyance is I'd like not to have to hit the F8 key each map start to remove the radio speak command icons at the top of the HUD. Both these will require editing a config file somewhere in the BF1942 directory. If this is possible (without the game rejecting it), please be specific as to which file to edit and the location. P.S. I don't want to have to bring down the console and type in a command each and everytime to accomplish this.
Last edited by Caslon (2018-03-02 01:16:55)
simon and deeko can tell you how to alter game code they are experts at these things.
HAHAHAHA I love u
Hello Caslon,
You can change the tilde key to bring up the console to another key in Common.con file. It is located in <BF1942 DIR>\Mods\bf1942\Settings\Profiles\Custom\Controls. Open it with a text editor and edit this line:
ControlMap.addKeyToTriggerMapping c_GIToggleConsole IDFKeyboard IDKey_Grave c_CMNonRepetive
For example, change IDKey_Grave to IDKey_F9 to assign the F9 key to console.
To disable permanently the radio icons, I don't know how this can be done.
Sorry to report this did not work. I located that Controls folder However, there is no CONTROLS file by itself. That folder opens up to AIR, COMMON, INFRANTRY and LAND files. Each of these when opened has their own line of script as you described. I only edited the COMMON file in the Controls folder. I wonder if I have to edit the 3 others or what. Not really worth bothering with at this point.
As for the radio icons, I believe I was able to bring down the console long ago and type in a command to get rid of them at the start of each game or map (I forget). It's faster just to hit the F8 key at each map startup, but still a minor annoyance.
Last edited by Caslon (2018-03-02 03:55:33)
If you keep hitting keys you actually didn't mean to hit, then that's already a huge flaw and should be worked on.
I too press F8 at the start of each round and don't even know how to make it permanent. You'll get used to it just like pressing "ready" every time you load a map
Hello Caslon,
You can change the tilde key to bring up the console to another key in Common.con file. It is located in <BF1942 DIR>\Mods\bf1942\Settings\Profiles\Custom\Controls. Open it with a text editor and edit this line:
ControlMap.addKeyToTriggerMapping c_GIToggleConsole IDFKeyboard IDKey_Grave c_CMNonRepetive
For example, change IDKey_Grave to IDKey_F9 to assign the F9 key to console.
To disable permanently the radio icons, I don't know how this can be done.
I can't get this to work no matter what I do. Is there another way to reassign the console toggle key?
Why can't you? Doest it re-write itself back?
Why can't you? Doest it re-write itself back?
No, it still saves what I type - it just doesn't do anything.
For example, I change IDKey_Grave to IDKey_1 to assign the 1 key to console.
But nothing happens. I've tried several other keys to assign it to but still nothing.
I'm running Windows 10.
Is it possible the patches are messing things up?
When you do some changes in that config file, your game usually makes a copy of that config file and puts it in the folder:
C:\Users\USERNAME\Documents\Battlefield 1942\mods\BF1942\Settings\Profiles\Custom\Controls
You need to make same changes there too. After you do them, save the file and make it "read only" in the properties, so that the game won't be able to reset the values. If it will require a text editor in administrator mode, then you can use a notepad++, it's a freeware.
Let me know if you understood what I wrote and if you have succeeded.
Last edited by Serebro (2025-05-13 17:29:32)
Thanks Serebro, you're a bloody legend!
Actually I was a little confused because I didn't have a Battlefield 1942 folder in my Documents folder.
But after reading the following threads below (one started by me 10 years ago with the same problem!), and by taking on board what you had taught me about the game over-writing changes in the config file (which afterwards I could see was happening), then I could understand what was happening and, after spending an hour working it out, I could finally remap my "~" key to the "1" key and, for the first time since upgrading to Windows 10 many years ago, I can once again open the console window in game.
I was halfway there but your help got me home. Thank you.
https://team-simple.org/forum/viewtopic.php?id=2762
https://team-simple.org/forum/viewtopic … 688#p47688
https://team-simple.org/forum/viewtopic.php?pid=28401
https://team-simple.org/forum/viewtopic.php?id=1677
https://www.bfmods.com/viewtopic.php?f=8&t=911&p=6264
You are welcome. Happy I helped.
Wait till you find out about alias commands in console
Actually, I had a few issues… but they were all caused by my lazy carelessness
I successfully changed the console opening key from “~” to “1”. That worked fine and I could open the console without any issues by pressing “1”.
The reason I wanted to access the console was so that I could play without the HUD, so I typed “.drawHUD 0” (or something like that) and turned off the HUD. No problems so far.
But when I tried to turn the HUD back on by typing “.drawHUD 1”, the console closed as soon as I pressed “1” - which was now the open/close button!
But that was easy to fix, and to make it even easier, I updated just one .con file and copy and pasted it into each of the folders where it needed to be changed.
Unfortunately, I copied the wrong .con file and overwrote my personal profile settings.
I didn’t realise anything was wrong until I jumped into a plane and it started moving backwards instead of forwards. Then, while driving a jeep at high speed, I discovered the “exit vehicle” key had been changed - pushing it did nothing and I drove off a cliff.
I have a couple of saved copies of that file, so I should be able to fix everything tonight.
You can use a 1 from the numpad. The game distinguishes these inputs (1 from top of Q button and 1 from numpad) as different ones.
Or maybe remap the console to Alt/ mousewheel scroll) or smth.
Or maybe remap the console to Alt/ mousewheel scroll) or smth.
Using ALT has a side-effect.
I've had console remapped to F9, but it will open when activating Shadowplay (ALT-F9).
Not a big deal, and simply requires pressing F9 after Shadowplay begins.
You can use a 1 from the numpad. The game distinguishes these inputs (1 from top of Q button and 1 from numpad) as different ones.
Or maybe remap the console to Alt/ mousewheel scroll) or smth.
Lol. As well as not having a working ~ key, my keyboard also doesn't have a number pad!
It's OK now. I recovered my profile and everything is ready to go now. I just need to think of a good button to map it to that I don't use often.
Thanks again for your help - it was instrumental!
By the way, you mentioned alias commands. I never really thought too much about them and assumed alias commands were just for changing your nickname in game But ChatGPT is telling me they are macros that can be used to perform multi-button tasks with a single button (I'm guessing that's why some people can throw and detonate xpacks so quickly). Would it be possible to use an alias commands (or some other way) to toggle the hud on and off with a single key, or one for on and one for off?
Serebro wrote:Or maybe remap the console to Alt/ mousewheel scroll) or smth.
Using ALT has a side-effect.
I've had console remapped to F9, but it will open when activating Shadowplay (ALT-F9).
Not a big deal, and simply requires pressing F9 after Shadowplay begins.
That's good to know. First I tried "1" but that didn't work because I needed to type "1".
Then I tried "H" but that was a stupid idea since I wanted to disable the "H"ud.
I need to figure out what key is not used for anything but is still recognised by the system (I'm using a Japanese keyboard and some keys aren't recognised).
Serebro wrote:You can use a 1 from the numpad. The game distinguishes these inputs (1 from top of Q button and 1 from numpad) as different ones.
Or maybe remap the console to Alt/ mousewheel scroll) or smth.
Lol. As well as not having a working ~ key, my keyboard also doesn't have a number pad!
It's OK now. I recovered my profile and everything is ready to go now. I just need to think of a good button to map it to that I don't use often.
Thanks again for your help - it was instrumental!
By the way, you mentioned alias commands. I never really thought too much about them and assumed alias commands were just for changing your nickname in game
But ChatGPT is telling me they are macros that can be used to perform multi-button tasks with a single button (I'm guessing that's why some people can throw and detonate xpacks so quickly). Would it be possible to use an alias commands (or some other way) to toggle the hud on and off with a single key, or one for on and one for off?
There’s a thread on bfmods about that and bud made a working script for what you described. It’s part of a Flettner map I made.
Winston Smith wrote:Serebro wrote:You can use a 1 from the numpad. The game distinguishes these inputs (1 from top of Q button and 1 from numpad) as different ones.
Or maybe remap the console to Alt/ mousewheel scroll) or smth.
Lol. As well as not having a working ~ key, my keyboard also doesn't have a number pad!
It's OK now. I recovered my profile and everything is ready to go now. I just need to think of a good button to map it to that I don't use often.
Thanks again for your help - it was instrumental!
By the way, you mentioned alias commands. I never really thought too much about them and assumed alias commands were just for changing your nickname in game
But ChatGPT is telling me they are macros that can be used to perform multi-button tasks with a single button (I'm guessing that's why some people can throw and detonate xpacks so quickly). Would it be possible to use an alias commands (or some other way) to toggle the hud on and off with a single key, or one for on and one for off?
There’s a thread on bfmods about that and bud made a working script for what you described. It’s part of a Flettner map I made.
Awesome! Thank you! Is this it? https://www.bfmods.com/viewtopic.php?f= … key#p33234
I don't really understand that the script is part of a map. Do you install that map and then you can run the script?
I can write you custom automation for console and other stuff for some extra $$
Black Mamba wrote:Winston Smith wrote:Lol. As well as not having a working ~ key, my keyboard also doesn't have a number pad!
It's OK now. I recovered my profile and everything is ready to go now. I just need to think of a good button to map it to that I don't use often.
Thanks again for your help - it was instrumental!
By the way, you mentioned alias commands. I never really thought too much about them and assumed alias commands were just for changing your nickname in game
But ChatGPT is telling me they are macros that can be used to perform multi-button tasks with a single button (I'm guessing that's why some people can throw and detonate xpacks so quickly). Would it be possible to use an alias commands (or some other way) to toggle the hud on and off with a single key, or one for on and one for off?
There’s a thread on bfmods about that and bud made a working script for what you described. It’s part of a Flettner map I made.
Awesome! Thank you! Is this it? https://www.bfmods.com/viewtopic.php?f= … key#p33234
I don't really understand that the script is part of a map. Do you install that map and then you can run the script?
The Console Unlocker works in every bf1942 map. Be advised that this is an old script and was never updated. I might update it one day.
Last edited by Black Mamba (Today 03:57:49)