Complete.Org: Mailing Lists: Archives: freeciv-dev: August 2001:
[Freeciv-Dev] Re: [Patch] Watchtower v3
Home

[Freeciv-Dev] Re: [Patch] Watchtower v3

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: rf13@xxxxxxxxxxxxxxxxxxxxxx
Cc: swk@xxxxxxxxxxxx, Sebastian Bauer <sebauer@xxxxxxxxxxx>, freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: [Patch] Watchtower v3
From: Daniel L Speyer <dspeyer@xxxxxxxxxxx>
Date: Fri, 31 Aug 2001 10:40:26 -0400 (EDT)

On Fri, 31 Aug 2001, Raimar Falke wrote:

[snip lots of stuff]

> My opinion on the other discussion: In the long term I would also like
> to see rulesets just as a preset server variables. Each ruleset
> variable/server variable/property is protected by a certain cmdlevel.
> 
> To get structure I would propose a java properties like syntax:
> 
> units.unit_worm_riders.name="Worm Riders"
> units.unit_worm_riders.obsolete_by="unit_armorname"
> units.unit_worm_riders.attack=6
> units.unit_worm_riders.defend=2
> units.unit_worm_riders.move=3
> 
> Note: the string "unit_worm_riders" doesn't matter. It can also be
> "unit56".
> 
> It is easy to understand and parse. It allows arbitrary complex nested
> structures.
> 

This is awfully bulky, especially to be typed in at command line
(especially to be typed in at the command line, especially for players
without readline).  What about a varient using the javascript (maybe java
too) syntax like this?

with units.worm_riders{
        name="Worm Riders"
        obsolete_by=armor
        attack=6
        defend=2
        move=3
}

If the user wants, still allow specifying the whole thing each time, but
it isn't required.  There should also be a delete command:

with units{
        delete transport
        delete cruiser
        delete aegis_cruiser
        delete battleship
}

and a flush command:

flush techs

for creating a new set from scratch.

Wishlist features would include wildcards

units.*.fp=1

and arithmetic

units.destroyer.move+=1

but these are a little way off ;).

I've actually got some time, so I'll try to implement something like
this.  That should flush out syntax ambigueties at least ;).

--Daniel Speyer
"May the /src be with you, always"




>       Raimar
> 
> -- 
>  email: rf13@xxxxxxxxxxxxxxxxx
>  "I do feel kind of sorry for Microsoft. Their attornies and marketing
>   force must have tons of ulcers trying to figure out how to beat (not
>   just co-exist with) a product that has no clearly defined (read
>   suable) human owner, and that changes on an hourly basis like the
>   sea changes the layout of the sand on a beach. Severely tough to
>   fight something like that."
>     -- David D.W. Downey at linux-kernel
> 
> 



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