Jump to content

Recommended Posts

Posted

Hello!

I have a very strange problems.

I made my custom dimension, and I try to cover my biome with layer of radioactive ash.

I cannot make it in genTerrainBlocks() - ravines and lakes are generating underneath my layer, and ash blocks are suspended in the air. So I must generate it in decorate().

But when I place the generation in decorate(), the game crashes with a strange error: http://pastebin.com/b5k9jabF

Code of ash WorldGen:

  Reveal hidden contents

 

Firstly I thought this crash occures because of too heavy alghoritm, but when I tried to simply adapt Tall Grass Generator I had the same crash.

Code of TallGrassLike Worldgen:

 

  Reveal hidden contents

 

Please, help me!

The Mary Sue is not defined by her power, but by her lack of an even more powerful opponent. ©LessWrong

Posted

That is a nasty stack overflow trace.

 

You risk

yg + random.nextInt(4) - random.nextInt(4);

being negative.

 

There seems to be other issues with the code as well, but try making sure

j1

is always in Z+.

Posted
  Quote
You risk yg + random.nextInt(4) - random.nextInt(4); being negative.

It is jusy a copy-paste from WorldGenTallGrass) If it not works in my mod, it must not work in vanilla.

And what about my normal not copypasted worldgen? Why the stack is overflowing?..

 

The Mary Sue is not defined by her power, but by her lack of an even more powerful opponent. ©LessWrong

Posted
  On 7/12/2014 at 5:11 PM, Elyon said:

Is your

RModBlocks.ashLayer.canPlaceBlockAt

method fit to handle negative Y-values without trying to set or get them?

Nope, it tries to get block underneath.

Inserted negative-check on this method, still crashing: http://pastebin.com/7eGxjnHW

BlockFalloutAshLayer:

 

  Reveal hidden contents

 

The Mary Sue is not defined by her power, but by her lack of an even more powerful opponent. ©LessWrong

Posted

java.lang.StackOverflowError: Exception getting block type in world

        [snip]

        at refugeecraft.world.dimension.generators.WorldGenFalloutAsh.generate(WorldGenFalloutAsh.java:65)

 

Line 65 of

WorldGenFalloutAsh.java

is not fit to handle Y-values above the height of the nether.

Posted

It worked, thank you! =-)

The Mary Sue is not defined by her power, but by her lack of an even more powerful opponent. ©LessWrong

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.