[store_time_of_day] 1.16 bug?
Moderator: Forum Moderators
Forum rules
- Please use [code] BBCode tags in your posts for embedding WML snippets.
- To keep your code readable so that others can easily help you, make sure to indent it following our conventions.
[store_time_of_day] 1.16 bug?
Hi,
There might be a bug with
I got the following on 1.16.1. I didn't get this error on 1.14 as far as I know.
Edit: I opened a github issue for it. forget this thread
There might be a bug with
[store_time_of_day]
when it gets called from inside [event]name=time over
I got the following on 1.16.1. I didn't get this error on 1.14 as far as I know.
Code: Select all
20211118 22:37:31 error scripting/lua: lua/wml/store_time_of_day.lua:17: bad argument #2 to 'get_time_of_day' (turn number out of range)
stack traceback:
[C]: in field 'get_time_of_day'
lua/wml/store_time_of_day.lua:17: in local 'cmd'
lua/wml-utils.lua:144: in field 'handle_event_commands'
lua/wml-flow.lua:5: in function <lua/wml-flow.lua:4>
[C]: in field 'fire_event'
lua/wml-tags.lua:153: in local 'cmd'
lua/wml-utils.lua:144: in field 'handle_event_commands'
lua/wml-flow.lua:5: in function <lua/wml-flow.lua:4>