Simple property requests (something that exists but has no way to read/write it)

User avatar
Ranakastrasz
Smart Inserter
Smart Inserter
Posts: 2124
Joined: Thu Jun 12, 2014 3:05 am
Contact:

Re: Simple property requests (something that exists but has no way to read/write it)

Post by Ranakastrasz »

LuaEntity: SetAnimationFrame, SetAnimationSpeed

I think speed doesn't exist except for things like cars, but frame should be feasible. Ideally this would let us make custom animations/graphic displays, without using the wierd Car workaround.
My Mods:
Modular Armor Revamp - V16
Large Chests - V16
Agent Orange - V16
Flare - V16
Easy Refineries - V16

User avatar
steinio
Smart Inserter
Smart Inserter
Posts: 2633
Joined: Sat Mar 12, 2016 4:19 pm
Contact:

Re: Simple property requests (something that exists but has no way to read/write it)

Post by steinio »

LuaForce.Rockets_sent()
Image

Transport Belt Repair Man

View unread Posts

Rseding91
Factorio Staff
Factorio Staff
Posts: 13204
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: Simple property requests (something that exists but has no way to read/write it)

Post by Rseding91 »

If you want to get ahold of me I'm almost always on Discord.

User avatar
steinio
Smart Inserter
Smart Inserter
Posts: 2633
Joined: Sat Mar 12, 2016 4:19 pm
Contact:

Re: Simple property requests (something that exists but has no way to read/write it)

Post by steinio »

k, sorry.
Image

Transport Belt Repair Man

View unread Posts

justarandomgeek
Filter Inserter
Filter Inserter
Posts: 300
Joined: Fri Mar 18, 2016 4:34 pm
Contact:

Re: Simple property requests (something that exists but has no way to read/write it)

Post by justarandomgeek »

for type=inserter, LuaEntityPrototype.filter_count
for type=logistic-container, LuaEntityPrototype.request_filter_count

(or just the same count for both, but since they're different properties in create_entity...)

User avatar
Mylon
Filter Inserter
Filter Inserter
Posts: 513
Joined: Sun Oct 23, 2016 11:42 pm
Contact:

Re: Simple property requests (something that exists but has no way to read/write it)

Post by Mylon »

Player::is_catching_up or Player::is_being_dropped

I'd like a simple flag to tell if a player is catching up, being dropped, or perhaps a flag to see if a player was disconnected due to being unable to keep up.

Use case: If too many players can't keep up, (iterate over game.players.is_catching_up) and if count exceeds a certain amount, lower game speed.

Rseding91
Factorio Staff
Factorio Staff
Posts: 13204
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: Simple property requests (something that exists but has no way to read/write it)

Post by Rseding91 »

Mylon wrote:Player::is_catching_up or Player::is_being_dropped

I'd like a simple flag to tell if a player is catching up, being dropped, or perhaps a flag to see if a player was disconnected due to being unable to keep up.

Use case: If too many players can't keep up, (iterate over game.players.is_catching_up) and if count exceeds a certain amount, lower game speed.
That data isn't part of the game state and as such isn't available to expose in the Lua API.
If you want to get ahold of me I'm almost always on Discord.

User avatar
mickael9
Fast Inserter
Fast Inserter
Posts: 112
Joined: Mon Mar 14, 2016 4:04 am
Contact:

Re: Simple property requests (something that exists but has no way to read/write it)

Post by mickael9 »

LuaEntityPrototype :: count_as_rock_for_filtered_deconstruction

evildogbot100
Fast Inserter
Fast Inserter
Posts: 152
Joined: Sun Dec 18, 2016 3:02 pm
Contact:

Re: Simple property requests (something that exists but has no way to read/write it)

Post by evildogbot100 »

defines.events.on_unit_spawned
has following field :
entity :: the spawned entity
spawner :: the spawner entity
fired when :
unit-spawner spawns an entity

evildogbot100
Fast Inserter
Fast Inserter
Posts: 152
Joined: Sun Dec 18, 2016 3:02 pm
Contact:

Re: Simple property requests (something that exists but has no way to read/write it)

Post by evildogbot100 »

LuaEntity :
spawner : unit-spawner creating this entity
units : array of LuaEntity created by this unit-spawner

321freddy
Fast Inserter
Fast Inserter
Posts: 125
Joined: Fri Sep 23, 2016 10:16 pm
Contact:

Re: Simple property requests (something that exists but has no way to read/write it)

Post by 321freddy »

For entity type "entity-ghost" where inner entity is of type "programmable-speaker":
LuaEntity.parameters :: ProgrammableSpeakerParameters [R]
LuaEntity.alert_parameters :: ProgrammableSpeakerAlertParameters [R]

justarandomgeek
Filter Inserter
Filter Inserter
Posts: 300
Joined: Fri Mar 18, 2016 4:34 pm
Contact:

Re: Simple property requests (something that exists but has no way to read/write it)

Post by justarandomgeek »

321freddy wrote:For entity type "entity-ghost" where inner entity is of type "programmable-speaker":
LuaEntity.parameters :: ProgrammableSpeakerParameters [R]
LuaEntity.alert_parameters :: ProgrammableSpeakerAlertParameters [R]
Generally for ghosts of circuit-connected things (especially arith/decider combinators), I'd like the ability to configure their control behaviors before they are (re)spawned.

justarandomgeek
Filter Inserter
Filter Inserter
Posts: 300
Joined: Fri Mar 18, 2016 4:34 pm
Contact:

Re: Simple property requests (something that exists but has no way to read/write it)

Post by justarandomgeek »

Not quite sure if this counts, but:

LuaEntity.color on simple-entity (or simple-entity-with-color?) - The lack of color is the only thing currently stopping me from switching Nixie Tubes from the evil lamp-car-player stack to a much nicer lamp-simple stack.

Rseding91
Factorio Staff
Factorio Staff
Posts: 13204
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: Simple property requests (something that exists but has no way to read/write it)

Post by Rseding91 »

justarandomgeek wrote:Not quite sure if this counts, but:

LuaEntity.color on simple-entity (or simple-entity-with-color?) - The lack of color is the only thing currently stopping me from switching Nixie Tubes from the evil lamp-car-player stack to a much nicer lamp-simple stack.
It doesn't. The entity doesn't support color and as such I can't just add it to the Lua API.
If you want to get ahold of me I'm almost always on Discord.

justarandomgeek
Filter Inserter
Filter Inserter
Posts: 300
Joined: Fri Mar 18, 2016 4:34 pm
Contact:

Re: Simple property requests (something that exists but has no way to read/write it)

Post by justarandomgeek »

Rseding91 wrote:
justarandomgeek wrote:Not quite sure if this counts, but:

LuaEntity.color on simple-entity (or simple-entity-with-color?) - The lack of color is the only thing currently stopping me from switching Nixie Tubes from the evil lamp-car-player stack to a much nicer lamp-simple stack.
It doesn't. The entity doesn't support color and as such I can't just add it to the Lua API.
Bah. Then I guess My original request (which I believe you may have misread at the time) still applies :)

