#1 2018-03-02 01:08:14

Caslon
Player
United States
Reputation: +8
Location: Deep inside the Earth
Registered: 2018-03-02
Posts: 20
Windows 7 Chrome 64.0

BF1942 config files editing - for a couple of annoyances

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)

Offline

    Positive reputation 0   Negative reputation 0

#2 2018-03-02 01:18:34

Sepp
Player
England
Reputation: +104
Registered: 2014-02-07
Posts: 319
Windows 7 Internet Explorer 11.0

Re: BF1942 config files editing - for a couple of annoyances

simon and deeko can tell you how to alter game code they are experts at these things.

Offline

    Positive reputation 1   Negative reputation 0

#3 2018-03-02 01:51:56

razor
Player
Estonia
Reputation: +285
Registered: 2014-12-14
Posts: 610
Android Chrome 63.0

Re: BF1942 config files editing - for a couple of annoyances

HAHAHAHA I love u

Offline

    Positive reputation 0   Negative reputation 0

#4 2018-03-02 01:52:01

tuia
BFSoldier
Portugal
Reputation: +1154
Location: Lisbon
Registered: 2012-02-20
Posts: 6,412
Website
Linux Firefox 57.0

Re: BF1942 config files editing - for a couple of annoyances

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.

Offline

    Positive reputation 0   Negative reputation 0

#5 2018-03-02 03:29:18

Caslon
Player
United States
Reputation: +8
Location: Deep inside the Earth
Registered: 2018-03-02
Posts: 20
Windows 7 Chrome 64.0

Re: BF1942 config files editing - for a couple of annoyances

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)

Offline

    Positive reputation 0   Negative reputation 0

#6 2018-03-02 15:24:43

simon
est'own'ya
Estonia
Reputation: +559
Registered: 2014-08-13
Posts: 1,008
Android Chrome 50.0

Re: BF1942 config files editing - for a couple of annoyances

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

Offline

    Positive reputation 0   Negative reputation 0

#7 2025-05-08 12:50:37

Winston Smith
Member
New Zealand
Reputation: +200
Registered: 2014-09-10
Posts: 874
Windows 10 Chrome 135.0

Re: BF1942 config files editing - for a couple of annoyances

tuia wrote:

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?

Offline

    Positive reputation 0   Negative reputation 0

#8 2025-05-08 15:14:32

Serebro
Reputation: +1167
Registered: 2014-03-28
Posts: 2,734
Unknown Firefox 138.0

Re: BF1942 config files editing - for a couple of annoyances

Why can't you? Doest it re-write itself back?

Offline

    Positive reputation 0   Negative reputation 0

#9 2025-05-12 15:10:29

Winston Smith
Member
New Zealand
Reputation: +200
Registered: 2014-09-10
Posts: 874
Windows 10 Chrome 136.0

Re: BF1942 config files editing - for a couple of annoyances

Serebro wrote:

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?

Offline

    Positive reputation 0   Negative reputation 0

#10 2025-05-12 17:20:18

Serebro
Reputation: +1167
Registered: 2014-03-28
Posts: 2,734
Windows 10 Firefox 138.0

Re: BF1942 config files editing - for a couple of annoyances

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)

Offline

    Positive reputation 1   Negative reputation 0

#11 2025-05-13 16:11:55

Winston Smith
Member
New Zealand
Reputation: +200
Registered: 2014-09-10
Posts: 874
Windows 10 Chrome 136.0

Re: BF1942 config files editing - for a couple of annoyances

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

Offline

    Positive reputation 1   Negative reputation 0

#12 2025-05-13 17:28:13

Serebro
Reputation: +1167
Registered: 2014-03-28
Posts: 2,734
Windows 10 Firefox 138.0

Re: BF1942 config files editing - for a couple of annoyances

You are welcome. Happy I helped.

Wait till you find out about alias commands in console big_smile

Offline

    Positive reputation 0   Negative reputation 0

#13 2025-05-14 08:46:10

Winston Smith
Member
New Zealand
Reputation: +200
Registered: 2014-09-10
Posts: 874
Unknown Chrome 135.0

Re: BF1942 config files editing - for a couple of annoyances

Actually, I had a few issues… but they were all caused by my lazy carelessness smile

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.

Offline

    Positive reputation 0   Negative reputation 0

#14 2025-05-14 12:39:19

Serebro
Reputation: +1167
Registered: 2014-03-28
Posts: 2,734
Android Chrome 136.0

Re: BF1942 config files editing - for a couple of annoyances

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.

Offline

    Positive reputation 1   Negative reputation 0

#15 2025-05-14 18:44:11

seVen
 
Reputation: +2686
Registered: 2015-12-20
Posts: 2,379
Windows 10 Chrome 136.0

Re: BF1942 config files editing - for a couple of annoyances

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.

Offline

    Positive reputation 1   Negative reputation 0

#16 Yesterday 04:23:59

Winston Smith
Member
New Zealand
Reputation: +200
Registered: 2014-09-10
Posts: 874
Unknown Chrome 135.0

Re: BF1942 config files editing - for a couple of annoyances

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 smile  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?

Offline

    Positive reputation 0   Negative reputation 0

#17 Yesterday 04:30:07

Winston Smith
Member
New Zealand
Reputation: +200
Registered: 2014-09-10
Posts: 874
Unknown Chrome 135.0

Re: BF1942 config files editing - for a couple of annoyances

seVen wrote:
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).

Offline

    Positive reputation 0   Negative reputation 0

#18 Yesterday 14:50:31

Black Mamba
Member
Canada
Reputation: +1517
Registered: 2012-12-01
Posts: 4,437
iOS Safari 18.4

Re: BF1942 config files editing - for a couple of annoyances

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 smile  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.

Offline

    Positive reputation 0   Negative reputation 0

#19 Yesterday 17:22:19

Winston Smith
Member
New Zealand
Reputation: +200
Registered: 2014-09-10
Posts: 874
Windows 10 Chrome 136.0

Re: BF1942 config files editing - for a couple of annoyances

Black Mamba wrote:
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 smile  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?

Offline

    Positive reputation 0   Negative reputation 0

#20 Today 00:48:26

Serebro
Reputation: +1167
Registered: 2014-03-28
Posts: 2,734
Windows 10 Firefox 138.0

Re: BF1942 config files editing - for a couple of annoyances

I can write you custom automation for console and other stuff for some extra $$ smile

Offline

    Positive reputation 0   Negative reputation 0

#21 Today 00:53:03

Black Mamba
Member
Canada
Reputation: +1517
Registered: 2012-12-01
Posts: 4,437
iOS Safari 18.4

Re: BF1942 config files editing - for a couple of annoyances

Winston Smith wrote:
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 smile  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)

Offline

    Positive reputation 0   Negative reputation 0

Board footer