You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in my lua module, defining time_days = 0.5 lead to this error:
WARNING: Object failed to generate, discarding: evolvingObject
[string "hammerstone-framework/..ject/objectManager.lua"]:924: attempt to perform arithmetic on local 'yearTime' (a nil value)
using github repo.
The text was updated successfully, but these errors were encountered:
Dfred
changed the title
hs_evolving_object.time_years is unusable
hs_evolving_object.time_days is unusable
Aug 14, 2023
ifdayTimeandyearTimethenlog:schema("ddapi", " WARNING: Evolving defines both 'time_years' and 'time_days'. You can only define one.")
end
Where (for some reason) Lua is treated the AND operator as a arithmetic operator. I'm not sure how Lua handles falsy/truthy values, but casting to booleans should fix the issue. I'll see if I can draft up a PR later today.
in my lua module, defining
time_days = 0.5
lead to this error:using github repo.
The text was updated successfully, but these errors were encountered: