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"
Attach the output of xdpyinfo as text/plain please.
Created attachment 37073 [details] output from xdpyinfo
Hmmm. Try it at 16bpp please. That seems to be the only obvious difference between our setups.
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?
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.
Created attachment 37188 [details] changes the basedir to always be /usr/share/games/netpanzer/
That doesn't explain why it works fine for me.
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..
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.
Created attachment 37189 [details] the true error output
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
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.
Created attachment 37255 [details] jamfile from src/netpanzer
Old stuff in /usr/local ....