Hmm, and when you add an entry like "SnowInThisBiomes" which takes value like "Taiga" or "Ocean, Forest, Plains" and so on?
Its just a single line more.
And for coding, i dont know, how your mod works, but isnt anywhere some sort of loop, which iterates over the biomes, that get affected? And there you only need to change the array, which the loop shall go trough.
Well, I haven't quite figured out how to parse arbitrary strings with MLProp yet... but yeah, it could be done once I know how.
Anyway, pseudocode for the current biome determinating:
//In BiomeGenBase.java:
/*All biome defs same as vanilla in case the mod is disabled, however "public static" instead of "public static final"*/
//In mod_ModernWinterMode.java:
if(freezeAllTheBiomes)
{
forest = (new BiomeGenForest()).setTemperatureRainfall(0.0F, 0.5F).setOtherParamsLikeNormal();
desert = (new BiomeGenDesert()).setTemperatureRainfall(0.0F, 0.5F).setOtherParamsLikeNormal();
//Blah blah blah down the list of twenty-something biomes, the only ones untouched are Nether and Ender
}
else
{
forest = (new BiomeGenForest()).setTemperatureRainfall(/*default values*/).setOtherParamsLikeNormal();
desert = (new BiomeGenDesert()).setTemperatureRainfall(/*default values*/).setDisableRain().setOtherParamsLikeNormal();
//...
}
So long story short, even if I do add a string input config, I still have to wrap every biome definition in an "if flag1 { biome1.freeze(); } else { biome1.normal(); }" mess, and the code is spaghetti enough already. It is possible, but still very unfeasible even if it doesn't change the config file much.
Rollback Post to RevisionRollBack
"Urist McWackoMcGoose cancels Mod Minecraft: Discovered Dwarf Fortress"
Ancient sig archive:
Paper Minecraft: Legend of the Music Discs... is on hiatus until I get a new high-end gaming laptop! Episode 2-4: watch?v=Lk4TjTnUJYU
Well, I haven't quite figured out how to parse arbitrary strings with MLProp yet... but yeah, it could be done once I know how.
Anyway, pseudocode for the current biome determinating:
//In BiomeGenBase.java:
/*All biome defs same as vanilla in case the mod is disabled, however "public static" instead of "public static final"*/
//In mod_ModernWinterMode.java:
if(freezeAllTheBiomes)
{
forest = (new BiomeGenForest()).setTemperatureRainfall(0.0F, 0.5F).setOtherParamsLikeNormal();
desert = (new BiomeGenDesert()).setTemperatureRainfall(0.0F, 0.5F).setOtherParamsLikeNormal();
//Blah blah blah down the list of twenty-something biomes, the only ones untouched are Nether and Ender
}
else
{
forest = (new BiomeGenForest()).setTemperatureRainfall(/*default values*/).setOtherParamsLikeNormal();
desert = (new BiomeGenDesert()).setTemperatureRainfall(/*default values*/).setDisableRain().setOtherParamsLikeNormal();
//...
}
So long story short, even if I do add a string input config, I still have to wrap every biome definition in an "if flag1 { biome1.freeze(); } else { biome1.normal(); }" mess, and the code is spaghetti enough already. It is possible, but still very unfeasible even if it doesn't change the config file much.
Ok, sounds reasonable. But well, i assume the first part is your written code and the part after "else" is the vanilla code with your additions to taiga and tundra, right?
Are you sure you cant do it like this here?(just PseudoCode or whatever):
Hmm, i will take a look at the vanilla code and get familar with the biome generation, maybe i find an other solution, if you dont mind (if you are fine with me doing this, could you please send me your complete BiomeGenBase.java, so i can also take a look at this?)
It seems that the snow isn't going past 7 sheets for me. This is my config, can someone tell me how to make it go above 7 sheets?
#presetClassicMode (boolean:false) -- Preset: Classic Winter Mode - Only the features of the original Winter Mode
#presetModernMode (boolean:true) -- Preset: Modern Winter Mode - Classic plus extra features
#presetSnowMayhem (boolean:false) -- Preset: Snow Mayhem Mode - Modern Unleashed, you could say. Unlimited snow buildup (capped at 5m by default), snow directly effects the player and falls on ALL blocks.
#overridePresets (boolean:false) -- Override Presets: Configure mod based on individual controls instead of presets
#snowAllDayErryday (boolean:true) -- Set this to true to make it always snowy
#freezeAllTheBiomes (boolean:true) -- Set this to true to make snow globally instead of certain biomes
#snowVaryingThickness (boolean:true) -- Snow can build up instead of staying at level 0 thickness
#snowSpecialBlocks (boolean:true) -- Snow falls on special blocks (slabs, fences, glass, etc)
#snowUnlimitedBuild (boolean:false) -- When a snow layer reached thickness 7 (full block), convert to a regular BlockSnowBlock and let more snow form on top
#snowFastBuild (boolean:false) -- Snow can build up to 3 stages at once instead of only one.
#maxSnowDepth (int:5) -- Max depth of full snow blocks when snowUnlimitedBuild=true
#snowOverwritesPlants (boolean:false) -- Falling snow can overwrite plants, including wheat and saplings. Tallgrass is always "snowed over".
#snowSlowdown (boolean:false) -- Player movement in snow is slowed. Slight slowdown at thickness 4, up to Soul Sand slowdown at thickness 6 (7 converts to a snow block).
#
#Fri Jan 27 22:47:35 EST 2012
snowUnlimitedBuild=true
snowOverwritesPlants=false
snowSlowdown=true
freezeAllTheBiomes=false
maxSnowDepth=5
snowVaryingThickness=true
checksum=bfn
snowSpecialBlocks=true
snowFastBuild=true
snowAllDayErryday=true
presetClassicMode=false
presetModernMode=true
presetSnowMayhem=false
overridePresets=true
Interesting idea, would you also be able to create 'sandstorms' in the desert and apply this concept to Sand? It'd make desert landscapes much more variable!
Just thought of something that might be an idea for a new feature.
Have snow spread like water/lava, so that if you have a solid snow block and get falling snow on top, it will "fall" to one of the lowest sides instead to simulate how snow piles up.
That way the odd borders from a covered and uncovered areas blend better
Please dont cancel this mod! And if you do eventually have to, could you pass it on to somebody else?
I'm not canceling it! I'm just not working on it right now because I'm helping out with EvilMinecraft. I'll still maintain it, and later on add more new stuff.
Can you fix the hitboxes, please? D: It's really ruining the mod.. Other than that, though, it's great.
An option where you could set how high the snow goes up in miniblocks wouldn't go amiss though. I would love to just max it at 3-high snow, like in real life =o
You can only set how many solid blocks, not how high the snowlayers go, as in never reaching more than 3 times the normal snow height. I think that is what he meant at least.
Can you fix the hitboxes, please? D: It's really ruining the mod.. Other than that, though, it's great.
An option where you could set how high the snow goes up in miniblocks wouldn't go amiss though. I would love to just max it at 3-high snow, like in real life =o
Hitboxes - With the stuff I've been doing for EvilMinecraft, I think I did actually find out what controls that hitbox... maybe.
Controlling mini-layer levels: I've tried. Twice. Both times it hard-capped the level at a number different than what I wanted it to, and completely ignored the config file setting.
This mod rocks. I've always loved snow in Minecraft! Could you make a multiplayer version (maybe even bukkit?) if you have some time? That would be cool ^.^
A vanilla-server version is planned, once I have the time to figure out ModLoaderMP (not for a while, thanks to my Japanese studies and EvilMinecraft). As for Bukkit, apparently it's like most Minecraft Classic servers in that it's a total rewrite of EVERYTHING, and I wouldn't know how to start making a version for it.
Rollback Post to RevisionRollBack
"Urist McWackoMcGoose cancels Mod Minecraft: Discovered Dwarf Fortress"
Ancient sig archive:
Paper Minecraft: Legend of the Music Discs... is on hiatus until I get a new high-end gaming laptop! Episode 2-4: watch?v=Lk4TjTnUJYU
I don't really like how the snow builds up on trees( I used snow mayhem mode), maybe there is a way for you to make the trees to "collapse" under the snow weight, i think that would be hard to make
I like that idea, to an extent... if a tree gets completely covered, it, like a crop, gets overwritten xD
Would just need some bigger trees to compensate for the massive lumber loss. not many, just a few that are like the size of RP2 rubber trees?
Would also be cool if snow developed on Xie's farming mod overhaul. :biggrin.gif:
I like that idea, to an extent... if a tree gets completely covered, it, like a crop, gets overwritten xD
Would just need some bigger trees to compensate for the massive lumber loss. not many, just a few that are like the size of RP2 rubber trees?
Would also be cool if snow developed on Xie's farming mod overhaul. :biggrin.gif:
I think it would be enough for the leaves to get destroyed. Permanent snow doesn't obliterate trees, it just kills them. Crops on the other hand, much less sturdy, would indeed get crushed by the weight of the snow.
So you'd have to go digging to find all the buried leafless trunks.
Hello, I really enjoy the mod, and hope that you keep continuing it. Just one problem with it. I cant modify config files, as I have a mac. So, I simply wish that you provide 3 separate downloads, one for the classic preset, one with the modern preset, and one with the snow mayhem preset.
Hello, I really enjoy the mod, and hope that you keep continuing it. Just one problem with it. I cant modify config files, as I have a mac. So, I simply wish that you provide 3 separate downloads, one for the classic preset, one with the modern preset, and one with the snow mayhem preset.
lulz
the config file is a text file, open it with TextEdit.
And I just broke my own rule. Oh well. Consider yourself lucky.
At first i played with default settings. It appeared to work well but I didn't like the fact that, when grown, snow transformed into a snow block. I thought it was only in mayhem mode, but whatever. So i tried to disable this manually and setting "overridePresets" to true. It did the same thing.
After that, i tried to run in classic mode to stop snow growing altogether. Snow did not grow anymore, but now i see random snow blocks appearing everywhere after a while :/.
Also, there are zones where snow does not appear. It "is" here, since i can see the hitbox and destroy the block, but it is invisible.
I am playing with only Modloader, Optifine and Modern Winter Mode.
Snow transforming into a snowblock despite mode or config file? Hmm... That's weird.
As for snow disappearing, are the snow blocks at y=65, and is the snow-not-rendering area appearing to be the size and shape of a chunk? Known, "Blame Notch" bug that I can't fix. Certain nonsolid blocks don't render correctly at y=65 if there are no solid (anything that takes the whole block size, like stone and glass but not torches) in that chunk. In an early Minecraft Beta version, it happened with fences; now, it's snow that does it. Easy fix: Just place a block in the area, or if on Snow Mayhem, wait for the snow to build into a full block.
Hey there. i made a very, very, VERY simple banner for your mod and want to post it (don´t know why) When I have seen this mod I just feeled lik "I HAVE TO DOWNLOAD, I HAVE TO SUPPORT!!!!" yea...
Well, I haven't quite figured out how to parse arbitrary strings with MLProp yet... but yeah, it could be done once I know how.
Anyway, pseudocode for the current biome determinating:
So long story short, even if I do add a string input config, I still have to wrap every biome definition in an "if flag1 { biome1.freeze(); } else { biome1.normal(); }" mess, and the code is spaghetti enough already. It is possible, but still very unfeasible even if it doesn't change the config file much.
"Urist McWackoMcGoose cancels Mod Minecraft: Discovered Dwarf Fortress"
Ancient sig archive:
Paper Minecraft: Legend of the Music Discs... is on hiatus until I get a new high-end gaming laptop! Episode 2-4: watch?v=Lk4TjTnUJYU
Ok, sounds reasonable. But well, i assume the first part is your written code and the part after "else" is the vanilla code with your additions to taiga and tundra, right?
Are you sure you cant do it like this here?(just PseudoCode or whatever):
Hmm, i will take a look at the vanilla code and get familar with the biome generation, maybe i find an other solution, if you dont mind (if you are fine with me doing this, could you please send me your complete BiomeGenBase.java, so i can also take a look at this?)
regards jume
*EDIT*
Nevermind, I fixed it.
Have snow spread like water/lava, so that if you have a solid snow block and get falling snow on top, it will "fall" to one of the lowest sides instead to simulate how snow piles up.
That way the odd borders from a covered and uncovered areas blend better
I'm not canceling it! I'm just not working on it right now because I'm helping out with EvilMinecraft. I'll still maintain it, and later on add more new stuff.
Where do I get that village save?
Also, I just realized something: BlockSnowBlock needs custom renders too, for when it's on top of a lower block like stairs, to fill in that gap.
"Urist McWackoMcGoose cancels Mod Minecraft: Discovered Dwarf Fortress"
Ancient sig archive:
Paper Minecraft: Legend of the Music Discs... is on hiatus until I get a new high-end gaming laptop! Episode 2-4: watch?v=Lk4TjTnUJYU
tall grass does disappear...
You can set that in the config... o.o
You can only set how many solid blocks, not how high the snowlayers go, as in never reaching more than 3 times the normal snow height. I think that is what he meant at least.
Hitboxes - With the stuff I've been doing for EvilMinecraft, I think I did actually find out what controls that hitbox... maybe.
Controlling mini-layer levels: I've tried. Twice. Both times it hard-capped the level at a number different than what I wanted it to, and completely ignored the config file setting.
A vanilla-server version is planned, once I have the time to figure out ModLoaderMP (not for a while, thanks to my Japanese studies and EvilMinecraft). As for Bukkit, apparently it's like most Minecraft Classic servers in that it's a total rewrite of EVERYTHING, and I wouldn't know how to start making a version for it.
"Urist McWackoMcGoose cancels Mod Minecraft: Discovered Dwarf Fortress"
Ancient sig archive:
Paper Minecraft: Legend of the Music Discs... is on hiatus until I get a new high-end gaming laptop! Episode 2-4: watch?v=Lk4TjTnUJYU
I like that idea, to an extent... if a tree gets completely covered, it, like a crop, gets overwritten xD
Would just need some bigger trees to compensate for the massive lumber loss. not many, just a few that are like the size of RP2 rubber trees?
Would also be cool if snow developed on Xie's farming mod overhaul. :biggrin.gif:
I think it would be enough for the leaves to get destroyed. Permanent snow doesn't obliterate trees, it just kills them. Crops on the other hand, much less sturdy, would indeed get crushed by the weight of the snow.
So you'd have to go digging to find all the buried leafless trunks.
http://www.minecraftforum.net/topic/1189510-minecraft-with-mead-meadcraft/
Also a fantastic idea! Only overwrite the leaves. Seems easier as well. :smile.gif:
Though sadly, Wacko has a life, so it prob won't happen for quite some time...
lulz
the config file is a text file, open it with TextEdit.
And I just broke my own rule. Oh well. Consider yourself lucky.
http://www.minecraftforum.net/topic/1189510-minecraft-with-mead-meadcraft/
Snow transforming into a snowblock despite mode or config file? Hmm... That's weird.
As for snow disappearing, are the snow blocks at y=65, and is the snow-not-rendering area appearing to be the size and shape of a chunk? Known, "Blame Notch" bug that I can't fix. Certain nonsolid blocks don't render correctly at y=65 if there are no solid (anything that takes the whole block size, like stone and glass but not torches) in that chunk. In an early Minecraft Beta version, it happened with fences; now, it's snow that does it. Easy fix: Just place a block in the area, or if on Snow Mayhem, wait for the snow to build into a full block.
"Urist McWackoMcGoose cancels Mod Minecraft: Discovered Dwarf Fortress"
Ancient sig archive:
Paper Minecraft: Legend of the Music Discs... is on hiatus until I get a new high-end gaming laptop! Episode 2-4: watch?v=Lk4TjTnUJYU
(ugly) banner: