Playtime+

by Mazmot

Adds a simple clock showing how long the current game has been running.

Utilities
1 year, 25 days ago
1.1
15.6K

b Crashed by on_nth_tick_hour

1 year, 1 month ago

I ran into this error, and it told me to tell the author's mod, so here it is:

Error while running event playtime-plus::on_nth_tick(216000)
playtime-plus/control.lua:47: attempt to index field '?' (a nil value)
stack traceback:
playtime-plus/control.lua:47: in function 'save_gui_location'
playtime-plus/control.lua:100: in function 'set_gui_location'
playtime-plus/control.lua:83: in function 'snap_gui'
playtime-plus/control.lua:113: in function <playtime-plus/control.lua:111>

1 year, 1 month ago

Thanks for the report.

Can you provide a savedata or situation information that leads to reproduce the bug?

1 year, 1 month ago

I think, I install this mod in something like 47:45 of play time, and this appeared before autosave at 48:00 ( It's in hours). In this save, I play with Space exploration mod, and some QOL mods. I don't remember doing anything to cause this.

Sorry for such short report, but I don't remember more.

1 year, 1 month ago

Thanks for the valuable information.
I believe the bug is fixed now even though I couldn't reproduce it.

If the bug is still happening, let me know :)

Details:
The bug is occured if there is a non-player LuaPlayer created by other mods or some reasons.
In such case, a timer gui is failed to reposition at 1 hour (216000 ticks) due to missing initialization for global vars.

1 year, 1 month ago

Around ten minutes ago from me writing this, I have suffered a fatal error that is exactly what Etien has listed. For me it crashes at the 34th Hour to be exact, I don't believe any mods I have are interfering with the mod, but these are the mods I am using:

AAI Containers & Warehouses
Textplates

1 year, 1 month ago

Update: I went and applied the most recent update for the mod, and now the time is stuck at the date of around a few minutes before the 34th Hour, and does not move. I will be disabling the mod in caution to prevent another crash, but will enable it again when the issue is resolved.

1 year, 26 days ago

Sorry for bothering you.

Let me confirm the problem.
Your timer is now frozen (no update and immovable) instead of a crash after updated to the latest.

I can guess the reason but not sure how to reproduce it.
It must be releated to LuaPlayer objects.

Do you play multiplayer? Or did you change your player name recently?

1 year, 25 days ago

Finally the bug is gone.
The mod is updated to 1.0.5

1 year, 23 days ago

Finally the bug is gone.
The mod is updated to 1.0.5

Nice

New response