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: "John Bauman" <john@xxxxxxxxxxxxxxxx>
Date: Sat, 3 Jul 2004 16:15:52 -0700
Reply-to: rt@xxxxxxxxxxx

<URL: http://rt.freeciv.org/Ticket/Display.html?id=9173 >


----- Original Message ----- 
From: "Per Inge Mathisen" <per@xxxxxxxxxxx>
To: <undisclosed-recipients:>
Sent: Saturday, July 03, 2004 3:22 PM
Subject: [Freeciv-Dev] (PR#9173) rulesets and connection dialog


>
> <URL: http://rt.freeciv.org/Ticket/Display.html?id=9173 >
>
> I just discovered that the connection dialog does not allow one to choose
> another ruleset. This is bad, but it is also not easy to fix.
>
> Rulesets generally require a .serv file to be read to set up everything
> correctly, so it is not just a matter of adding a rulesetdir string field.
> Actually, I think the only way to do it properly is to have the server
> send a list of available rulesets to the client, and add a new page to the
> "New game..." option before the page where you choose the number of AIs
> and can set properties, where you can choose which ruleset you want to
> use. Then the server reads the ruleset's .serv file and sends the results
> to the client.
>
> 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.
Given that we now have a read command, wouldn't it be a good idea to move
the ".serv" files into the ruleset directories, like you said, and then
reference them from the ruleset, instead of vice versa.  Couldn't the
ruleset loading use the same system as the read command to read the serv
file automatically?  I think it would make more sense to have rulesetdir
actually load the complete ruleset, instead of loading most of the rules,
and having the rest in a ".serv" file - it would be more self-contained,
that way.
>
>   - Per
>
>
>
>




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