Complete.Org: Mailing Lists: Archives: freeciv-dev: November 2005:
[Freeciv-Dev] Re: (PR#14633) FREECIV_PATH and savegame loading
Home

[Freeciv-Dev] Re: (PR#14633) FREECIV_PATH and savegame loading

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Subject: [Freeciv-Dev] Re: (PR#14633) FREECIV_PATH and savegame loading
From: "Christian Knoke" <chrisk@xxxxxxxxx>
Date: Tue, 22 Nov 2005 05:31:37 -0800
Reply-to: bugs@xxxxxxxxxxx

<URL: http://bugs.freeciv.org/Ticket/Display.html?id=14633 >

Jason Short wrote on Nov 21, 16:44 (-0800):
> 
> <URL: http://bugs.freeciv.org/Ticket/Display.html?id=14633 >
> 
> > [chrisk - Sat Nov 19 11:14:11 2005]:
> > 
> > 
> > SVN HEAD 19 NOV 2005 GTK2
> > 
> > If FREECIV_PATH is set, savegames are still saved in
> > $HOME/.freeciv/saves, but expected to load from somewhere else ($HOME?).
> > 
> > Worse, trying to load them with the file selection dialog fails, because
> > it is not possible to select dir ".freeciv" from there, neither by mouse
> > click nor by textual input.
> 
> Hmm.  AFAICT FREECIV_PATH has nothing to do with saving and loading
> location.  Vasco would know better though.

You can reproduce this:

FREECIV_PATH=./freeciv/svn/freeciv/data civclient -d 3 -l log1

--> load game

gives empty directory. in the file select dialog it is not possible to enter
'.freeciv'.

Attached is log.diff.

> > BTW I think saving save games in a (sub dir of a) hidden directory is
> > not so
> > good, because it can grow big and because some linux users won't find it.
> > I'd prefer "freecivgames" or something else instead.
> 
> I think it varies by platform.  For linux, using a hidden directory is
> the standard followed by most programs AFAICT.  For windows, it should
> go in a non-hidden directory inside the documents folder.  And for macos...?

For Linux, there is News/ Mail/ Desktop/ for example.

Christian

-- 
Christian Knoke            * * *            http://cknoke.de
* * * * * * * * *  Ceterum censeo Microsoft esse dividendum.

--- log1        2005-11-22 14:21:30.879533976 +0100
+++ log2        2005-11-22 14:21:49.403717872 +0100
@@ -13,75 +13,76 @@
 chris: '/set topology 1'
 
 chris: '/quit'
-iv/data/trident.tilespec"
+: tilespec file is /usr/local/share/freeciv/trident.tilespec
+3: Reading registry from "/usr/local/share/freeciv/trident.tilespec"
 3: tile sizes 30x30, 3030 unit, 1520 small
-3: Reading registry from "./freeciv/svn/freeciv/data/misc/colors.spec"
-3: Unused entries in file ./freeciv/svn/freeciv/data/misc/colors.spec:
+3: Reading registry from "/usr/local/share/freeciv/misc/colors.spec"
+3: Unused entries in file /usr/local/share/freeciv/misc/colors.spec:
 3:   unused entry: file.gfx
-3: Reading registry from "./freeciv/svn/freeciv/data/misc/overlays.spec"
-3: Unused entries in file ./freeciv/svn/freeciv/data/misc/overlays.spec:
+3: Reading registry from "/usr/local/share/freeciv/misc/overlays.spec"
+3: Unused entries in file /usr/local/share/freeciv/misc/overlays.spec:
 3:   unused entry: file.gfx
-3: Reading registry from "./freeciv/svn/freeciv/data/misc/citybar.spec"
-3: Unused entries in file ./freeciv/svn/freeciv/data/misc/citybar.spec:
+3: Reading registry from "/usr/local/share/freeciv/misc/citybar.spec"
+3: Unused entries in file /usr/local/share/freeciv/misc/citybar.spec:
 3:   unused entry: file.gfx
-3: Reading registry from "./freeciv/svn/freeciv/data/trident/tiles.spec"
-3: Unused entries in file ./freeciv/svn/freeciv/data/trident/tiles.spec:
+3: Reading registry from "/usr/local/share/freeciv/trident/tiles.spec"
+3: Unused entries in file /usr/local/share/freeciv/trident/tiles.spec:
 3:   unused entry: file.gfx
-3: Reading registry from "./freeciv/svn/freeciv/data/misc/small.spec"
-3: Unused entries in file ./freeciv/svn/freeciv/data/misc/small.spec:
+3: Reading registry from "/usr/local/share/freeciv/misc/small.spec"
+3: Unused entries in file /usr/local/share/freeciv/misc/small.spec:
 3:   unused entry: file.gfx
-3: Reading registry from "./freeciv/svn/freeciv/data/trident/units.spec"
-3: Unused entries in file ./freeciv/svn/freeciv/data/trident/units.spec:
+3: Reading registry from "/usr/local/share/freeciv/trident/units.spec"
+3: Unused entries in file /usr/local/share/freeciv/trident/units.spec:
 3:   unused entry: file.gfx
-3: Reading registry from "./freeciv/svn/freeciv/data/trident/select.spec"
-3: Unused entries in file ./freeciv/svn/freeciv/data/trident/select.spec:
+3: Reading registry from "/usr/local/share/freeciv/trident/select.spec"
+3: Unused entries in file /usr/local/share/freeciv/trident/select.spec:
 3:   unused entry: file.gfx
-3: Reading registry from "./freeciv/svn/freeciv/data/misc/flags.spec"
-3: Reading registry from "./freeciv/svn/freeciv/data/misc/shields.spec"
-3: Reading registry from "./freeciv/svn/freeciv/data/misc/cursors.spec"
-3: Unused entries in file ./freeciv/svn/freeciv/data/misc/cursors.spec:
+3: Reading registry from "/usr/local/share/freeciv/misc/flags.spec"
+3: Reading registry from "/usr/local/share/freeciv/misc/shields.spec"
+3: Reading registry from "/usr/local/share/freeciv/misc/cursors.spec"
+3: Unused entries in file /usr/local/share/freeciv/misc/cursors.spec:
 3:   unused entry: file.gfx
-3: Reading registry from "./freeciv/svn/freeciv/data/trident/grid.spec"
-3: Unused entries in file ./freeciv/svn/freeciv/data/trident/grid.spec:
+3: Reading registry from "/usr/local/share/freeciv/trident/grid.spec"
+3: Unused entries in file /usr/local/share/freeciv/trident/grid.spec:
 3:   unused entry: file.gfx
-3: Reading registry from "./freeciv/svn/freeciv/data/trident/roads.spec"
-3: Unused entries in file ./freeciv/svn/freeciv/data/trident/roads.spec:
+3: Reading registry from "/usr/local/share/freeciv/trident/roads.spec"
+3: Unused entries in file /usr/local/share/freeciv/trident/roads.spec:
 3:   unused entry: file.gfx
-3: Reading registry from "./freeciv/svn/freeciv/data/misc/buildings.spec"
-3: Unused entries in file ./freeciv/svn/freeciv/data/misc/buildings.spec:
+3: Reading registry from "/usr/local/share/freeciv/misc/buildings.spec"
+3: Unused entries in file /usr/local/share/freeciv/misc/buildings.spec:
 3:   unused entry: file.gfx
-3: Reading registry from "./freeciv/svn/freeciv/data/misc/space.spec"
-3: Unused entries in file ./freeciv/svn/freeciv/data/misc/space.spec:
+3: Reading registry from "/usr/local/share/freeciv/misc/space.spec"
+3: Unused entries in file /usr/local/share/freeciv/misc/space.spec:
 3:   unused entry: file.gfx
-3: Reading registry from "./freeciv/svn/freeciv/data/misc/treaty.spec"
-3: Unused entries in file ./freeciv/svn/freeciv/data/misc/treaty.spec:
+3: Reading registry from "/usr/local/share/freeciv/misc/treaty.spec"
+3: Unused entries in file /usr/local/share/freeciv/misc/treaty.spec:
 3:   unused entry: file.gfx
-3: Reading registry from "./freeciv/svn/freeciv/data/misc/icons.spec"
-3: Reading registry from "./freeciv/svn/freeciv/data/trident/fog.spec"
-3: Unused entries in file ./freeciv/svn/freeciv/data/trident/fog.spec:
+3: Reading registry from "/usr/local/share/freeciv/misc/icons.spec"
+3: Reading registry from "/usr/local/share/freeciv/trident/fog.spec"
+3: Unused entries in file /usr/local/share/freeciv/trident/fog.spec:
 3:   unused entry: spec.artists
 3:   unused entry: file.gfx
-3: Reading registry from "./freeciv/svn/freeciv/data/trident/cities.spec"
-3: Unused entries in file ./freeciv/svn/freeciv/data/trident/cities.spec:
+3: Reading registry from "/usr/local/share/freeciv/trident/cities.spec"
+3: Unused entries in file /usr/local/share/freeciv/trident/cities.spec:
 3:   unused entry: file.gfx
-3: Reading registry from "./freeciv/svn/freeciv/data/trident/explosions.spec"
-3: Unused entries in file ./freeciv/svn/freeciv/data/trident/explosions.spec:
+3: Reading registry from "/usr/local/share/freeciv/trident/explosions.spec"
+3: Unused entries in file /usr/local/share/freeciv/trident/explosions.spec:
 3:   unused entry: file.gfx
-3: finished reading ./freeciv/svn/freeciv/data/trident.tilespec
+3: finished reading /usr/local/share/freeciv/trident.tilespec
 3: Sound deaktiviert
 3: Neither of tags music_start or (null) found
 3: color system booted ok.
-3: Reading registry from "./freeciv/svn/freeciv/data/misc/treaty.spec"
-3: Reading registry from "./freeciv/svn/freeciv/data/misc/small.spec"
-3: Reading registry from "./freeciv/svn/freeciv/data/trident/tiles.spec"
-3: Reading registry from "./freeciv/svn/freeciv/data/misc/overlays.spec"
-3: Reading registry from "./freeciv/svn/freeciv/data/misc/space.spec"
-3: Reading registry from "./freeciv/svn/freeciv/data/misc/cursors.spec"
-3: Reading registry from "./freeciv/svn/freeciv/data/trident/roads.spec"
-3: Reading registry from "./freeciv/svn/freeciv/data/trident/explosions.spec"
-3: Reading registry from "./freeciv/svn/freeciv/data/trident/select.spec"
-3: Reading registry from "./freeciv/svn/freeciv/data/misc/citybar.spec"
-3: Reading registry from "./freeciv/svn/freeciv/data/trident/cities.spec"
+3: Reading registry from "/usr/local/share/freeciv/misc/treaty.spec"
+3: Reading registry from "/usr/local/share/freeciv/misc/small.spec"
+3: Reading registry from "/usr/local/share/freeciv/trident/tiles.spec"
+3: Reading registry from "/usr/local/share/freeciv/misc/overlays.spec"
+3: Reading registry from "/usr/local/share/freeciv/misc/space.spec"
+3: Reading registry from "/usr/local/share/freeciv/misc/cursors.spec"
+3: Reading registry from "/usr/local/share/freeciv/trident/roads.spec"
+3: Reading registry from "/usr/local/share/freeciv/trident/explosions.spec"
+3: Reading registry from "/usr/local/share/freeciv/trident/select.spec"
+3: Reading registry from "/usr/local/share/freeciv/misc/citybar.spec"
+3: Reading registry from "/usr/local/share/freeciv/trident/cities.spec"
 3: Using alternate graphic city.size_0 (instead of path.turns_0) for sprite 
path.turns[i]
 3: Using alternate graphic city.size_1 (instead of path.turns_1) for sprite 
path.turns[i]
 3: Using alternate graphic city.size_10 (instead of path.turns_10) for sprite 
path.turns_tens[i]
@@ -101,27 +102,30 @@
 3: Using alternate graphic city.size_80 (instead of path.turns_80) for sprite 
path.turns_tens[i]
 3: Using alternate graphic city.size_9 (instead of path.turns_9) for sprite 
path.turns[i]
 3: Using alternate graphic city.size_90 (instead of path.turns_90) for sprite 
path.turns_tens[i]
-3: Reading registry from "./freeciv/svn/freeciv/data/misc/colors.spec"
-3: Reading registry from "./freeciv/svn/freeciv/data/trident/grid.spec"
-3: Reading registry from "./freeciv/svn/freeciv/data/trident/fog.spec"
+3: Reading registry from "/usr/local/share/freeciv/misc/colors.spec"
+3: Reading registry from "/usr/local/share/freeciv/trident/grid.spec"
+3: Reading registry from "/usr/local/share/freeciv/trident/fog.spec"
 3: The tileset doesn't specify prefered themes or none of prefered themes can 
be used. Using system default
 3: log started
 2: Lade rulesets
-3: Data path component (0): ./freeciv/svn/freeciv/data
-3: Reading registry from "./freeciv/svn/freeciv/data/default/techs.ruleset"
+3: Data path component (0): .
+3: Data path component (1): data
+3: Data path component (2): /home/chris/.freeciv
+3: Data path component (3): /usr/local/share/freeciv
+3: Reading registry from "/usr/local/share/freeciv/default/techs.ruleset"
 3: 88 advances (including possibly unused)
-3: Reading registry from "./freeciv/svn/freeciv/data/default/buildings.ruleset"
+3: Reading registry from "/usr/local/share/freeciv/default/buildings.ruleset"
 3: 67 improvement types (including possibly unused)
-3: Reading registry from 
"./freeciv/svn/freeciv/data/default/governments.ruleset"
-3: Reading registry from "./freeciv/svn/freeciv/data/default/units.ruleset"
+3: Reading registry from "/usr/local/share/freeciv/default/governments.ruleset"
+3: Reading registry from "/usr/local/share/freeciv/default/units.ruleset"
 3: 52 unit types (including possibly unused)
-3: Reading registry from "./freeciv/svn/freeciv/data/default/terrain.ruleset"
-3: Reading registry from "./freeciv/svn/freeciv/data/default/cities.ruleset"
-3: Reading registry from "./freeciv/svn/freeciv/data/default/nations.ruleset"
-3: Reading registry from "./freeciv/svn/freeciv/data/default/effects.ruleset"
-3: Unused entries in file ./freeciv/svn/freeciv/data/default/cities.ruleset:
+3: Reading registry from "/usr/local/share/freeciv/default/terrain.ruleset"
+3: Reading registry from "/usr/local/share/freeciv/default/cities.ruleset"
+3: Reading registry from "/usr/local/share/freeciv/default/nations.ruleset"
+3: Reading registry from "/usr/local/share/freeciv/default/effects.ruleset"
+3: Unused entries in file /usr/local/share/freeciv/default/cities.ruleset:
 3:   unused entry: parameters.celebrate_size_limit
-3: Unused entries in file ./freeciv/svn/freeciv/data/default/buildings.ruleset:
+3: Unused entries in file /usr/local/share/freeciv/default/buildings.ruleset:
 3:   unused entry: b_special.default
 3: Warning: malloc with size 0 at line 2086 of ruleset.c
 3: Warning: malloc with size 0 at line 2086 of ruleset.c
@@ -216,11 +220,11 @@
 3: letzte Mitteilung 1mal wiederholt (insgesamt 3 Wiederholungen)
 3: Warning: malloc with size 0 at line 2077 of ruleset.c
 3: Warning: malloc with size 0 at line 2086 of ruleset.c
-3: Unused entries in file ./freeciv/svn/freeciv/data/default/nations.ruleset:
+3: Unused entries in file /usr/local/share/freeciv/default/nations.ruleset:
 3:   unused entry: nation_bosnia.ciwilwar_nations
 3:   unused entry: nation_bosnia.ciwilwar_nations,1
 3:   unused entry: nation_barbarian.is_observer
-3: Reading registry from "./freeciv/svn/freeciv/data/default/game.ruleset"
+3: Reading registry from "/usr/local/share/freeciv/default/game.ruleset"
 2: Warte auf Spieler...
 3: HOME is /home/chris
 2: Server cannot read standard input. Ignoring input.
@@ -320,13 +324,14 @@
 3: Don't have graphics tags a.university or - for tech_type University
 3: Don't have graphics tags a.warrior_code or - for tech_type Warrior Code
 3: Don't have graphics tags a.writing or - for tech_type Writing
-3: Reading registry from "./freeciv/svn/freeciv/data/misc/small.spec"
-3: Reading registry from "/home/chris/.freeciv/challenge_5555_1"
-3: Reading registry from "./freeciv/svn/freeciv/data/trident/units.spec"
-3: Reading registry from "./freeciv/svn/freeciv/data/trident/tiles.spec"
+3: Reading registry from "/usr/local/share/freeciv/misc/small.spec"
+3: Reading registry from "/usr/local/share/freeciv/trident/units.spec"
+3: Reading registry from "/usr/local/share/freeciv/trident/tiles.spec"
 3: Don't have graphics tags t.ocean1 or  for tile_type Ocean
-3: Reading registry from "./freeciv/svn/freeciv/data/misc/buildings.spec"
-3: Reading registry from "./freeciv/svn/freeciv/data/trident/cities.spec"
+3: Reading registry from "/usr/local/share/freeciv/misc/buildings.spec"
+3: Reading registry from "/home/chris/.freeciv/challenge_5555_1"
+3: Skipping non-existing data directory data.
+3: Reading registry from "/usr/local/share/freeciv/trident/cities.spec"
 2: No tiles for city.babylonian style, trying alternate city.classical style
 2: No tiles for city.celtic style, trying alternate city.european style
 3: Neither of tags e_connection or (null) found

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