However the skirmish ai does not work and so the computer players just sit around and do nothing.

Ummm, AI should be pretty much platform independent, right? Why isn't it working?TheBohemian wrote:Go into src/main.c and set bDisableLobby to false. Then you will have access to the mp menu where you can play against the computer. Ah yes create a "multiplay/players" inside src first or you will get a segmentation fault.
However the skirmish ai does not work and so the computer players just sit around and do nothing.
Wow this sounds awesome,, i got this game for windows when i got board of starcraft and it was amazing.. just was sorry to see the company who made it went out of busniess right after the release so there were like no updates and no good multiplayer forum to get the word out along with getting lots of player.. it totally blew away star craft and just the types of vehicles was amazing aftering upgrades... heherodzilla wrote:The skirmish mode works now (or at least seems to).
The source code can be downloaded from the svn repository @ BerliOS (branches/rodzilla) or on this page.
Yes. Save the following code in a file named warzone2100-0.1.ebuild (it should go in the games-strategy category of your portage overlay).zombi wrote:Is there an ebuild for the game?
Code: Select all
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit games
DESCRIPTION="Warzone 2100, the 3D real-time strategy game."
HOMEPAGE="http://www.realtimestrategies.net/forums/index.php"
SRC_URI="http://download.berlios.de/warzone/${PN}-src-${PV}.tar.bz2
http://download.berlios.de/warzone/${PN}-data-${PV}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"
IUSE=""
DEPEND=">=sys-apps/gawk-3.1.3
>=media-libs/libsdl-1.2.8
>=media-libs/sdl-net-1.2.5
>=media-libs/openal-20040817"
src_compile() {
# A makefile is provided in the tarball in case the autotools don't
# work. We use them though, so we need to run autogen.sh.
cd ${WORKDIR}
./autogen.sh
egamesconf
emake || die "emake failed"
}
src_install() {
# Can't install itself automatically yet. So we've got to do
# it manually.
mkdir -p ${D}/${GAMES_DATADIR}
cp -Rf ${WORKDIR}/data ${D}/${GAMES_DATADIR}/warzone2100
cp ${WORKDIR}/src/warzone ${D}/${GAMES_DATADIR}/warzone2100
gamesperms -R ${D}/${GAMES_DATADIR}/warzone2100
gamesowners -R ${D}/${GAMES_DATADIR}/warzone2100
# The executable can only work when started from inside the
# main warzone directory. Wrapper script needed.
mkdir -p ${D}/${GAMES_BINDIR}
echo '#!/bin/bash' > ${D}/${GAMES_BINDIR}/warzone2100
echo cd ${GAMES_DATADIR}/warzone2100 >> ${D}/${GAMES_BINDIR}/warzone2100
echo './warzone' >> ${D}/${GAMES_BINDIR}/warzone2100
gamesperms ${D}/${GAMES_BINDIR}/warzone2100
chmod ug+x ${D}/${GAMES_BINDIR}/warzone2100
gamesowners ${D}/${GAMES_BINDIR}/warzone2100
}
pkg_postinst() {
games_pkg_postinst
einfo "To start the game, run :"
einfo " warzone2100"
einfo "You can then modify ~/.warzone2100/config to your liking."
echo
einfo "Please, post bugs at :"
einfo " http://developer.berlios.de/bugs/?group_id=2909"
einfo "Your reward will be a better Warzone 2100."
echo
}Code: Select all
ebuild /usr/local/portage/games-strategy/warzone2100/warzone2100-0.1.ebuild digestCode: Select all
emerge warzone2100Code: Select all
# Forgot to run this as superuser at first
ebuild /usr/local/portage/games-strategy/warzone2100/warzone2100-0.1-r1.ebuild digest
emerge --ask warzone2100
* games-strategy/warzone2100
Latest version available: 0.1-r1
Latest version installed: 0.1-r1
Size of downloaded files: 26,952 kB
Homepage: http://www.realtimestrategies.net/forums/index.php
Description: Warzone 2100, the 3D real-time strategy game.
License: GPL-2
You can trigger the 3D software renderer with the -software option, like this :bob0linus wrote:Works good here. I guess I have to decide to switch on GLX for x windows. Using vnc into my linux machine won't cut it.
[/code]Xlib: extension "GLX" missing on display ":1.0".Code: Select all
# Forgot to run this as superuser at first ebuild /usr/local/portage/games-strategy/warzone2100/warzone2100-0.1-r1.ebuild digest emerge --ask warzone2100 * games-strategy/warzone2100 Latest version available: 0.1-r1 Latest version installed: 0.1-r1 Size of downloaded files: 26,952 kB Homepage: http://www.realtimestrategies.net/forums/index.php Description: Warzone 2100, the 3D real-time strategy game. License: GPL-2
Xlib: extension "GLX" missing on display ":1.0".
Code: Select all
warzone2100 -softwareForget that, it doesn't work. If you want to run with the software 3D renderer, you need to emerge the new version (see below) with -opengl in your USE flags.Charun wrote:You can trigger the 3D software renderer with the -software option, like this :bob0linus wrote:Works good here. I guess I have to decide to switch on GLX for x windows. Using vnc into my linux machine won't cut it.
[/code]Xlib: extension "GLX" missing on display ":1.0".Code: Select all
# Forgot to run this as superuser at first ebuild /usr/local/portage/games-strategy/warzone2100/warzone2100-0.1-r1.ebuild digest emerge --ask warzone2100 * games-strategy/warzone2100 Latest version available: 0.1-r1 Latest version installed: 0.1-r1 Size of downloaded files: 26,952 kB Homepage: http://www.realtimestrategies.net/forums/index.php Description: Warzone 2100, the 3D real-time strategy game. License: GPL-2
Xlib: extension "GLX" missing on display ":1.0".This way you don't need opengl any more. You still need X, though.Code: Select all
warzone2100 -software
Code: Select all
Fatal signal: Segmentation Fault (SDL Parachute Deployed)You should try removing ~/.warzone2100/config and see what it gives. If it still doesn't work, could you please give us a gdb backtrace ? Because without that it's hard to tell what the issue is.stobbsm wrote:Code: Select all
Fatal signal: Segmentation Fault (SDL Parachute Deployed)
that's all I get after I emerge 0.2, or even downgrade to 0.1.
I have lib-sdl 1.2.8-r1, sdl-net 1.2.6, latest opengl and openal
all the reqs are met software wise, what's going on??
That's the output from GDBStarting program: /usr/share/games/warzone2100/warzone
(no debugging symbols found)...[Thread debugging using libthread_db enabled]
[New Thread 1088604384 (LWP 28492)]
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1088604384 (LWP 28492)]
0x080f7d6f in ?? ()
(gdb) next
Cannot find bounds of current function

Code: Select all
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib64/libSDL.so when searching for -lSDL
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib64/libSDL.a when searching for -lSDL
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/X11R6/lib/libSDL.so when searching for -lSDL
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/X11R6/lib/libSDL.a when searching for -lSDL
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../libSDL.so when searching for -lSDL
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../libSDL.a when searching for -lSDL
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libSDL.so when searching for -lSDL
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libSDL.a when searching for -lSDL
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lSDL
collect2: ld returned 1 exit status
make[2]: *** [warzone] Error 1
make[2]: Leaving directory `/var/tmp/portage/warzone2100-2.2/work/warzone2100-2.2/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/warzone2100-2.2/work/warzone2100-2.2'
make: *** [all] Error 2