Treeees


Let the trees on your map spread over time similar to real vegetation

Content
3 years ago
0.17 - 1.1
13.4K
Environment

g [done] Crash shortly after startup

4 years ago

Got the following crash in 1.1.6 shortly after startup:

The mod Treeees (4.1.0) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event Trees::on_tick (ID 0)
Trees/lib/peak.lua:82: attempt to index local 'object' (a nil value)
stack traceback:
Trees/lib/peak.lua:82: in function <Trees/lib/peak.lua:79>
(...tail calls...)
Trees/lib/peak.lua:158: in function <Trees/lib/peak.lua:157>
(...tail calls...)
Trees/control.lua:159: in function 'grow_seed'
Trees/control.lua:183: in function 'spawn_tree'
Trees/control.lua:232: in function 'update_trees_on_all_surfaces'
Trees/control.lua:238: in function <Trees/control.lua:237>

4 years ago

Same here.

4 years ago

fixed.

looks like you have trees without an autoplace specification.
in vanilla every tree has such a thing, even the dead ones.
which mods do you use?

4 years ago

Probably Krastorio 2? The issue appeared after I planted trees manually.

4 years ago

Nope, Krastorio doens't touch trees, i looked through the code :P
Just discovered that alien biomes is removing autoplacement from all known trees before it adds its own trees, so these trees wont grow.
Anyway ... fixed in 4.1.1 ;)

4 years ago

Ah I see, I was using that mod as well. Thanks for the prompt fix. =)

4 years ago

Similar scenario, possibly with Bio Industries.

4 years ago

Hi,

do you have more information, like game version, mod version in use and a log or stack trace?

Regards,

-max2344

4 years ago

I got the info for you.
1.1.6, mod version 4.1.5, stack trace:
Trees/data-final-fixes.lua:23: attempt to perform arithmetic on local 'w' (a nil value)
stack traceback:
Trees/data-final-fixes.lua:23: in function 'dimension'
Trees/data-final-fixes.lua:38: in function 'is_lying'
Trees/data-final-fixes.lua:56: in function 'f'
Trees/data-final-fixes.lua:13: in function 'layer_fmap'
Trees/data-final-fixes.lua:55: in function 'get_lying_tree_indexes'
Trees/data-final-fixes.lua:74: in main chunk

4 years ago

Thanks!

fixed in 4.1.6 :)

4 years ago

All that did is change some of the line numbers of the faulty lines. Is 'w' used elsewhere in a different way? If not, try making it a global variable if it is possible.
1.1.6, mod version 4.1.6, stack trace:
Trees/data-final-fixes.lua:27: attempt to perform arithmetic on local 'w' (a nil value)
stack traceback:
Trees/data-final-fixes.lua:27: in function 'dimension'
Trees/data-final-fixes.lua:42: in function 'is_lying'
Trees/data-final-fixes.lua:60: in function 'f'
Trees/data-final-fixes.lua:13: in function 'layer_fmap'
Trees/data-final-fixes.lua:59: in function 'get_lying_tree_indexes'
Trees/data-final-fixes.lua:78: in main chunk

4 years ago
(updated 4 years ago)

Hi,

could you please provide a list of mods you've got installed so we can reproduce this?

Regards,

-max2344

4 years ago

{
"mods":
[

{
  "name": "base",
  "enabled": true
},

{
  "name": "5dim_automation",
  "enabled": true
},

{
  "name": "5dim_battlefield",
  "enabled": true
},

{
  "name": "5dim_compatibility",
  "enabled": true
},

{
  "name": "5dim_core",
  "enabled": true
},

{
  "name": "5dim_decoration",
  "enabled": true
},

{
  "name": "5dim_enemies",
  "enabled": true
},

{
  "name": "5dim_energy",
  "enabled": true
},

{
  "name": "5dim_equipment",
  "enabled": true
},

{
  "name": "5dim_infiniteresearch",
  "enabled": true
},

{
  "name": "5dim_logistic",
  "enabled": true
},

{
  "name": "5dim_mining",
  "enabled": true
},

{
  "name": "5dim_module",
  "enabled": true
},

{
  "name": "5dim_nuclear",
  "enabled": true
},

{
  "name": "5dim_resources",
  "enabled": true
},

{
  "name": "5dim_storage",
  "enabled": true
},

{
  "name": "5dim_trains",
  "enabled": true
},

{
  "name": "5dim_transport",
  "enabled": true
},

{
  "name": "angelsinfiniteores",
  "enabled": true
},

{
  "name": "Arborium_Renewed",
  "enabled": false
},

{
  "name": "assemblyanalyst",
  "enabled": true
},

{
  "name": "automatic-belt-direction",
  "enabled": true
},

{
  "name": "Better-Power-Armor-Grid",
  "enabled": false
},

{
  "name": "Bio_Industries",
  "enabled": true
},

{
  "name": "biterproof",
  "enabled": true
},

{
  "name": "biter_factions",
  "enabled": true
},

{
  "name": "bobinserters",
  "enabled": true
},

{
  "name": "burner-fuel-bonus",
  "enabled": true
},

{
  "name": "crafting_combinator",
  "enabled": true
},

{
  "name": "creative-mod",
  "enabled": false
},

{
  "name": "CreativeItems",
  "enabled": false
},

{
  "name": "deep-underground-belt",
  "enabled": true
},

{
  "name": "electricboiler",
  "enabled": true
},

{
  "name": "EnableResearchQueue",
  "enabled": true
},

{
  "name": "Enemy_Loot_Drops",
  "enabled": true
},

{
  "name": "ev-mining-drills",
  "enabled": false
},

{
  "name": "ev-personal-defence",
  "enabled": false
},

{
  "name": "ev-refining",
  "enabled": false
},

{
  "name": "even-distribution",
  "enabled": true
},

{
  "name": "extended-research-system",
  "enabled": false
},

{
  "name": "factoryplanner",
  "enabled": true
},

{
  "name": "flib",
  "enabled": true
},

{
  "name": "floating-damage-text",
  "enabled": true
},

{
  "name": "FNEI",
  "enabled": true
},

{
  "name": "FreeCable",
  "enabled": false
},

{
  "name": "InfiniteResearchSupply_MK2",
  "enabled": true
},

{
  "name": "infinitycorpeslive",
  "enabled": true
},

{
  "name": "InserterFuelLeech",
  "enabled": true
},

{
  "name": "Inventory Sensor",
  "enabled": true
},

{
  "name": "LinkedBelts",
  "enabled": true
},

{
  "name": "Long Inserters",
  "enabled": true
},

{
  "name": "Long-Underground-Belts",
  "enabled": true
},

{
  "name": "MathCoProcessor",
  "enabled": true
},

{
  "name": "Mobile_Factory",
  "enabled": true
},

{
  "name": "Mobile_Factory_Graphics",
  "enabled": true
},

{
  "name": "More-Exoskeletons",
  "enabled": false
},

{
  "name": "more-fusion-reactors",
  "enabled": false
},

{
  "name": "omnilib",
  "enabled": false
},

{
  "name": "omnimatter",
  "enabled": false
},

{
  "name": "omnimatter_move",
  "enabled": false
},

{
  "name": "omnimatter_permutation",
  "enabled": false
},

{
  "name": "omnimatter_water",
  "enabled": false
},

{
  "name": "omnimatter_wood",
  "enabled": false
},

{
  "name": "Orphan Finder",
  "enabled": true
},

{
  "name": "Personal-Roboport-Mk3",
  "enabled": false
},

{
  "name": "power-combinator",
  "enabled": true
},

{
  "name": "RealisticFusionPower",
  "enabled": true
},

{
  "name": "RealisticFusionWeaponry",
  "enabled": true
},

{
  "name": "RecExplo",
  "enabled": false
},

{
  "name": "rusty-locale",
  "enabled": true
},

{
  "name": "SchallAlienLoot",
  "enabled": true
},

{
  "name": "SchallInserters",
  "enabled": true
},

{
  "name": "ScienceCostTweakerM",
  "enabled": false
},

{
  "name": "show-max-underground-distance",
  "enabled": true
},

{
  "name": "SmogVisualPollution",
  "enabled": true
},

{
  "name": "sonaxaton-research-queue",
  "enabled": true
},

{
  "name": "SpaceMod",
  "enabled": true
},

{
  "name": "stdlib",
  "enabled": true
},

{
  "name": "super-generous-recipes",
  "enabled": false
},

{
  "name": "Trees",
  "enabled": false
},

{
  "name": "True-Nukes",
  "enabled": true
},

{
  "name": "utility-combinators",
  "enabled": true
},

{
  "name": "utility-combinators-plus",
  "enabled": true
},

{
  "name": "void-miners",
  "enabled": true
},

{
  "name": "WireShortcuts",
  "enabled": true
}

]
}

3 years ago

Uh kay, found and fixed that bug too.

It was 5dim_resources causing it by using tree prototypes for their banner with just one sprite in pictures.

fixed in version 4.1.7 & 3.2.4

New response