Hostile Trees


Makes trees hate you and your factory. They will do bad things to you and your factory.

Tweaks
2 months ago
1.1
232
Enemies Environment

b Conflict with 2 other mods

2 months ago

When this mod is enabled:
- Careful Driver fails with message "cars-in-void.lua:161: attempt to perform arithmetic on field 'line_length' (a nil value)". This line in the code appears to refer to a RotatedAnimation, although I can find no reference in your code to a RotatedAnimation or any parent class. Perhaps the property needs to be defined somewhere it's currently absent?
- Imperfect Engineer fails with message "data-updates.lua:34: attempt to index field 'minable' (a nil value)". This line in the code refers to electric poles, which I assume means you need a "minable" property added to your electric tree code in electricity.lua?

(Forgive me if my amateur Lua stack tracing skills and/or Factorio prototype doc research has led my initial debug diagnoses astray a bit).

I've played this mod a bit on its own and it's VERY funny! Hope to see it without conflicts soon!

2 months ago

In terms of cars, there are some "cars" that pretend to be trees for some game mechanics, maybe that's the cause. The game itself is fine with me making a "car" without a rotated animation, so sounds like the other mod should handle it.
Electric trees are intentionally not mineable since you shouldn't be able to just grab an electric tree like this. Dunno why it triggers the mod. I'll investigate on weekend.

2 months ago
(updated 2 months ago)

Awesome, thank you for the quick response! The Careful Driver author doesn't appear to be maintaining their mods anymore, so I'll just have to go without that one.

2 months ago

Actually, scratch this request - it turns out the problem is in Imperfect Engineer, which does not check to see if certain entities can be mined before altering their mining times. Adding a check within that mod's data-updates.lua fixes the conflict (with both Hostile Trees and some other mods I discovered). I have notified the author.

New response