iceball icon indicating copy to clipboard operation
iceball copied to clipboard

Change <settingsfile>.json to <settingsfile>.json.example

Open rakiru opened this issue 9 years ago • 4 comments

Or something like that. It's a pain when you're messing with config files that are in version control. The game could look for whatever.json, then if that's not found look for whatever.json.example and copy that to whatever.json.

rakiru avatar Oct 24 '15 22:10 rakiru

I'm all for this. It'd probably have to take place in the launcher when first launched as the permissions are loosened on clsave/pub/... As for the server, we may have to just leave it at svsave/pub/server.json and suggest using the --server=svsave/pub/whatever/foo.json command-line argument... or we could loosen the path restrictions for the server files as well in launcher mode.

iamgreaser avatar Oct 24 '15 23:10 iamgreaser

Can't they create files in those folders anyway? I thought that was the point of pub/?

rakiru avatar Oct 25 '15 00:10 rakiru

pub/ is for reading, not writing - the reason being that if someone runs a dodgy mod it can clobber pub/. Hence why vol/ is there.

iamgreaser avatar Oct 25 '15 00:10 iamgreaser

Ah right, yeah, of course. It should be fine being in the launcher then. The build server could perhaps copy them across too, since it's only really an issue for people grabbing them from git.

As for the server, yeah, command-line arg is fine. We provide a few sample server configs anyway, rather than just one single base.

rakiru avatar Oct 25 '15 00:10 rakiru