[DEPRECATED] Tree Anarchy 1.3.6

If you liked this item, please rate it up on Steam Workshop page.

Authors: Quistar, Chamëleon TBN

Last revision: 3 Dec, 2022 at 23:16 UTC (17)

File size: 283.65 KB

On Steam Workshop

Description:
UNSUBSCRIBE this Mod and use algernon’s version instead!


Tree Anarchy (AKA Unlimited Trees: Reboot) is a complete rewrite of the original Unlimited Trees Mod, taking out code bloats, fixing bugs, and streamlining the serialization process. The concept of the framework is almost the same as the original mod, and I wouldn’t have been able to write this code this fast without the original Unlimited Trees mod. Appreciation goes to: Knighth[github.com] BloodyPenguin[github.com] DRen72

如需看中文的玩家,請在討論區看中文解説。主畫面文字已經夠多的了,我不想在主畫面長篇大論。

IMPORTANT!!
Before you consider using this mod, please be aware that this mod will unhide the trees below your roads and buildings. I did this to simplify the algorithm so performance can be better.
If you have problem creating forestry resources, no matter if Lock Forestry is unlocked, it is most likely a mod that killed the game’s ability to create forestry resources. I have not yet pinpointed which mod yet, but if you found it, please share your information.

If you move over from the old mod Prop&Tree Anarchy in an existing save mod you need to save your city and then reload! Ignore the error message that will appear at the first load! If you used Unlimited Tree Mod before on a save, you’ll need to delete all trees on the map (e.g. with Move it marquee tool) and paint afterwards new ones (e.g. with forest brush).

Version 1.3.6
Bugfixes

  • Bringing this mod up to date with Cities version 1.15

Reasons why I rewrote the codes:

  1. To fix the issue of Tree Snapping functionality in original Unlimited Trees mod
  2. I did not want to use Tree and Vehicle Prop mod, which creates even more props than my system can handle
  3. To fix the performance issues with the original mod
  4. To fix the ULOD incompatibility problems with the original mod
  5. To fix the forestry natural resources not being created issues.
  6. To use Harmony patch instead of Detours
  7. To increase optimization because I have a slow PC

What this mod provides:

  1. You can plant more than 262144 trees, with the limit adjusted by a slider like the old mod
  2. Loading of old Unlimited Trees mod saved games/maps (Important! to read some issues)
  3. Tree Snapping is provided in this mod.
  4. Resizing trees beyond the game limit
  5. Random Tree rotation is provided in this mod.
  6. Lock Forestry function is provided in this mod
  7. Tree LOD adjustment during runtime

Why re-write Tree Snapping mod and Random Tree rotation mod?

  • I took a different approach to realize the tree snapping functionality, by utilizing what CO has already built-in to the framework.
  • Random Tree Rotation and its variants adds a Eular Math function in the rendering function for each tree, so the more trees you have on your screen, the slower the rendering is. My method is to pre-calculate the Eular Quaternions from 0~360 degrees, and to have Render Instance call these static values between 0~360. Tree swaying factor can now be adjusted during runtime.
  • Lock Forestry is a different story, and since it has to do with trees and it was just a few lines of codes, and I didn’t want to load another mod when a few lines would solve my problem, which can prevent me loading another mod saving some system resources

Most importantly, the reason why I wrote these functions all into one mod, is that its pretty obvious all these functions are related to trees, and a lot of them involve patching the same method calls within the CO framework. Writing them into one mod simplifies dependency issues, whereas if I had written them independently, I would have had to deal with all the dependency spaghetti issues, which would likely result in a poorly designed mod. Simple is best! and ensures that I can optimize the codes in a controlled environment.

This mod is incompatible with:

If you wish to contribute in translating this mod to your native language, please reference my CrowdIn[crowdin.com] site to see how. Your contribution will be greatly appreciated!
Source code: GitHub Page [github.com]

For the many folks who have helped translate this mod, I really appreciate their efforts and I’d like to acknowledge them here:

Lastly, please support me with:
[www.patreon.com]

Tree Anarchy logo contributed by Mbyron26