Agricultural Roboport


Adds an agricultural roboport for automated crop management executed by robots.

Content
6 hours ago
2.0
147
Logistic network

b Factorio crash on virtual-uncommon-yumako-farm-seed

10 days ago
(updated 10 days ago)

First bug report! :-)

So I get this:


128.813 Error ModManager.cpp:1764: Error while loading entity prototype "virtual-uncommon-yumako-farm-seed" (container): Key "icon" not found in property tree at ROOT.container.virtual-uncommon-yumako-farm-seed
Modifications: Agricultural Roboport › Squeak Through 2 › Planet Omnia › Enemy Race Manager › Panglia


I have no clue where "virtual-uncommon-yumako-farm-seed" comes from, I have many planets and a ton of other mods installed (no major overhauls though). I'll just disable your mod for now, but maybe you can look into it. Please let me know if you need more details.

10 days ago
(updated 10 days ago)

This mod creates "seed request" prototypes from regular prototypes, i.e. "virtual-tree-seed" is created from "tree-seed" etc. During that phase icon is copied from original seed. One of the mods you use has item called "uncommon-yumako-farm-seed"
Would be nice to find out which one and is it really a seed, so I can introduce a fix.
Can you cheat-insert that item into inventory or spawn it, so we can figure out where does it come from?
I'll work around a fix which will check if it has an icon, otherwise would use a generic one, aside from a fix if a prototype called "*-seed" is indeed placing a plant.

10 days ago
(updated 10 days ago)

Can you please check if latest version fixes the issue?

9 days ago

Mmmh, not there yet. Now this happens:


1060.699 Error AppManagerStates.cpp:1663: The mod Agricultural Roboport (1.0.3) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event agricultural-roboport::on_init()
LuaEntityPrototype doesn't contain key autoplace.
stack traceback:
[C]: in function 'index'
__agricultural-roboport
/control.lua:194: in function 'build_virtual_seed_info'
agricultural-roboport/control.lua:207: in function <agricultural-roboport/control.lua:205>


I logged where the loop breaks, apparently on seed-name lucifunnel-seed (https://github.com/nicholasgower/tenebris-prime/blob/d786f6f86e3d7081f870f1744e6a1ad493d9bee3/prototypes/item/item.lua#L66), plant_result lucifunnel (https://github.com/nicholasgower/tenebris-prime/blob/d786f6f86e3d7081f870f1744e6a1ad493d9bee3/prototypes/entity/plants.lua#L82). Both seed and plant seem fine to me, though.

But I think at runtime there's only autoplace_specification, not autoplace: https://lua-api.factorio.com/latest/classes/LuaEntityPrototype.html#autoplace_specification so maybe you got something mixed up here? https://github.com/proffzulus/agricultural-roboport/blob/a3934fde2f98a968e4db4b865d4cde1823df0f5b/control.lua#L191

When I change this to autoplace_specification instead of autoplace, I can load my save (not sure what other implications this change might cause of course).

Funnily enough, of the 340 seeds I apparently have in my save, this lucifunnel-seed's plant lucifunnel is the only one which has no tile_restriction set and enters https://github.com/proffzulus/agricultural-roboport/blob/a3934fde2f98a968e4db4b865d4cde1823df0f5b/control.lua#L190 at all. :-D

9 days ago

about the uncommon-yumako-farm-seed: I searched via CTRL-SHIFT-E in game, prototype_history tells me it's from this mod: https://mods.factorio.com/mod/quality-plants. I actually don't know at all why I have this mod installed, either I can't remember or it's a dependency of another mod. And while clicking around in the prototype viewer I've seen "icon sprite" and "pictures" refer to pngs in https://mods.factorio.com/mod/foliax-two which is needed by https://mods.factorio.com/mod/foliax, so maybe there's the source of the missing icon error...

9 days ago

I did manage to fix that issue (started to do so prior your comment). This should fix compatibility issues, as well as introduce support for mods like wayward-seas (tested) with plants using tile_buildability_rules.
As for icon there are two properties: either "icon" or "icons", should be either one or another. Managed that and should be working long before.
Can you please update and check?

8 days ago

perfect, works now! thanks a lot!

New response