Creating additional capsuleAction types

This is the place to request new mods or give ideas about what could be done.
Dak31
Burner Inserter
Burner Inserter
Posts: 6
Joined: Mon Jun 25, 2018 11:17 pm
Contact:

Creating additional capsuleAction types

Post by Dak31 »

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:
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
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.
Post Reply

Return to “Ideas and Requests For Mods”