maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Games (https://talk.maemo.org/forumdisplay.php?f=12)
-   -   [OS2008] New Port: Warzone 2100 (https://talk.maemo.org/showthread.php?t=16502)

ArnimS 2008-02-12 00:11

[OS2008] New Port: Warzone 2100
 
Announcing a sweet new port by solmumaha!

warzone2100

http://pupnik.de/WarZone2100_N810_M.jpg

Quote:

Warzone 2100 is a 3D real-time strategy game that was released in 1999. It's source code was liberated in december 2004. Development has picked up from the original source code to make it cross-platform and, in the end, better.
This is *the* fastest 640x480 3D game i've seen running on the tablets, easily doing 12-15fps (estimated)! The tutorial is easy-to-learn and perfect for stylus play. Some keyboard shortcuts do assist gameplay but we haven't found any to be necessary yet. Please test and give feedback!

This package is 17MB large. I recommend that you download it to mmc, then use the "install from file" feature in the application manager; for this you will need about 18MB free on your root filesystem. If you install the .deb directly from my website you may require ~35MB free.

The installer puts the 30.2 MB game data in /media/mmc2/share/, so that the binary and libraries only require 4.5 MB on your root filesystm.

Homepage: http://warzone2100.sourceforge.net
Warzone Info: http://warzone2100.strategyplanet.gamespy.com/
Chinook .deb: http://pupnik.de/chinook/wz2100_0.2.deb

(edit) sound isn't working yet. Needs an alsa backend, or someone getting alsa-oss or esd-oss emulation running

pipeline 2008-02-12 00:49

Re: New Port: Warzone 2100
 
omg this rocks.. gotta go... back.. to play more :)

Nik1 2008-02-12 00:53

Re: New Port: Warzone 2100
 
This games great, I actually remember buying way back in 1999. I'm going to test it out on my n800, but only drawback is i've got no hardware keyboard for any shortcuts. Much appreciated for porting, I hope there is a way to get sound effects working.

mwaldron 2008-02-12 00:55

Re: New Port: Warzone 2100
 
Wwhen I start it from launcher it just exits, when started from xterm it says:

~ $ warzone
warzone: error while loading shared libraries: libopenal.so.0: cannot open shared object file: No such file or directory
~ $

Is there a dependancy I'm missing?

superstar 2008-02-12 01:31

Re: New Port: Warzone 2100
 
Major noob here... "Needs an alsa backend, or someone getting alsa-oss or esd-oss emulation running" can you elaborate for the newbies? TIA.

Laughing Man 2008-02-12 01:36

Re: New Port: Warzone 2100
 
ALSA handles sound in most if not all Linux distributions (though more recent distros like Ubuntu have been working towards moving towards Pulse Audio).

pipeline 2008-02-12 01:50

Re: New Port: Warzone 2100
 
Quote:

Originally Posted by mwaldron (Post 141268)
Wwhen I start it from launcher it just exits, when started from xterm it says:

~ $ warzone
warzone: error while loading shared libraries: libopenal.so.0: cannot open shared object file: No such file or directory
~ $

Is there a dependancy I'm missing?

its wz2100 from xterm to run start script

BTW i think i like full 800x480 resolution by modifying that script to add -800x480 to command line. :)

And in-game im mapping keys to rotate camera... sweet.

mwaldron 2008-02-12 02:01

Re: New Port: Warzone 2100
 
Same result

~ $ wz2100
warzone: error while loading shared libraries: libmad.so.0: cannot open shared object file: No such file or directory
~ $

ArnimS 2008-02-12 02:09

Re: New Port: Warzone 2100
 
Quote:

Originally Posted by mwaldron (Post 141268)
Wwhen I start it from launcher it just exits, when started from xterm it says:

~ $ warzone
warzone: error while loading shared libraries: libopenal.so.0: cannot open shared object file: No such file or directory
~ $

Is there a dependancy I'm missing?

Like pipeline said, run wz2100. The shellscript wz2100 works around the missing libraries by pointing the linker to 'known good' versions of the needed libraries with the command: export LD_LIBRARY_PATH=/usr/share/warzone2100/libs

One play tip - tap lightly. If you tap more heavily, the game may register a 'click and drag' over a few pixels instead of a simple click.

(edit) Ahh libmad is the mpeg decoder library. To fix this do as root
apt-get install libmad0

(edit2) If you want to you can run in fullscreen 800x480 mode. Edit the file /home/user/.warzone2100/config and set resolution=800x480. It's a good deal slower though. Please post if it causes any problems.

mwaldron 2008-02-12 02:25

Re: New Port: Warzone 2100
 
That fixed it, thanks!

bexley 2008-02-12 03:37

Re: New Port: Warzone 2100
 
Addictive as hell. I never played this game but spent way too much time with Dune 2 on the Amiga. This brings me back.

Thanks.

rcadden 2008-02-12 16:17

Re: New Port: Warzone 2100
 
commenting to bookmark and come back to when I've finished work stuff today. Great work!

LordFu 2008-02-13 02:04

Re: New Port: Warzone 2100
 
Nice looking game!

Jobester 2008-02-13 07:05

Re: New Port: Warzone 2100
 
Edit: This was caused by my corrupted memory card

Hello, mine is messed up whoops

wz2100 in xterm gives -
"Couldn't open wrf\frontend.wrf"

(Loads the game/title screen for about one second before crash). Downloaded and installed again with same results. Is there supposed to be a frontend.wrf file? I see a bunch of filenames such as ▀εéüîò.ù,ó when I look on desktop. Using a beta version of OS2008 on N800

ukki 2008-02-13 07:29

Re: New Port: Warzone 2100
 
Can you post the output of the following commands in xterm:

cat /usr/bin/wz2100
du /media/mmc2/share
df -h

Sharjan 2008-02-14 09:56

Re: New Port: Warzone 2100
 
hey guys. new 770 user here. :) The game crashes after I click on start a new game with a "segmentation Fault (SDL Parachute Deployed).

Any ideas?

ukki 2008-02-16 15:27

Re: New Port: Warzone 2100
 
Quote:

Originally Posted by Sharjan (Post 142351)
hey guys. new 770 user here. :) The game crashes after I click on start a new game with a "segmentation Fault (SDL Parachute Deployed).

Any ideas?

I didn't test it with a 770 and I bet it wouldn't run very well with it. But I'll test it when I have the time.

bexley 2008-02-16 15:50

Re: New Port: Warzone 2100
 
Is sound expected to work in a future release?

Jobester 2008-02-16 17:59

Re: New Port: Warzone 2100
 
Quote:

Can you post the output of the following commands in xterm:
$ wz2100
NETinitAudioCapture
ErrorBox: Couldn't open wrf\frontend.wrf
NETshutdownAudioCapture
NETshutdownAudioPlayback
~ $


~ $ cat /usr/bin/wz2100
#!/bin/sh
export LD_LIBRARY_PATH=/usr/share/warzone2100/libs
warzone -datapath /media/mmc2/share/warzone2100/ -fullscreen
~ $


du /media/mmc2/share

Hundreds of similar errors. Input/Output error or Value too large for defined data type
Over 80% of it is unreadable ®Ã².ù,ó stuff

Example:
/¥BLbg'╜{.æg≈/╝4*rq╒æ.b>å/╤y╖ü√lë┼.t
▐/ÉÄæÉìïëä.~{v/tf¿t═τl.7è: Input/output error
du: /media/mmc2/share/warzone2100/messages/strings/6@


~ $ df -h
Filesystem Size Used Available Use% Mounted on
/dev/mtdblock4 2.0M 2.0M 0 100% /mnt/initfs
none 512.0k 80.0k 432.0k 16% /mnt/initfs/tmp
/dev/mtdblock4 251.5M 196.4M 55.1M 78% /
none 512.0k 80.0k 432.0k 16% /tmp
none 1.0M 12.0k 1012.0k 1% /dev
tmpfs 1.0M 0 1.0M 0% /dev/shm
/dev/mmcblk0p1 1.9G 455.9M 1.5G 23% /media/mmc2
~ $


Have too many apps (my n800 is running slow this week) so going to reflash and see what happens tomorrow :p

ukki 2008-02-16 19:59

Re: New Port: Warzone 2100
 
Looks like there's something wrong with your memory card so fixing that should make the game work.

Khertan 2008-02-16 20:18

Re: New Port: Warzone 2100
 
On the screenshot i can see Jagged Alliance ... is it the next one to be port ? :)

pipeline 2008-02-16 22:42

Re: New Port: Warzone 2100
 
Quote:

Originally Posted by Khertan (Post 143329)
On the screenshot i can see Jagged Alliance ... is it the next one to be port ? :)

That was their previous port :)

http://www.internettablettalk.com/fo...ad.php?t=16138

ukki 2008-02-17 20:00

Re: New Port: Warzone 2100
 
Quote:

Originally Posted by bexley (Post 143243)
Is sound expected to work in a future release?

I spent (too) many hours today trying to get the sound working. In theory it should work very easily, but I just can't get the game make a sound. OpenAL is compiled with alsa/sdl/esd, but none of them seem to work. I'm not hanging my gloves just yet, but don't get your hopes up. It's just been a very frustrating day.

JFX 2008-02-17 21:29

Re: New Port: Warzone 2100
 
Ok i've read and tried that export libs command thing posted earlier in this post, tried the apt- command too, selected y at the y/n prompt, trying to run it now from terminal and from extras but no go.. What am i doing wrong? One day I'll understand this stuff.. Thanks.

bexley 2008-02-17 21:55

Re: New Port: Warzone 2100
 
We appreciate it, ukki. Too bad those "thanks" aren't $20 bills, eh?

ukki 2008-02-17 22:17

Re: New Port: Warzone 2100
 
@JFX

The game should just work on n8x0, but I missed a dependency. Install libmad0 like instructed before. If it still won't run, try running wz2100 from the terminal and post the error message here.

@bexley

I'm not a person who deserves money for this, but some kind of progress would be more than welcome :)

JFX 2008-02-17 22:51

Re: New Port: Warzone 2100
 
ok i needed to be connected to get apt, DUH. Also now i get this
/home/user # wz2100
ErrorBox: Path not found: /media/mmc2/share/warzone2100/
ErrorBox: Couldn't open palette.bin
ErrorBox: Couldn't load palette data
/home/user #

so im thinking i need to put my cd game fiiles on the mmc card?

ps. this thing seems extramentally slow.. would booting the os from the 8gb sdhc make it much faster? i know wrong section but you guys seem forgiving.

instigator 2008-02-18 00:13

Re: New Port: Warzone 2100
 
Just a hint: installing mplayer installs the missing dependency that's required by this game.

JFX 2008-02-18 03:21

Re: New Port: Warzone 2100
 
This is not working for me what am i doing wrong arnim or ikku? it now says i have the latest libmad0. . .

/home/user # apt-get install libmad0
Reading package lists... Done
Building dependency tree... Done
libmad0 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 55 not upgraded.
/home/user # export LD_LIBRARY_PATH=/usr/share/warzone2100/libs
/home/user # export LD_LIBRARY_PATH=/usr/share/warzone2100/libs
/home/user # wz2100
ErrorBox: Path not found: /media/mmc2/share/warzone2100/
ErrorBox: Couldn't open palette.bin
ErrorBox: Couldn't load palette data
/home/user #

not sure whats up.
and mplayer dependancy? i thought thats what libmad0 gave you...

ArnimS 2008-02-18 04:43

Re: New Port: Warzone 2100
 
The error message is self-explanatory.

The game installer should install the data files to that directory on N800 and N810. Did you swap SD cards?

ls -l /media/mmc2/share/warzone2100/
...
-rw-r--r-- 1 user root 768 Jun 23 2005 palette.bin
...

(edit) What are you running this on? 770 or N8x0? What OS version?

JFX 2008-02-18 04:51

Re: New Port: Warzone 2100
 
nope havent swapped. n800 on os2008. thanks for the help.

ArnimS 2008-02-18 05:37

