[Freeciv-Dev] Re: (PR#9173) rulesets and connection dialog
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
<URL: http://rt.freeciv.org/Ticket/Display.html?id=9173 >
> It is an open question how the server is going to figure out which
> rulesets exist. I think we should move the .serv file into the ruleset
> directory, and then check each directory in the data dir for a
> "ruleset.serv" file - if it has one then it is a ruleset.
Take a look at the tileset code. It already has such a matching system
for *.tileset; there may be a function in shared.h that helps out. For
tilesets I think we need to read in the tileset to verify it before we can
add it to the list of available tilesets (although this isn't currently
done). Perhaps the same should be true of the rulesets?
Are the available rulesets to be found by the client prior to game launch?
That seems like the best way to do it, although it won't work for remote
servers (e.g., pubserver). Also, is there a way to load a rc file after
the server has started?
jason
|
|