Rseding91 said he didn't have enough to do so here is a list of things I think would make life easier for people writing mods. While most of these are API requests some of them are probably feature requests that I think would make modding easier. Obviously I don't expect this list ever be fully, or even partially implemented but it might be useful for someone looking to get busy with the API.
GUI
a frame or flow that can scroll.
pagination! (I really just wanted to use that word, scrolling is fine)
multi-line text boxes
game.gui.bottomleft, bottomcenter, bottomright, right
expose the factorio gui frames like the hot-bar and inventory so we can in place frame in relation to them (like a new inventory panel or a extra hotbar)
interaction with the map. draw, events on open and close, mouse click.
access to styles for all icons loaded in game, this is possible now but should be part of the base game lua styles
trigger alert
clear alert
Console
Allow us to register console commands like "/mod command 42" that can pass augments to functions
Events
on player inventory change
on click entity
on key press events
onputitem should have playerindex
trigger actions should have playerindex
ontriggercreatedentity event should contain the created entity and the creating entity
inserter beforeGrab
Entities
Entities that have a 0 power requirement should not flash red when not connected to the power network
a collision mask for entities that never want to collide (ghost mostly works.. mostly)
all entities should be able to rotate
we should be able to set inventory slots individually
Flag for inventories to prevent inserters from removing items from them
Flag to prevent a logistic inventory's contents being visible to the logistics network
Entity prototypes
Placement flag to align with the train rail grid, instead of the normal grid.
Drones/Robots
setcommand
hasaction
setgroupcommand
defend target command(unit or entity)
Trains
state manualmoving, manualstopping, manualstoppped
should support electric as a power source
That should cover the things I've seen. It is pretty biased towards the things I've tried to do with my mods so I'm sure others have other small things they want to add, feel free to post them and I'll modify the list.
Sorry ssilk, there is probably a thread for each one of these ideas already.
A bunch of API requests
-
- Filter Inserter
- Posts: 402
- Joined: Fri May 23, 2014 8:54 am
- Contact:
A bunch of API requests
Last edited by JamesOFarrell on Tue Jun 30, 2015 8:14 am, edited 3 times in total.
Re: A bunch of API requests
Could you add these please?
Entities
Flag for inventories to prevent inserters from removing items from them
Flag to prevent a logistic inventory's contents being visible to the logistics network
Entity prototypes
Placement flag to align with the train rail grid, instead of the normal grid.
These are also biased to what I've personally encountered, but they seem basic enough.
Entities
Flag for inventories to prevent inserters from removing items from them
Flag to prevent a logistic inventory's contents being visible to the logistics network
Entity prototypes
Placement flag to align with the train rail grid, instead of the normal grid.
These are also biased to what I've personally encountered, but they seem basic enough.
-
- Filter Inserter
- Posts: 402
- Joined: Fri May 23, 2014 8:54 am
- Contact:
Re: A bunch of API requests
Done and done, I've also added a request from TrangarKikkers wrote:Could you add these please?
Re: A bunch of API requests
For ontriggercreatedentity event i would like to see that it would also return the enitity that created the enitity. So the event would return the entity (defender robot) and the entity that created him (defender capsule).
Is it possible to add this?
Is it possible to add this?
-
- Filter Inserter
- Posts: 402
- Joined: Fri May 23, 2014 8:54 am
- Contact:
Re: A bunch of API requests
not only is it possible, it is doneEstensia wrote:Is it possible to add this?
Re: A bunch of API requests
ohw wauw, you're fastJamesOFarrell wrote:not only is it possible, it is doneEstensia wrote:Is it possible to add this?

-
- Filter Inserter
- Posts: 402
- Joined: Fri May 23, 2014 8:54 am
- Contact:
Re: A bunch of API requests
I doubt it buddy, this is just a list for reference not a list of things anyone is adding to anythingEstensia wrote:ohw wauw, you're fast. Is this in the 0.12.0 release?
Re: A bunch of API requests
Ah check. SorryJamesOFarrell wrote:I doubt it buddy, this is just a list for reference not a list of things anyone is adding to anythingEstensia wrote:ohw wauw, you're fast. Is this in the 0.12.0 release?
