[Con] Dev 2521 Engine Error when removing a non-placed ladder

I attempted to remove a ladder that had not yet been placed and this error popped up. The ladder appears to be removed and the game seems to be running normally other than the window.

System: Win7 Home Premium
Intel Core i7 @ 2.4GHz
12 GB RAM
Nvidia GTX650M w/ 1GB GRAM

<develop-2521 (x64)
radiant/modules/entities.luac:86: attempt to index local ‘entity’ (a nil value)
stack traceback:
[C]: ?
radiant/modules/entities.luac:86: in function ‘get_world_grid_location’
…tonehearth/services/server/build/ladder_builder.luac:58: in function ‘_get_climb_to’
…tonehearth/services/server/build/ladder_builder.luac:71: in function ‘_update_ladder_tasks’
…tonehearth/services/server/build/ladder_builder.luac:52: in function ‘remove_user_removable_point’
…tonehearth/services/server/build/ladder_manager.luac:19: in function 'remove_user_created_ladder_portion’
stonehearth/services/server/build/build_service.luac:280: in function <stonehearth/services/server/build/build_service.luac:278>>

2 Likes

oh… so it’s still around^^

1 Like

I can confirm that is a thing that happens.

2 Likes

“attempt to index local ‘entity’ (a nil value)” can happen anywhere in the code where an entity is referenced, in this case your bug seems to be related to save/load, while his bug seems related to ladders.

They’re just exceptions in the code.

In dev 2521?

Absolutely. Very easy to test.

1 Like

Hi. Thanks for the report. This should be fixed next build (probably sometime this week)!

1 Like