Mods / Rock Strata Variety

Category: #Worldgen
Author: chisps
Side: Server
Created: Apr 9th at 5:54 AM
Last modified: Apr 9th at 5:58 AM
Downloads: 1512
Follow Unfollow 58

Latest file for v1.19.7: 1-click install

This mod alters vanilla rock strata worldgen to allow more varied (and more numerous) rock layers to generate. In vanilla worldgen, some rock types dominate and prevent others from spawning because they have precedence during generation. This mod allocates a piece of the column to each rock type that is queued for generation in a given area, rather than allowing a few to fill up the column before the others get a chance.

This mod should increase the likelihood of rarer rock types like limestone or chalk generating, and will especially improve the distribution of modded rock types appended to the end of the rock strata variants list (and therefore at the end of the line to generate).

This mod should be compatible with mods that add new rock types, ores, etc. It will be incompatible with any mod that specifically alters the GenRockStrata.genBlockColumn method, as that method is changed and overwritten by this mod.

This mod is best used with new worlds, but shouldn't cause any issues when installed mid playthrough (back up first!), except that newly generated chunks may have some abrupt layer transitions. It doesn't affect terrain shape or modify the heightmap in any way, so you shouldn't get any ugly cliff chunk boundaries. You may regenerate old chunks to repopulate rock types with /wgen regen [radius around you in chunks]. Take care, as this will delete anything you've built in the area! Back up your save before trying it.

Note: This mod does not make specific rock groups (e.g. sedimentary, metamorphic) more common, or adjust the likelihood for any rock type to be able to generate. It isn't a targeted buff to limestone or bauxite spawn rates. Rather, they will show up where they should have been all along.

Version For Game version Downloads Release date Changelog Download 1-click mod install*
v0.0.1 1512 Apr 9th at 5:58 AM Show Install now

8 Comments (oldest first | newest first)

💬 chispsAuthor, May 27th at 5:23 PM

Xozkov yes, this is fully compatible with landform mods! I personally use it with Plains & Valleys.

💬 Xozkov, May 27th at 2:15 PM

So with this only affecting rock strata worldgen, would that make it compatible with terrain worldgen mods such as VanillaPlus or Plains & Valleys/Fields & Plateaus or no?

💬 DUCATISLO, May 22nd at 4:35 PM

good mod

💬 chispsAuthor, May 16th at 2:32 PM

MadGnome thanks for the report, that's a new one to me. I'll take a look. Are you using any other mods that affect worldgen?

💬 MadGnome, May 16th at 12:05 AM

Trying this out on a 1.19.7 server, getting a lot of console spam with this error message.

15.5.2024 18:03:40 [Server Worldgen] An error was thrown in pass Terrain when generating chunk column X=16107,Z=1640 in world 'Vintage Story World' with seed 562158962
Exception System.IndexOutOfRangeException: Index was outside the bounds of the array.
at rockstratavariety.rockstratavarietyModSystem.blockColumnChanged(GenRockStrataNew __instance, IServerChunk[] chunks, Int32 chunkX, Int32 chunkZ, Int32 lx, Int32 lz, UInt16[] ___heightMap, Single[]& ___rockGroupMaxThickness, Single[]& ___rockGroupCurrentThickness, GeologicProvinces ___provinces, LerpedWeightedIndex2DMap& ___map, Single ___chunkInRegionX, Single ___lerpMapInv, Single ___chunkInRegionZ, SimplexNoise ___distort2dx, SimplexNoise ___distort2dz, RockStrataConfig ___strata, IMapChunk ___mapChunk, Int32 ___regionChunkSize, Int32 ___rdx, Int32 ___rdz) in C:\Users\noahb\source\repos\rockstratavariety\rockstratavariety\rockstratavarietyModSystem.cs:line 99
at Vintagestory.ServerMods.GenRockStrataNew.genBlockColumn_Patch1(GenRockStrataNew this, IServerChunk[] chunks, Int32 chunkX, Int32 chunkZ, Int32 lx, Int32 lz)
at Vintagestory.ServerMods.GenRockStrataNew.GenChunkColumn(IChunkColumnGenerateRequest request) in C:\Users\Tyron\Documents\vintagestory\game\VSSurvivalMod\Systems\WorldGen\Standard\ChunkGen\2.GenRockStrata\GenRockStrata.cs:line 172
at Vintagestory.Server.ServerSystemSupplyChunks.runGenerators(ChunkColumnLoadRequest chunkRequest, Int32 forPass) in C:\Users\Tyron\Documents\vintagestory\game\VintagestoryLib\Server\Systems\World\LoadThread\SupplyChunks.cs:line 1733

💬 Tels, May 6th at 3:01 PM

Hopefully this fix can go into 1.20 - it is needed!

💬 chispsAuthor, May 2nd at 5:49 AM

phol thank you! I'm glad people are enjoying it!

💬 phol, May 1st at 11:42 PM

Criminally underrated wordlgen tweak.

(edit comment delete)