Giter VIP home page Giter VIP logo

Comments (27)

superckl avatar superckl commented on August 26, 2024

Sorry, apparently I missed the email for the creation of this issue. I'll let you know what I figure out in a bit.

from biometweaker.

nanakisan avatar nanakisan commented on August 26, 2024

No worries I have the patience of a saint. But yeah it is strange this kept happening.

from biometweaker.

superckl avatar superckl commented on August 26, 2024

So, some biomes are actually hardcoded into vanilla generation (jungle, taiga, river, ocean, and more), and there is no explicit way to remove them. However, awhile back I identified a slightly hacky way of replacing biomes at generation time, but I've been holding off on adding it. Since this sort of thing seems to be such a common request, I'll go ahead and add it.

I'll let you know once I have.

from biometweaker.

superckl avatar superckl commented on August 26, 2024

All right, I've added a new command in build 129:

http://jenkins.superckl.me/job/BiomeTweaker/129/

With this, you could put this in your script

jungle.registerGenBiomeRep(165)

and the jungle biome will be replaced by whatever biome has id 165. This replacement occurs very, very early in generation, right after the stone maps are created. This means that tree, topblocks, lakes, etc. will appear correctly, but the root height and variation will be off. To fix this, you must set the heights of the biome you are replacing to the one you are replacing with, e.g.

jungle.registerGenBiomeRep(165)
jungle.set("height", 0.5)
jungle.set("heightVariation", 0.2)

With this in your script, all jungle that is hard-coded will be replaced by Mesa (Bryce), and you shouldn't even be able to tell the replacement occurred. Let me know how it works out for you.

from biometweaker.

nanakisan avatar nanakisan commented on August 26, 2024

Ohh excellent let me apply this update and see what happens. Heck man I even tried tricking 1.7 worldgen itself. Set jungle to -2 and all it's sub-biomes to -2 temps and even their dictionary assignments to COLD. Removed DENSE, JUNGLE, HOT etc etc from them. They still appeared right next to a hot biome. It was hilarious to see a snowy jungle xD

from biometweaker.

nanakisan avatar nanakisan commented on August 26, 2024

Your Jenkins is asking for a password so I cannot test this presently.

from biometweaker.

superckl avatar superckl commented on August 26, 2024

Oh, sorry. The whole thing got corrupted so I had to set it up again. You should be able to see the jobs now.

from biometweaker.

nanakisan avatar nanakisan commented on August 26, 2024

Ah no worries there, testing is now in progress!

from biometweaker.

nanakisan avatar nanakisan commented on August 26, 2024

Congratulations my good man. You just did something absolutely amazing!
https://imgur.com/a/Y8KGC

1st image shows a jungle temple
2nd is a wastelands biome from Biomes'OP replacing a Jungle edge biome! WEEEEE!

from biometweaker.

nanakisan avatar nanakisan commented on August 26, 2024

YEEEEEES! I LOVE THIS!
Wasteland replacing a River biome!
https://imgur.com/a/lKdZL

from biometweaker.

nanakisan avatar nanakisan commented on August 26, 2024

Honestly this feature is simply genius! it makes designing custom biomes so easy now!

from biometweaker.

superckl avatar superckl commented on August 26, 2024

Glad to hear it! I'll close this issue when the feature is included in an official release.

from biometweaker.

superckl avatar superckl commented on August 26, 2024

Just an update: I'm going to be releasing this with version 3.0. As the version suggests, it's going to contain pretty significant internal changes, and will need lots of testing.

I'm basically ripping out the guts of BT (the scripting environment) into a separate API, making it really easy for other mods to add compatibility. I'd love if you'd be willing to help test when the time comes.

from biometweaker.

nanakisan avatar nanakisan commented on August 26, 2024

Has topBlockMeta been fixed yet? I was hoping to do a desert biome. but with red sand instead of normal sand.

from biometweaker.

superckl avatar superckl commented on August 26, 2024

Is it broken? on v2.0.154 I ran the command

desert.set("topBlockMeta", 1)

In a script by itself, and along with the desert world example script, both inside and outside of a development environment. All four cases yielded a fully functionally red sand desert.

Image

from biometweaker.

nanakisan avatar nanakisan commented on August 26, 2024

Hmm let me check that. because when I did it. The desert was not generating with red sand.

from biometweaker.

nanakisan avatar nanakisan commented on August 26, 2024

