Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 59568 - netpanzer-0.1.5-r1 does not run (bootstrap failed)
Summary: netpanzer-0.1.5-r1 does not run (bootstrap failed)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-05 15:34 UTC by Eric Brown
Modified: 2004-08-11 18:27 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
output from xdpyinfo (txt.txt,11.62 KB, text/plain)
2004-08-08 20:57 UTC, Eric Brown
Details
changes the basedir to always be /usr/share/games/netpanzer/ (FileSystem.patch,458 bytes, text/plain)
2004-08-10 19:26 UTC, Eric Brown
Details
the true error output (log.txt,3.02 KB, text/plain)
2004-08-10 19:59 UTC, Eric Brown
Details
jamconfig from /var/tmp/portage/netpanzer-0.1.5-r1/work/netpanzer-0.1.5/ (Jamconfig,3.22 KB, text/plain)
2004-08-10 20:24 UTC, Eric Brown
Details
jamfile from src/netpanzer (Jamfile,1.04 KB, text/plain)
2004-08-11 18:02 UTC, Eric Brown
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Brown 2004-08-05 15:34:24 UTC
it won't run, netpanzer -g shows this:

DEBUG: debug option enabled
Couldn't load font 'fonts/fixed10.pcf': couldn't open file 'fonts/fixed10.pcf' for reading: No such file or directory.
DEBUG: readString 'player->name=Player975'
DEBUG: readString 'player->lobbyserver=irc.freenode.net:6667'
DEBUG: readString 'player->proxyserver='
DEBUG: readString 'player->proxyserveruser='
DEBUG: readString 'player->proxyserverpass='
DEBUG: readInt 'visuals->resolution=0'
DEBUG: readString 'visuals->fullscreen=yes'
DEBUG: readString 'visuals->hardwareSurface=yes'
DEBUG: readString 'visuals->hardwareDoubleBuffer=yes'
DEBUG: readString 'visuals->displayshadows=yes'
DEBUG: readString 'visuals->blendsmoke=yes'
DEBUG: readInt 'visuals->gamma=50'
DEBUG: readString 'sound->enable=yes'
DEBUG: readString 'sound->music=yes'
DEBUG: readInt 'sound->musicvolume=80'
DEBUG: readString 'sound->effects=yes'
DEBUG: readInt 'sound->effectsvolume=100'
DEBUG: readInt 'interface->unitcolor=0'
DEBUG: readInt 'interface->playerflag=0'
DEBUG: readInt 'interface->attacknotificationtime=5'
DEBUG: readInt 'interface->vehicleselectioncolor=1'
DEBUG: readInt 'interface->consoletextcolor=13'
DEBUG: readInt 'interface->unitselectionmode=1'
DEBUG: readInt 'interface->unitinfodrawlayer=0'
DEBUG: readString 'interface->drawunitdamage=yes'
DEBUG: readString 'interface->drawunitreload=no'
DEBUG: readString 'interface->drawunitflags=yes'
DEBUG: readInt 'interface->consoletextdelay=3'
DEBUG: readInt 'interface->consoletextusage=25'
DEBUG: readInt 'interface->scrollrate=1000'
DEBUG: readXY 'interface->minimapposition=0,0'
DEBUG: readXY 'interface->minimapsize=194,194'
DEBUG: readInt 'interface->minimapdrawtype=0'
DEBUG: readXY 'interface->gameinfoposition=0,0'
DEBUG: readXY 'interface->toolbarposition=0,0'
DEBUG: readXY 'interface->rankposition=0,0'
DEBUG: readInt 'interface->viewdrawbackgroundmode=0'
DEBUG: readString 'radar->displayclouds=no'
DEBUG: readInt 'radar->playerunitcolor=0'
DEBUG: readInt 'radar->alliedunitcolor=11'
DEBUG: readInt 'radar->playeroutpostcolor=1'
DEBUG: readInt 'radar->alliedoutpostcolor=11'
DEBUG: readInt 'radar->enemyoutpostcolor=4'
DEBUG: readInt 'radar->unitsize=0'
DEBUG: readInt 'radar->objectivedrawmode=1'
DEBUG: readInt 'radar->resizerate=400'
DEBUG: readInt 'server->serverport=3030'
DEBUG: readInt 'server->gametype=0'
DEBUG: readInt 'server->maxplayers=8'
DEBUG: readInt 'server->maxunits=500'
DEBUG: readInt 'server->initialunits=5'
DEBUG: readInt 'server->timelimit=50'
DEBUG: readInt 'server->fraglimit=500'
DEBUG: readString 'server->powerups=yes'
DEBUG: readInt 'server->objectivepercentage=100'
DEBUG: readString 'server->allowallies=yes'
DEBUG: readInt 'server->cloudcoverage=0'
DEBUG: readInt 'server->respawntype=1'
DEBUG: readInt 'server->windspeed=30'
DEBUG: readString 'server->mapcycle=Cramped, Tight Quarters, Two Villages'
Initializing sound system.
Couldn't find any music in 'sound/music/'
Initializing video mode
DEBUG: saved xml config 'config/netpanzer.xml'
Couldn't initialize the game: bootstrap failed.
Closing logfile.


