Caspers Run Speed Toggle


Based on the original speed toggle mod , Switch between 3 Run speeds these are in mod settings to change if needed. Hotkey is changeable in controls, Default is Ctrl + Shift + S

Tweaks
9 months ago
2.0
441
Cheats

g crash

7 months ago

Originally posted in Picklocks rocket silo stats:

QuirkyCat
22 hours ago
Edit
9959.502 Error MainLoop.cpp:1435: Exception at tick 7159845: The mod Picklocks rocket silo stats (2.0.5) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event PicksRocketStats::on_gui_click (ID 1)
The mod Caspers Speed Toggle (1.1.1) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event CaspersPlayerSpeedMod::on_runtime_mod_setting_changed (ID 64)
value for required parameter 1 (player) is missing
stack traceback:
[C]: in function 'get_player_settings'
CaspersPlayerSpeedMod/control.lua:5: in function 'update_speed_levels'
CaspersPlayerSpeedMod/control.lua:26: in function <CaspersPlayerSpeedMod/control.lua:25>
stack traceback:
[C]: in function 'newindex'
__PicksRocketStats/prototypes/settings_gui.lua:1068: in function 'pi_rss_save_settings'
PicksRocketStats/prototypes/settings_gui.lua:1129: in function 'pi_rss_settings_apply'
PicksRocketStats/control.lua:477: in function <PicksRocketStats/control.lua:438>

t_picklock
3 hours ago
(updated 3 hours ago)
Hi QuirkyCat!

I will have a loock at it. Can you tell me more about the circumstances that led to the error?

t_picklock
25 minutes ago
Hi QuirkyCat!

I have carried out tests myself. The error is triggered by the mod CaspersPlayerSpeedMod. The non-recoverable error occurs in the control.lua of the mod CaspersPlayerSpeedMod when settings are changed in my mod via the gui in the game. Global mod settings (map settings) are also changed. The event on_runtime_mod_setting_changed is triggered without player index. This case is not intercepted in the mod CaspersPlayerSpeedMod and the error is triggered. I have no possibility to do anything from my mod.

Please contact the mod author of the mod CaspersPlayerSpeedMod about the error. Inserting the following line of code after line 25 in the control.lua in CaspersPlayerSpeedMod would fix the error.

"if not event or not event.player_index then return end"

New response