Page 1 of 1

Config Editor - In-Game Configuration Editor for Mods

Posted: Sat Aug 20, 2016 5:26 pm
by Zinal
Note: I'm not sure if I should release this as a tool or a mod, since it's both a tool and mod..

Config Editor

An In-Game Configuration Editor for mods

Config Editor is a Remote Interface mod for Factorio which creates an in-game configuration editor for other mods.

Making a config.lua file to store a mods configuration options is not ideal for your clients, since they have to have the exact same config.lua file in their mod (Any changes to that config.lua file will have to be uploaded to your clients).

Instead, use this mod to store and sync your mod's configuration options between clients!

The mod/interface can be found here (with documentation!): https://github.com/Zinal001/FactorioConfigEditor

Changelog

Version 0.1.3
  • Updated the layout of the editor windows. Added sprite-buttons instead of the "Close" & "Cancel" buttons (See screenshots below)
Version 0.1.2
  • Added method generate_compatible_output. This method converts a table into an compatible config table.
  • Added inspect.lua to print nicely-formatted tables
Version 0.1.1
  • Support for saving tables
Version 0.1.0
  • Support for saving string, number and boolean variables.
Screenshots:
GUIButton.jpg
GUIButton.jpg (1.53 MiB) Viewed 6678 times
EditorMenu.jpg
EditorMenu.jpg (706.29 KiB) Viewed 6678 times
ConfigMenu.jpg
ConfigMenu.jpg (701.86 KiB) Viewed 6678 times

Re: Config Editor - In-Game Configuration Editor for Mods

Posted: Sat Aug 20, 2016 7:55 pm
by Supercheese
Very neat! Even though it looks like it can't handle prototype data, it's still potentially quite nice for the remainder of config options.
I'll look into making Orbital Ion Cannon's relevant settings compatible with this.

Re: Config Editor - In-Game Configuration Editor for Mods

Posted: Sat Aug 20, 2016 10:32 pm
by Zinal
Supercheese wrote:Very neat! Even though it looks like it can't handle prototype data, it's still potentially quite nice for the remainder of config options.
I'll look into making Orbital Ion Cannon's relevant settings compatible with this.
Great!

About prototypes.. Aren't they initialized before all mods (in the data.lua file)?

Version 0.1.1 Released
Config Editor now support tables!
Just remember to set the dataType (or just type) parameter to table.

Re: Config Editor - In-Game Configuration Editor for Mods

Posted: Sat Aug 20, 2016 10:56 pm
by Supercheese
Zinal wrote:About prototypes.. Aren't they initialized before all mods (in the data.lua file)?
Yeah, they're in the data.lua stage. I have several config options that affect prototype data; not sure how they could be handled by a mod such as this.

Re: Config Editor - In-Game Configuration Editor for Mods

Posted: Sat Aug 20, 2016 11:50 pm
by Zinal
Supercheese wrote:Yeah, they're in the data.lua stage. I have several config options that affect prototype data; not sure how they could be handled by a mod such as this.
Sadly, not possible. A mod is not loaded at that stage... So no entity definitions :?

Version 0.1.2 Released
See changelog in the first post for information

Re: Config Editor - In-Game Configuration Editor for Mods

Posted: Sun Aug 21, 2016 1:19 am
by Nexela
Sweet can't wait until the text button is replaced with a purty picture so I can install this and play with it!

Re: Config Editor - In-Game Configuration Editor for Mods

Posted: Sun Aug 21, 2016 1:27 pm
by Zinal
Nexela wrote:Sweet can't wait until the text button is replaced with a purty picture so I can install this and play with it!
I was already in the progress of updating the layout of all the buttons & windows :P

Version 0.1.3 Released

Re: Config Editor - In-Game Configuration Editor for Mods

Posted: Mon Aug 22, 2016 8:01 am
by anamaria
I have good and very good trial.