User avatar
kumpu
Fast Inserter
Fast Inserter
Posts: 111
Joined: Wed Jun 07, 2017 10:10 am
Contact:

Re: Simple property requests (something that exists but has no way to read/write it)

Post by kumpu »

LuaEntity.collision_box - r/w access at runtime please. Especially write. Alternatively something like LuaEntity.enableCollision :: boolean [RW] ;)

Rseding91
Factorio Staff
Factorio Staff
Posts: 13204
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: Simple property requests (something that exists but has no way to read/write it)

Post by Rseding91 »

kumpu wrote:LuaEntity.collision_box - r/w access at runtime please. Especially write. Alternatively something like LuaEntity.enableCollision :: boolean [RW] ;)
Read I can do. Write is not happening as that's a very delicate system that you can't just change them runtime and have the game keep working correctly :)
If you want to get ahold of me I'm almost always on Discord.

User avatar
kumpu
Fast Inserter
Fast Inserter
Posts: 111
Joined: Wed Jun 07, 2017 10:10 am
Contact:

Re: Simple property requests (something that exists but has no way to read/write it)

Post by kumpu »

Rseding91 wrote:
kumpu wrote:LuaEntity.collision_box - r/w access at runtime please. Especially write. Alternatively something like LuaEntity.enableCollision :: boolean [RW] ;)
Read I can do. Write is not happening as that's a very delicate system that you can't just change them runtime and have the game keep working correctly :)
Oh that's bad news... Enable/Disable collision is out of the question too, I suppose? :?:
Don't bother doing it if write is not possible. No use for me in that case.

Nexela
Smart Inserter
Smart Inserter
Posts: 1828
Joined: Wed May 25, 2016 11:09 am
Contact:

Re: Simple property requests (something that exists but has no way to read/write it)

Post by Nexela »

kumpu wrote:
Rseding91 wrote:
kumpu wrote:LuaEntity.collision_box - r/w access at runtime please. Especially write. Alternatively something like LuaEntity.enableCollision :: boolean [RW] ;)
Read I can do. Write is not happening as that's a very delicate system that you can't just change them runtime and have the game keep working correctly :)
Oh that's bad news... Enable/Disable collision is out of the question too, I suppose? :?:
Don't bother doing it if write is not possible. No use for me in that case.

I can find many uses for read on entity xxxx-box including not having to do weird things like offsetting to get get the correct position then having to decide if it needs to be rotated :)

Helfima
Fast Inserter
Fast Inserter
Posts: 199
Joined: Tue Jun 28, 2016 11:40 am
Contact:

Re: Simple property requests (something that exists but has no way to read/write it)

Post by Helfima »

Helfima wrote:....
luaEntityPrototype.production - Solar production
I don't see solar production value, it's missing?

Locked

Return to “Implemented mod requests”