World of Banished

MODS Garage => Tips and Help => Topic started by: Voeille on May 14, 2018, 06:30:26 PM

Title: Tree growth
Post by: Voeille on May 14, 2018, 06:30:26 PM
I wanted to make a mod similar to this (https://steamcommunity.com/sharedfiles/filedetails/?id=320829114) one for personal use, with different values and compatible with New Flora, i.e. without modifying the spawn part. I edited the .rsc file, ran the game (from the mod kit), repeated several times until I found values I like, and everything worked fine. However, when I packaged it into a .pkm file (to use in the normal steam game), it just doesnít work, either in the mod kit or steam version. It packaged fine, without any errors, I can enable it in the menu, but it just doesnít do anything, trees act like vanilla. This is my very first attempt to mod Banished, so itís possible I made a stupid newbie mistake.

Here (https://mega.nz/#!iJx01TLZ!kwGPdR0Kkp5LMapocbZ92TVocVmwpD4kGpkPY-e6ITU) are the files. If you copy the .rsc file into templates and overwrite the original one, the mod kit game will be affected. I set the numbers to extreme so itís really obvious when it works (if itís active, a lot of new trees are spawned really quickly in any available areas).

Title: Re: Tree growth
Post by: RedKetchup on May 14, 2018, 10:01:18 PM
ok, gonna go check what you've done :)
Title: Re: Tree growth
Post by: RedKetchup on May 14, 2018, 10:11:53 PM
Hello @Voeille .

i've compiled your mod, took the .pkm and moved it in my game /WinData folder and seems to work perfectly, in matter of just a couple of months at 10X i've got dozens and dozens of new tree spawns. it seems to work OK. did you transfered it in your Game WinData folder and enabled it in your Mods Window before your started a new game ?

If you tried to enable it in a previous saved game, keep in mind, when loading a save game and add a new mod to the save game, you need to go back again in the mod window and re-enable it for that specific save. although, maybe you need to start a totally new game.

see edited picture below
Title: Re: Tree growth
Post by: River on May 15, 2018, 04:19:03 AM
I downloaded your .pkm file, and put it in my game. Wow. I have to use Slink's Lawn, just to keep the growth in check!!

Works like a charm for me! :)
Title: Re: Tree growth
Post by: Voeille on May 15, 2018, 05:40:24 AM
Well, after rebooting my laptop twice because of some unrelated issues I ran the game, disabled the mod, enabled again, and started a new game (with the same file I made yesterday). It seems to work now :) No idea why it didnít before, but Iím glad itís fine, and now Iíll set the values to what I actually wanted. I donít want the trees to grow that fast ;)

Thanks @RedKetchup and @River for checking :)
Title: Re: Tree growth
Post by: Voeille on May 15, 2018, 07:54:18 AM
I decided to share it in the download section, here (http://worldofbanished.com/index.php?action=downloads;sa=view;down=429) :) Does anyone know how to add it to Steam workshop? In Cities Skylines thereís an in-game option, but I donít see anything like that in Banished.
Title: Re: Tree growth
Post by: RedKetchup on May 15, 2018, 08:52:57 AM
thanks you for your share :) very appreciated :)

upload on steam : launch your game, dont start a city yet, go in your mod window. click on the little " _ " of your mod and you will get another window. at the bottom you will see to upload your mod (and side of it, there is also a button to update it when already uploaded a previous version)
Title: Re: Tree growth
Post by: Voeille on May 15, 2018, 09:16:10 AM
@RedKetchup
I donít seem to have those buttons, but I also see that in your screenshot it says version 1.0.7, while mine says beta. I assume I downloaded the wrong mod kit, where can I find one that is not beta?

(https://i.imgur.com/SfmWhew.png)
Title: Re: Tree growth
Post by: RedKetchup on May 15, 2018, 10:07:55 AM
wait, you dont have a steam version ?
Title: Re: Tree growth
Post by: Voeille on May 15, 2018, 10:24:27 AM
@RedKetchup
I do:
(https://i.imgur.com/4nv0m8c.png)

And I have automatic updates enabled. Even if I didnít the game should be the latest, as I got it this year. However, the version number in the mod kit game says beta, so I mustíve found a wrong one when I googled it.
Title: Re: Tree growth
Post by: kid1293 on May 15, 2018, 10:49:42 AM
Here is where I got my modkit. It is the full 1.0.7 version

http://www.shiningrocksoftware.com/
Title: Re: Tree growth
Post by: Voeille on May 15, 2018, 11:10:50 AM
Right, I downloaded the other mod kit version, compiled the mod again, and uploaded to the workshop (can be found here (https://steamcommunity.com/sharedfiles/filedetails/?id=1386704119)). Thanks everyone for the help :) I might need more help if I decide to do something more advanced (I was thinking about adding trees I made for Cities Skylines), but Iíll create another thread for it.
Title: Re: Tree growth
Post by: kid1293 on May 15, 2018, 11:28:42 AM
Already looking forward to it!
 Another tree lover :)