Modding Development Best Practices
Posted: Mon Aug 05, 2013 2:44 am
I recently started experimenting with modding but wasn't able to setup an ideal development environment.
Is there a guide somewhere on this topic? If not can we please discuss best practices for modding development here so newbies can set up a development env. that makes mode developments easy?
Here are my development steps:
1- Open my IDE.
2- Write some code
3- Press 'Run' which deploys my code as a mode and then opens Factorio.
4- Play -> Load game -> (Find my save game and start)
5- Do some stuff, use in-game console for debugging to some degree.
6- Go to 2
I quit and launch game often to see my progress in small increments. I would like to merge step 3-4 so when my 'Run' script opens Factorio I can load my 'development' save automatically. Is there a way yo do this?
Is there any way to print debug logs other than using 'print' statements?
I think there will be more questions as I get experienced and try new things. For example managing and including lua dependencies.
Is there a guide somewhere on this topic? If not can we please discuss best practices for modding development here so newbies can set up a development env. that makes mode developments easy?
Here are my development steps:
1- Open my IDE.
2- Write some code
3- Press 'Run' which deploys my code as a mode and then opens Factorio.
4- Play -> Load game -> (Find my save game and start)
5- Do some stuff, use in-game console for debugging to some degree.
6- Go to 2
I quit and launch game often to see my progress in small increments. I would like to merge step 3-4 so when my 'Run' script opens Factorio I can load my 'development' save automatically. Is there a way yo do this?
Is there any way to print debug logs other than using 'print' statements?
I think there will be more questions as I get experienced and try new things. For example managing and including lua dependencies.