Thanks for pointing this z-man.
In client and server always this warning is thrown when launching them:
Code: Select all
[0] Warning in void FindConfigurationPath(const char*) in ../../src/tools/tDirectories.cpp:1120 :
[0] Could not determine path to configuration files. Using defaults or command line arguments.
Maybe this warning is thrown because I should update the armagetronad wrappers that exists in debian configurations (/usr/games/armagetronad and /usr/games/armagetronad-dedicated) to point to the resource directory (I'm lost because I haven't followed the map development). For example, here is the armagetronad wrapper:
Code: Select all
#!/bin/sh -e
REALTRON=/usr/games/armagetronad.real
DATADIR=/usr/share/games/armagetronad
CONFDIR=/etc/armagetronad
USERCONFDIR=$HOME/.armagetronad
USERDATADIR=$USERCONFDIR/data
VARDIR=$USERCONFDIR/var
if [ ! -d $USERCONFDIR ]; then
# have to create configuration directory
mkdir $USERCONFDIR
mkdir $USERCONFDIR/var
if [ -f $HOME/.ArmageTronrc ]; then
# upgrade from before 0.2
cp $HOME/.ArmageTronrc $USERCONFDIR/user.cfg
fi
fi
CMDLINE="--datadir $DATADIR --configdir $CONFDIR --userconfigdir $USERCONFDIR --vardir $VARDIR"
if [ -d $USERDATADIR ]; then
CMDLINE="$CMDLINE --userdatadir $USERDATADIR"
fi
exec $REALTRON $CMDLINE "$@"
Also in debian packaging I have set the same directory of resources for armagetronad and armagetronad-dedicated (it's in the armagetronad-common deb):
/usr/share/games/armagetronad/resource/...
Do I have to make an /usr/share/games/armagetronad-resource/resource/... for debian dedicated server? Could you explain me which directories armagetronad and armagetrond-dedicated looks for?
As you can see my mind is a total chaos about armagetronad directories... hehehe
