Page 2 of 3

Posted: Sat Apr 02, 2005 2:38 pm
by TheBohemian
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. :(

Posted: Sat Apr 02, 2005 4:39 pm
by wishkah
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. :(
Ummm, AI should be pretty much platform independent, right? Why isn't it working?

edit: thanks for the link to realtimestrategies.net

Skirmish mode...

Posted: Thu Apr 14, 2005 3:21 pm
by rodzilla
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.

Re: Skirmish mode...

Posted: Fri May 13, 2005 8:27 pm
by Mandr4ke
rodzilla 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.
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... hehe

Posted: Sat May 28, 2005 9:40 pm
by zombi
Is there an ebuild for the game? :-)

Posted: Wed Jun 15, 2005 10:58 pm
by Calchan
zombi wrote:Is there an ebuild for the game? :-)
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).

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
}
For those who don't know, here's how to use it. In my case, my portage overlay is located at /usr/local/portage, so the file's full path is /usr/local/portage/games-strategy/warzone2100/warzone2100-0.1.ebuild. More info on how to setup a portage overlay here.

Don't forget to generate a digest for it. For example, I had to type :

Code: Select all

ebuild /usr/local/portage/games-strategy/warzone2100/warzone2100-0.1.ebuild digest
Then

Code: Select all

emerge warzone2100
and enjoy. Start the game by typing warzone2100, and once you have started it once, edit ~/.warzone2100/config and restart. Changing the state of the fullscreen and resolution variables is strongly advised (most standard resolutions are supported). Other variables are editable from inside the game.

It's still pretty experimental, but very playable. We mostly need feedback on network games at this time, but any bug/suggestion is welcome. Don't forget to report bugs at http://developer.berlios.de/bugs/?group_id=2909.

Posted: Tue Jun 21, 2005 9:57 am
by Calchan
There's a new, cleaner, ebuild available. It's only interesting if you want to test it. If all you want is play the game, there's no need to bother about it. Get it here.

A new Warzone 2100 release should come very soon (if we decide to go for a 0.1.1 update) or later (if we end up going directly for a 0.2 release). I'll keep you guys posted.

Posted: Tue Jun 21, 2005 10:37 am
by Menfis
Nice. I`l try that.

It compiles at least

Posted: Tue Jun 21, 2005 4:53 pm
by bob0linus
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]

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".
Xlib: extension "GLX" missing on display ":1.0".

Re: It compiles at least

Posted: Thu Jun 23, 2005 6:25 pm
by Calchan
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]

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".
Xlib: extension "GLX" missing on display ":1.0".
You can trigger the 3D software renderer with the -software option, like this :

Code: Select all

warzone2100 -software
This way you don't need opengl any more. You still need X, though.

Posted: Fri Jun 24, 2005 3:00 pm
by Crocodil
Hi :)

The ebuild works fine for me :) And I do enjoy the game very much :)

I have 2 problems though:

1. The game segfaults randomly (it happenes about once in 5 hours of playing)

2. Mission briefings disappear too quickly - I can't read them. (not even in the "intelligence" panel)

Regards,
Crocodil

Release 0.2 and new ebuild

Posted: Tue Jun 28, 2005 9:51 am
by Calchan
Charun wrote:
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]

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".
Xlib: extension "GLX" missing on display ":1.0".
You can trigger the 3D software renderer with the -software option, like this :

Code: Select all

warzone2100 -software
This way you don't need opengl any more. You still need X, though.
Forget 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.

Which brings me to the good news. There's a new release of Warzone 2100, and a new ebuild to go with it. Get it here. It's strongly advised to update if you Linux users want to play network games with Windows users (as there was a bug preventing this). Check the Changelog here.

Posted: Wed Jun 29, 2005 8:40 pm
by CodAv
Great game, have bought it as it came out, but was very disappointed that it won't run on WinXP anymore, and no luck with wine too. Tried the LOKI installer version, and it worked :)
It still needs a lot of work, but I would love it to have a fully functional WZ2100 again, which I could play with some friends. If I would have the experience with C, I would be glad to help in programming.

Posted: Wed Jun 29, 2005 8:56 pm
by stobbsm

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??

Posted: Fri Jul 01, 2005 5:49 am
by Calchan
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??
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.

Posted: Fri Jul 01, 2005 2:25 pm
by stobbsm
Starting 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
That's the output from GDB

mabye I'll try to compile it myself, and see if that works

Posted: Tue Jul 05, 2005 3:52 pm
by stobbsm
doesn't work for me
even straight compile gives me the same problem

warzone2100-0.2.1.ebuild

Posted: Sun Jul 17, 2005 5:50 am
by Calchan
Version 0.2.1 is now available, get the ebuild here. Main changes are : more maps, more sample music (and new shuffle playing mode), technology levels 2 and 3 are back, lots of bug fixes.

Don't forget to 'rm ~/.warzone' in case you're experiencing any difficulty. Check the README for info on changes in playlist syntax.

Posted: Wed Jul 27, 2005 4:38 pm
by Elwin
stobbsm wrote:doesn't work for me
even straight compile gives me the same problem
I 've the same problem but an emerge without opengl support solve it.
Good luck

Posted: Thu Jul 28, 2005 7:43 am
by Calchan
To Elwin and stobsm,
We are continuously fixing bugs (see below), but if you want more support to help you compile Warzone 2100, you should drop by the mailing lists. But first, try the latest version.

To everybody,
Version 0.2.2 has just been released. It's a bugfix release, here's what concerns gentoo users in the changelog:

* More Compiler warning fixes.
* Fixed a few assert-related problems.
* Lots of lex/yacc related fixes.
* Fixed a crash with missing videos
* Fixed a wrong function definition / call in multiint.c.
* Fixed crash with international characters.
* Fixed memory release crash.
* Removed the last traces of stubs.c in both ivis directories (and thus fixed building the software renderer with automake).
* Check that video mode can actually be set.

The ebuild doesn't change. Just copy warzone2100-0.2.1.ebuild to warzone2100-0.2.2.ebuild, do a digest, and you can emerge warzone2100.

Posted: Tue Sep 13, 2005 4:14 pm
by hooflungpoo
WoW I still have my Windows version handy! I would love to play this under linux natively!

Posted: Tue Sep 13, 2005 5:53 pm
by -Rick-
hooflungpoo wrote:WoW I still have my Windows version handy! I would love to play this under linux natively!
The best thing is that you don't even need it ;)

Posted: Tue Sep 13, 2005 7:24 pm
by Jeremy_Z
Nice work. But got some issues : first can't read briefing / intelligence ? when i click nothing is written .. or maybe it goes too fast...
I am blocked at the mission with the transport. A timer of 15 minutes starts (but i don't know why) and a transport appears in the base. I guessed i need to fill 10 units in it and send the transport .. but :
When the transport leaves, i got a new map, i can still move the camera but nothing happens. There if i try to access mission briefing / intelligence, it says mission failed .. ok. When the timer run off, nothing happens. Also when the timers run off before sending the transport nothing happens neither, and when i send the transport then, it stops at the border of the map.

:evil:

Posted: Fri Sep 16, 2005 10:30 am
by maKKus
If you want to skip a level, because it doesn't work or other reasons, press [t] and type

hallo mein schatz [enter]

this will skip the level,

If you want to stop/start the timer, press [t] and type

toggle time [enter]

Posted: Fri Sep 16, 2005 2:01 pm
by m.b.j.
Tryed to compile on amd64

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
i have all this emul-linux-x86 libarys installed, what i can do?