[MOD 0.13] Progressive running
Re: [MOD 0.13] Progressive running
It's up .
Re: [MOD 0.13] Progressive running
Patch to support 0.17.35:
Edit: link to the Wikipedia page for the patch utility.
Code: Select all
diff -urNb ProgressiveRunning_1.0.17/changelog.txt ProgressiveRunning_1.0.18/changelog.txt
--- ProgressiveRunning_1.0.17/changelog.txt 2019-03-14 03:04:09.000000000 +1100
+++ ProgressiveRunning_1.0.18/changelog.txt 2019-05-04 11:07:23.691024400 +1000
@@ -1,4 +1,8 @@
---------------------------------------------------------------------------------------------------
+Version: 1.0.18
+ Changes:
+ - Support 0.17.35
+---------------------------------------------------------------------------------------------------
Version: 1.0.17
Changes:
- Factorio 0.17 by OhChirpy.
@@ -19,4 +23,3 @@
Changes:
- Factorio 0.15. For older versions, see HISTO.txt.
---------------------------------------------------------------------------------------------------
-
diff -urNb ProgressiveRunning_1.0.17/control.lua ProgressiveRunning_1.0.18/control.lua
--- ProgressiveRunning_1.0.17/control.lua 2019-03-14 02:51:39.000000000 +1100
+++ ProgressiveRunning_1.0.18/control.lua 2019-05-04 11:09:29.425824600 +1000
@@ -110,7 +110,7 @@
--------------------------------------------------------------------------------------
local function get_speed_modifier(player)
- local inv_armor = player.get_inventory(defines.inventory.player_armor)
+ local inv_armor = player.get_inventory(defines.inventory.character_armor)
local modif = 0
if inv_armor then
diff -urNb ProgressiveRunning_1.0.17/info.json ProgressiveRunning_1.0.18/info.json
--- ProgressiveRunning_1.0.17/info.json 2019-03-13 09:55:37.000000000 +1100
+++ ProgressiveRunning_1.0.18/info.json 2019-05-04 11:07:05.861563400 +1000
@@ -1,10 +1,10 @@
{
"name": "ProgressiveRunning",
- "version": "1.0.17",
+ "version": "1.0.18",
"title": "Progressive Running (smooth acceleration)",
"author": "BinbinHfr",
"description": "Accelerate progressively when starting to run: useful when your max speed is high due to exoskeletons and concrete, and you want to precisely position your character.",
"homepage": "https://forums.factorio.com/viewtopic.php?f=92&t=27553",
"factorio_version": "0.17",
- "dependencies": ["base"]
+ "dependencies": ["base >= 0.17.35"]
}
Last edited by mrudat on Mon May 20, 2019 11:06 pm, edited 1 time in total.
Re: [MOD 0.13] Progressive running
Thanks for the patch! Was just going to poke around to fix it myself but you saved me the time
Re: [MOD 0.13] Progressive running
How do I apply this?mrudat wrote: ↑Sat May 04, 2019 1:24 am Patch to support 0.17.35:Code: Select all
diff -urNb ProgressiveRunning_1.0.17/changelog.txt ProgressiveRunning_1.0.18/changelog.txt --- ProgressiveRunning_1.0.17/changelog.txt 2019-03-14 03:04:09.000000000 +1100 +++ ProgressiveRunning_1.0.18/changelog.txt 2019-05-04 11:07:23.691024400 +1000 @@ -1,4 +1,8 @@ --------------------------------------------------------------------------------------------------- +Version: 1.0.18 + Changes: + - Support 0.17.35 +--------------------------------------------------------------------------------------------------- Version: 1.0.17 Changes: - Factorio 0.17 by OhChirpy. @@ -19,4 +23,3 @@ Changes: - Factorio 0.15. For older versions, see HISTO.txt. --------------------------------------------------------------------------------------------------- - diff -urNb ProgressiveRunning_1.0.17/control.lua ProgressiveRunning_1.0.18/control.lua --- ProgressiveRunning_1.0.17/control.lua 2019-03-14 02:51:39.000000000 +1100 +++ ProgressiveRunning_1.0.18/control.lua 2019-05-04 11:09:29.425824600 +1000 @@ -110,7 +110,7 @@ -------------------------------------------------------------------------------------- local function get_speed_modifier(player) - local inv_armor = player.get_inventory(defines.inventory.player_armor) + local inv_armor = player.get_inventory(defines.inventory.character_armor) local modif = 0 if inv_armor then diff -urNb ProgressiveRunning_1.0.17/info.json ProgressiveRunning_1.0.18/info.json --- ProgressiveRunning_1.0.17/info.json 2019-03-13 09:55:37.000000000 +1100 +++ ProgressiveRunning_1.0.18/info.json 2019-05-04 11:07:05.861563400 +1000 @@ -1,10 +1,10 @@ { "name": "ProgressiveRunning", - "version": "1.0.17", + "version": "1.0.18", "title": "Progressive Running (smooth acceleration)", "author": "BinbinHfr", "description": "Accelerate progressively when starting to run: useful when your max speed is high due to exoskeletons and concrete, and you want to precisely position your character.", "homepage": "https://forums.factorio.com/viewtopic.php?f=92&t=27553", "factorio_version": "0.17", - "dependencies": ["base"] + "dependencies": ["base >= 0.17.35"] }
This is the error I'm getting:
Code: Select all
The mod Progressive Running (smooth acceleration) caused a non-recoverable error.
Please report this error to the mod author.
Error while running event ProgressiveRunning::on_tick (ID 0)
real number expected got nil.
stack traceback:
__ProgressiveRunning__/control.lua:113: in function 'get_speed_modifier'
__ProgressiveRunning__/control.lua:202: in function <__ProgressiveRunning__/control.lua:158>
stack traceback:
[C]: in function 'get_inventory'
__ProgressiveRunning__/control.lua:113: in function 'get_speed_modifier'
__ProgressiveRunning__/control.lua:202: in function <__ProgressiveRunning__/control.lua:158>
Re: [MOD 0.13] Progressive running
This mod's been broken for about a month now
Re: [MOD 0.13] Progressive running
This is how I updated this on windows, hope it helps until it gets a proper update.
First open the mod zip file and extract the control.lua and info.json files somewhere.
Open the control.lua file and change "local inv_armor = player.get_inventory(defines.inventory.player_armor)" to "local inv_armor = player.get_inventory(defines.inventory.character_armor)" it will be under the line "local function get_speed_modifier(player)". Then save the file and close it.
Then in the info.json file change the version number from "1.0.17" to "1.0.18" and then change the dependencies line from "base" to "base >= 0.17.35" then save the file and close it.
Put the files back into the zipfile and overwrite if asked then close the zipfile, once finished change the zip filename from "ProgressiveRunning_1.0.17" to "ProgressiveRunning_1.0.18"
Afterward you should be able to start the game and enable the mod if it wasn't before.
First open the mod zip file and extract the control.lua and info.json files somewhere.
Open the control.lua file and change "local inv_armor = player.get_inventory(defines.inventory.player_armor)" to "local inv_armor = player.get_inventory(defines.inventory.character_armor)" it will be under the line "local function get_speed_modifier(player)". Then save the file and close it.
Then in the info.json file change the version number from "1.0.17" to "1.0.18" and then change the dependencies line from "base" to "base >= 0.17.35" then save the file and close it.
Put the files back into the zipfile and overwrite if asked then close the zipfile, once finished change the zip filename from "ProgressiveRunning_1.0.17" to "ProgressiveRunning_1.0.18"
Afterward you should be able to start the game and enable the mod if it wasn't before.
Re: [MOD 0.13] Progressive running
All work and no play makes Jack a dull boy. Thanks for the patch (and your patience).
-
- Filter Inserter
- Posts: 587
- Joined: Sun Jun 09, 2019 10:40 pm
- Contact:
Re: [MOD 0.13] Progressive running
You can also unzip the mod, remove the zip file, and Factorio will load from the mod folder automatically. I don't zip back up things I modify locally, and it works well. Makes it much easier.bobclarke wrote: ↑Mon Jun 03, 2019 2:47 am First open the mod zip file and extract the control.lua and info.json files somewhere.
[...]
Put the files back into the zipfile and overwrite if asked then close the zipfile, once finished change the zip filename from "ProgressiveRunning_1.0.17" to "ProgressiveRunning_1.0.18"
Re: [MOD 0.13] Progressive running
Failed to load mods: Error while loading custom-input prototype "progrun_hotkey" (custom-input): Unknown consuming type: script-only
Modifications: Progressive Running (smooth acceleration)
Mods to be disabled:
- ProgressiveRunning (1.18.0)
Modifications: Progressive Running (smooth acceleration)
Mods to be disabled:
- ProgressiveRunning (1.18.0)
- Attachments
-
- Screenshot_27.png (11.52 KiB) Viewed 3460 times
Re: [MOD 0.13] Progressive running
A good mod deserves a good changelog. Here's a tutorial (WIP) about Factorio's way too strict changelog syntax!
Re: [MOD 0.13] Progressive running
Really miss this mod.
I just want to be able to ramp up speed when moving.
Having a bunch of exoskeletons in your suit, means your zipping around when trying to edge a little closer to a belt, and instead zip across 4 lanes of belts.
But this mod was great, no need to remove exoskeletons, no need to hold a special key to activate it, or change it configuration.
Just move and for the first 1/2(?) second your moving slowly, then quickly ramp up to full speed.
Anyone have an idea how to fix this or remake it to this simple mod, without all the other bells and whistles that get added to mods to "expand and improve them"?
I just want to be able to ramp up speed when moving.
Having a bunch of exoskeletons in your suit, means your zipping around when trying to edge a little closer to a belt, and instead zip across 4 lanes of belts.
But this mod was great, no need to remove exoskeletons, no need to hold a special key to activate it, or change it configuration.
Just move and for the first 1/2(?) second your moving slowly, then quickly ramp up to full speed.
Anyone have an idea how to fix this or remake it to this simple mod, without all the other bells and whistles that get added to mods to "expand and improve them"?
Re: [MOD 0.13] Progressive running
Given that the code of this mod was very simple - at least conceptually - it should be fairly easy to recreate. Maybe there's even much better ways now to get the functionality given that there's movement bonus from consumables now. One could presumably fake a negative movement bonus instead of manipulating the global character movement speed directly. I haven't looked at all the new stuff in the 2.0 modding API yet, though.
A lot of the complexities in the 0.13 version came from supporting hotkeys and settings before there was an easy way to do that in mods. If you strip all that out it should be a tiny bit of code.
A lot of the complexities in the 0.13 version came from supporting hotkeys and settings before there was an easy way to do that in mods. If you strip all that out it should be a tiny bit of code.