Creating additional capsuleAction types
Posted: Thu Jun 04, 2020 6:25 am
Hey guys, working on my first factorio mod, so this is my first experience with lua and its implementation by wube. I'm not sure where I can start looking for adding additional capsuleAction types. I'm assuming how the artillery-remote capsule action works / modifying it is not something open to modders like deepcopying a prototype is (and if it is, I could not find it on the wiki), but after playing around with the capsule prototype property, it seems that I would have to be capable of both adding the new type to the reference table and having that table reference some code I write:
I figured I'd check to see if this kind of implementation of this mod is feasible (and hopefully the location of that table) before I look at something unseemly like adding a script to see if an item is held and clicked during map-view...which is certainly how the artillery remote could currently work.Failed to load mods: Error while loading item prototype "satellite-cluster-remote" (capsule): Value must be a dictionary in property tree at ROOT.capsule.satellite-cluster-remote.capsule_action