Jump to content

archive_worldgen.lua - error on line 38 causes crash


SaIem
  • Pending

During the world generation process, an uncommon error can occur in archive_worldgen.lua. Specifically, if entities["archive_lockbox_dispencer_temp"] is nil or does not contain anything, the script attempts to execute math.random(1, #list) where list is empty. This results in an invalid call to math.random(1, 0), causing the shard to crash.

I encountered this issue while generating the seed 404557790 (forced using the API GemCore on client for getting crash log, but error occured on dedicated server without any mods/tools).

I have attached the relevant section of my server log from the caves shard. To my knowledge, world generation retries if it fails to add all required entities, but rather than there being some flag or failsafe, it just crashes altogether.


Steps to Reproduce

1. Generate a caves only dedicated server (I have not tried to replicate this error on client, but a dedicated server with caves and forest likely has the same result)

2. Get a bad seed ( 404557790 )

3. crash (see log)

  • Like 2



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...