Complete.Org: Mailing Lists: Archives: freeciv: September 2002:
[Freeciv] Re: [Freeciv-Dev] Re: Re: Rulesets, Tilesets, and Winblows
Home

[Freeciv] Re: [Freeciv-Dev] Re: Re: Rulesets, Tilesets, and Winblows

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv@xxxxxxxxxxx
Cc: tsg@xxxxxxxxxxxxx, akemnade@xxxxxxxxxxxxxxxxxxxxxxxx
Subject: [Freeciv] Re: [Freeciv-Dev] Re: Re: Rulesets, Tilesets, and Winblows
From: Reinier Post <rp@xxxxxxxxxx>
Date: Sun, 1 Sep 2002 22:53:46 +0200

On Sun, Sep 01, 2002 at 10:05:02PM +0200, akemnade@xxxxxxxxxxxxxxxxxxxxxxxx 
wrote:
> On Sun, 1 Sep 2002 15:44:08 -0400
> Todd Goodman <tgoodman@xxxxxxxxxxxxx> wrote:
> > Do you know how to use rulesets in Windows?
> > 
> > I tried using 'rulesetdir' but seemed to always get errors.  I may be
> > using it incorrectly (with a bad ruleset directory perhaps).
> > 
> If you want to load ruleset X located in 
> C:\place_where_you_have_installed_freeciv\data\X 
> then you create a file (content is not important) 
> C:\place_where_you_have_installed_freeciv\share\freeciv\X
> 
> Then you can load the ruleset using
> rulesetdir X resp. /rulesetdir X
> 
> Background: the datafilename() function is misused in the rulesetdir command 
> (it is used to check if a directory exists instead of checking for files). 
> 
> I thought I have sent a notice about that to the mailing list earlier but I 
> have not found it in the archive yet.

I saw it ... strange ...

The old method to load tilesets still works.  Here is something for
a Tileset HOWTO:

1) Put the names of the directories where you want to place tilesets
  (and other rulesets) in $FREECIV_PATH, separated by :s.  You can also
  leave it at its default value, of course, but I prefer to put all my
  tilesets in $HOME/.freeciv/data, so I add that directory to $FREECIV_PATH.

2) Unpack your tilesets in one of the directories there.  If packaged according
   to the standard on ftp://ftp.freeciv.org/contrib/tilesets/, a tileset
   will unpack to 3 items:

     <tilesetname>.spec   (the "table of contents", may refer to other tilesets)
     <tilesetname/        (the tiles, if the tileset has any of its own)
     <tilesetname>.README (optional)

For Unix/X clients, you need XPM tiles; for Windows, you need PNG tiles;
Andreas has made them available, they can be recognized by their filenames.

3) Start your client (with the correct $FREECIV_PATH set!) with the option

  civclient -tiles <tilesetname>

> I have not found out yet how to fix that bug in a clean way (maybe stat() 
> should be used to check if a directory exists, that should be fairly 
> portable).
> 
> Greetings
> Andreas Kemnade

-- 
Reinier


[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv] Re: [Freeciv-Dev] Re: Re: Rulesets, Tilesets, and Winblows, Reinier Post <=