Cities: Skylines

Cities: Skylines

The Amazing Tree De-Duplicator
43 kommentarer
Zake  [ophavsmand] 8. apr. 2023 kl. 12:00 
Hi folks, I'm still here but won't promise any support of the mod since I didn't write it and its only purpose is a bandaid fix of a relatively rare edge-case. Glad to see it's somehow still working for most of you though, seven years later.
Stxners Music 30. mar. 2023 kl. 17:17 
Anyways good luck with these weight of life's problems
RubyRobbins 26. sep. 2021 kl. 9:42 
This is truly, honestly amazing. Thank you <3
Kuban 3. dec. 2020 kl. 20:57 
It looks like is breaking my game...
got debugged window with tons of problem when I clicked clear I gat never-ending loop of problem, no electricity no water no bus connections and so on.

anyone same problem... or how can I fix this?
Is there any mod that doesn't go along this one?
NoirMoutton 24. dec. 2019 kl. 8:35 
This is an excellent practical mod that should be near the top of workshop rankings!
FortyCS 11. okt. 2019 kl. 17:33 
Could it be that you get duplicate trees when the brush is on full intensity? I figure there are no duplicate trees when I put the brush strenght to zero,
Whiskers of Sheogorath 4. mar. 2019 kl. 5:19 
Any ways to hide the button after you've done with trees? Or at least make it more compact
notDONEyet 6. nov. 2018 kl. 2:21 
this mod should have more stars
Slick Gamble 4. jan. 2018 kl. 0:14 
Still works. Got a map that starts with 900k trees, eliminated almost 10k duplicate trees.
Manuel 1. okt. 2017 kl. 3:19 
ok i worked it out , my problem has something to do with the combination of "extra landscaping tools" and "prop and tree anarchy" . deactivating the ELT while gardening is the solution

Manuel 30. sep. 2017 kl. 14:21 
i just found out that it only has this issue when i click very fast , when i wait a second between placing trees its all fine so i think the problem is my laptop.

prop and tree anarch has no influence on it in my game
Zake  [ophavsmand] 30. sep. 2017 kl. 12:21 
Idk as far as removing the duplicated trees. But through my gameplay it seems like stacks of trees get placed if you have anarchy on.
Manuel 30. sep. 2017 kl. 12:09 
it didnt work with my game , it took like 5 seconds (im just starting filling parks etc. got like 1600 trees ) the mod told me it removed like 1000 duplicated trees . But when i bulldoze bushes then
there is still 5 in one

