Page 1 of 1
[UPDATED] Customizable/Expanded Alley Tree
Posted: 24 Jul 2023, 07:19
by birdn4t0r
For my first plugin, I decided to make a customizable/expanded version of the alley tree/small park textures.
The purpose of this was mostly for me to practice writing a .JSON and get a better understanding of the general workflow, so it’s not all that “flashy” or anything. It is essentially an expanded version of the alley tree, and has a transparent version, all trees except for the Rainforest trees and Redwoods, and even winter frames! This also includes a decal version so you can plant any tree you want, though the existing frames already support 22 different trees, so I hope you find yourself spoiled for choice!
I wrote the code, positioned the animations using `ian’s “Animation Dev Tool”, and made very slight modifications to Bunny’s tree base to make the winter/beach/transparent versions. Texture credit goes to Lobby&Theo for the trees and small park concrete from the world texture, and
Special Thanks to Bunny from the Discord server for providing me with the blank Small Park base that I used to make this.

- Preview. Town Hall Asphalt is shown only to demonstrate the transparent version, and is not part of the final plugin. Credit to Mg3094066 for decal.
ExpandedAlleyTree_v3.zip
- Supports 1182+. Make sure to delete any old versions before installing this to avoid item duplication or ID collisions.
- (138.19 KiB) Downloaded 438 times
Re: Customizable/Expanded Alley Tree
Posted: 25 Jul 2023, 08:32
by birdn4t0r
Update 24/07/23: Attempted to fix weird texture bug, but it looks like it has more to do with memory usage/performance and the device I’m using to play TheoTown/test the plugin (my cell phone) than the code itself. If anyone has any tips for optimizing my my code, they would be greatly appreciated. Slightly rearranged textures and added ground decal versions.
Re: Customizable/Expanded Alley Tree
Posted: 27 Jul 2023, 05:28
by birdn4t0r
Update 25/07/2023: Nothing much, just rewrote the JSON to reduce code duplication. Still sometimes pulls weird textures in place of the custom base.
Re: Customizable/Expanded Alley Tree
Posted: 30 Jul 2023, 20:43
by birdn4t0r
Update 30/07/2023: New version. Completely redid the file structure of the textures, .json objects, animation defs, and .manifest using JustAnyone's Plugin Creator Website and `ian's Animation Dev Tool. The download is at the top of the thread. Gave everything new IDs, but you should probably still delete the old version to prevent object duplication. Hopefully this will solve the whole "the ground texture turns into pickles" problem.
Re: Customizable/Expanded Alley Tree
Posted: 31 Jul 2023, 05:22
by birdn4t0r
Update
#2 30/07/2023: Did some internal things to try to make the winter frames less buggy. I think I managed to at least fix the "grabbing textures from other plugins" issue. Now onto the "actually grabbing the texture I told it to grab" issue.
Re: [BUGS FIXED!] Customizable/Expanded Alley Tree
Posted: 02 Aug 2023, 08:26
by birdn4t0r
01/08/2023: I FINALLY FIXED THE WINTER FRAMES BUG. I would like to thank JustAnyone for providing their insight into the game's code that allowed me to fix the winter frames bug (it had to do with an oversight related to an oversight that meant that winter frames were incapable of handling some of the newer attributes, such as "copies" and frame stealing, that were created to reduce code duplication…I didn't want to copy-paste the winter frame definitions more than 80 times, but you do what you have to do). I will probably update this as the game progresses, and intend on creating adding a pickle frame to commemorate the legendary pickle bug. Thank you for your patience, the download is in the original post! I also updated the thumbnail, which hilariously accounts for 99% of the storage space. I will probably reduce this in an update at some point.
Re: [UPDATED] Customizable/Expanded Alley Tree
Posted: 17 Sep 2024, 18:34
by birdn4t0r
17/09/2024: Optimized .json to ensure frames load properly.
Re: [UPDATED] Customizable/Expanded Alley Tree
Posted: 25 Sep 2024, 21:00
by birdn4t0r
25/09/2024: Fixed .json for real this time. Delete any old versions you have, this one should appear properly now, without weird things happening with the ground frames when the seasons change! The way I implemented it results in the ground frames not appearing in the toolbar, but it will have the ground frame when it is built.
Re: [UPDATED] Customizable/Expanded Alley Tree
Posted: 26 Sep 2024, 00:09
by KINGTUT10101
Nice work!