Page 3 of 7

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

Posted: Tue Jun 06, 2017 3:10 pm
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.

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

Posted: Tue Jun 06, 2017 4:23 pm
by steinio
LuaForce.Rockets_sent()

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

Posted: Tue Jun 06, 2017 8:21 pm
by Rseding91

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

Posted: Tue Jun 06, 2017 11:34 pm
by steinio
k, sorry.

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

Posted: Fri Jun 09, 2017 9:55 pm
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...)

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

Posted: Fri Jun 09, 2017 11:17 pm
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.

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

Posted: Sat Jun 10, 2017 12:10 am
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.

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

Posted: Mon Jun 12, 2017 9:08 pm
by mickael9
LuaEntityPrototype :: count_as_rock_for_filtered_deconstruction

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

Posted: Sat Jun 17, 2017 10:17 pm
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

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

Posted: Sun Jun 18, 2017 2:39 pm
by evildogbot100
LuaEntity :
spawner : unit-spawner creating this entity
units : array of LuaEntity created by this unit-spawner

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

Posted: Wed Jun 21, 2017 4:19 pm
by 321freddy
For entity type "entity-ghost" where inner entity is of type "programmable-speaker":
LuaEntity.parameters :: ProgrammableSpeakerParameters [R]
LuaEntity.alert_parameters :: ProgrammableSpeakerAlertParameters [R]

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

Posted: Wed Jun 21, 2017 9:31 pm
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.

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

Posted: Thu Jun 22, 2017 5:01 am
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.

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

Posted: Thu Jun 22, 2017 11:56 am
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.

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

Posted: Thu Jun 22, 2017 2:05 pm
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 :)

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

Posted: Sat Jun 24, 2017 4:20 pm
by kumpu
LuaEntity.collision_box - r/w access at runtime please. Especially write. Alternatively something like LuaEntity.enableCollision :: boolean [RW] ;)

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

Posted: Sat Jun 24, 2017 4:29 pm
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 :)

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

Posted: Sat Jun 24, 2017 4:42 pm
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.

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

Posted: Sun Jun 25, 2017 2:39 am
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 :)

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

Posted: Mon Jun 26, 2017 12:04 pm
by Helfima
Helfima wrote:....
luaEntityPrototype.production - Solar production
I don't see solar production value, it's missing?