BiomeTweaker

BiomeTweaker

13M Downloads

Ocean world scripts crashing my game.

drakkarlucifer opened this issue ยท 3 comments

commented

all = forAllBiomesExcept(0,24)
all.remove()
all.set("genWeight", 1)
all.set("isSpawnBiome", false)

I am using those scripts but every time I load a into a world my game crashes. I am trying to make a world that generates only oceans and deep oceans.

Crash log - https://pastee.org/4hhqs
Console Log - http://paste.ee/p/3PFkl

commented

The log you posted tells you why it's crashing.

[07:27:04] [Client thread/INFO] [BiomeTweaker]: Found 3 tweaks to apply for stage FINISHED_LOAD. Applying...
[07:27:04] [Client thread/WARN] [BiomeTweaker]: Viable generation biomes for type COOL is empty! This will cause Vanilla generation to crash! You've been warned!
[07:27:04] [Client thread/WARN] [BiomeTweaker]: Viable generation biomes for type WARM is empty! This will cause Vanilla generation to crash! You've been warned!
[07:27:04] [Client thread/WARN] [BiomeTweaker]: Viable generation biomes for type ICY is empty! This will cause Vanilla generation to crash! You've been warned!
[07:27:04] [Client thread/WARN] [BiomeTweaker]: Sum of biome generation weights for type WARM is zero! This will cause Vanilla generation to crash! You have been warned!
[07:27:04] [Client thread/WARN] [BiomeTweaker]: Sum of biome generation weights for type COOL is zero! This will cause Vanilla generation to crash! You have been warned!
[07:27:04] [Client thread/WARN] [BiomeTweaker]: Sum of biome generation weights for type ICY is zero! This will cause Vanilla generation to crash! You have been warned!
[07:27:04] [Client thread/WARN] [BiomeTweaker]: Upon removal of biome 22 the allowed spawn list appears to be empty. If you aren't adding one later, this will cause a crash.

This example script does what you are doing, but for deserts. It gets around this crash by adding deserts to every generation type:

desert.addToGeneration("WARM", 2000)
desert.addToGeneration("COOL", 2000)
desert.addToGeneration("DESERT", 2000)
desert.addToGeneration("ICY", 2000)

Do that, but with oceans.

commented

Yeah I know whats wrong here. This guy is using version 128 which does not have the script commands I used. Which explains why it is crashing. I tested this with version 129 and the current beta build 152. All generation was successful with no crash.

Also what he wants is a 100% no land generation just ocean. My script literally replaces all biomes with deep ocean. But also sets their height to -2 that way they never generate a hill about water.

commented

The 'registerGenBiomeRep' command is ideal for creating single biome worlds, but as @nanakisan said, it's not currently in any released version.

@drakkarlucifer If you're comfortable with using a development build until I release v2.0, you can grab this version of BiomeTweaker. It has a command called 'registerGenBlockRep'. See #32 for documentation.