any suggestions ?
AquilaSol 18. maj 2017 kl. 11:35 
Works with 1.7.0 and Mass Transit DLC on my system. :) It does freeze for about +-30 seconds, but that makes perfect sense.
funchenstein 2. apr. 2017 kl. 21:06 
Thank you for a lifesaving mod! Just discovered it. 36395 duplicated trees removed :D
Baleur 16. jan. 2017 kl. 21:34 
Please please make a draggable button. Its overlapping everything =(
I AM BORG 9. maj 2016 kl. 0:01 
@knighthawkGP
It didn't work .... trees are still there after pressing De-Duplicate button.
knighthawkGP 8. maj 2016 kl. 11:32 
@I AM Borg
Run it with it enabled (if the map uses it).
I AM BORG 7. maj 2016 kl. 23:32 
@Zake

Should I run this mod and apply it with or without the Unlimited Trees mod subscribed to.
Zake  [ophavsmand] 20. apr. 2016 kl. 15:51 
I can try to do that by adapting code from the traffic report tool button, but I won't be able to do that for at least the next couple weeks, as I'm finishing my last semester at college.

As far as I know, this mod wasn't really intended to be a permanent addition to the game, just a quick install-run-uninstall sort of utility. That said, there's no reason it should be hard to use.
GordonDry 20. apr. 2016 kl. 3:50 
You could make it a round button with an icon and draggable by right-click and saving the position.
Zake  [ophavsmand] 19. apr. 2016 kl. 18:17 
Should I move it again? Maybe I should put it in the upper right to make conflicts less likely?
GordonDry 19. apr. 2016 kl. 7:57 
The button position really starts going on my nerves.
Zake  [ophavsmand] 28. mar. 2016 kl. 13:42 
@eighthsin, I have the same problem on one of my maps, haven't found a solution yet.
eighthsin 28. mar. 2016 kl. 6:29 
Mod deduplicates trees, but after saving, trees rededuplicate. Not sure why the reoccurrence but it improves frame rate at least.
Baleur 24. feb. 2016 kl. 14:29 
Great mod, already have it from the reddit though :)
knighthawkGP 22. feb. 2016 kl. 22:14 
@Warchief why don't you upload\pubish the map you have that has the problem along with the output_log.txt and full* list of all mods used on the map, I'll take a look, I'd like to have a sample of one of these saves.
Warchief 22. feb. 2016 kl. 19:33 
yeh, hope they fix it soon, should not have to have a mod for a dam bug =(
Zake  [ophavsmand] 22. feb. 2016 kl. 18:12 
Yeah idk sorry :( Best I can say is post an output_log.txt in that reddit thread so the guy who wrote this can see it. I can look at it too and see what I can find but I don't have the time to delve into debugging.
Warchief 22. feb. 2016 kl. 12:28 
sorry for all the fuss, just want to get this sorted, my trees glich and flicker all the time, i started to do myself it was peeeing my off so much lol, but takes for ever, theres like 20+ trees ontop of allmost every tree lol.
Warchief 22. feb. 2016 kl. 12:23 
Amd Phenom 2 (6cores) 16gb ram and 4g gtx 960 G-card, and yes it crash as soon as i pree botton. i left it crashed for about 10mins while i went to make a sandwich and tea, nothing happen, i restarted the game and it did the same =(
Zake  [ophavsmand] 22. feb. 2016 kl. 12:19 
hmm. hard to say. Where does it crash, is it right after pressing the button? Have you tried letting it sit for a little while? Sometimes when a program works really hard it stops responding and then comes back; mine does that just loading the game.

What are your specs, do you have a good CPU?
Warchief 22. feb. 2016 kl. 0:25 
i have done what you said Zake, but the game just crash, says program not responding and my screen goes white?
knighthawkGP 21. feb. 2016 kl. 11:16 
Thanks for that update. As for the draggble button I've not done one all by itself (but as part of window) I think you could just create a UIDragHandle and assign it's target as the button object in question. UIDragHandle m_DragHandler; m_DragHandler = ui.AddUIComponent<UIDragHandle>(); m_DragHandler.target = button;
Zake  [ophavsmand] 21. feb. 2016 kl. 10:32 
Fixed!
Zake  [ophavsmand] 21. feb. 2016 kl. 10:09 
Whoops! Current version crashes the game. I think I messed up the folder hierarchy. Working on fixing it.
Zake  [ophavsmand] 21. feb. 2016 kl. 9:58 
@knighthawkGP I actually just found that on my own as well. Moved the button just slightly down, to (-1.8, 0.9). Now teaching myself how to update a workshop file.

As for support, I'll merge any changes, and if you want I'll even upload to Github if there's a desire. I have a basic programming background but I've never worked with C#, and I'm using Notepad++ to update this :)

I haven't the slightest clue how to get the draggable button but I assume it would be a matter of copying another mod's code.
knighthawkGP 21. feb. 2016 kl. 9:33 
Glad to see someone added this to the workshop for those that run into the problem.
Also a related thread on reddit.
https://www.reddit.com/r/CitiesSkylines/comments/3wwxg8/game_save_loads_every_possible_instance_of_each/

If anyone has a problem with gui's overlaping, adjusting the button position offset will probably help. Just tweak the button.transformPosition = new Vector3(-1.65f, 0.97f); line.
Zake  [ophavsmand] 21. feb. 2016 kl. 9:07 
Sorry to be totally unhelpful but you'll likely get more help at the posted reddit thread.

@Warchief Load the save with the mod enabled, then click the button on the top left when you're ready. Probably best to pause your game so it's not doing too many things at once.
@GordonDry I had the same trouble. I'll mention it but as this is meant to be a quick one-time use, it should only get in the way for the short time you need it. That is... I hope duplicating trees isn't a recurring issue...
GordonDry 21. feb. 2016 kl. 2:44 
Could you please change the button to a draggable round icon?
Or at least change the position, now it overlaps the TM:PE button.
Warchief 21. feb. 2016 kl. 2:16 
it gets rid of them instantly when i load a game? or it deletes them over time untill all are gone?
Warchief 21. feb. 2016 kl. 2:09 
This mod has not worked for me ? i still have the same problem. can i use it on an old saved city? still have loads of glitching flickering trees with 10s-100s of trees in the same spot. seems to be random how many are there.
xt1014 20. feb. 2016 kl. 22:58 
thx, finally