Scrap Mechanic

Scrap Mechanic

BronzeSiren Mar 14, 2022 @ 10:44am
Changing Controls
Is there anyway to change the controls in the game? I am left handed and like/need to use the arrow keys for moving.
< >
Showing 1-9 of 9 comments
electrodoc68 Mar 14, 2022 @ 1:50pm 
LMAO.. This took ages to "Blog" and this "Over Engineered" explanation is one way of doing it. (Please get to the ending).. Important Update to all of this I just found out.

Yes.. I don't know how much you know about windows settings etc so I'll break it down.

1.. Make sure show hidden files and folders are shown in windows folder options.
2.. In control panel.. Folder Options.. i'd make sure "show file extensions" is checked too

Then Go to your %appdata% Folder using the windows explorer bar and typing that in it.
This should bring you to somewhere similar to..

C:\Users\UserName\AppData\Roaming\Axolot Games\Scrap Mechanic\User\UserName_LONGNUMBER

Here you will Find A keybinds.json file..

Then Right click it.. Open With.. Notepad.. Then click file, Save as.. To back up the original
(Any Problems Let me know)

Mine is set up with right ctrl as Jump, Numpad0 as Run and **Right Shift is pressed to crouch**

Here's my file listing I learnt from tinkering with it but you should be able to pick out the Backwards, Forwards and Strafe definitions which map to Cursor Key Codes AND W,A,S,D.

I should mention that when "Right Shift" is pressed to crouch I'm unable to build or use stuff
So watch out for the "Shift" key mapping if that bothers you.

I've still got to pick through that.
But played SM for Almost 1000 hours with it set as it is and I've got by BUT it can be a bit testing when you can't crouch and shoot in warehouses.

This is good for finding Keyboard Codes
https://www.cambiaresearch.com/articles/15/javascript-char-codes-key-codes

Hope it helps. TTFN



{
"KeyBinds" : {
"Attack" : [
{
"MB" : 1
},
{
"MB" : 0,
"Shift" : true
}
],
"Backward" : [
{
"K" : 40
},
{
"K" : 83
}
],
"C_Attack" : [
{
"MB" : 1
},
{
"MB" : 0,
"Shift" : true
}
],
"C_Backward" : [
{
"K" : 40
},
{
"K" : 83
}
],
"C_Create" : [
{
"MB" : 0
}
],
"C_Exit" : [
{
"K" : 27
}
],
"C_Forward" : [
{
"K" : 38
},
{
"K" : 87
}
],
"C_Item0" : [
{
"K" : 49
}
],
"C_Item1" : [
{
"K" : 50
}
],
"C_Item2" : [
{
"K" : 51
}
],
"C_Item3" : [
{
"K" : 52
}
],
"C_Item4" : [
{
"K" : 53
}
],
"C_Item5" : [
{
"K" : 54
}
],
"C_Item6" : [
{
"K" : 55
}
],
"C_Item7" : [
{
"K" : 56
}
],
"C_Item8" : [
{
"K" : 57
}
],
"C_Item9" : [
{
"K" : 48
}
],
"C_Jump" : [
{
"K" : 45
}
],
"C_Left" : [
{
"K" : 37
},
{
"K" : 65
}
],
"C_Right" : [
{
"K" : 39
},
{
"K" : 68
}
],
"C_Use" : [
{
"K" : 32
},
{
"Ctrl" : true,
"MB" : 0
},
{
"Alt" : true,
"MB" : 0
}
],
"C_ZoomIn" : [
{
"MS" : 1
},
{
"MS" : 1,
"Shift" : true
},
{
"Alt" : true,
"MS" : 1
}
],
"C_ZoomOut" : [
{
"MS" : -1
},
{
"MS" : -1,
"Shift" : true
},
{
"Alt" : true,
"MS" : -1
}
],
"Camera" : [
{
"K" : 86
},
{
"MB" : 2
}
],
"Cancel" : [
{
"K" : 27
}
],
"Chat" : [
{
"K" : 223
}
],
"Crawl" : [
{
"K" : 16
}
],
"Create" : [
{
"MB" : 0
}
],
"ForceBuild" : [
{
"K" : 70
}
],
"Forward" : [
{
"K" : 38
},
{
"K" : 87
}
],
"Handbook" : [
{
"K" : 72
}
],
"HideGui" : [
{
"Alt" : true,
"K" : 90
}
],
"Inventory" : [
{
"K" : 73
},
{
"Ctrl" : true,
"MB" : 0,
"Shift" : true
}
],
"Jump" : [
{
"K" : 45
}
],
"LiftDown" : [
{
"K" : 34
}
],
"LiftUp" : [
{
"K" : 33
}
],
"Logbook" : [
{
"K" : 76
}
],
"MenuItem0" : [
{
"K" : 49
}
],
"MenuItem1" : [
{
"K" : 50
}
],
"MenuItem2" : [
{
"K" : 51
}
],
"MenuItem3" : [
{
"K" : 52
}
],
"MenuItem4" : [
{
"K" : 53
}
],
"MenuItem5" : [
{
"K" : 54
}
],
"MenuItem6" : [
{
"K" : 55
}
],
"MenuItem7" : [
{
"K" : 56
}
],
"MenuItem8" : [
{
"K" : 57
}
],
"MenuItem9" : [
{
"K" : 48
}
],
"NextCreateRotation" : [
{
"K" : 81
},
{
"MS" : -1,
"Shift" : true
}
],
"NextHotbar" : [
{
"Alt" : true,
"K" : 81
}
],
"NextMenuItem" : [
{
"MS" : -1
}
],
"PreviousCreateRotation" : [
{
"K" : 81,
"Shift" : true
},
{
"MS" : 1,
"Shift" : true
}
],
"PreviousHotbar" : [
{
"Alt" : true,
"K" : 81,
"Shift" : true
}
],
"PreviousMenuItem" : [
{
"MS" : 1
}
],
"Reset" : [
{
"K" : 116
}
],
"SelectHotbar1" : [
{
"K" : 112
},
{
"Alt" : true,
"K" : 49
}
],
"SelectHotbar2" : [
{
"K" : 113
},
{
"Alt" : true,
"K" : 50
}
],
"SelectHotbar3" : [
{
"K" : 114
},
{
"Alt" : true,
"K" : 51
}
],
"Sprint" : [
{
"K" : 17
}
],
"StrafeLeft" : [
{
"K" : 37
},
{
"K" : 65
}
],
"StrafeRight" : [
{
"K" : 39
},
{
"K" : 68
}
],
"Stuck" : [
{
"K" : 75
}
],
"Tinker" : [
{
"K" : 85
}
],
"Use" : [
{
"K" : 32
},
{
"Ctrl" : true,
"MB" : 0
},
{
"Alt" : true,
"MB" : 0
}
],
"ZoomIn" : [
{
"K" : 88
},
{
"Alt" : true,
"MS" : 1
}
],
"ZoomOut" : [
{
"K" : 67
},
{
"Alt" : true,
"MS" : -1
}
]
},
"Version" : 6
}



