What Time Is It


Shows the time of day on the planet you're on. Oh boy!

Utilities
9 months ago
2.0
869

b Crashes with Non Planet/Space Surface

5 months ago

I noticed this with Blueprint Sandboxes (https://mods.factorio.com/mod/blueprint-sandboxes) but i assume the same will probably apply to any surface thats not a planet or space.
The Resulting error is:
Error MainLoop.cpp:1449: Exception at tick 8777166: The mod What Time Is It (1.0.2) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event WhatTimeIsIt::on_player_changed_surface (ID 57)
Unknown sprite "space-location/bpsb-lab-p-Spacedestructor"
stack traceback:
[C]: in function 'newindex'
__WhatTimeIsIt
/req/whatTimeIsIt.lua:21: in function '_UpdateSurface'
WhatTimeIsIt/req/whatTimeIsIt.lua:75: in function 'UpdateSurface'
WhatTimeIsIt/control.lua:9: in function <WhatTimeIsIt/control.lua:7>

a month ago
(updated a month ago)

For anyone else having this problem, you can patch it by adding and (player.surface.planet) before then on line 17 of whatTimeIsIt.lua.

It'll falsely show "SPACE!" as the location for any non-planet surface, but at least it won't crash.

a month ago

For anyone else having this problem, you can patch it by adding and (player.surface.planet) before then on line 17 of whatTimeIsIt.lua.

It'll falsely show "SPACE!" as the location for any non-planet surface, but at least it won't crash.

there is a fork of this mod which i have been using and i presume it does a variant of that fix because i didnt want to edit the file my self, especially in multiplayer games when i would have to otherwise tell everyone to replace the mod with my version of it in order to play. where as simply switching it out with a different mod including the bugfix is much easier.

New response