0.13 Lua API documentation preview

Place to post guides, observations, things related to modding that are not mods themselves.
Post Reply
Oxyd
Former Staff
Former Staff
Posts: 1428
Joined: Thu May 07, 2015 8:42 am
Contact:

0.13 Lua API documentation preview

Post 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.

User avatar
ArderBlackard
Long Handed Inserter
Long Handed Inserter
Posts: 74
Joined: Thu May 05, 2016 12:41 pm
Contact:

Re: 0.13 Lua API documentation preview

Post by ArderBlackard »

Thanks a lot! So many things to discover!
Gib dich hin bis du Glück bist

User avatar
Adil
Filter Inserter
Filter Inserter
Posts: 945
Joined: Fri Aug 15, 2014 8:36 pm
Contact:

Re: 0.13 Lua API documentation preview

Post by Adil »

Are we getting the prototypes documentation someday?
I do mods. Modding wiki is friend, it teaches how to mod. Api docs is friend too...
I also update mods, some of them even work.
Recently I did a mod tutorial.

Oxyd
Former Staff
Former Staff
Posts: 1428
Joined: Thu May 07, 2015 8:42 am
Contact:

Re: 0.13 Lua API documentation preview

Post 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.

User avatar
DedlySpyder
Filter Inserter
Filter Inserter
Posts: 253
Joined: Fri Jun 20, 2014 11:42 am
Contact:

Re: 0.13 Lua API documentation preview

Post 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)

AutoMcD
Fast Inserter
Fast Inserter
Posts: 214
Joined: Wed Apr 27, 2016 5:53 pm
Contact:

Re: 0.13 Lua API documentation preview

Post 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.


User avatar
Afforess
Filter Inserter
Filter Inserter
Posts: 422
Joined: Tue May 05, 2015 6:07 pm
Contact:

Re: 0.13 Lua API documentation preview

Post by Afforess »

Thanks for publishing this.

doc
Long Handed Inserter
Long Handed Inserter
Posts: 96
Joined: Mon Mar 28, 2016 3:52 pm
Contact:

Re: 0.13 Lua API documentation preview

Post 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.)

User avatar
Adil
Filter Inserter
Filter Inserter
Posts: 945
Joined: Fri Aug 15, 2014 8:36 pm
Contact:

Re: 0.13 Lua API documentation preview

Post by Adil »

Will the on_entity_settings_pasted when blueprints are placed?
I do mods. Modding wiki is friend, it teaches how to mod. Api docs is friend too...
I also update mods, some of them even work.
Recently I did a mod tutorial.

doc
Long Handed Inserter
Long Handed Inserter
Posts: 96
Joined: Mon Mar 28, 2016 3:52 pm
Contact:

Re: 0.13 Lua API documentation preview

Post by doc »

Adil wrote:Will the on_entity_settings_pasted when blueprints are placed?
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!

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

Re: 0.13 Lua API documentation preview

Post 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.
If you want to get ahold of me I'm almost always on Discord.

Post Reply

Return to “Modding discussion”