Constants of the API ?

Place to get help with not working mods / modding interface.
User avatar
binbinhfr
Smart Inserter
Smart Inserter
Posts: 1525
Joined: Sat Feb 27, 2016 7:37 pm
Contact:

Constants of the API ?

Post by binbinhfr »

Hi,

I understood how to find info on the API with the HTML files, and also looking into factorio base and core, but I cannot find where all "constant" values are defined. Example : where to find different possible default styles for frame, or graphical sets, or available fonts, etc...
I should have missed some files... :-)

Thanks for your help.
My mods on the Factorio Mod Portal :geek:
Rseding91
Factorio Staff
Factorio Staff
Posts: 15913
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: Constants of the API ?

Post by Rseding91 »

Styles are (for the most part) all defined In the core mod in the data folder.

You can define them in any mod in the data.lua file or extended requires.
If you want to get ahold of me I'm almost always on Discord.
User avatar
binbinhfr
Smart Inserter
Smart Inserter
Posts: 1525
Joined: Sat Feb 27, 2016 7:37 pm
Contact:

Re: Constants of the API ?

Post by binbinhfr »

Rseding91 wrote:Styles are (for the most part) all defined In the core mod in the data folder.

You can define them in any mod in the data.lua file or extended requires.
OK, I found some of them.

But for example, can you explain where I could see the original definition of this :
data.raw["player"]["player"].inventory_size
because I saw it was overwritten in some mods, and I wonder how they found this info. :-)

or where I can find the list of different graphical_set ? I see that mod authors are using these value, but where did they find the possible values ?
My mods on the Factorio Mod Portal :geek:
User avatar
Klonan
Factorio Staff
Factorio Staff
Posts: 5410
Joined: Sun Jan 11, 2015 2:09 pm
Contact:

Re: Constants of the API ?

Post by Klonan »

binbinhfr wrote:
Rseding91 wrote:Styles are (for the most part) all defined In the core mod in the data folder.

You can define them in any mod in the data.lua file or extended requires.
OK, I found some of them.

But for example, can you explain where I could see the original definition of this :
data.raw["player"]["player"].inventory_size
because I saw it was overwritten in some mods, and I wonder how they found this info. :-)

or where I can find the list of different graphical_set ? I see that mod authors are using these value, but where did they find the possible values ?
Image
User avatar
binbinhfr
Smart Inserter
Smart Inserter
Posts: 1525
Joined: Sat Feb 27, 2016 7:37 pm
Contact:

Re: Constants of the API ?

Post by binbinhfr »

woo ! thanks a lot.
I saw these demo* files, but I thought they were related to the demo version of the game only.
My mods on the Factorio Mod Portal :geek:
Post Reply

Return to “Modding help”