A bunch of API requests

Post Reply
JamesOFarrell
Filter Inserter
Filter Inserter
Posts: 402
Joined: Fri May 23, 2014 8:54 am
Contact:

A bunch of API requests

Post by JamesOFarrell »

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.
Last edited by JamesOFarrell on Tue Jun 30, 2015 8:14 am, edited 3 times in total.

Kikkers
Fast Inserter
Fast Inserter
Posts: 109
Joined: Sun Jun 22, 2014 8:45 pm
Contact:

Re: A bunch of API requests

Post by Kikkers »

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.

JamesOFarrell
Filter Inserter
Filter Inserter
Posts: 402
Joined: Fri May 23, 2014 8:54 am
Contact:

Re: A bunch of API requests

Post by JamesOFarrell »

Kikkers wrote:Could you add these please?
Done and done, I've also added a request from Trangar

Estensia
Manual Inserter
Manual Inserter
Posts: 3
Joined: Mon Jun 29, 2015 9:23 am
Contact:

Re: A bunch of API requests

Post by Estensia »

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?

JamesOFarrell
Filter Inserter
Filter Inserter
Posts: 402
Joined: Fri May 23, 2014 8:54 am
Contact:

Re: A bunch of API requests

Post by JamesOFarrell »

Estensia wrote:Is it possible to add this?
not only is it possible, it is done

Estensia
Manual Inserter
Manual Inserter
Posts: 3
Joined: Mon Jun 29, 2015 9:23 am
Contact:

Re: A bunch of API requests

Post by Estensia »

JamesOFarrell wrote:
Estensia wrote:Is it possible to add this?
not only is it possible, it is done
ohw wauw, you're fast :). Is this in the 0.12.0 release?

JamesOFarrell
Filter Inserter
Filter Inserter
Posts: 402
Joined: Fri May 23, 2014 8:54 am
Contact:

Re: A bunch of API requests

Post by JamesOFarrell »

Estensia wrote:ohw wauw, you're fast :). Is this in the 0.12.0 release?
I doubt it buddy, this is just a list for reference not a list of things anyone is adding to anything

Estensia
Manual Inserter
Manual Inserter
Posts: 3
Joined: Mon Jun 29, 2015 9:23 am
Contact:

Re: A bunch of API requests

Post by Estensia »

JamesOFarrell wrote:
Estensia wrote:ohw wauw, you're fast :). Is this in the 0.12.0 release?
I doubt it buddy, this is just a list for reference not a list of things anyone is adding to anything
Ah check. Sorry :)

Post Reply

Return to “Implemented mod requests”