[Request] Tree Brush

This is the place to request new mods or give ideas about what could be done.
Post Reply
mkaito
Inserter
Inserter
Posts: 29
Joined: Tue Sep 26, 2017 2:09 am
Contact:

[Request] Tree Brush

Post 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.

User avatar
darkfrei
Smart Inserter
Smart Inserter
Posts: 2903
Joined: Thu Nov 20, 2014 11:11 pm
Contact:

Re: [Request] Tree Brush

Post by darkfrei »

Attachments
2017-11-02 20_54_45.png
2017-11-02 20_54_45.png (87.57 KiB) Viewed 2729 times
TreeBrush_0.0.1.zip
For 0.15
(10.88 KiB) Downloaded 99 times
Last edited by darkfrei on Sat Nov 04, 2017 11:09 am, edited 1 time in total.

mkaito
Inserter
Inserter
Posts: 29
Joined: Tue Sep 26, 2017 2:09 am
Contact:

Re: [Request] Tree Brush

Post 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?

User avatar
darkfrei
Smart Inserter
Smart Inserter
Posts: 2903
Joined: Thu Nov 20, 2014 11:11 pm
Contact:

Re: [Request] Tree Brush

Post 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.

mkaito
Inserter
Inserter
Posts: 29
Joined: Tue Sep 26, 2017 2:09 am
Contact:

Re: [Request] Tree Brush

Post by mkaito »

Duh.

I owe you a pint :D

User avatar
darkfrei
Smart Inserter
Smart Inserter
Posts: 2903
Joined: Thu Nov 20, 2014 11:11 pm
Contact:

Re: [Request] Tree Brush

Post 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.

User avatar
MakeItGraphic
Fast Inserter
Fast Inserter
Posts: 237
Joined: Sat Jan 06, 2018 7:53 am
Contact:

Re: [Request] Tree Brush

Post 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 1854 times
ojq9rswfo1j21.png
ojq9rswfo1j21.png (4.99 MiB) Viewed 1854 times
833ihp4nqtl31.jpg
833ihp4nqtl31.jpg (684.22 KiB) Viewed 1854 times
Current-Map:
Generated_Trees001.PNG
Generated_Trees001.PNG (36.32 KiB) Viewed 1854 times
Generated_Trees003.PNG
Generated_Trees003.PNG (1022.57 KiB) Viewed 1854 times
Generated_Trees002.PNG
Generated_Trees002.PNG (41.89 KiB) Viewed 1854 times
Generated_Trees004.PNG
Generated_Trees004.PNG (1.26 MiB) Viewed 1854 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 1854 times
Hand.Crafted_Trees002.PNG
Hand.Crafted_Trees002.PNG (71.91 KiB) Viewed 1854 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 1854 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.

User avatar
darkfrei
Smart Inserter
Smart Inserter
Posts: 2903
Joined: Thu Nov 20, 2014 11:11 pm
Contact:

Re: [Request] Tree Brush

Post by darkfrei »

Here was the random thing for tree placing: viewtopic.php?t=53762

Post Reply

Return to “Ideas and Requests For Mods”