Jump to content

birdspawner Crash Report


StoneSplinter
  • Pending
I am developing several MODs and frequently encounter this crash.
 
This crash occurs occasionally even when my MODs are not performing any operations.
 
Detailed Log:
 
[00:13:45]: [string "scripts/components/birdspawner.lua"]:539: attempt to index field 'Transform' (a nil value)
 
LUA ERROR stack traceback:
 
scripts/components/birdspawner.lua:539 in (method) SpawnBird (Lua) <518-565>
 
 
My Speculation:
 
Certain entities (inst) do not have a Transform component, but their parent node is TheWorld, and they are ultimately hidden at coordinates (0, 0, 0). This causes the birdspawner to scan and include these invalid entities during its spawning detection.

Steps to Reproduce
Specific reproduction steps:
 
  1. Use the console to teleport the character to coordinates (0, 0, 0): ThePlayer.Transform:SetPosition(0,0,0)
  2. Keep this coordinate point within the screen display range and move around randomly.
  3. The birdspawner crash will suddenly occur at a certain moment.
  4. It has been confirmed that (0, 0, 0) must remain within the game's active area for the crash to happen.



User Feedback


There are no comments to display.



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

×
  • Create New...