Content: Slate Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate Marble
Background: Slate Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate Marble
Pattern: Blank Waves Notes Sharp Wood Rockface Leather Honey Vertical Triangles
Welcome to TerraFirmaCraft Forums

Register now to gain access to all of our features. Once registered and logged in, you will be able to contribute to this site by submitting your own content or replying to existing content. You'll be able to customize your profile, receive reputation points as a reward for submitting content, while also communicating with other members via your own private inbox, plus much more! This message will be removed once you have signed in.

  • Announcements

    • Dries007

      ATTENTION Forum Database Breach   03/04/2019

      There has been a breach of our database. Please make sure you change your password (use a password manager, like Lastpass).
      If you used this password anywhere else, change that too! The passwords themselves are stored hashed, but may old accounts still had old, insecure (by today's standards) hashes from back when they where created. This means they can be "cracked" more easily. Other leaked information includes: email, IP, account name.
      I'm trying my best to find out more and keep everyone up to date. Discord (http://invite.gg/TerraFirmaCraft) is the best option for up to date news and questions. I'm sorry for this, but the damage has been done. All I can do is try to make sure it doesn't happen again.
    • Claycorp

      This forum is now READ ONLY!   01/20/2020

      As of this post and forever into the future this forum has been put into READ ONLY MODE. There will be no new posts! A replacement is coming SoonTM . If you wish to stay up-to-date on whats going on or post your content. Please use the Discord or Sub-Reddit until the new forums are running.

      Any questions or comments can be directed to Claycorp on either platform.
morganm

TFCOre.cfg changes causing StackOverflowError: Exception getting block type in world

15 posts in this topic

I've been dialing in the TFCOre.cfg to get the ores I want to spawn more frequently and more dense.  I made some major modifiations yesterday and everything was working fine.  I generated hundreds of chunks no problem.  Still wasn't satisifed so I made some more changes today. 

 

All I changed today was the rarity; dropped some from the 30s and 40s down pretty far.  About 5 to 15 on some. 

 

Did I exceed some threshold I wasn't aware of? 

 

---- Minecraft Crash Report ----// Hey, that tickles! Hehehe!Time: 2/1/15 9:36 AMDescription: Exception getting block type in worldjava.lang.StackOverflowError: Exception getting block type in world

 

 

File Config in spoiler: 

 

# Configuration filebismuthinite {I:"Horizontal Density"=90I:"Maximum Height"=250I:"Minimum Height"=120I:"Vertical Density"=80S:baseRocks <sedimentaryigneous intrusivemetamorphicsedimentary>I:oreMeta=7S:oreName=terrafirmacraft:Ore1I:rarity=10S:size=mediumS:type=veins}"bismuthinite surface" {I:"Horizontal Density"=90I:"Maximum Height"=240I:"Minimum Height"=128I:"Vertical Density"=40S:baseRocks <sedimentaryigneous intrusivemetamorphicsedimentary>I:oreMeta=7S:oreName=terrafirmacraft:Ore1I:rarity=5S:size=largeS:type=veins}"bituminous coal" {I:"Horizontal Density"=90I:"Maximum Height"=250I:"Minimum Height"=120I:"Vertical Density"=90S:baseRocks <sedimentaryigneous intrusivemetamorphicsedimentary>I:oreMeta=14S:oreName=terrafirmacraft:Ore1I:rarity=10S:size=largeS:type=default}borax {I:"Horizontal Density"=90I:"Maximum Height"=250I:"Minimum Height"=120I:"Vertical Density"=80S:baseRocks <rock saltsedimentaryigneous intrusivemetamorphicsedimentary>I:oreMeta=0S:oreName=terrafirmacraft:Ore3I:rarity=15S:size=largeS:type=veins}cassiterite {I:"Horizontal Density"=90I:"Maximum Height"=250I:"Minimum Height"=120I:"Vertical Density"=80S:baseRocks <sedimentaryigneous intrusivemetamorphicsedimentary>I:oreMeta=5S:oreName=terrafirmacraft:Ore1I:rarity=10S:size=largeS:type=veins}"cassiterite surface" {I:"Horizontal Density"=90I:"Maximum Height"=240I:"Minimum Height"=128I:"Vertical Density"=40S:baseRocks <sedimentaryigneous intrusivemetamorphicsedimentary>I:oreMeta=5S:oreName=terrafirmacraft:Ore1I:rarity=5S:size=largeS:type=veins}cinnabar {I:"Horizontal Density"=90I:"Maximum Height"=250I:"Minimum Height"=120I:"Vertical Density"=30S:baseRocks <sedimentaryigneous intrusivemetamorphicsedimentary>I:oreMeta=11S:oreName=terrafirmacraft:Ore2I:rarity=10S:size=largeS:type=veins}cryolite {I:"Horizontal Density"=90I:"Maximum Height"=250I:"Minimum Height"=120I:"Vertical Density"=80S:baseRocks <granitesedimentaryigneous intrusivemetamorphicsedimentary>I:oreMeta=12S:oreName=terrafirmacraft:Ore2I:rarity=15S:size=largeS:type=veins}galena {I:"Horizontal Density"=60I:"Maximum Height"=128I:"Minimum Height"=5I:"Vertical Density"=80S:baseRocks <>I:oreMeta=6S:oreName=terrafirmacraft:Ore1I:rarity=250S:size=mediumS:type=veins}garnierite {I:"Horizontal Density"=90I:"Maximum Height"=250I:"Minimum Height"=120I:"Vertical Density"=80S:baseRocks <sedimentaryigneous intrusivemetamorphicsedimentary>I:oreMeta=8S:oreName=terrafirmacraft:Ore1I:rarity=10S:size=largeS:type=veins}graphite {I:"Horizontal Density"=90I:"Maximum Height"=250I:"Minimum Height"=120I:"Vertical Density"=80S:baseRocks <sedimentaryigneous intrusivemetamorphicsedimentary>I:oreMeta=4S:oreName=terrafirmacraft:Ore2I:rarity=5S:size=largeS:type=veins}gypsum {I:"Horizontal Density"=60I:"Maximum Height"=128I:"Minimum Height"=5I:"Vertical Density"=80S:baseRocks <>I:oreMeta=1S:oreName=terrafirmacraft:Ore2I:rarity=250S:size=largeS:type=veins}hematite {I:"Horizontal Density"=90I:"Maximum Height"=250I:"Minimum Height"=120I:"Vertical Density"=80S:baseRocks <sedimentaryigneous intrusivemetamorphicsedimentary>I:oreMeta=3S:oreName=terrafirmacraft:Ore1I:rarity=5S:size=largeS:type=veins}jet {I:"Horizontal Density"=60I:"Maximum Height"=128I:"Minimum Height"=5I:"Vertical Density"=80S:baseRocks <>I:oreMeta=8S:oreName=terrafirmacraft:Ore2I:rarity=250S:size=largeS:type=veins}kaolinite {I:"Horizontal Density"=90I:"Maximum Height"=250I:"Minimum Height"=100I:"Vertical Density"=80S:baseRocks <sedimentaryigneous intrusivemetamorphicsedimentary>I:oreMeta=0S:oreName=terrafirmacraft:Ore2I:rarity=5S:size=largeS:type=default}kimberlite {I:"Horizontal Density"=90I:"Maximum Height"=250I:"Minimum Height"=120I:"Vertical Density"=30S:baseRocks <sedimentaryigneous intrusivemetamorphicsedimentary>I:oreMeta=5S:oreName=terrafirmacraft:Ore2I:rarity=15S:size=largeS:type=veins}"lapis lazuli" {I:"Horizontal Density"=60I:"Maximum Height"=128I:"Minimum Height"=5I:"Vertical Density"=80S:baseRocks <>I:oreMeta=2S:oreName=terrafirmacraft:Ore3I:rarity=250S:size=largeS:type=veins}lignite {I:"Horizontal Density"=90I:"Maximum Height"=250I:"Minimum Height"=120I:"Vertical Density"=90S:baseRocks <sedimentaryigneous intrusivemetamorphicsedimentary>I:oreMeta=15S:oreName=terrafirmacraft:Ore1I:rarity=15S:size=mediumS:type=default}limonite {I:"Horizontal Density"=90I:"Maximum Height"=250I:"Minimum Height"=120I:"Vertical Density"=80S:baseRocks <sedimentaryigneous intrusivemetamorphicsedimentary>I:oreMeta=11S:oreName=terrafirmacraft:Ore1I:rarity=15S:size=largeS:type=veins}magnetite {I:"Horizontal Density"=90I:"Maximum Height"=250I:"Minimum Height"=120I:"Vertical Density"=80S:baseRocks <sedimentaryigneous intrusivemetamorphicsedimentary>I:oreMeta=10S:oreName=terrafirmacraft:Ore1I:rarity=15S:size=largeS:type=veins}malachite {I:"Horizontal Density"=90I:"Maximum Height"=250I:"Minimum Height"=120I:"Vertical Density"=80S:baseRocks <sedimentaryigneous intrusivemetamorphicsedimentary>I:oreMeta=9S:oreName=terrafirmacraft:Ore1I:rarity=10S:size=largeS:type=veins}"native copper" {I:"Horizontal Density"=90I:"Maximum Height"=250I:"Minimum Height"=120I:"Vertical Density"=80S:baseRocks <sedimentaryigneous intrusivemetamorphicsedimentary>I:oreMeta=0S:oreName=terrafirmacraft:Ore1I:rarity=5S:size=largeS:type=veins}"native copper surface" {I:"Horizontal Density"=90I:"Maximum Height"=240I:"Minimum Height"=128I:"Vertical Density"=90S:baseRocks <sedimentaryigneous intrusivemetamorphicsedimentary>I:oreMeta=0S:oreName=terrafirmacraft:Ore1I:rarity=3S:size=largeS:type=veins}"native gold" {I:"Horizontal Density"=60I:"Maximum Height"=128I:"Minimum Height"=5I:"Vertical Density"=80S:baseRocks <>I:oreMeta=1S:oreName=terrafirmacraft:Ore1I:rarity=250S:size=smallS:type=veins}pitchblende {I:"Horizontal Density"=60I:"Maximum Height"=128I:"Minimum Height"=5I:"Vertical Density"=80S:baseRocks <>I:oreMeta=10S:oreName=terrafirmacraft:Ore2I:rarity=250S:size=smallS:type=veins}platinum {I:"Horizontal Density"=80I:"Maximum Height"=128I:"Minimum Height"=5I:"Vertical Density"=40S:baseRocks <>I:oreMeta=2S:oreName=terrafirmacraft:Ore1I:rarity=250S:size=smallS:type=veins}saltpeter {I:"Horizontal Density"=90I:"Maximum Height"=250I:"Minimum Height"=100I:"Vertical Density"=80S:baseRocks <sedimentaryigneous intrusivemetamorphicsedimentary>I:oreMeta=13S:oreName=terrafirmacraft:Ore2I:rarity=15S:size=largeS:type=veins}silver {I:"Horizontal Density"=90I:"Maximum Height"=250I:"Minimum Height"=100I:"Vertical Density"=80S:baseRocks <sedimentaryigneous intrusivemetamorphicsedimentary>I:oreMeta=4S:oreName=terrafirmacraft:Ore1I:rarity=14S:size=largeS:type=veins}sphalerite {I:"Horizontal Density"=90I:"Maximum Height"=250I:"Minimum Height"=100I:"Vertical Density"=80S:baseRocks <sedimentaryigneous intrusivemetamorphicsedimentary>I:oreMeta=12S:oreName=terrafirmacraft:Ore1I:rarity=11S:size=largeS:type=veins}"sphalerite surface" {I:"Horizontal Density"=90I:"Maximum Height"=240I:"Minimum Height"=128I:"Vertical Density"=40S:baseRocks <metamorphic>I:oreMeta=12S:oreName=terrafirmacraft:Ore1I:rarity=5S:size=largeS:type=veins}sylvite {I:"Horizontal Density"=60I:"Maximum Height"=250I:"Minimum Height"=100I:"Vertical Density"=90S:baseRocks <rock saltsedimentaryigneous intrusivemetamorphicsedimentary>I:oreMeta=15S:oreName=terrafirmacraft:Ore2I:rarity=40S:size=largeS:type=veins}tetrahedrite {I:"Horizontal Density"=90I:"Maximum Height"=250I:"Minimum Height"=100I:"Vertical Density"=80S:baseRocks <sedimentaryigneous intrusivemetamorphicsedimentary>I:oreMeta=13S:oreName=terrafirmacraft:Ore1I:rarity=10S:size=largeS:type=veins}"tetrahedrite surface" {I:"Horizontal Density"=90I:"Maximum Height"=240I:"Minimum Height"=128I:"Vertical Density"=40S:baseRocks <metamorphic>I:oreMeta=13S:oreName=terrafirmacraft:Ore1I:rarity=5S:size=largeS:type=veins}

0

Share this post


Link to post
Share on other sites

You should put the code into a spoiler.  :P

0

Share this post


Link to post
Share on other sites

Think I've narrowed it down to Rarity.  Turning it too far down... or maybe... getting too many ore types having the same rarity ? 

 

Still playing with it...

0

Share this post


Link to post
Share on other sites

In essence you've turned it too far down for large veins. You basically set it to the point where the veins are so large and so common that it's trying to generate solid chunks of ore, with little to no stone at all in the area. The game can't handle generating that much ore all at once, so it crashes.

 

To put it this way, when setting rarity to 5, that means that 1 in 5 chunks contains the center of a vein. But some larger veins can cover more than 5 chunks, so by putting a center that often, essentially every single chunk ends up with ore in it.

0

Share this post


Link to post
Share on other sites

Hmm I get what you're saying but wonder if setting size to Large is another contributing factor. 

 

What's a good Rarity setting then?

Could I set them to 5 or 10 but put the size to Small and be OK?

 

WIsh the wiki had some more detaila about how this worked and some suggestions on settings or why not to set some things too low.  Maybe when I get it all figured out I can update it? 

0

Share this post


Link to post
Share on other sites

http://wiki.terrafirmacraft.com/Configuration#TFCOre.cfg

 

I'm not sure what more information you are looking for. The system is fairly straightforward. There's intentional limitations so that you can't create a completely solid vein of ore, which is why the density is out of 100. We also limited it to only 3 sizes to choose from so that players can't crash their game by generating something thats too large for Minecraft to handle. I'd suggest that you take a look at the actual general size of a small, medium and large vein. The large ones can be massive. Then just keep in mind that obviously a lower rarity means more ore spawning, which means it's going to take more resources in order to generate, which some computer systems won't be able to handle, so they will crash.

 

I can't write a specific list of guidelines of "Don't set it below X or else you'll crash" because everybody's computer is different, and can handle a different amount of intensive world generation. So what might cause that stack-overflow crash on your computer will work just fine for someone with a better computer.

0

Share this post


Link to post
Share on other sites

On it's face it's simple... 0 to 100... large, medium, small... I get it. 

 

I adjust your parameters, within your specified ranges, and cause it to crash. 

 

Guess it's not so simple?  Or the safe guards aren't working as designed? 

 

What I'm looking for is maybe someone who's played with these and can say like "hey, 5 rarity and large size is stupid man... nobody can do that... try 35 and medium"

 

 or

 

"size is more important than rarity; turn down the size to small if you want a low rarity like 25"

 

I get that some ppl have weak computers and some had powerful ones but I have a really powerful computer so I guess it's weird to see it crash within your specified limitations. 

0

Share this post


Link to post
Share on other sites

You're looking at this from the wrong point of view. The safeguards we've put in place are for each individual parameter. There's nothing we can do if you decide to choose the extremes of every single one. Even if you didn't crash with 5 rarity and large size, do you understand what you would end up with? Large size and 5 rarity essentially means that there would be more ore than stone in basically that entire "stone" layer. There's pretty much no reason for anybody to ever generate their world like that for a legit playthrough. Use common sense when combining the parameters. Remember to keep in mind just how much ore is inside each of the different sizes. Keep in mind how large of an area that much ore takes up. Then take that into consideration for how far those veins should be spaced apart for the balance you want, and adjust the rarity as needed. A rarity value of 5 for any size vein essentially means that you can dig down at any location in that stone type, and you will hit ore.

 

The default values that are in the config already were chosen for a reason. Use them as a guide and tweak them slightly as needed until you get your desired result. You wouldn't crank the volume on a speaker from 2 all the way up to 11, and then complain that it's way too loud. Don't crank our parameters to the extremes without expecting crazy behavior as well.

0

Share this post


Link to post
Share on other sites

It may seem like common sense to you but I have no context around this.  I've only seen some tiny little scraps of ore here and there... never these huge veins people talk about.  Which is why I started playing with the values; seemed like stuff was really rare and hard to find more than a few scraps.  I have no idea how much ore is in any size so when you say "keep in mind just how much ore is inside each of the differen sizes"... I have no idea. 

 

"A rarity value of 5 for any size vein essentially means that you can dig down at any location in that stone type, and you will hit ore"

"Large size and 5 rarity essentially means that there would be more ore than stone in basically that entire "stone" layer."

 

THIS is the info I'm looking for =)  See; I had NO idea it was that bad.  Your second paragraph is very helpful too. 

 

I was never complaining... I was asking what I did wrong and for some help or guidance. 

0

Share this post


Link to post
Share on other sites

Open up a brand new world in creative mode with cheats enabled. Fly up into the air and type in the following two commands.

/debugmode/stripchunk 5

Then save and exit the world, which may take a few minutes. When you go back into that world, all blocks that are not ore blocks within a 5 chunk square radius will be gone. Then you'll get an idea of just how huge veins are.

0

Share this post


Link to post
Share on other sites

Thanks; that should help put some context around this and help me dial in the settings!

0

Share this post


Link to post
Share on other sites

In case the area you strip doesn't have one, here's a bituminous coal vein for reference. And I'd say it's a bit on the small side.

 

Posted Image

0

Share this post


Link to post
Share on other sites

There were a few veins I could see; very enlightening.

 

Thx for the screenshot too. 

0

Share this post


Link to post
Share on other sites

Also think of it this way. I'm sure Kitty said; rarity value means 1 in whatever number you entered, chunks with seed a vein on average. So rarity 5 means on average 1 in 5 chunks will have the epicentre of a vein.

Perhaps if you tell us what you are trying to accomplish with your tweaks we could give suggestions. Also remember you can always increase the units of metal in the different size ore pieces in the main config.

0

Share this post


Link to post
Share on other sites