Page 1 of 1
0.13 Lua API documentation preview
Posted: Fri Jun 03, 2016 1:23 pm
by Oxyd
Let's fuel the hype train a little, shall we? We just uploaded a
preview of the 0.13 Lua API documentation for your previewing pleasures.
Obviously the API may still change between now and actual 0.13.0 release, but the changes should be reasonably small. Hopefully this preview will answer some questions about mod compatibility in 0.13 and the requred changes.
Re: 0.13 Lua API documentation preview
Posted: Fri Jun 03, 2016 1:36 pm
by ArderBlackard
Thanks a lot! So many things to discover!
Re: 0.13 Lua API documentation preview
Posted: Fri Jun 03, 2016 2:15 pm
by Adil
Are we getting the prototypes documentation someday?
Re: 0.13 Lua API documentation preview
Posted: Fri Jun 03, 2016 2:25 pm
by Oxyd
Adil wrote:Are we getting the prototypes documentation someday?
Hopefully, but not soon. Like I already said quite a few times here, prototype documentation is a big task that will take quite a lot of effort.
Re: 0.13 Lua API documentation preview
Posted: Fri Jun 03, 2016 2:30 pm
by DedlySpyder
This is all I need to hold me over (well, I would love prerelease patch notes, but I understand not giving them to us)
Re: 0.13 Lua API documentation preview
Posted: Fri Jun 03, 2016 2:54 pm
by AutoMcD
ooh, that is a juicy link. I'm just getting started with a mod and had no idea about that site.. I'm still finding documentation about all the knobs to tweak difficult.
Re: 0.13 Lua API documentation preview
Posted: Fri Jun 03, 2016 6:25 pm
by golfmiketango
Re: 0.13 Lua API documentation preview
Posted: Sat Jun 04, 2016 6:27 pm
by Afforess
Thanks for publishing this.
Re: 0.13 Lua API documentation preview
Posted: Sun Jun 05, 2016 7:12 pm
by doc
The control behaviours seem really really interesting.
Now that this part of the engine has been abstracted, is there any chance that some day we might be able to override which control behaviour exists on an entity? Or even have an entity with multiple control behaviours?
As an example, what if I create some new type of chest which performs a function when something is inserted into it. But I also want this chest to have an on/off circuit control behaviour so the player can choose when they want the chest's function to be switched on? (Real example from the mod I'm working on.)
Re: 0.13 Lua API documentation preview
Posted: Sun Jun 05, 2016 8:05 pm
by Adil
Will the
on_entity_settings_pasted when blueprints are placed?
Re: 0.13 Lua API documentation preview
Posted: Sun Jun 05, 2016 10:01 pm
by doc
It sounds like it's only for shift-right-click shift-left-click operations. When planting a blueprint, there isn't a source/destination pair - the original entities the blueprint was taken from might no longer exist!
Re: 0.13 Lua API documentation preview
Posted: Tue Jun 07, 2016 11:19 am
by Rseding91
doc wrote:The control behaviours seem really really interesting.
Now that this part of the engine has been abstracted, is there any chance that some day we might be able to override which control behaviour exists on an entity? Or even have an entity with multiple control behaviours?
The control behavior system still requires that the implementing entity be coded to implement that behavior in the C++ class for that entity.
doc wrote:As an example, what if I create some new type of chest which performs a function when something is inserted into it. But I also want this chest to have an on/off circuit control behaviour so the player can choose when they want the chest's function to be switched on? (Real example from the mod I'm working on.)
No, that wouldn't be possible with how it works now.