Using Turbulence in biome noise file crashes


Heinermann
  • Branch: Live Branch Version: Windows Pending

The Turbulence node in biome noise files does not work and will crash the game.

I discovered the reason was due to faulty code in ONI. In ProcGen.Noise.Transformer.CreateModule(), it has logic for Turbulence but is missing a return statement (and instead falls back to returning a Displace transformer). This then fails with a NullReferenceException because it tries to cast the erroneous Displace to a Turbulence instance (because the transformerType is Turbulence).

Attached files:

  • Crash log
  • The biome noise file I was testing
  • Image showing the biome noise graph

1090447036_2020-10-0903_18_20-Window.thumb.png.8ce18134a29e122b8ec3b2ed27c00cde.png

 

EDIT: For anyone running into this, the Displace node acts similar to Turbulence, and I was able to switch it out for my use case.

output_log.txt DarkCave.yaml


Steps to Reproduce
  1. Replace any biome noise file with DarkCave.yaml.
  2. Create a new asteroid with that biome.
  3. Freeze on loading screen.

DarkCave.yaml



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