Mod improves some of the movement options and therefore falls in the category of Helper Mod:
Safe exit:
getting only out of vehicles when not moving, but leaving and emergency exit (tap exit twice)
Sneaking:
Move with half of unmodified base speed (@default, can now be changed in ingame menu)
details
removes ground bonus (e.g. concrete) as well as armor bonuses
Crawling:
Sneaking still too fast? Try crawling and move with 10% base speed (@default, can now be changed in ingame menu)
Fun option: Moonwalking:
Do the moonwalk, yeah! (speed can now be chosen in ingame menu. Default 80% of base speed)
Usage and default keys:
Press LEFT SHIFT and a direction key to sneak
Press LEFT CONTROL and a direction key to crawl
If direction key isn't hit within 1/3 second sneak or crawl auto disables itself (key need be pressed again)
Sneak and crawl toggel each other, so when the crawl button is hit it switches over to crawl and disables sneak.
Press key again while sneaking or crawling to get back to normal speed
Press NUM MINUS to moonwalk. Resulting in moving 0.8 times the base speed backwards. Press again to disengage.
Hotkey might needed to be changed ... see issues
Save exit prevents you from accidentally getting out of a vehicle while it is moving. Tab enter /exit key twice within 1/3 second to exit anyway.
Hotkey might not be able to differ from normal enter /exit key... see issues
additional info
Speed settings can be edited in default_config.lua in mod zip file. Can still be done in mod zip file, though better use the ingame menu now.
Hotkeys can be set freely in factorio menu
Todo:Writing own config for easily setting speeds yourself; capture key down(when finally included in game api) instead of my awkward workaround; bugfixes, code improvements, making mod multiplayer solid
Known bugs and issues
Not tested in multiplayer. Pretty sure not working in multiplayer, but I hope someone can test this for me. (Sorry, don't have friends)
Script throws an error and "crashes" (ends the game) if used without wearing any armor. (only if walking and after first press of my modifiers keys) bug is in control.lua around line 174 but dunno how to fix it fixed thanks to Rseding91 (and Simcra) in #Factorio IRC
default hotkey for moonwalking (Pad -) not working because of game (probably bug in factorio)
dunno if my override exit key can be changed Independently of default exit key and is still overriding the function
Might and probably will clashed with other mods that influence movement speed, unless it is done there by armor-equipment-bonus
Will add to this list whatever you find.
Changelog
0.0.1 : initial release
0.0.2 : fixed that caused crashes
0.0.3 : some improvements (timeout now can be set in default_config.lua), also fixed a bug introduced in 0.0.2 (I think) that factually broke the mod
0.0.4 : fixed bugs introduced between 0.0.2 and 0.0.3 ... one bug out two bugs in or so it seems for me ... hopefully not this time, though
0.0.5 : on popular ... well one ... request: changed messages to float text
0.0.6 : added in a few status texts I edited out pre 0.0.1 release because they where too annoying, also fixed that sneak or crawl is not set anymore while moonwalking (and therefore not triggering a timeout message)
0.0.7 : Bugfix in float_text function order of instructions was wrong caused to call ap before ap was set to correct value leading to crash in some cases
minor improvement to float_text function: offsets now text when called more than one time per tick thus preventing now overlapping text
0.0.8 : Removed sneak / crawl messages spam while driving
0.1.0 : Added UI where individual settings can be made
License: CC BY 4.0. Software will be released as is with no warranties.
Re: [WIP][MOD 0.13.x+] Improve Move 0.0.4
Posted: Wed Jul 06, 2016 5:43 am
by simwir
I was wondering, how do you add keybinds to the factorio menu?
Re: [WIP][MOD 0.13.x+] Improve Move 0.0.4
Posted: Wed Jul 06, 2016 5:51 am
by Nexela
[bug] Sneaking doesn't stop if you double sneak. tested with a LOT of exoskeletons and mods so not sure if behavior is different without.
Start walking
Press and release shift
Press and release shift again
stop walking
Sneaking doesn't time out
If you stop moving and switch to crawl it will timeout as normal, you can also replace all instance of sneaking with crawling to get the same affect for crawling. It is also possible to lock yourself into sneaking or crawling by alternating methods.
Re: [WIP][MOD 0.13.x+] Improve Move 0.0.4
Posted: Wed Jul 06, 2016 5:58 am
by Nexela
And Feature request
Instead of the console alert and message replace with floating text
And Ignore most of the above it seems between me downloading it and playing with it there was an update
Re: [WIP][MOD 0.13.x+] Improve Move 0.0.4
Posted: Wed Jul 06, 2016 2:00 pm
by Bizz Keryear
Nexela wrote:And Ignore most of the above it seems between me downloading it and playing with it there was an update
yeah, I ballsed it up somehow ... after being done programming it I added comments and removed all comment section win which was pure experimental code ... then I tried to tidy up my leftover code ... while at it I broke it ... next day I wanted to play and realized that it was broken ... took me two attempts to fix that, though
Nexela wrote:And Feature request
Instead of the console alert and message replace with floating text
Like that one, too but It actually will take some time ... don't want to break my code yet again
edit: quote function of board trolled me
Re: [MOD 0.13.x+] Improve Move 0.0.8 [Helper Mod]
Posted: Fri Jul 08, 2016 5:55 am
by mojo2012
Can you please upload your mod to github? this would allow us others to better learn from your mod.
And btw, it would also easily allow you to go back to and older codebase in case you messed something up
Re: [MOD 0.13.x+] Improve Move 0.0.8 [Helper Mod]
Posted: Fri Jul 08, 2016 6:09 am
by Koub
Hi mate,
I have seen both your requests, but I think there is no "working mods for 0.13" section on this forum any more. There are sections for WIP, but the working mods are now meant to be published on the mod portal.
Re: [MOD 0.13.x+] Improve Move 0.0.8 [Helper Mod]
Posted: Fri Jul 08, 2016 7:59 pm
by Bizz Keryear
mojo2012 wrote:Can you please upload your mod to github? this would allow us others to better learn from your mod.
And btw, it would also easily allow you to go back to and older codebase in case you messed something up
Actually way to lazy to do that.
And don't worry about the messed up part .. I used NPP and every time I hit save it also produces a backup ... since I have starting to write this mod I produced 345 backups of control.lua, 26 of data.lua, 3 of default_config.lua (has only 4 lines!), and 19 of info.json.
And I really messed it up ... because some of those backups are now in latest release file ... though in a form and place where they do nothing but waste a few kb
Re: [MOD 0.13.x+] Improve Move 0.0.8 [Helper Mod]
Posted: Fri Jul 08, 2016 8:04 pm
by Bizz Keryear
Koub wrote:Hi mate,
I have seen both your requests, but I think there is no "working mods for 0.13" section on this forum any more. There are sections for WIP, but the working mods are now meant to be published on the mod portal.
Yeah, but the forum there ... I think no one takes it seriously ... So, mods there (mine is there published, too) discussion here
Re: [MOD 0.13.x+] Improve Move 0.1.0 [Helper Mod]
Posted: Wed Jul 13, 2016 12:45 pm
by Tone
Is it possible to add a config in game that enables you to "hold key" and "toggle"the sneak modifier? Just like how minecraft is. Hold shift to sneak.
Re: [MOD 0.13.x+] Improve Move 0.1.0 [Helper Mod]
Posted: Fri Jul 15, 2016 3:15 pm
by Bizz Keryear
Tone wrote:Is it possible to add a config in game that enables you to "hold key" and "toggle"the sneak modifier? Just like how minecraft is. Hold shift to sneak.
actually that is what I tired to do, unfortunately the game API doesn't support this. I am currently working on the multiplayer update and this update will include another hotkey that locks a speed (like moonwalk only forward) and also fixes the interface that (because I made a mistake) doesn't initialize if you already used an older version of this mod in the map. (Already fixed it but I thought the multiplayer compatibility would be way less work ... man was I wrong)