[A16] Snowy Trees v0.1.0

Started by Nandonalt, January 06, 2017, 09:12:59 PM

Previous topic - Next topic

Nandonalt


---------------------

This makes snow appear on trees and bushes when they are on a tile with snow.
Of course, when it's too cold they'll turn leafless as always.
This is only a visual mod and should not affect gameplay or break saves.

-> You don't need a new save for it to work.
-> Requires HugsLib.

DOWNLOAD:
Steam Workshop
Dropbox

---------------





Thanks to Helixien for requesting the mod!
Enjoy!

BlackSmokeDMax

It's a winter wonderland! Very cool!

DariusWolfe

Dude, listen. You've been here for 14 posts at the time of this writing, and you've released 3 mods. Slow down man, you're going to burn yourself out!

(Seriously tho', kudos on all of your work.)

A Friend

"For you, the day Randy graced your colony with a game-ending raid was the most memorable part of your game. But for Cassandra, it was Tuesday"

Squiggly lines you call drawings aka "My Deviantart page"

Degraine

Another good mod. This has always bugged me. I can get snowy pines in Don't Starve but not Rimworld?!

christianmc1101

Oaks doesn´t have leaves in the winter.  ;)
And can you made when the temperatur is below 0° C, but no snow, the trees are Frosty?
Mein Lieblingswort: My favorite word:
Bundespräsidentenstichwahlwiederholungsverschiebung

Grugsy

Quote from: DariusWolfe on January 06, 2017, 11:29:10 PM
Dude, listen. You've been here for 14 posts at the time of this writing, and you've released 3 mods. Slow down man, you're going to burn yourself out!

(Seriously tho', kudos on all of your work.)

If he lives up to his namesake, we are in for a treat. The name Nandonalt is legendary in the Minecraft community.

skullywag

Genius! hows this implemented, any hit to performance?
Skullywag modded to death.
I'd never met an iterator I liked....until Zhentar saved me.
Why Unity5, WHY do you forsake me?

Degraine

Loving the look of it ingame...



...mostly.

Nandonalt

#9
Quote from: christianmc1101 on January 07, 2017, 03:41:15 AM
Oaks doesn´t have leaves in the winter.  ;)
And can you made when the temperatur is below 0° C, but no snow, the trees are Frosty?

If it's too cold they will lose their leaves, I didn't change it :P

Quote from: skullywag on January 07, 2017, 05:07:02 AM
Genius! hows this implemented, any hit to performance?

I've detoured the Graphic property of the Plant class. I didn't notice any heavy hit to performance, yet.

Quote from: Degraine on January 07, 2017, 05:50:08 AM
Loving the look of it ingame...

...mostly.

That's weird. Did you get any errors on startup or during the game?

skullywag

Remember to restart your game after enabling mods, or texture issues WILL happen.
Skullywag modded to death.
I'd never met an iterator I liked....until Zhentar saved me.
Why Unity5, WHY do you forsake me?

SmartererThanYou

If this is the same Nandonalt from the minecraft modding community I give you a warm welcome \. If not then meh ;)

Nandonalt

Quote from: SmartererThanYou on January 07, 2017, 10:23:43 AM
If this is the same Nandonalt from the minecraft modding community I give you a warm welcome \. If not then meh ;)

I am! I quit minecraft modding because it was hard work to keep updating the mods at the time (game was alpha/beta?) and I was merely a 15 years old lazy teenager lol

Degraine

Yes actually, there are a lot of errors in the debug log - mostly about textures.

Could not load UnityEngine.Texture2D at Things/Plant/TreeOak/TreeOakA_Snowy in any active mod or in base resources.
MatFrom with null sourceTex.


is a sample, there's about ten of them, and they all vanish when I move this mod after Vegetable Garden in the load order. I really don't like the arcane magic behind mod loading in Rimworld, Factorio has a much better system. Anyway, the last one decides to be different just because it can, and that solution didn't fix it.

Collection cannot init: No textures found at path Things/Plants/Raspberry_Snowy
Verse.Log:Error(String)
Verse.Graphic_Collection:Init(GraphicRequest)
Verse.GraphicDatabase:GetInner(GraphicRequest)
Verse.GraphicDatabase:Get(Type, String, Shader, Vector2, Color, Color, GraphicData)
Verse.GraphicDatabase:Get(Type, String, Shader, Vector2, Color, Color)
Nandonalt_SnowyTrees.<>c:<.cctor>b__1_0(String)
System.Collections.Generic.List`1:ForEach(Action`1)
Nandonalt_SnowyTrees.TreeInjector:.cctor()
System.Runtime.CompilerServices.RuntimeHelpers:RunClassConstructor(IntPtr)
System.Runtime.CompilerServices.RuntimeHelpers:RunClassConstructor(RuntimeTypeHandle)
Verse.StaticConstructorOnStartupUtility:CallAll()
Verse.PlayDataLoader:<DoPlayLoad>m__6F8()
Verse.LongEventHandler:ExecuteToExecuteWhenFinished()
Verse.LongEventHandler:UpdateCurrentAsynchronousEvent()
Verse.LongEventHandler:LongEventsUpdate(Boolean&)
Verse.Root:Update()
Verse.Root_Entry:Update()


I think you pluralised Plants in that path when it should be 'Plant', looking at the mod subfolders.

asquirrel

Oh the weather outside is frightful.  Cool mod man! COOOOOL!!! :D