Page 1 of 1

What Are The Limits of Modding Factorio?

Posted: Mon Jul 27, 2015 6:43 am
by Duton1
Hey All,

I love Factorio, but I would love to mod my own things in and hopefully share those creations with the rest of you. Before I dive into modding I generally like to know what the limits of modding a certain game are, as some of them have hard restrictions so as to not completely mess up the source code, some of them have hard restrictions just because that's how the game is coded, and so on. I've seen a fair few mods for Factorio and it seems as though the limits, if there are any, are pretty out there, but I'd also like to know first hand from you guys.

Thanks in advance,
Duton

Re: What Are The Limits of Modding Factorio?

Posted: Mon Jul 27, 2015 8:20 am
by jorgenRe
Honestly you are fairly free with what you want to do. Especially all the machines are possible to be created using mods. And then when it comes to scripting you also have loads of possibilities.
I advice you to go check out the wiki to see what you can do in lua, but be aware that in 0.12 lua interfaces changed so that words are split with an _
also it is good to check out how other people have done their mods as that also shows what possibilities there are.
So good luck ;)!

Re: What Are The Limits of Modding Factorio?

Posted: Mon Jul 27, 2015 6:33 pm
by kiba
There are few limitations I have run into.

For example, it's not possible to build your own UI for crafting, or override the default UI of an assembler.

Other than that, you will need to spend time doing hacky stuff to do something rather than write straight forward code.

Re: What Are The Limits of Modding Factorio?

Posted: Mon Jul 27, 2015 6:39 pm
by jorgenRe
kiba wrote:There are few limitations I have run into.

For example, it's not possible to build your own UI for crafting, or override the default UI of an assembler.

Other than that, you will need to spend time doing hacky stuff to do something rather than write straight forward code.
You sure are correct about that ;)!
Currently i'm sortoff hacking in my new surface with unique tiles(soon multiple different biomes)!
Edit:
But thats mainly to add new kinds of elements to the game.

Re: What Are The Limits of Modding Factorio?

Posted: Fri Jul 31, 2015 4:46 pm
by narrowtux
Kinda related, is it possible to modify behaviour / GUI outside of the game itself? That would be main menu and such.

Re: What Are The Limits of Modding Factorio?

Posted: Thu Aug 06, 2015 1:45 pm
by Rseding91
narrowtux wrote:Kinda related, is it possible to modify behaviour / GUI outside of the game itself? That would be main menu and such.
No. All of the core GUIs of the game are hard coded. You might be able to modify the styles by overriding them through data.lua (or a variant) but the actual buttons and text are fixed.

Re: What Are The Limits of Modding Factorio?

Posted: Fri Aug 21, 2015 6:16 am
by EditorRUS
You can't anything that is hardcoded.
Like this.
https://forums.factorio.com/forum/vie ... 53&t=14478

I've checked the entire wiki and I couldn't find any way to implement server-stuff using only lua.