Page 1 of 1

Constants of the API ?

Posted: Fri Mar 04, 2016 3:53 pm
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.

Re: Constants of the API ?

Posted: Fri Mar 04, 2016 7:09 pm
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.

Re: Constants of the API ?

Posted: Fri Mar 04, 2016 10:55 pm
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 ?

Re: Constants of the API ?

Posted: Fri Mar 04, 2016 11:01 pm
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

Re: Constants of the API ?

Posted: Fri Mar 04, 2016 11:08 pm
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.