Page 1 of 1

[Request] Tree Brush

Posted: Thu Nov 02, 2017 3:26 am
by mkaito
I'd like a way to place trees in an area around the cursor using random distribution, essentially like a brush or spray tool from MS Paint.

My motivation is mostly aesthetic, as I really like my trains to drive through trees, and my stations and bases to be surrounded by trees. However, in the process of building things, you kind of have to get rid of them, since they are in the way. But once you're done building, getting trees back in a way that looks like a natural forest is extremely hard.

Re: [Request] Tree Brush

Posted: Thu Nov 02, 2017 8:00 pm
by darkfrei

Re: [Request] Tree Brush

Posted: Fri Nov 03, 2017 3:24 am
by mkaito
I really like the way this works. Build time and cost seem perfect. One tree for one tree. I can look into other mods to get "more" trees.

Just one thing. Any chance you get it to continue placing while mouse button is held down?

Re: [Request] Tree Brush

Posted: Fri Nov 03, 2017 7:17 am
by darkfrei
mkaito wrote:I really like the way this works. Build time and cost seem perfect. One tree for one tree. I can look into other mods to get "more" trees.

Just one thing. Any chance you get it to continue placing while mouse button is held down?
Move the mouse.

Re: [Request] Tree Brush

Posted: Fri Nov 03, 2017 8:21 am
by mkaito
Duh.

I owe you a pint :D

Re: [Request] Tree Brush

Posted: Fri Nov 03, 2017 11:27 am
by darkfrei
mkaito wrote:Duh.

I owe you a pint :D
It was interesting idea and almost all code was complete by my another mod. https://mods.factorio.com/mods/darkfrei/Shift_Tool

Just rename handler, add random for radius and angle, proof if it possible to place and place the entity.

Re: [Request] Tree Brush

Posted: Thu Mar 05, 2020 9:52 pm
by MakeItGraphic
Does this randomize the tree type when placed?

Trying to figure out to make forest.

From Various-Maps:
u6ry7x6f8ko21.jpg
u6ry7x6f8ko21.jpg (4.66 MiB) Viewed 2193 times
ojq9rswfo1j21.png
ojq9rswfo1j21.png (4.99 MiB) Viewed 2193 times
833ihp4nqtl31.jpg
833ihp4nqtl31.jpg (684.22 KiB) Viewed 2193 times
Current-Map:
Generated_Trees001.PNG
Generated_Trees001.PNG (36.32 KiB) Viewed 2193 times
Generated_Trees003.PNG
Generated_Trees003.PNG (1022.57 KiB) Viewed 2193 times
Generated_Trees002.PNG
Generated_Trees002.PNG (41.89 KiB) Viewed 2193 times
Generated_Trees004.PNG
Generated_Trees004.PNG (1.26 MiB) Viewed 2193 times
Hand-Crafted:

Dragging them is the fastest but it looks like a little kid colored on the map. Place them one by one is the most accurate. But based on how the map generator groups different types, and accounts for variation of densities is still largely inaccurate.
Hand.Crafted_Trees001.PNG
Hand.Crafted_Trees001.PNG (748.86 KiB) Viewed 2193 times
Hand.Crafted_Trees002.PNG
Hand.Crafted_Trees002.PNG (71.91 KiB) Viewed 2193 times
Rather then a brush tool is it possible to place trees like tiles. Eg.

Forest Type I - Low Density
Forest Type I - Medium Density
Forest Type I - High Density

Obviously a slider would be the most accurate way to account for density but I don't think it's possible in base game. But through tiling I would think it possible. Default tile to x amount of squares.
Tree_Sizes.PNG
Tree_Sizes.PNG (781.18 KiB) Viewed 2193 times
I all so just realized trees can stack. The way the sprites are they seem to join together to form bigger trees. So I guess that would all so be a factor.

Trying to do it by hand to accurately represent the map generated forest/treed areas is tedious at best.

Your mod was the only thing that popped up related to this concept.

Re: [Request] Tree Brush

Posted: Thu Mar 05, 2020 10:20 pm
by darkfrei
Here was the random thing for tree placing: viewtopic.php?t=53762