Reproducible: Always
Steps to Reproduce:
1. emerge netpanzer
2. netpanzer -g
3.




Portage 2.0.50-r9 (default-x86-2004.0, gcc-3.3.3, glibc-2.3.3.20040420-r0,
2.6.7-gentoo-r11)
=================================================================
System uname: 2.6.7-gentoo-r11 i686 AMD Athlon(tm) Processor
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=athlon -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=athlon -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="ftp://gentoo.mirrors.pair.com/ http://mirrors.tds.net/gentoo
ftp://gentoo.netnitco.net/pub/mirrors/gentoo/source/
http://www.gigaload.org/gentoo.org/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow aalib alsa avi berkdb bzlib cdr cjk crypt curl dga dgs divx4linux doc
gif gtk2 jpeg mad matroska mmx mpeg msn ncurses nls oggvorbis opengl pam pcre
perl png posix postgres python quicktime readline sdl spell ssl tcpd tiff
truetype unicode x86 xv xvid zlib"
Comment 1 Mr. Bones. (RETIRED) gentoo-dev 2004-08-07 02:33:10 UTC
Attach the output of xdpyinfo as text/plain please.
Comment 2 Eric Brown 2004-08-08 20:57:54 UTC
Created attachment 37073 [details]
output from xdpyinfo
Comment 3 Mr. Bones. (RETIRED) gentoo-dev 2004-08-09 01:31:57 UTC
Hmmm.  Try it at 16bpp please.  That seems to be the only obvious difference between our setups.
Comment 4 Eric Brown 2004-08-09 18:17:08 UTC
i restarted X in 16bpp and i have the same problem


i also tried launching netpanzer as root, it's not the same, but i get lots of funky output in the terminal, almost like ascii art.. i can actually read the word "menu" in it somewhere.. this isn't an ascii game is it?
Comment 5 Eric Brown 2004-08-10 19:25:45 UTC
I fixed it :)
 src/Lib/Util/FileSystem.cpp has a problem in the initialise function:

if(!PHYSFS_init(argv0))
.. argv0 = "netpanzer" or "/usr/games/bin/netpanzer"
.. argv0 should be the base path of the netpanzer installation "/usr/share/games/netpanzer/" (note the trailing slash is important)

the patch i will attach should fix that.. someone update the ebuild to use it (also verify it please, it's my first patch)

also, i had SDL built with -X +aalib, so i was seeing an ascii rendering of the game before when I launched it from the base directory.
Comment 6 Eric Brown 2004-08-10 19:26:40 UTC
Created attachment 37188 [details]
changes the basedir to always be /usr/share/games/netpanzer/
Comment 7 Mr. Bones. (RETIRED) gentoo-dev 2004-08-10 19:33:26 UTC
That doesn't explain why it works fine for me.
Comment 8 Eric Brown 2004-08-10 19:36:05 UTC
how do you launch netpanzer? where is your netpanzer executable, where are the directories (pics, sounds,etc)

if you have been launching it like /usr/share/games/netpanzer/netpanzer, then it will probably work fine, but most people launch it as "netpanzer" i suppose.. and there is also an executable in /usr/games/bin or something..
Comment 9 Mr. Bones. (RETIRED) gentoo-dev 2004-08-10 19:42:34 UTC
I'm launching it as "netpanzer" and it's being run from /usr/games/bin/netpanzer.  Running it as either "netpanzer" or "/usr/games/bin/netpanzer" both work fine.  According to the physfs docs, argv[0] is supposed to be passed to that init function.   I believe the patch is incorrect and that you are experiencing some other issue.
Comment 10 Eric Brown 2004-08-10 19:59:45 UTC
Created attachment 37189 [details]
the true error output
Comment 11 Eric Brown 2004-08-10 20:24:36 UTC
Created attachment 37191 [details]
jamconfig from /var/tmp/portage/netpanzer-0.1.5-r1/work/netpanzer-0.1.5/

this was taken during mid-compile.. but i dont think it matters since it's
generated after ./configure
Comment 12 Mr. Bones. (RETIRED) gentoo-dev 2004-08-11 00:04:27 UTC
Seems like this code in ./src/NetPanzer/Core/main.cpp isn't working for you for some reason:

// try adding the DATADIR
#ifdef DATADIR
    try {
        FileSystem::addToSearchPath(DATADIR);
    } catch(...)
    { }
#endif

DATADIR is defined in src/NetPanzer/Jamfile

Please attach a copy of this file after the compile step.
Comment 13 Eric Brown 2004-08-11 18:02:55 UTC
Created attachment 37255 [details]
jamfile from src/netpanzer
Comment 14 Mr. Bones. (RETIRED) gentoo-dev 2004-08-11 18:27:12 UTC
Old stuff in /usr/local ....