[MOD 0.13] Progressive running

Topics and discussion about specific mods
TRauMa
Inserter
Inserter
Posts: 40
Joined: Fri Jan 15, 2016 3:48 pm
Contact:

Re: [MOD 0.13] Progressive running

Post by TRauMa »

It's up :).

User avatar
mrudat
Fast Inserter
Fast Inserter
Posts: 207
Joined: Fri Feb 16, 2018 5:21 am
Contact:

Re: [MOD 0.13] Progressive running

Post 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.
Last edited by mrudat on Mon May 20, 2019 11:06 pm, edited 1 time in total.

sidelia
Burner Inserter
Burner Inserter
Posts: 19
Joined: Mon Apr 08, 2019 1:36 am
Contact:

Re: [MOD 0.13] Progressive running

Post by sidelia »

Thanks for the patch! Was just going to poke around to fix it myself but you saved me the time :D

christian
Long Handed Inserter
Long Handed Inserter
Posts: 64
Joined: Fri Jun 08, 2018 12:44 am
Contact:

Re: [MOD 0.13] Progressive running

Post 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>

User avatar
mrudat
Fast Inserter
Fast Inserter
Posts: 207
Joined: Fri Feb 16, 2018 5:21 am
Contact:

Re: [MOD 0.13] Progressive running

Post 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).

Alusares
Burner Inserter
Burner Inserter
Posts: 8
Joined: Wed Jun 01, 2016 5:50 pm
Contact:

Re: [MOD 0.13] Progressive running

Post by Alusares »

This mod's been broken for about a month now

bobclarke
Manual Inserter
Manual Inserter
Posts: 1
Joined: Sun Jan 08, 2017 11:06 pm
Contact:

Re: [MOD 0.13] Progressive running

Post 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.

TRauMa
Inserter
Inserter
Posts: 40
Joined: Fri Jan 15, 2016 3:48 pm
Contact:

Re: [MOD 0.13] Progressive running

Post by TRauMa »

All work and no play makes Jack a dull boy. Thanks for the patch (and your patience).

slippycheeze
Filter Inserter
Filter Inserter
Posts: 587
Joined: Sun Jun 09, 2019 10:40 pm
Contact:

Re: [MOD 0.13] Progressive running

Post 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. :)

mdemp
Burner Inserter
Burner Inserter
Posts: 8
Joined: Thu Aug 13, 2020 3:36 pm
Contact:

Re: [MOD 0.13] Progressive running

Post 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)
Attachments
Screenshot_27.png
Screenshot_27.png (11.52 KiB) Viewed 629 times

Pi-C
Smart Inserter
Smart Inserter
Posts: 1088
Joined: Sun Oct 14, 2018 8:13 am
Contact:

Re: [MOD 0.13] Progressive running

Post by Pi-C »

mdemp wrote:
Wed Aug 19, 2020 7:12 pm
See here
A good mod deserves a good changelog. Here's a tutorial (WIP) about Factorio's way too strict changelog syntax!

Post Reply

Return to “Mods”