Welcome to the end.. AND you could do all of that OR.. Double click each of the "Alternative Key" boxes in scrap mechanics options menu and press the key you want to use.. LOL
Last edited by electrodoc68; Mar 14, 2022 @ 5:07pm
Xenomorph Mar 14, 2022 @ 1:58pm 
become a right handed player sit on your left hand 4 a few hours ever day till your right is stronger hope this helps
BronzeSiren Mar 14, 2022 @ 5:50pm 
...and i was totally willing to do all that... thanks electrodoc68. i'm sure i would have double click in frustration at some point. lol.
Last edited by BronzeSiren; Mar 14, 2022 @ 6:00pm
lee May 12, 2023 @ 1:22pm 
Really that is your answer. May as well go back to when the NUNS slap your left hand until you stop using it.
lee May 12, 2023 @ 1:25pm 
I am left handed, always will be, nothing works for me as intended, in my PC I set the mouse to be left handed, the game ignores that and wants me to play right. Come it should be an easy fix, I can live with it showing the gold on the wrong side. let it
switch.
electrodoc68 May 13, 2023 @ 11:08am 
Find this folder..
C:\Users\*UserName*\AppData\Roaming\Axolot Games\Scrap Mechanic\User\*UserName_LONGNUMBER*

Names within the "*" are dependant on your windows name.

In there you should find a file called "Keybinds.json" Rename it to something like Keybinds.bak

I've uploaded my Keybinds.json settings to google drive just copy this to where you've just renamed yours.

This will set the WASD keys to the cursor keys, the run will be the right CTRL, If you have a number keypad on the right then the jump key should be the zero key, providing you have the number lock on.

If you can't get on with my keybinds.json then delete it and rename your original back from keybinds.bak to keybinds.json.

My Keybinds file on my Google drive[drive.google.com]
Last edited by electrodoc68; May 30, 2023 @ 10:21pm
electrodoc68 May 13, 2023 @ 11:53am 
If you're wanting to swap left and right mouse buttons just open your / my keybinds.json file with notepad then find anything saying "MB" :# and change the number # to its opposing number..

so "MB" : 0 becomes "MB" : 1 and "MB" : 1 becomes "MB" : 0

then click save as..
then make sure file type = *.all files rather than *.txt
when this is correct then you'll see the keybinds.json in the list.
Select that after changes are made and click ok.
Last edited by electrodoc68; May 13, 2023 @ 11:55am
Der Liebe Frankie Jul 20, 2023 @ 7:11pm 
Originally posted by electrodoc68:
If you're wanting to swap left and right mouse buttons just open your / my keybinds.json file with notepad then find anything saying "MB" :# and change the number # to its opposing number..

so "MB" : 0 becomes "MB" : 1 and "MB" : 1 becomes "MB" : 0

then click save as..
then make sure file type = *.all files rather than *.txt
when this is correct then you'll see the keybinds.json in the list.
Select that after changes are made and click ok.

This doesn't work at all. I just modified my keybinds.json and swapped "MB" : 0 with "MB" : 1 and everything still works like it did in the opening menu.

Why can't they just fix the game to use the Mouse settings from the operating system like every other game ever created? Sheesh.
electrodoc68 Jul 26, 2023 @ 11:44am 
That's a pain..
Just double check all capital letters or lower case letters and spaces are left as they should be..

I was recently changing my keybindings in Derail Valley and I was puzzled as to why they kept resetting to their default bindings only to find I'd been deleting a space character on any line i'd altered the binding.

At the moment Derail Valley just opens the Derail Valleys' keybinds.json file in notepad and you then need to edit that however you need to but this method doesn't error check and is why I found the addition / subtraction of characters the game wasn't expecting to encounter would result in the game rewriting the keybinds file.

Just highlight any unchanged line of text in the keybinds and see if there's a hidden space character there which you may of unknowingly deleted or may of added.?

Also double check that the edited keybinds.json file isn't being saved by notepad as its default extension which would write it as keybinds.json.txt and be completely ignored by the game.
(How to save as a .json file and not as a .txt instructions outlined in my original post)

There's a free remapping piece of software I've used for years called "JoyToKey"
It has a rare and unobtrusive registration reminder but they will send a free registration code if you contact them outlining any disability you may have regarding a need to remap keys.
Or pay next to nothing to register.

Hoping this helps Cheers. TTFN
< >
Showing 1-9 of 9 comments
Per page: 1530 50

Date Posted: Mar 14, 2022 @ 10:44am
Posts: 9