Complete.Org: Mailing Lists: Archives: freeciv-dev: July 2004:
[Freeciv-Dev] Re: (PR#9173) rulesets and connection dialog
Home

[Freeciv-Dev] Re: (PR#9173) rulesets and connection dialog

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: per@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#9173) rulesets and connection dialog
From: "Jason Short" <jshort@xxxxxxxxxxxxxx>
Date: Mon, 5 Jul 2004 22:37:12 -0700
Reply-to: rt@xxxxxxxxxxx

<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




[Prev in Thread] Current Thread [Next in Thread]