Re: New Port: Warzone 2100
 
Quote:

Originally Posted by JFX (Post 143918)
nope havent swapped. n800 on os2008. thanks for the help.

Run the command
find /media -name palette.bin

If you have the warzone2100 data on your SD cards, this will find the directory it is in. Please post the output here.

If it doesn't return anything, try reinstalling wz2100 then running that command again

JFX 2008-02-18 19:42

Re: New Port: Warzone 2100
 
Hmm, ran the command, deleted warzone now it's not installing saying it's uninstallable, corrupted. I have emelfm2 installed now, VERY useful. Now I don't need ot use xterm to move files, so not sure where to go from here. .. thanks

JFX 2008-02-18 19:44

Re: New Port: Warzone 2100
 
Oh and it does nothing when I run that command. Just back to the prompt.

ukki 2008-02-18 20:00

Re: New Port: Warzone 2100
 
Try this: uninstall warzone2100, delete warzone2100 datadir from /media/mmc2/share, download the deb-package again and save it to your memory card (don't install directly). When it's finished, click on it in the file manager and install.

JFX 2008-02-18 20:07

Re: New Port: Warzone 2100
 
Ok thanks ukki, does it matter for downloading anything in general whether its to the 2 gb i have in the under the battery slot or the external i have an 8 in? will try now.

ukki 2008-02-18 20:40

Re: New Port: Warzone 2100
 
Warzone requires quite a lot of space from your rootfs and it doubles the need if you install it directly. So I believe you may have ran out of space on the first try. I think it's always wise to download bigger packages to either mmc1 or mmc2 at first. It at least saves you the trouble of redownloading if the package doesn't install on the first try.

JFX 2008-02-18 21:47

Re: New Port: Warzone 2100
 
Ok i tried installing from both cards and from the main, installing from anywhere gives me "Unable to Install wz2100" which I haven't got before. Also when i hold down N800 directory in the stock file manager and hit details it says i have 63 mbs available and 187 used. Is that not enough? It's strange because I've installed it before and it just didn't start. Well strange to me.

ukki 2008-02-18 22:08

Re: New Port: Warzone 2100
 
Sounds strange indeed. Check if the first install left something behind. Try running these commands as root:

rm /usr/bin/warzone
rm /usr/bin/wz2100
rm -rf /usr/share/warzone2100

Then try installing the game with:
cd /media/mmc2 (or where you have the deb)
dpkg -i wz2100_0.2.deb

Then post the dpkg's error message here.

JFX 2008-02-18 22:41

Re: New Port: Warzone 2100
 
~ $ sudo gainroot
Root shell enabled


BusyBox v1.6.1 (2007-09-27 18:08:59 EEST) Built-in shell (ash)
Enter 'help' for a list of built-in commands.

/home/user # rm /usr/bin/warzone
rm: cannot remove '/usr/bin/warzone': No such file or directory
/home/user # rm /usr/bin/wz2100
rm: cannot remove '/usr/bin/wz2100': No such file or directory
/home/user # rm -rf/usr/share/warzone2100
rm: invalid option -- /
BusyBox v1.6.1 (2007-09-27 18:08:59 EEST) multi-call binary

Usage: rm [OPTION]... FILE...

/home/user # rm -rf /usr/share/warzone2100
/home/user # cd /media/mmc1
/media/mmc1 # dpkg -i wz2100_0.2.deb
(Reading database ...
dpkg: serious warning: files list file for package `wz2100' missing, assuming package has no files currently installed.
18794 files and directories currently installed.)
Preparing to replace wz2100 0.2 (using wz2100_0.2.deb) ...
Unpacking replacement wz2100 ...
dpkg-deb: subprocess paste killed by signal (Broken pipe)
dpkg: error processing wz2100_0.2.deb (--install):
short read in buffer_copy (backend dpkg-deb during `usr/share/warzone2100/wzdata.tar.gz')
Errors were encountered while processing:
wz2100_0.2.deb
/media/mmc1 #


All times are GMT. The time now is 21:30.

vBulletin® Version 3.8.8