Page 3 of 3

Re: [MOD 0.13] Progressive running

Posted: Wed Mar 13, 2019 4:31 pm
by TRauMa
It's up :).

Re: [MOD 0.13] Progressive running

Posted: Sat May 04, 2019 1:24 am
by mrudat
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"]
 }
Edit: link to the Wikipedia page for the patch utility.

Re: [MOD 0.13] Progressive running

Posted: Mon May 06, 2019 4:40 am
by sidelia
Thanks for the patch! Was just going to poke around to fix it myself but you saved me the time :D

Re: [MOD 0.13] Progressive running

Posted: Mon May 20, 2019 1:39 pm
by christian
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"]
 }
How do I apply this?

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

Posted: Mon May 20, 2019 11:09 pm
by mrudat
christian wrote:
Mon May 20, 2019 1:39 pm
How do I apply this?
Have a look at Patch and Diff (specifically unified diff, as I generated a unified diff).

Re: [MOD 0.13] Progressive running

Posted: Wed May 29, 2019 1:21 pm
by Alusares
This mod's been broken for about a month now

Re: [MOD 0.13] Progressive running

Posted: Mon Jun 03, 2019 2:47 am
by bobclarke
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.

Re: [MOD 0.13] Progressive running

Posted: Mon Jun 17, 2019 12:56 am
by TRauMa
All work and no play makes Jack a dull boy. Thanks for the patch (and your patience).

Re: [MOD 0.13] Progressive running

Posted: Tue May 26, 2020 7:15 pm
by slippycheeze
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"
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. :)

Re: [MOD 0.13] Progressive running

Posted: Wed Aug 19, 2020 7:12 pm
by mdemp
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)

Re: [MOD 0.13] Progressive running

Posted: Wed Aug 19, 2020 8:12 pm
by Pi-C
mdemp wrote:
Wed Aug 19, 2020 7:12 pm
See here