Grasscutters / Cultivation

A custom launcher designed to make it as easy as possible to proxy anime game traffic to private servers.
Apache License 2.0
968 stars 160 forks source link

Support multiple deployments #229

Closed cel-ti closed 3 weeks ago

cel-ti commented 1 month ago

Any possibility to inherently support multiple instances

NotThorny commented 1 month ago

Of Cultivation or of the game? Both already should be.

cel-ti commented 1 month ago

Of Cultivation, im not aware if theres a switch button in the gui

NotThorny commented 1 month ago

Ah I see, you mean like multiple profiles. There is no handling for having multiple profiles in Cultivation currently, but there is a way to have several with a little manual work.

The configuration file configuration.json is in %appdata%\cultivation. You can rename configuration.json to something else, and then run Cultivation again. It will generate a new configuration file, which you can then change to be your alternate setup. Then you can switch between them through renaming the files. Only the one named configuration.json will be loaded, and you can press F5 in Cultivation to reload.

While it takes a little renaming each time you want to switch, it may still be faster than changing all your settings if you have significantly different ones between each config.

This can just be a temporary solution. I'll look at making a little profile switching system, but no guarantees on a timeline for that.