[Freeciv-Dev] Re: civserver -r does not work properly. (PR#878)
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
On Fri, 10 Aug 2001, rp@xxxxxxxxxx wrote:
>
> On Tue, Aug 07, 2001 at 11:30:54AM +0200, Reinier Post wrote:
>> On Mon, Aug 06, 2001 at 06:03:10PM -0700, Gaute B Strokkenes wrote:
>> >
>> > cviserver seems to act differently depending on whether it is
>> > receiving commands from stdin or from a startup script.
>> >
>> > This is counterintuive, and probably not intentional.
>
> [...]
>
>> The -r option reads the file sooner than a /read command or manual
>> entry:
>>
>> http://www.freeciv.org/lxr/source/server/srv_main.c?v=cvs#L178
>>
>> The server hasn't even read the savefile at that point (if -f is
>> used). Executing -r should be delayed until a server command
>> prompt appears. /start will work and /create will no longer appear
>> to work when -f is used.
>>
>> If both -r and -f are used, which will take precedence in case of
>> conflicts? This is important if server options are saved to the
>> savefile. I don't recall a statement of policy regarding whether
>> they ought to be.
>
> Attached is a patch to invert this, making -r equivalent to a /read
> as the first command.
This looks fine to me, but what are the consequences of this
re. scenarios? Why does not /create work? Does it affect aifill too?
If this makes it impossible to load e.g. the earth scenarios and start
a game with lots of AIs, then that's bad.
--
Big Gaute http://www.srcf.ucam.org/~gs234/
I'm wearing PAMPERS!!
|
|