Croptopia

Croptopia

30M Downloads

Crash while generating new chunk with terralith

Rikys opened this issue ยท 8 comments

commented

Make sure you are not opening a duplicate.

Platform.

Forge

Minecraft version.

1.20.1

Croptopia version.

3.0.1

What happened?

The game crashes in the world generation stage

Relevant logs

Crash report on gist

Additional information

Mods:

  • Croptopia-1.20.1-FORGE-3.0.1
  • EpheroLib-1.20.1-FORGE-1.2.0
  • Terralith_1.20.4_v2.4.11

On gist I've also published a crash-cyanide.txt file with the cyanide mod in addition (cyanide-forge-1.20.1-4.1.0) as it may help troubleshooting the issue

commented

Same here also. Had to downgrade croptopia to v2.3.2 in order to run w/Terralith

commented

Can confirm, this does crash my dedicated server and my single player world when loading areas with Croptopia trees.

commented

had the same kind of error with Cyclic, but someone made a fix some time ago https://modrinth.com/mod/cyclic-crash-fixer

commented

Got a similar crash after adding Terralith
https://pastebin.com/eDZGKr6j

Description: Exception generating new chunk

com.alcatrazescapee.cyanide.codec.FeatureCycleDetector$FeatureCycleException: A feature cycle was found.

Cycle:
At step 9
Feature 'croptopia:apple_tree_placed'
  must be before 'croptopia:peach_tree_placed' (defined in 'minecraft:plains' at index 48, 49 and 4 others)
  must be before 'croptopia:apple_tree_placed' (defined in 'terralith:lavender_forest' at index 38, 44 and 3 others)

commented

idk how to fix this, in 2.3.2 croptopia trees just didn't generate in terralith biomes, now they cause a crash with my code changes

commented

Well, that's an easy fix. Create the list on boot, use the list for every biome. Don't regenerate it every time.

commented

Did some digging, I've determined this is most likely down to how the config stores the list of Croptopia trees to generate in a given biome not being stored in a consistent order. I got the game to output the list of Croptopia features in the two Terralith biomes listed in the crash, and the tree order is completely scrambled.


terralith:lavender_forest

[
  "croptopia:random_crop_placed",
  "croptopia:apple_tree_placed",
  "croptopia:nectarine_tree_placed",
  "croptopia:persimmon_tree_placed",
  "croptopia:lime_tree_placed",
  "croptopia:lemon_tree_placed",
  "croptopia:peach_tree_placed",
  "croptopia:starfruit_tree_placed",
  "croptopia:apricot_tree_placed",
  "croptopia:pear_tree_placed",
  "croptopia:cherry_tree_placed",
  "croptopia:avocado_tree_placed"
]

terralith:blooming_valley

[
  "croptopia:random_crop_placed",
  "croptopia:nectarine_tree_placed",
  "croptopia:lemon_tree_placed",
  "croptopia:peach_tree_placed",
  "croptopia:apricot_tree_placed",
  "croptopia:kumquat_tree_placed",
  "croptopia:pear_tree_placed",
  "croptopia:apple_tree_placed",
  "croptopia:persimmon_tree_placed",
  "croptopia:lime_tree_placed",
  "croptopia:starfruit_tree_placed",
  "croptopia:cherry_tree_placed",
  "croptopia:orange_tree_placed",
  "croptopia:avocado_tree_placed"
]
commented

I think I have this fixed in 3.0.4, the 'tree order' was the hint I needed so using a treemap now to keep things sorted