Just tested with that exact script. topBlockMeta is still broken
https://imgur.com/a/QcUBc

I altered the script to only include features I needed
http://pastebin.com/CSssHhWx

Also there is a very weird issue presenting itself. desert biome will generate normally. However it produces random chunks of mesa. Then immediately returns to generating desert.
This is important to note however. This happened "before" I changed the script to use Mesa Plateau as the hills biome. This has been a very consistent issue through all versions of the mod.

I am using v154 for all of these results.
I am also currently using forge 1448 (recommended)

from biometweaker.

nanakisan avatar nanakisan commented on August 26, 2024

updated title to better reflect the issues being discussed.

from biometweaker.

superckl avatar superckl commented on August 26, 2024

I'm afraid this issue just got a lot harder to solve. This is what happened when I ran that script:

Image

One of the mods you are using is causing the topBlockMeta to fail. I'll need a full client log and a full mod list. Once you done that, you can try removing mods you might suspect to be messing with generation.

from biometweaker.

nanakisan avatar nanakisan commented on August 26, 2024

I have suspicion it's actually Biomes O'Plenty doing this. Which makes no logical sense as I am using the default terrain generator. So BiomesOP shouldn't even be affecting my worlds. I am however forcing BiomeOP biomes into my world using the biome replace method in my original script.

from biometweaker.

superckl avatar superckl commented on August 26, 2024

I can confirm your suspicions. Throwing Biomes O' Plenty into my world causes the lack of topBlockMeta. This is because Biomes O' Plenty overrides vanilla biomes with their own "inherited" biomes:

https://github.com/Glitchfiend/BiomesOPlenty/blob/BOP-1.7.10-2.1.x/src/main/java/biomesoplenty/api/biome/BOPInheritedBiome.java

This new biome runs the generator method in the old biome. However, since the old biome is replaced during preInit, BiomeTweaker is actually setting the topBlockMeta in the inherited biome. The old biome does not see this new value, and generates with the default meta.

A fix for this could be to move the script parsing to the even earlier FMLConstructionEvent, allowing another application stage "CONSTRUCTION" that will apply before "PRE_INIT". This will allow the field to be properly set in the old biome. I'll get back to you when I implement a fix.

from biometweaker.

nanakisan avatar nanakisan commented on August 26, 2024

I actually found a fix myself. I simply disabled BiomeOP's overrides.
"vanilla biomes to override" {
B:"Birch Forest"=false
B:"Birch Forest Hills"=false
B:"Cold Taiga"=false
B:"Cold Taiga Hills"=false
B:Desert=false
B:DesertHills=false
B:"Extreme Hills"=false
B:"Extreme Hills Edge"=false
B:Forest=false
B:ForestHills=false
B:Hell=false
B:"Ice Plains"=false
B:Jungle=false
B:JungleEdge=false
B:JungleHills=false
B:Mesa=false
B:"Mesa Plateau"=false
B:"Mesa Plateau F"=false
B:MushroomIsland=false
B:MushroomIslandShore=false
B:Ocean=false
B:Plains=false
B:River=false
B:"Roofed Forest"=false
B:Savanna=false
B:"Savanna Plateau"=false
B:Swampland=false
B:Taiga=false
B:TaigaHills=false
}
doing this allowed my worlds to generate proper finally.

from biometweaker.

superckl avatar superckl commented on August 26, 2024

Glad to hear. I am still going to implement the fix mentioned above, in case anyone wants to keep the BOP overrides.

from biometweaker.

nanakisan avatar nanakisan commented on August 26, 2024

Aye just glad I could be of help throwing that issue into the wind. So far the generation is working very well. once those overrides were disabled. Suddenly everything started generating proper. Honestly I think i'm going to have to throw in a biome replacement for every vanilla biome...Now I have lovely taiga biomes spawning next to my deserts xD

from biometweaker.

superckl avatar superckl commented on August 26, 2024

You should now be able to allow BOP's overrides, and use the "PRE_INIT" stage in the latest build.

from biometweaker.

nanakisan avatar nanakisan commented on August 26, 2024

\o/
I'll commence testing shortly then. There is a bowl of ramen with my name on it down the street.

from biometweaker.

nanakisan avatar nanakisan commented on August 26, 2024

I think we can go ahead and close this issue. It's starting to become a convoluted mess of topics.

from biometweaker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.