[Bilka] [0.18.36] crash in map-gen with custom elevation

This subforum contains all the issues which we already resolved.
Post Reply
mrvn
Smart Inserter
Smart Inserter
Posts: 5709
Joined: Mon Sep 05, 2016 9:10 am
Contact:

[Bilka] [0.18.36] crash in map-gen with custom elevation

Post by mrvn »

I'm playing around with the map generator elevation expression trying to make a map with a lot of nice looking islands.

Just playing around changing parameters I suddenly get:

19.772 Error NoiseProgram.cpp:1037: Unexpectedly compiled a literal-number expression and got a non-fake register (16) back

and the game crashes hard.
Attachments
factorio-current.log
(10.19 KiB) Downloaded 111 times
map-gen-presets.lua
(3.12 KiB) Downloaded 114 times

Bilka
Factorio Staff
Factorio Staff
Posts: 3133
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: [0.18.36] crash in map-gen with custom elevation

Post by Bilka »

It doesn't like that your density_expression and spot_quantity_expression are the same value. Is intentional that they are the same, or just some temporary debug stuff?
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.

mrvn
Smart Inserter
Smart Inserter
Posts: 5709
Joined: Mon Sep 05, 2016 9:10 am
Contact:

Re: [0.18.36] crash in map-gen with custom elevation

Post by mrvn »

I'm just modifying values randomly to see what effect they have on the map preview. No real intention to the values at all yet.

Bilka
Factorio Staff
Factorio Staff
Posts: 3133
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: [0.18.36] crash in map-gen with custom elevation

Post by Bilka »

Okay, that is great. The fix for this is rather risky, so I won't be solving this so close to 1.0. In the meantime, you just have to make sure that you do not use the exact same expressions for the 4 *_expression properties of the spot-noise and the game won't crash on you. A simple "+ 1" does the job.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.

mrvn
Smart Inserter
Smart Inserter
Posts: 5709
Joined: Mon Sep 05, 2016 9:10 am
Contact:

Re: [0.18.36] crash in map-gen with custom elevation

Post by mrvn »

Bilka wrote:
Fri Aug 07, 2020 11:22 am
Okay, that is great. The fix for this is rather risky, so I won't be solving this so close to 1.0. In the meantime, you just have to make sure that you do not use the exact same expressions for the 4 *_expression properties of the spot-noise and the game won't crash on you. A simple "+ 1" does the job.
Thanks.

FYI: --generate-map-preview is a godsend for testing this stuff.

Bilka
Factorio Staff
Factorio Staff
Posts: 3133
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: [Bilka] [0.18.36] crash in map-gen with custom elevation

Post by Bilka »

Thanks for the report, fixed for version 1.1.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.

Post Reply

Return to “Resolved Problems and Bugs”