Page 1 of 2

[MOD 0.16.x to 0.13.x] Tree Collision Box - easy passage

Posted: Sat May 16, 2015 4:17 am
by skomick
This very simple mod changes the collision box of trees to very small. Made to pass through dense forests very easily.

Updated for Factorio 0.16
Download at the Factorio Mod Portal (or download for 0.13 or 0.12 below)

Check out the spotlight by Xterminator here: https://www.youtube.com/watch?v=24xp7ZhjCGg

I've tested mining, shooting*, poisoning, and deconstruction. All remain the same as the normal trees.
*I've not tested the shotgun, but apparently it's more difficult to hit the modded trees with it.

There is also a version which lowers the max health of trees to 1 making it easier to clear trees without partially "injured" trees having those somewhat annoying healthbars. (As of 0.14, these low health trees will no longer be maintained.)

Keep in mind, biters will pass by the trees just as easily. Worth it for me though!

This character will have a hard time heading northwards (red boxes are the collision boxes):
no-mod.png
no-mod.png (333.79 KiB) Viewed 19327 times
With this mod, no problem:
modded.png
modded.png (329.78 KiB) Viewed 19327 times
Downloads for 0.13 here:
tree_collision_0.3.0.zip
trees have very small collision box only
(786 Bytes) Downloaded 612 times
tree_collision_health_0.2.0.zip
trees have very small collision box and very little health
(862 Bytes) Downloaded 294 times
tree_collision changelog:
v.0.1.0 Original
v.0.2.0 Optimized code (thanks to L0771) and allows compatibility for Cursed-Exp mod
v.0.3.0 Updated for .13 and allows complete compatibility for all mods with modded trees thanks to Hexicube

tree_collision_health changelog:
v.0.1.0 tree collision mod plus low health
v.0.2.0 Updated for .13 and allows complete compatibility for all mods with modded trees

Old downloads for .12:
tree_collision_0.2.0.zip
small collision box only
(777 Bytes) Downloaded 251 times
tree_collision_health_0.1.0.zip
small collision box and low health
(853 Bytes) Downloaded 225 times

Re: Tree Collision Box - easy passage

Posted: Sat May 16, 2015 5:23 am
by Koub
Won't it make the trees hard to mine ?

Re: Tree Collision Box - easy passage

Posted: Sat May 16, 2015 5:30 am
by skomick
Koub wrote:Won't it make the trees hard to mine ?
I believe mining uses the selection box (which is unchanged), not the collision box. In any case I tested mining and it works the same as the unmodded trees.
Thanks for the question! All other questions/comments are welcome!

Re: Tree Collision Box - easy passage

Posted: Sat May 16, 2015 5:44 am
by Koub
Totally neat :)

Re: Tree Collision Box - easy passage

Posted: Sat May 16, 2015 6:46 am
by skomick
Koub wrote:Totally neat :)
Thanks! Original post edited for clarity regarding mining/shooting/poisoning/deconstruction.

Re: Tree Collision Box - easy passage

Posted: Sat May 16, 2015 6:52 am
by L0771
i think with only this on data.lua do the same and has more compatibility with all mods :)

Code: Select all

for _,tree in pairs(data.raw["tree"]) do
	tree.collision_box = {{-0.05, -0.05}, {0.05, 0.05}}
end

Re: Tree Collision Box - easy passage

Posted: Sat May 16, 2015 6:54 am
by skomick
L0771 wrote:i think with only this on data.lua do the same and has more compatibility with all mods :)

Code: Select all

for _,tree in pairs(data.raw["tree"]) do
	tree.collision_box = {{-0.05, -0.05}, {0.05, 0.05}}
end
Cool, I'll check that immediately, thanks!

Re: Tree Collision Box - easy passage

Posted: Sat May 16, 2015 7:00 am
by L0771
np sr, if you want, please add a dependency to cursed to make my trees skinny too ;)
"dependencies": ["base","? Cursed-Exp"]

And nice mod.

Re: Tree Collision Box - easy passage

Posted: Sat May 16, 2015 7:25 am
by skomick
L0771 wrote:np sr, if you want, please add a dependency to cursed to make my trees skinny too ;)
"dependencies": ["base","? Cursed-Exp"]

And nice mod.
Thank you! I thought there might be a way to do that. Works perfectly. Cursed-Exp added.

Re: Tree Collision Box - easy passage

Posted: Sun May 17, 2015 5:37 pm
by Xterminator
This is awesome! I love these kind of mods that are really simple but fix big problems etc. Walking through forests (especially while being chased by biters) is a huge pin normally. So definitely using your mod! I am thinking of doing a mod spotlight on it, if you don't mind. :)

Re: Tree Collision Box - easy passage

Posted: Sun May 17, 2015 6:27 pm
by Pandemoneus
I love it as well, thanks for the mod. ;)

Re: Tree Collision Box - easy passage

Posted: Mon May 18, 2015 8:22 am
by wahming
Absolutely loving it!

Re: Tree Collision Box - easy passage

Posted: Tue May 19, 2015 1:56 pm
by skomick
Xterminator wrote:This is awesome! I love these kind of mods that are really simple but fix big problems etc. Walking through forests (especially while being chased by biters) is a huge pin normally. So definitely using your mod! I am thinking of doing a mod spotlight on it, if you don't mind. :)
Love your vids Xterminator! I absolutely don't mind, please do in fact! Thanks! :D

Re: Tree Collision Box - easy passage

Posted: Tue May 19, 2015 1:58 pm
by skomick
Pandemoneus wrote:I love it as well, thanks for the mod. ;)
wahming wrote:Absolutely loving it!
Loving the feedback, thanks guys!

Re: Tree Collision Box - easy passage (optionally low health)

Posted: Wed May 20, 2015 12:54 pm
by skomick
Hey everyone, I added an alternative download (v0.3) which includes the original mod (v0.2) with the addition of lowering the tree max health to 1. Mining remains the same. This makes the early game easier to shoot the trees if you desire. One shot kill, as it were. Finally a real use for that pea shooter nobody uses! And no annoying tree health bars!

Link is in OP.

Re: Tree Collision Box - easy passage (optionally low health)

Posted: Tue Jun 23, 2015 12:13 am
by Nafen
Dude, this is one of the biggest life-changing mods I've played with. It makes my brain hurt a lot less while playing, thanks! Definitely needs more love!

Re: Tree Collision Box - easy passage (optionally low health)

Posted: Wed Jun 24, 2015 4:07 pm
by Talguy
Noe that this mod does mess with trees that are near train rails. Trains are often giving me the no path error. Be sure to shotgun / deconstruct the trees / use FARL when you are placing rails.

Re: Tree Collision Box - easy passage (optionally low health)

Posted: Thu Jun 25, 2015 4:30 pm
by skomick
Talguy wrote:Noe that this mod does mess with trees that are near train rails. Trains are often giving me the no path error. Be sure to shotgun / deconstruct the trees / use FARL when you are placing rails.
Thanks for the observation, Talguy. I don't think there's an easy way to work around this issue. So, yeah, if you're getting a "no path" error with this mod installed, there's a goood chance there's a tree or two in the way.
Nafen wrote:Dude, this is one of the biggest life-changing mods I've played with. It makes my brain hurt a lot less while playing, thanks! Definitely needs more love!
Thanks Nafen! Glad it helps.

Re: Tree Collision Box - easy passage (optionally low health)

Posted: Fri Jun 26, 2015 12:32 am
by Wyrm
I'm loving this mod! Forests were always a nightmare to navigate through on foot (and I do a lot of running through forests on foot), but this makes things really much easier.

Re: Tree Collision Box - easy passage (optionally low health)

Posted: Sun Jul 26, 2015 11:40 am
by ssilk
Moved it to 0.12 due to authors request.

I want to point to https://forums.factorio.com/forum/vie ... f=89&t=947 , #3.

In this special case (we have splitted the board between 0.11 and 0.12) I suggest: [0.11.x 0.12.x] Tree Collision ....