Config file and multi-platform editor

Started by monkey0506, Sun 18/01/2015 22:38:54

Previous topic - Next topic

monkey0506

Since the editor can now target different platforms, there is a very good chance that users will need to maintain separate config files. It would seem obvious that when running the debugger, it should use the Windows config file. This would also make the debugger respect config changes made if the developer has run winsetup.exe directly from Compiled/Windows. However, there is also the "Build -> Run game setup..." option, which I have more of a question about.

Should this always be considered as modifying the Windows config file only? Or should it modify the global/default config file (Compiled/acsetup.cfg, copied when platform-specific config doesn't exist)? Should perhaps an option be added if the setup program is launched from the editor to specify which platform you want to change the settings for? Obviously "winsetup.exe" isn't going to be released on Linux, but it might make sense as part of the editor suite to edit the Linux config file that way.

Can anyone comment on that?

tzachs

I suggest that "Build -> Run game setup..." will run the windows* setup, but additionally we'll have another option "Build --> Run game setup for... --> Windows, Linux, etc".

* Maybe both the "Run game setup..." and running the debugger should use the appropriate setup based on the running OS, so if we ever manage to support AGS editor on other platforms this would work automatically.

monkey0506

That all sounds reasonable to me. I wonder how much work it would be to get the setup program to 1) output to PLATFORM/acsetup.cfg and 2) enable/disable options based on PLATFORM. If we allow using the same setup program to edit the config file for other platforms, then it should also disable things that don't apply to that platform (e.g., graphics driver selection).

Mehrdad

Sorry Monkey_05_06 for this different question. Did you have any plan to add export Android and iOS like Linux from the editor?
My official site: http://www.pershaland.com/

monkey0506

Android is planned, but a long way off yet. I don't know anything about deploying for iOS, but as far as I have read it would require a Mac (which I don't own). Certain other tools lead me to believe it may be possible to create a base package which can be amended from Windows, but I have no idea on that (and this goes way too far beyond this thread, once I do get around to integrating an Android builder then I will come back to it).

SMF spam blocked by CleanTalk