Prototype definitions reference format
Prototype definitions reference format
I started building the reference of all configurable parameters of individual prototypes, so you won't have to guess what works there etc.
I'm not sure about the format, as this will be quite big, I would like you to look at the two sample pages I made, and criticise it before I write the rest
https://forums.factorio.com/wiki/inde ... efinitions
I'm not sure about the format, as this will be quite big, I would like you to look at the two sample pages I made, and criticise it before I write the rest
https://forums.factorio.com/wiki/inde ... efinitions
Re: Prototype definitions reference format
Looks good
If the format needs to be remade, I'm sure we can do it later
If the format needs to be remade, I'm sure we can do it later
Re: Prototype definitions reference format
Looks great to me
<I'm really not active any more so these may not be up to date>
~FreeER=Factorio Modding
- Factorio Wiki
- My Factorio Modding Guide
- Wiki Modding Guide
Feel free to pm me
Or drop into #factorio on irc.esper.net
~FreeER=Factorio Modding
- Factorio Wiki
- My Factorio Modding Guide
- Wiki Modding Guide
Feel free to pm me
Or drop into #factorio on irc.esper.net
Re: Prototype definitions reference format
Yep, nothing to complain about
Re: Prototype definitions reference format
those 2 pages alone helped me alot.
especially the event page, which will be needed for my mod in a few updates once i figured it out how to add it using your starter campaign.
SO YES, write more
especially the event page, which will be needed for my mod in a few updates once i figured it out how to add it using your starter campaign.
SO YES, write more
Creator of:
- DyTech
- DyWorld
- DyWorld-Dynamics
- DyWorld-Dynamics 2
Active since Factorio 0.6
- DyTech
- DyWorld
- DyWorld-Dynamics
- DyWorld-Dynamics 2
Active since Factorio 0.6
-
- Filter Inserter
- Posts: 402
- Joined: Fri May 23, 2014 8:54 am
- Contact:
Re: Prototype definitions reference format
Yes, this. Those 2 pages were the most useful tools while I was programming, Thank you so much.Dysoch wrote:those 2 pages alone helped me alot.... SO YES, write more
-
- Burner Inserter
- Posts: 7
- Joined: Sun Jun 29, 2014 1:27 am
- Contact:
Re: Prototype definitions reference format
This page is really cool (thank you so much!) and is a necessity, I believe, to true mod development. However, it is still incomplete and is missing several fairly important class definitions (like the "Technology" class). Is there a place where we can actually see all the class prototypes for the Prototype objects? I need to know what properties and subclasses are available for each class and what they mean before I can really dive into modding.
Re: Prototype definitions reference format
Not really... All I can say is check out the base game prototypes and you'll see the obvious/common ones (look hard enough and you should see everything with maybe a tiny number of exceptions). Of course you are free to add your 'discoveries' to the wiki It's incomplete mainly because it's a long (boring) process of improving the wiki and, of course, everyone only has so much time.kitsune9tails wrote:Is there a place where we can actually see all the class prototypes for the Prototype objects? I need to know what properties and subclasses are available for each class and what they mean before I can really dive into modding.
Re: Prototype definitions reference format
Currently trying to automatically dump all the prototypes for quick wiki upload, its not 100% working yet however kitsune9tails I have managed to dump the valid parameters of the Technology class:
EDIT: hah did not realize how old this thread was.
Code: Select all
"technology": {
"effects": {
"ammo_category": "string",
"modifier": "number",
"type": "string",
"recipe": "string"
},
"icon": "string",
"name": "string",
"order": "string",
"prerequisites": "string",
"type": "string",
"unit": {
"count": "number",
"ingredients": "number",
"time": "number"
},
"upgrade": "string",
"enabled": "boolean"
},
Re: Prototype definitions reference format
Is there are fresh Modding API reference?
Re: Prototype definitions reference format
Bump. Is there any way we modders can get a list of available properties/methods for all prototypes? At the moment it's a struggle getting the info we need from the game.
Re: Prototype definitions reference format
Any news on getting this updated?
-
- Fast Inserter
- Posts: 157
- Joined: Fri Jun 26, 2015 11:13 pm
Re: Prototype definitions reference format
For Lua objects:wahming wrote:Bump. Is there any way we modders can get a list of available properties/methods for all prototypes? At the moment it's a struggle getting the info we need from the game.
Code: Select all
/c sel = function() return game.player.selected; end
/c mh = function() game.make_file("help/" .. sel().name, sel().help()); end
For the prototypes themselves, I would just look under data/base/prototypes/... what you see is what you get there.
Re: Prototype definitions reference format
You can also call the help method on objects like player or game to see what are the available functions and properties.
Re: Prototype definitions reference format
This outputs a file with the name of the entity selected, but the content is always the same: LuaEntityjohanwanderer wrote:For Lua objects:wahming wrote:Bump. Is there any way we modders can get a list of available properties/methods for all prototypes? At the moment it's a struggle getting the info we need from the game.
Move your mouse over something, and then "/c mh()", then look under script-output/help/ for the help textCode: Select all
/c sel = function() return game.player.selected; end /c mh = function() game.make_file("help/" .. sel().name, sel().help()); end
For the prototypes themselves, I would just look under data/base/prototypes/... what you see is what you get there.