Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Warzone 2100 linux port? Interested?
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3  Next  
Reply to topic    Gentoo Forums Forum Index Gamers & Players
View previous topic :: View next topic  
Author Message
TheBohemian
n00b
n00b


Joined: 17 Feb 2004
Posts: 33

PostPosted: Sat Apr 02, 2005 2:38 pm    Post subject: Reply with quote

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. :(
_________________
GNU Classpath (http://www.classpath.org)

Bringing Java back to the community.

We are running more software than you think and support more platforms you can imagine!
Back to top
View user's profile Send private message
wishkah
Guru
Guru


Joined: 09 May 2003
Posts: 441
Location: de

PostPosted: Sat Apr 02, 2005 4:39 pm    Post subject: Reply with quote

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
_________________
if only I could fill my heart with love...
Back to top
View user's profile Send private message
rodzilla
n00b
n00b


Joined: 20 Feb 2005
Posts: 5

PostPosted: Thu Apr 14, 2005 3:21 pm    Post subject: Skirmish mode... Reply with quote

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.
Back to top
View user's profile Send private message
Mandr4ke
Apprentice
Apprentice


Joined: 25 Jul 2002
Posts: 214
Location: Chicago, IL

PostPosted: Fri May 13, 2005 8:27 pm    Post subject: Re: Skirmish mode... Reply with quote

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
Back to top
View user's profile Send private message
zombi
n00b
n00b


Joined: 28 May 2002
Posts: 15
Location: Budapest, Hungary

PostPosted: Sat May 28, 2005 9:40 pm    Post subject: Reply with quote

Is there an ebuild for the game? :-)
Back to top
View user's profile Send private message
Calchan
Retired Dev
Retired Dev


Joined: 15 Aug 2002
Posts: 50
Location: Cannes, France

PostPosted: Wed Jun 15, 2005 10:58 pm    Post subject: Reply with quote

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:
# 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:
ebuild /usr/local/portage/games-strategy/warzone2100/warzone2100-0.1.ebuild digest


Then
Code:
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.
Back to top
View user's profile Send private message
Calchan
Retired Dev
Retired Dev


Joined: 15 Aug 2002
Posts: 50
Location: Cannes, France

PostPosted: Tue Jun 21, 2005 9:57 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
Menfis
n00b
n00b


Joined: 12 Jun 2005
Posts: 68
Location: /home/Latvia

PostPosted: Tue Jun 21, 2005 10:37 am    Post subject: Reply with quote

Nice. I`l try that.
_________________
Linux - be root; Windows - reboot
-
Microsoft internet explorer: A simple Windows XP tool which allows the user to browse to Mozilla.com and download Firefox, a web browser.
Back to top
View user's profile Send private message
bob0linus
n00b
n00b


Joined: 21 Jun 2005
Posts: 1

PostPosted: Tue Jun 21, 2005 4:53 pm    Post subject: It compiles at least Reply with quote

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:

# 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".
Back to top
View user's profile Send private message
Calchan
Retired Dev
Retired Dev


Joined: 15 Aug 2002
Posts: 50
Location: Cannes, France

PostPosted: Thu Jun 23, 2005 6:25 pm    Post subject: Re: It compiles at least Reply with quote

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:

# 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:
warzone2100 -software
This way you don't need opengl any more. You still need X, though.
Back to top
View user's profile Send private message
Crocodil
Apprentice
Apprentice


Joined: 06 May 2004
Posts: 163
Location: Poznan, Poland

PostPosted: Fri Jun 24, 2005 3:00 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
Calchan
Retired Dev
Retired Dev


Joined: 15 Aug 2002
Posts: 50
Location: Cannes, France

PostPosted: Tue Jun 28, 2005 9:51 am    Post subject: Release 0.2 and new ebuild Reply with quote

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:

# 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:
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.
Back to top
View user's profile Send private message
CodAv
Apprentice
Apprentice


Joined: 09 May 2004
Posts: 166
Location: Wuppertal, Germany

PostPosted: Wed Jun 29, 2005 8:40 pm    Post subject: Reply with quote

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.
_________________
Debian is available in three different versions: rusty, stale and broken.
Back to top
View user's profile Send private message
stobbsm
Guru
Guru


Joined: 23 May 2004
Posts: 452

PostPosted: Wed Jun 29, 2005 8:56 pm    Post subject: Reply with quote

Code:
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??
_________________
Sysadmin of Ubuntu systems and servers....
Although my own server is gentoo....
Back to top
View user's profile Send private message
Calchan
Retired Dev
Retired Dev


Joined: 15 Aug 2002
Posts: 50
Location: Cannes, France

PostPosted: Fri Jul 01, 2005 5:49 am    Post subject: Reply with quote

stobbsm wrote:
Code:
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.
Back to top
View user's profile Send private message
stobbsm
Guru
Guru


Joined: 23 May 2004
Posts: 452

PostPosted: Fri Jul 01, 2005 2:25 pm    Post subject: Reply with quote

Quote:
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
_________________
Sysadmin of Ubuntu systems and servers....
Although my own server is gentoo....
Back to top
View user's profile Send private message
stobbsm
Guru
Guru


Joined: 23 May 2004
Posts: 452

PostPosted: Tue Jul 05, 2005 3:52 pm    Post subject: Reply with quote

doesn't work for me
even straight compile gives me the same problem
_________________
Sysadmin of Ubuntu systems and servers....
Although my own server is gentoo....
Back to top
View user's profile Send private message
Calchan
Retired Dev
Retired Dev


Joined: 15 Aug 2002
Posts: 50
Location: Cannes, France

PostPosted: Sun Jul 17, 2005 5:50 am    Post subject: warzone2100-0.2.1.ebuild Reply with quote

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.
Back to top
View user's profile Send private message
Elwin
n00b
n00b


Joined: 27 Jul 2005
Posts: 1

PostPosted: Wed Jul 27, 2005 4:38 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
Calchan
Retired Dev
Retired Dev


Joined: 15 Aug 2002
Posts: 50
Location: Cannes, France

PostPosted: Thu Jul 28, 2005 7:43 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
hooflungpoo
n00b
n00b


Joined: 10 Sep 2005
Posts: 33

PostPosted: Tue Sep 13, 2005 4:14 pm    Post subject: Reply with quote

WoW I still have my Windows version handy! I would love to play this under linux natively!
Back to top
View user's profile Send private message
-Rick-
Tux's lil' helper
Tux's lil' helper


Joined: 29 Aug 2004
Posts: 77
Location: Holland

PostPosted: Tue Sep 13, 2005 5:53 pm    Post subject: Reply with quote

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 ;)
_________________
Cube bots
Nixstaller - Easy creatable installers for *nix
Back to top
View user's profile Send private message
Jeremy_Z
l33t
l33t


Joined: 05 Apr 2004
Posts: 671
Location: Shanghai

PostPosted: Tue Sep 13, 2005 7:24 pm    Post subject: Reply with quote

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:
_________________
"Because two groups of consumers drive the absolute high end of home computing: the gamers and the porn surfers." /.
My gentoo projects, Kelogviewer and a QT4 gui for etc-proposals
Back to top
View user's profile Send private message
maKKus
Guru
Guru


Joined: 07 Aug 2002
Posts: 356
Location: /Universe/Milky Way/Sol/Earth/Europe/EEC/The Netherlands/Limburg/Beek/Neerbeek

PostPosted: Fri Sep 16, 2005 10:30 am    Post subject: Reply with quote

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]
Back to top
View user's profile Send private message
m.b.j.
Guru
Guru


Joined: 12 Sep 2003
Posts: 407
Location: Germany (Essen)

PostPosted: Fri Sep 16, 2005 2:01 pm    Post subject: Reply with quote

Tryed to compile on amd64

Code:
/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?
_________________
root@mbj # echo "sys-pizza/calzone -tunfish" >> /etc/paludis/use.conf
root@mbj # paludis -i calzone --dl-blocks discard
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gamers & Players All times are GMT
Goto page Previous  1, 2, 3  Next
Page 2 of 3

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum