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

Topics and discussion about specific mods
skomick
Burner Inserter
Burner Inserter
Posts: 19
Joined: Wed Sep 24, 2014 1:33 am
Contact:

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

Post 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 19442 times
With this mod, no problem:
modded.png
modded.png (329.78 KiB) Viewed 19442 times
Downloads for 0.13 here:
tree_collision_0.3.0.zip
trees have very small collision box only
(786 Bytes) Downloaded 616 times
tree_collision_health_0.2.0.zip
trees have very small collision box and very little health
(862 Bytes) Downloaded 299 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 256 times
tree_collision_health_0.1.0.zip
small collision box and low health
(853 Bytes) Downloaded 233 times
Last edited by skomick on Thu Dec 14, 2017 1:06 am, edited 22 times in total.
Koub
Global Moderator
Global Moderator
Posts: 7918
Joined: Fri May 30, 2014 8:54 am
Contact:

Re: Tree Collision Box - easy passage

Post by Koub »

Won't it make the trees hard to mine ?
Koub - Please consider English is not my native language.
skomick
Burner Inserter
Burner Inserter
Posts: 19
Joined: Wed Sep 24, 2014 1:33 am
Contact:

Re: Tree Collision Box - easy passage

Post 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!
Koub
Global Moderator
Global Moderator
Posts: 7918
Joined: Fri May 30, 2014 8:54 am
Contact:

Re: Tree Collision Box - easy passage

Post by Koub »

Totally neat :)
Koub - Please consider English is not my native language.
skomick
Burner Inserter
Burner Inserter
Posts: 19
Joined: Wed Sep 24, 2014 1:33 am
Contact:

Re: Tree Collision Box - easy passage

Post by skomick »

Koub wrote:Totally neat :)
Thanks! Original post edited for clarity regarding mining/shooting/poisoning/deconstruction.
User avatar
L0771
Filter Inserter
Filter Inserter
Posts: 516
Joined: Tue Jan 14, 2014 1:51 pm
Contact:

Re: Tree Collision Box - easy passage

Post 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
skomick
Burner Inserter
Burner Inserter
Posts: 19
Joined: Wed Sep 24, 2014 1:33 am
Contact:

Re: Tree Collision Box - easy passage

Post 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!
User avatar
L0771
Filter Inserter
Filter Inserter
Posts: 516
Joined: Tue Jan 14, 2014 1:51 pm
Contact:

Re: Tree Collision Box - easy passage

Post 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.
skomick
Burner Inserter
Burner Inserter
Posts: 19
Joined: Wed Sep 24, 2014 1:33 am
Contact:

Re: Tree Collision Box - easy passage

Post 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.
User avatar
Xterminator
Filter Inserter
Filter Inserter
Posts: 981
Joined: Sun Jun 15, 2014 4:49 pm
Contact:

Re: Tree Collision Box - easy passage

Post 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. :)
Image Image Image
Pandemoneus
Fast Inserter
Fast Inserter
Posts: 127
Joined: Fri May 08, 2015 2:25 pm
Contact:

Re: Tree Collision Box - easy passage

Post by Pandemoneus »

I love it as well, thanks for the mod. ;)
My RSO+Bob's+Angel's modpack: Farlands (outdated)
Mods (current): Resource Labels
Mods (old): Biter Spires
wahming
Fast Inserter
Fast Inserter
Posts: 192
Joined: Sun May 17, 2015 8:30 pm
Contact:

Re: Tree Collision Box - easy passage

Post by wahming »

Absolutely loving it!
skomick
Burner Inserter
Burner Inserter
Posts: 19
Joined: Wed Sep 24, 2014 1:33 am
Contact:

Re: Tree Collision Box - easy passage

Post 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
skomick
Burner Inserter
Burner Inserter
Posts: 19
Joined: Wed Sep 24, 2014 1:33 am
Contact:

Re: Tree Collision Box - easy passage

Post by skomick »

Pandemoneus wrote:I love it as well, thanks for the mod. ;)
wahming wrote:Absolutely loving it!
Loving the feedback, thanks guys!
skomick
Burner Inserter
Burner Inserter
Posts: 19
Joined: Wed Sep 24, 2014 1:33 am
Contact:

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

Post 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.
Nafen
Burner Inserter
Burner Inserter
Posts: 16
Joined: Wed Jun 10, 2015 2:53 pm
Contact:

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

Post 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!
Talguy
Fast Inserter
Fast Inserter
Posts: 105
Joined: Tue Apr 29, 2014 8:54 pm
Contact:

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

Post 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.
skomick
Burner Inserter
Burner Inserter
Posts: 19
Joined: Wed Sep 24, 2014 1:33 am
Contact:

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

Post 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.
Wyrm
Long Handed Inserter
Long Handed Inserter
Posts: 55
Joined: Fri Jan 30, 2015 3:56 am
Contact:

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

Post 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.
User avatar
ssilk
Global Moderator
Global Moderator
Posts: 12889
Joined: Tue Apr 16, 2013 10:35 pm
Contact:

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

Post 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 ....
Cool suggestion: Eatable MOUSE-pointers.
Have you used the Advanced Search today?
Need help, question? FAQ - Wiki - Forum help
I still like small signatures...
Post Reply

Return to “Mods”