"scripts/components/diseaseable.lua":133: attempt to call method 'SetLoops' (a nil value)

Mr. Tiddles
  • Pending

Seems like there's an issue with the diseaseable component where latency can cause a crash with the error listed above. I was able to fix it by adding :

        local fx = SpawnPrefab("diseaseflies")

I added this part -->  fx:DoTaskInTime(0, function()  < -- Simply delaying it seems to fix the issue. Adding an "if fx ~= nil then" may also help just in case the flies fail to spawn?


into the diseasable command within the DoFX function - I think it's pretty safe to assume WHERE in the function

Seems like I didn't fix it. Here's the log.


Steps to Reproduce
Make many plants diseased; make many crash

User Feedback

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now