Planned Forum Maintenance - 24th May 2018

We will be doing maintenance on 24th May 2018. The forums will be read-only until the maintenance is finished.

[ Guide ] Custom Keybinds and Auto-Executables

-OCB-Wildcard-OCB-Wildcard Posts: 295
edited February 5 in General Chat

Now I've seen a few posts pop up every now and again about setting certain actions (eg. long-jump / super-jump, etc.) to custom keybinds, so for the sake of newcomers I decided to make this short and simple guide; since none exists on the forums that I can find.

First, and foremost, you should know the specific designations of each keybinding in relation to Unreal Engine 3's (ie. UE3) terminology. Without knowing the correct terms the commands to set these custom keybinds will not work. For the sake of reference here is a link, straight from the official documentation for UE3, that has a list of the available keybinds.

Unreal Engine 3 Keybinds
https://docs.unrealengine.com/udk/Three/KeyBinds.html

Basics of Custom Keybinds

Now with regards to actually creating the keybind for the action in question, in this case we will use long-jumps as an example and bind it to the Left Alt key, normally you would launch the game and open the console. After doing so you would input, into the console, the following command line:
SetBind LeftAlt "Duck | Jump" 1

Now whenever you press the Left-hand Alt button you will perform a long-jump on demand. Using this method, however, you are required to re-enter the command line any time there is a major update to the game that would reset the ".ini" files containing the in-game settings. So for the sake of convenience we will create an auto-executable (ie. AutoExec) file that will automatically run the command line every time the game is launched.

Creating an AutoExec File

Now to start off open up Notepad, or any other basic text-editing software available, and type the same command line in. After this save the document but do not confirm the save just yet. You want to first navigate through your main Hard-drive to the programs folder for Steam. After that follow through the corresponding path of "SteamApps>Common>Dirty Bomb>Binaries" and than go down to the file format. Upon clicking it should show a drop-down menu, click "All Files". Now input the name you will save it as, which is "autoexec.cfg", and confirm the save. You will want to make sure to enter the file extension otherwise this doesn't work. Last thing you need to do is go to your Steam Library and right-click on Dirty Bomb. This will open a drop-down menu once more, click on "Properties" and finally on "Set Launch Options". This will now open up an input box into which you will enter the following command line:
-exec=autoconfig.cfg

Now when you launch your game whatever commands are currently inside that file will automatically be run which means you will never lose your custom keybind.

Special Thanks to:

Sgt. Peperoni for his Steam Guide on the subject. It is part of what prompted me to make a similar guide here where it is more immediately visible to new players.

You can find his guide here:
http://steamcommunity.com/app/333930/guides/

If any errors are present in this guide or you have a question feel free to post a comment and I'll get back to you as soon as I can.

Change Log:

February 4, 2018

  • Updated the layout slightly
  • Improved emphasis to key points of the guide
  • Added the missing step for setting up the "AutoExec" file.
Post edited by -OCB-Wildcard on

Comments

  • @Eox @Kirays by the way if we could sticky this that'd be great.

  • EoxEox FrancePosts: 3,206Moderator
    edited January 30

    @-OCB-Wildcard said:
    @Eox @Kirays by the way if we could sticky this that'd be great.

    Do you really think this thread is worth being pinned ?

    Trick question : it is. :p

    I might move it somewhere else if needed though.

  • @Eox said:

    @-OCB-Wildcard said:
    @Eox @Kirays by the way if we could sticky this that'd be great.

    Do you really think this thread is worth being pinned ?

    Trick question : it is. :p

    I might move it somewhere else if needed though.

    No problem if it has to be moved it gets moved purpose was more to make it so one even exists on this forum xD (cause I couldn't find one anywhere outside steam guides and how many new players actually check those >_>)

  • XenithosXenithos Posts: 1,758Special Editor
    edited February 4

    I love you Wildcard. I essentially did this a long time ago and helped a few people through things like this because they play on laptops and long jumping on those keyboards is pretty close to impossible.

    Love this thread, love that it's stickied, love everything about it's purpose and simpleness.
    I also love that really important link. That's one of the hardest links to EVER find through google because of UE4.

    I don't care how much you've played or how good your aim is - If you haven't touched the game at least twice in three months then I see your "opinion" as hot moot.

  • -OCB-Wildcard-OCB-Wildcard Posts: 295
    edited February 4

    @Xenithos said:
    I love you Wildcard. I essentially did this a long time ago and helped a few people through things like this because they play on laptops and long jumping on those keyboards is pretty close to impossible.

    Love this thread, love that it's stickied, love everything about it's purpose and simpleness.
    I also love that really important link. That's one of the hardest links to EVER find through google because of UE4.

    Yeah it is harder to find it since the new engine came out. I had to make a somewhat educated guess based on the url for the UE4 version and what I found from the url on the linked steam guide (the link used to work but Epic Games have since changed the url for w/e reason to what is linked here). Also I kinda felt it was about time a guide like this was made here seeing as we're getting more new players, and hopefully will get more down the road, so the question was bound to pop up (I kinda figured, to be honest, that the forum mods were probably getting tired of having to close repeat posts from the same people about this topic as well. This will keep it to one place at least).

    It did feel right though, to finally try and give something back to the community that's given me so many enjoyable moments on DB. So, with that said, I'm glad you found it satisfactory and I hope it proves useful to others as well.

    Post edited by -OCB-Wildcard on
  • Stokes1Stokes1 Posts: 29

    @-OCB-Wildcard said:
    Now I've seen a few posts pop up every now and again about setting certain actions (eg. long-jump / super-jump, etc.) to custom keybinds, so for the sake of newcomers I decided to make this short and simple guide; since none exists on the forums that I can find.

    First, and foremost, you should know the specific designations of each keybinding in relation to Unreal Engine 3's (ie. UE3) terminology. Without knowing the correct terms the commands to set these custom keybinds will not work. For the sake of reference here is a link, straight from the official documentation for UE3, that has a list of the available keybinds.

    Unreal Engine 3 Keybinds
    https://docs.unrealengine.com/udk/Three/KeyBinds.html

    Basics of Custom Keybinds

    Now with regards to actually creating the keybind for the action in question, in this case we will use long-jumps as an example and bind it to the Left Alt key, normally you would launch the game and open the console. After doing so you would input, into the console, the following command line:
    SetBind LeftAlt "Duck | Jump" 1

    Now whenever you press the Left-hand Alt button you will perform a long-jump on demand. Using this method, however, you are required to re-enter the command line any time there is a major update to the game that would reset the ".ini" files containing the in-game settings. So for the sake of convenience we will create an auto-executable (ie. AutoExec) file that will automatically run the command line every time the game is launched.

    Creating an AutoExec File

    Now to start off open up Notepad, or any other basic text-editing software available, and type the same command line in. After this save the document but do not confirm the save just yet. You want to first navigate through your main Hard-drive to the programs folder for Steam. After that follow through the corresponding path of "SteamApps>Common>Dirty Bomb>Binaries" and than go down to the file format. Upon clicking it should show a drop-down menu, click "All Files". Now input the name you will save it as, which is "autoexec.cfg", and confirm the save. You will want to make sure to enter the file extension otherwise this doesn't work. Last thing you need to do is go to your Steam Library and right-click on Dirty Bomb. This will open a drop-down menu once more, click on "Properties" and finally on "Set Launch Options". This will now open up an input box into which you will enter the following command line:
    -exec=autoconfig.cfg

    Now when you launch your game whatever commands are currently inside that file will automatically be run which means you will never lose your custom keybind.

    Special Thanks to:

    Sgt. Peperoni for his Steam Guide on the subject. It is part of what prompted me to make a similar guide here where it is more immediately visible to new players.

    You can find his guide here:
    http://steamcommunity.com/app/333930/guides/

    If any errors are present in this guide or you have a question feel free to post a comment and I'll get back to you as soon as I can.

    Change Log:

    February 4, 2018

    • Updated the layout slightly
    • Improved emphasis to key points of the guide
    • Added the missing step for setting up the "AutoExec" file.

    How come this isn't a form of cheating?

  • -OCB-Wildcard-OCB-Wildcard Posts: 295
    edited March 4

    @Stokes1 said:

    @-OCB-Wildcard said:
    Now I've seen a few posts pop up every now and again about setting certain actions (eg. long-jump / super-jump, etc.) to custom keybinds, so for the sake of newcomers I decided to make this short and simple guide; since none exists on the forums that I can find.

    First, and foremost, you should know the specific designations of each keybinding in relation to Unreal Engine 3's (ie. UE3) terminology. Without knowing the correct terms the commands to set these custom keybinds will not work. For the sake of reference here is a link, straight from the official documentation for UE3, that has a list of the available keybinds.

    Unreal Engine 3 Keybinds
    https://docs.unrealengine.com/udk/Three/KeyBinds.html

    Basics of Custom Keybinds

    Now with regards to actually creating the keybind for the action in question, in this case we will use long-jumps as an example and bind it to the Left Alt key, normally you would launch the game and open the console. After doing so you would input, into the console, the following command line:
    SetBind LeftAlt "Duck | Jump" 1

    Now whenever you press the Left-hand Alt button you will perform a long-jump on demand. Using this method, however, you are required to re-enter the command line any time there is a major update to the game that would reset the ".ini" files containing the in-game settings. So for the sake of convenience we will create an auto-executable (ie. AutoExec) file that will automatically run the command line every time the game is launched.

    Creating an AutoExec File

    Now to start off open up Notepad, or any other basic text-editing software available, and type the same command line in. After this save the document but do not confirm the save just yet. You want to first navigate through your main Hard-drive to the programs folder for Steam. After that follow through the corresponding path of "SteamApps>Common>Dirty Bomb>Binaries" and than go down to the file format. Upon clicking it should show a drop-down menu, click "All Files". Now input the name you will save it as, which is "autoexec.cfg", and confirm the save. You will want to make sure to enter the file extension otherwise this doesn't work. Last thing you need to do is go to your Steam Library and right-click on Dirty Bomb. This will open a drop-down menu once more, click on "Properties" and finally on "Set Launch Options". This will now open up an input box into which you will enter the following command line:
    -exec=autoconfig.cfg

    Now when you launch your game whatever commands are currently inside that file will automatically be run which means you will never lose your custom keybind.

    Special Thanks to:

    Sgt. Peperoni for his Steam Guide on the subject. It is part of what prompted me to make a similar guide here where it is more immediately visible to new players.

    You can find his guide here:
    http://steamcommunity.com/app/333930/guides/

    If any errors are present in this guide or you have a question feel free to post a comment and I'll get back to you as soon as I can.

    Change Log:

    February 4, 2018

    • Updated the layout slightly
    • Improved emphasis to key points of the guide
    • Added the missing step for setting up the "AutoExec" file.

    How come this isn't a form of cheating?

    Almost all PC shooters have something akin to this that can be done via the use of auto-executable files. It's a part of gaming that you'll simply have to get used to, as it isn't going anywhere; I'm not sure how you could consider it cheating as it doesn't give any significant advantage (it simply prevents issues on the server-side and engine from ruining consistency). Also beyond long-jumps you can create binds for the V-Chat options, but there really isn't much use for them outside those few things in DB; since custom hit-sounds aren't something you can do, as far as I know (and that's not an advantage it's just customization).

  • GatoCommodoreGatoCommodore Posts: 4,388
    edited March 5

    how do you bind V57 to everytime you kill someone?

    Hammock - Oh the Bliss (Reinterpretation) | Far Cry 5
                                                                    
  • -OCB-Wildcard-OCB-Wildcard Posts: 295

    @GatoCommodore said:
    how do you bind V57 to everytime you kill someone?

    Pretty sure you'd have to create a bind for it and set up a macro to do something like that. For a point of reference if you set the bind to say, for instance, ThumbMouseButton via this command line:
    SetBind ThumbMouseButton "V | 5 | 7" 1

    You could technically press it at every kill easily. To do anything beyond that you'd need to create the bind, then use a scripted macro to simulate the pressing of the key binding every time the associated value increases (it's technically possible to do this but the anti-cheat software would likely flag you for it).

  • GatoCommodoreGatoCommodore Posts: 4,388

    @-OCB-Wildcard said:

    @GatoCommodore said:
    how do you bind V57 to everytime you kill someone?

    Pretty sure you'd have to create a bind for it and set up a macro to do something like that. For a point of reference if you set the bind to say, for instance, ThumbMouseButton via this command line:
    SetBind ThumbMouseButton "V | 5 | 7" 1

    You could technically press it at every kill easily. To do anything beyond that you'd need to create the bind, then use a scripted macro to simulate the pressing of the key binding every time the associated value increases (it's technically possible to do this but the anti-cheat software would likely flag you for it).

    ayy im gonna try it right now thx for the help my dude

    Hammock - Oh the Bliss (Reinterpretation) | Far Cry 5
                                                                    
  • -OCB-Wildcard-OCB-Wildcard Posts: 295
    edited March 5

    @GatoCommodore said:

    @-OCB-Wildcard said:

    @GatoCommodore said:
    how do you bind V57 to everytime you kill someone?

    Pretty sure you'd have to create a bind for it and set up a macro to do something like that. For a point of reference if you set the bind to say, for instance, ThumbMouseButton via this command line:
    SetBind ThumbMouseButton "V | 5 | 7" 1

    You could technically press it at every kill easily. To do anything beyond that you'd need to create the bind, then use a scripted macro to simulate the pressing of the key binding every time the associated value increases (it's technically possible to do this but the anti-cheat software would likely flag you for it).

    ayy im gonna try it right now thx for the help my dude

    No problem. The only real complication with setting it to happen every time you kill someone automatically is that for you to even do it with a scripted macro, you'd have to know the exact designation of the variable in question used by SD in the source code. To do that you'd have to do something inadvisable, and technically illegal, namely decompiling the games engine; this would grant you access to the source code, enabling you to locate the name of the variable in question.

    Besides even if, and this is a big "if", I could do that and knew the variable I wouldn't be saying anything about it to anyone; not with how many legal implications that come with the process of acquiring such information without working for Splash Damage.

  • Stokes1Stokes1 Posts: 29

    @-OCB-Wildcard said:

    @Stokes1 said:

    @-OCB-Wildcard said:
    Now I've seen a few posts pop up every now and again about setting certain actions (eg. long-jump / super-jump, etc.) to custom keybinds, so for the sake of newcomers I decided to make this short and simple guide; since none exists on the forums that I can find.

    First, and foremost, you should know the specific designations of each keybinding in relation to Unreal Engine 3's (ie. UE3) terminology. Without knowing the correct terms the commands to set these custom keybinds will not work. For the sake of reference here is a link, straight from the official documentation for UE3, that has a list of the available keybinds.

    Unreal Engine 3 Keybinds
    https://docs.unrealengine.com/udk/Three/KeyBinds.html

    Basics of Custom Keybinds

    Now with regards to actually creating the keybind for the action in question, in this case we will use long-jumps as an example and bind it to the Left Alt key, normally you would launch the game and open the console. After doing so you would input, into the console, the following command line:
    SetBind LeftAlt "Duck | Jump" 1

    Now whenever you press the Left-hand Alt button you will perform a long-jump on demand. Using this method, however, you are required to re-enter the command line any time there is a major update to the game that would reset the ".ini" files containing the in-game settings. So for the sake of convenience we will create an auto-executable (ie. AutoExec) file that will automatically run the command line every time the game is launched.

    Creating an AutoExec File

    Now to start off open up Notepad, or any other basic text-editing software available, and type the same command line in. After this save the document but do not confirm the save just yet. You want to first navigate through your main Hard-drive to the programs folder for Steam. After that follow through the corresponding path of "SteamApps>Common>Dirty Bomb>Binaries" and than go down to the file format. Upon clicking it should show a drop-down menu, click "All Files". Now input the name you will save it as, which is "autoexec.cfg", and confirm the save. You will want to make sure to enter the file extension otherwise this doesn't work. Last thing you need to do is go to your Steam Library and right-click on Dirty Bomb. This will open a drop-down menu once more, click on "Properties" and finally on "Set Launch Options". This will now open up an input box into which you will enter the following command line:
    -exec=autoconfig.cfg

    Now when you launch your game whatever commands are currently inside that file will automatically be run which means you will never lose your custom keybind.

    Special Thanks to:

    Sgt. Peperoni for his Steam Guide on the subject. It is part of what prompted me to make a similar guide here where it is more immediately visible to new players.

    You can find his guide here:
    http://steamcommunity.com/app/333930/guides/

    If any errors are present in this guide or you have a question feel free to post a comment and I'll get back to you as soon as I can.

    Change Log:

    February 4, 2018

    • Updated the layout slightly
    • Improved emphasis to key points of the guide
    • Added the missing step for setting up the "AutoExec" file.

    How come this isn't a form of cheating?

    Almost all PC shooters have something akin to this that can be done via the use of auto-executable files. It's a part of gaming that you'll simply have to get used to, as it isn't going anywhere; I'm not sure how you could consider it cheating as it doesn't give any significant advantage (it simply prevents issues on the server-side and engine from ruining consistency). Also beyond long-jumps you can create binds for the V-Chat options, but there really isn't much use for them outside those few things in DB; since custom hit-sounds aren't something you can do, as far as I know (and that's not an advantage it's just customization).

    Thanks for clearing that up for me :)

  • -OCB-Wildcard-OCB-Wildcard Posts: 295

    @Eox @Kirays
    Would it be possible to unlock the original post for me so I can add in a FAQ section for the guide? I can no longer edit it as it has passed the week-long timer.

  • KiraysKirays Posts: 1,512Moderator

    Nope, I can't. I don't know why it does that but if you want you can send me what you want to have included and I'll edit it myself.

  • KehoruKehoru Posts: 7

    Hey there,
    Thank you for this thread. I'd just like to warn you about something;

    You're asking to name the new file "autoexec.cfg" while the launch option is set to "autoconfig.cfg". Nothing urgent or anything, but I'd rather say it just in case.

  • -OCB-Wildcard-OCB-Wildcard Posts: 295

    @Kehoru said:
    Hey there,
    Thank you for this thread. I'd just like to warn you about something;

    You're asking to name the new file "autoexec.cfg" while the launch option is set to "autoconfig.cfg". Nothing urgent or anything, but I'd rather say it just in case.

    Launch Option works with anything actually (as far as I can recall), it just requires a .cfg file with the proper command lines. I merely use autoexec.cfg as the file name since it's the most commonly referred to term for this form of file across various games and related guides; which is something that makes it easier to grasp the purpose of, without the need of excessive explanation for those without aforementioned experience. You could technically call it anything you wanted and it would work, as I use this exact file name listed in this guide in my Launch Options, and it would work just fine; I certainly haven't hit any issues regarding this to date.

    Thank you for considering the possibility and bringing it up though, I appreciate the thought. If it does become an issue I'll resolve it and have the post edited to fit the current information, but right now there doesn't seem to be an issue with it.

  • DeathiDeathi Posts: 496

    Yeah, I heard of it, many other people seem to appreciate it, too. So Kehoru, you are surely able to call your *.cfg whatever you like. Call it "always-on-point.cfg" or "no-recoil.cfg" or "always 10 pixels below the name" or "thank-the-devs.cfg". No problem, call it, whatever you like, as long as the devs don't get, why there is no scripted-command-execution availible in the cs-cfg's after launching/joining a map.

Sign In or Register to comment.