maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Games (https://talk.maemo.org/forumdisplay.php?f=12)
-   -   [Suggestion] Port the old game Z or Zed (https://talk.maemo.org/showthread.php?t=70211)

toxaris 2011-02-22 11:25

[Suggestion] Port the old game Z or Zed
 
Hello.
Today an old game did come to my mind.
The RTS classic called simply Z or sometimes called Zed.
http://www.youtube.com/watch?v=Jhz06qjXelQ

There is a Open Source remake of the engine.
Here:
http://zod.sourceforge.net/
http://www.youtube.com/watch?v=N7JtzvhE1Q0


Could it be posible to port this game to N900?
I think it would work quite good with resistive touch and so on.

wicket 2011-03-01 13:11

Re: [Suggestion] Port the old game Z or Zed
 
One of the first C&C clones and not too shabby either. I have fond memories of this game.

A port certainly possible, I got the engine to build without too much trouble. The only problem is I don't have the game data to try it but it at least executes successfully on the N900. I do know someone who has the game so I will see if I can borrow it but I might not be able to see him for a couple of weeks. If anyone is willing to try my build in the meantime I can attach it to this thread.

mr_jrt 2011-03-01 15:13

Re: [Suggestion] Port the old game Z or Zed
 
I'll give it a go - I have a couple of copies of the game, actually. And a spare N900 to test it on. :)

I have a big soft spot for this game...it was not a clone of C&C though, they were released only 11 months apart (C&C August '95, Z July '96).

wicket 2011-03-01 20:33

Re: [Suggestion] Port the old game Z or Zed
 
I've just found out the file size limit on attachments is under half a MB. I've put it on megaupload for now (I hate those sites) until I sort out a garage project.

http://www.megaupload.com/?d=2B361V1I

Use it at your own risk. Like I said, I've not tested it.

Use gunzip to extract it. Here's the complete list of dependencies:

libSDL-1.2.so.0 => /usr/lib/libSDL-1.2.so.0 (0x4002d000)
libSDL_image-1.2.so.0 => /usr/lib/libSDL_image-1.2.so.0 (0x4008d000)
libSDL_mixer-1.2.so.0 => /usr/lib/libSDL_mixer-1.2.so.0 (0x400af000)
libSDL_ttf-2.0.so.0 => /usr/lib/libSDL_ttf-2.0.so.0 (0x400fe000)
libmysqlclient.so.15 => /usr/lib/libmysqlclient.so.15 (0x4010b000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x402f3000)
libm.so.6 => /lib/libm.so.6 (0x403d4000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x4044a000)
libc.so.6 => /lib/libc.so.6 (0x4045c000)
libasound.so.2 => /usr/lib/libasound.so.2 (0x40581000)
libdl.so.2 => /lib/libdl.so.2 (0x4063d000)
libpulse-simple.so.0 => /usr/lib/libpulse-simple.so.0 (0x40648000)
libpulse.so.0 => /usr/lib/libpulse.so.0 (0x40652000)
libpthread.so.0 => /lib/libpthread.so.0 (0x4067a000)
libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x4069a000)
libpng12.so.0 => /usr/lib/libpng12.so.0 (0x406c0000)
libz.so.1 => /usr/lib/libz.so.1 (0x406e8000)
libtiff.so.4 => /usr/lib/libtiff.so.4 (0x40700000)
libvorbisfile.so.3 => /usr/lib/libvorbisfile.so.3 (0x40759000)
libvorbis.so.0 => /usr/lib/libvorbis.so.0 (0x40768000)
libogg.so.0 => /usr/lib/libogg.so.0 (0x40798000)
libsmpeg-0.4.so.0 => /usr/lib/libsmpeg-0.4.so.0 (0x407a4000)
libmikmod.so.2 => /usr/lib/libmikmod.so.2 (0x40802000)
libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x40851000)
libcrypt.so.1 => /lib/libcrypt.so.1 (0x408c4000)
libnsl.so.1 => /lib/libnsl.so.1 (0x408f9000)
/lib/ld-linux.so.3 (0x40000000)
librt.so.1 => /lib/librt.so.1 (0x40915000)
libpulsecommon-0.9.15.so => /usr/lib/libpulsecommon-0.9.15.so (0x40924000)
libdbus-1.so.3 => /usr/lib/libdbus-1.so.3 (0x40954000)
libgdbm.so.3 => /usr/lib/libgdbm.so.3 (0x40991000)

The ones that most people might be missing are the SDL libs and the MySQL client lib (this is in extras-devel).

I've not done any key remapping so you may run into problems if it needs keys like Escape or Enter.

Good luck!

mr_jrt 2011-03-01 22:21

Re: [Suggestion] Port the old game Z or Zed
 
Cheers. I've stuck it up on my web server until the garage project shows up. I'll let you know how I get on.

mr_jrt 2011-03-02 00:00

Re: [Suggestion] Port the old game Z or Zed
 
Incidentally, all the assets required are present in the downloadable version on the project homepage, as I'm able to run the Win32 version fine from that. I've copied them across to my MyDocs and symlinked the assets and blank_maps dirs, and copied the .map and .txt files across to my /usr/local/bin dir.

Code:

(gdb) r
Starting program: /usr/local/bin/zod -l map_list.txt -n zlover -t red -r 800x484 -b blue
Welcome to the Zod Engine
start bot for team blue
NextInMapList::returning 0 'level_orig1.map'
socket connected:127.0.0.1
socket connected:127.0.0.1
socket connected:127.0.0.1
ServerSocket::CheckConnects:client connected:127.0.0.1
map_data_size:14934
socket connected:127.0.0.1
ServerSocket::CheckConnects:client connected:127.0.0.1
could not load:assets/sounds/ABATTLE.mp3
could not load:assets/sounds/music_desert.ogg
could not load:assets/sounds/music_volcanic.ogg
could not load:assets/sounds/music_arctic.ogg
could not load:assets/sounds/music_jungle.ogg
could not load:assets/sounds/music_city.ogg
ZTeam::Could not load palette for the null team:'assets/teams/null_palette.bmp'

Program received signal SIGSEGV, Segmentation fault.
0x0008bda8 in ZTeam_Palette::LoadSurfacePalette (this=0x2b9490, src=0x0)
    at zteam.cpp:10
10      zteam.cpp: No such file or directory.
        in zteam.cpp
(gdb) bt
#0  0x0008bda8 in ZTeam_Palette::LoadSurfacePalette (this=0x2b9490, src=0x0)
    at zteam.cpp:10
#1  0x0008c0c8 in ZTeam::LoadPalette (team=2) at zteam.cpp:239
#2  0x0008c13c in ZTeam::Init () at zteam.cpp:156
#3  0x000e9768 in ZPlayer::Setup (this=0xbed18f30) at zplayer.cpp:262
#4  0x000103e0 in run_player_thread () at main.cpp:165
#5  0x00010ae0 in main (argc=11, argv=0xbed1c5d4) at main.cpp:79

...and here's the same for the Win32 version:
Code:

zod_engine.exe -l map_list.txt -n zlover -t red -r 800x484 -b blue

Welcome to the Zod Engine
start bot for team blue
NextInMapList::returning 0 'level_orig1.map'
socket connected:127.0.0.1
socket connected:127.0.0.1
socket connected:127.0.0.1
ServerSocket::CheckConnects:client connected:127.0.0.1
socket connected:127.0.0.1
ServerSocket::CheckConnects:client connected:127.0.0.1
map_data_size:14934
could not load:assets/sounds/music_arctic.ogg
could not load:assets/sounds/music_city.ogg
ZTeam::Could not load palette for the null team:'assets/teams/null_palette.bmp'
map_data_size:14934
graphics loaded

...and the Win32 version then loads correctly. I've pulled all the assets from the Win32 version across, and the null_palette.bmp file is missing there too, but it works. I get the loading screen up fine though :D

mr_jrt 2011-03-02 13:52

Re: [Suggestion] Port the old game Z or Zed
 
1 Attachment(s)
Here's a shot of the game running on the N900. Seems it doesn't like fullscreen mode, but Windowed mode doesn't crash.

Next up, we have the minor problem that the UI doesn't seem to fit, as well as the slightly bigger problem that the way it handles the mouse cursor doesn't work too well, as I cannot click the titlebar at all, the cursor seems constrained to the window client area. :(

toxaris 2011-03-02 13:56

Re: [Suggestion] Port the old game Z or Zed
 
@mr_jrt and wicket: Nice work sofar.
Will try it out.

raily 2011-03-02 14:21

Re: [Suggestion] Port the old game Z or Zed
 
Wow guys. I already asked myself if Z would be possible for N900 but thought it was only closed source. Keep up the good work.

twigleaf1976 2011-03-03 11:16

Re: [Suggestion] Port the old game Z or Zed
 
Keep up the good work guys, I used to play it but was never very good. I always found it one of those really annoying games that you couldn't progress on but couldn't stop trying as well.

Would love it on the N900.

CoreFusion 2011-03-03 11:49

Re: [Suggestion] Port the old game Z or Zed
 
I had this running on N810 through a emulator i think... it wasn't playable but it did run.

wicket 2011-03-03 22:31

Re: [Suggestion] Port the old game Z or Zed
 
Quote:

Originally Posted by mr_jrt (Post 958882)
Here's a shot of the game running on the N900. Seems it doesn't like fullscreen mode, but Windowed mode doesn't crash.

Next up, we have the minor problem that the UI doesn't seem to fit, as well as the slightly bigger problem that the way it handles the mouse cursor doesn't work too well, as I cannot click the titlebar at all, the cursor seems constrained to the window client area. :(

Pleased to see you got it running. I'll try the assests download you suggested and see if I can fix any of those problems.

anla 2011-05-23 09:23

Re: [Suggestion] Port the old game Z or Zed
 
Any progress made with porting zed to n900 ?

Thanks:)

mr_jrt 2011-05-23 14:33

Re: [Suggestion] Port the old game Z or Zed
 
Not on my end. Been working on other things. Figured I'd hear on here if there was anything new that required my attention.

nicholes 2011-05-23 14:43

Re: [Suggestion] Port the old game Z or Zed
 
how much will it take to come out?? we are all waiting for this great porting!!

best wishes for mr_jrt and wicket

Thanks

MikeNigh 2011-07-17 19:32

Re: [Suggestion] Port the old game Z or Zed
 
I'm the sole developer of the zod engine. If someone is willing to donate a maemo phone to me I can help =)

My contact is -
freaknigh@gmail.com

Estel 2011-07-17 19:43

Re: [Suggestion] Port the old game Z or Zed
 
You can achieve exact same think using Maemo Scratchbox - Maemo phone will be "emulated" on Your device.

Necrofenser 2011-08-06 15:29

Re: [Suggestion] Port the old game Z or Zed
 
Quote:

Originally Posted by MikeNigh (Post 1052844)
I'm the sole developer of the zod engine. If someone is willing to donate a maemo phone to me I can help =)

My contact is -
freaknigh@gmail.com

So have you continued porting this game?

szopin 2011-08-08 18:05

Re: [Suggestion] Port the old game Z or Zed
 
2 Attachment(s)
Managed to get it running without the nasty mouse grab and in fullscreen. Needs right mouse button though, or I'm too stupid to figure out how to issue a command. No sound and clicking menu doesn't seem to do anything (maybe related to why starting without load map switch is stuck on loading at 100%).

Correction: sound/music works. Needs keyboard focus, RMB and this should be playable.

szopin 2011-08-08 21:02

Re: [Suggestion] Port the old game Z or Zed
 
1 Attachment(s)
http://www.megaupload.com/?d=2HRKTVJX

Keyboard focus and right click fixed. RMB with ctrl. Get data from sourceforge (linux release ~40MB worked for me). Place executable above assets directory.

./zod -l map_list.txt -n zlover -t red -b blue -r 800x480
this will run the game in fullscreen

./zod -l map_list.txt -n zlover -t red -b blue -r 800x400 -w
this in windowed mode

No menu. ctrl-backspace to quit.

Necrofenser 2011-08-09 07:59

Re: [Suggestion] Port the old game Z or Zed
 
It looks great! But I can't figure out how to install tar.gz files xD
Any help or tutorial how to install this game. I downloaded and installed zod_engine_installer-2011-07-07.exe and there are maps, sprites, sounds and other files. So tell me, where I should copy them and how to make shortcut to this game?

raily 2011-08-09 08:59

Re: [Suggestion] Port the old game Z or Zed
 
The screenshots look very promising. I can't figure out how to install it either :(

szopin 2011-08-09 09:01

Re: [Suggestion] Port the old game Z or Zed
 
1. Download zod_linux-2011-07-07.tar.gz from http://sourceforge.net/projects/zod/...inux_releases/ and my file (http://www.megaupload.com/?d=2HRKTVJX) to MyDocs
2. Run xterm then:
cd MyDocs
tar -xzvf zod_linux-2011-07-07.tar.gz
sudo mkdir /opt/zod
sudo mv zod.tar.gz /opt/zod
cd /opt/zod
sudo tar -xzvf zod.tar.gz
sudo ln -s /home/user/MyDocs/zod_engine/assets .
sudo cp /home/user/MyDocs/zod_engine/*.map .
sudo cp /home/user/MyDocs/zod_engine/*.txt .

You should now be able to run the game from /opt/zod directory.

For a shortcut you would need to create a .desktop file that would run .sh file that would run one of the commands described in previous posts (fullscreen/windowed).

sudarsan_avs 2011-08-09 15:50

Re: [Suggestion] Port the old game Z or Zed
 
Quote:

Originally Posted by szopin (Post 1066458)
1. Download zod_linux-2011-07-07.tar.gz from http://sourceforge.net/projects/zod/...inux_releases/ and my file to MyDocs
2. Run xterm then:
cd MyDocs
tar -xzvf zod_linux-2011-07-07.tar.gz
sudo mkdir /opt/zod
sudo mv zod.tar.gz /opt/zod
cd /opt/zod
sudo tar -xzvf zod.tar.gz
sudo ln -s /home/user/MyDocs/zod_engine/assets .
sudo cp /home/user/MyDocs/zod_engine/*.map .
sudo cp /home/user/MyDocs/zod_engine/*.txt .

You should now be able to run the game from /opt/zod directory.

For a shortcut you would need to create a .desktop file that would run .sh file that would run one of the commands described in previous posts (fullscreen/windowed).

First - Thanks for the steps...

I am struck in "sudo mv zod.tar.gz /opt/zod" step

"zod.tar.gz" No such file or directory

After executing tar -xzvf zod_linux-2011-07-07.tar.gz, I can see one directory zod_engine but cannot fins zod.tar.gz.

Also please let me know how to run the game, I cannot find any sh files.

Please help, thanks in advance!!

szopin 2011-08-09 16:42

Re: [Suggestion] Port the old game Z or Zed
 
It can be found here: http://www.megaupload.com/?d=2HRKTVJX

sudarsan_avs 2011-08-09 17:27

Re: [Suggestion] Port the old game Z or Zed
 
Quote:

Originally Posted by szopin (Post 1066687)

Thanks, can please tell me how to run the game, I cannot find any sh files.

niko3d 2011-08-09 17:31

Re: [Suggestion] Port the old game Z or Zed
 
ah i loved this game :) But i cant seem to launch using the specified command. do we need to make the zod file executable?
cheers
nick

szopin 2011-08-09 17:36

Re: [Suggestion] Port the old game Z or Zed
 
If you extract zod.tar.gz to /opt/zod it should already be executable. 'sudo chmod +x zod' in any case and run with:
./zod -l map_list.txt -n zlover -t red -b blue -r 800x480
for fullscreen or
./zod -l map_list.txt -n zlover -t red -b blue -r 800x400 -w
for windowed mode. Removing '-b blue' will start the game with no AI so you can get accustomed to the interface.

niko3d 2011-08-09 17:47

Re: [Suggestion] Port the old game Z or Zed
 
yup the permissions where wrong i think... im getting this error now not sure how to solve this.

/usr/lib/libstdc++.so.6: version `CXXABI_ARM_1.3.3' not found (required by ./zod)

cheers
nick

sudarsan_avs 2011-08-09 17:50

Re: [Suggestion] Port the old game Z or Zed
 
Quote:

Originally Posted by szopin (Post 1066717)
If you extract zod.tar.gz to /opt/zod it should already be executable. 'sudo chmod +x zod' in any case and run with:
./zod -l map_list.txt -n zlover -t red -b blue -r 800x480
for fullscreen or
./zod -l map_list.txt -n zlover -t red -b blue -r 800x400 -w
for windowed mode. Removing '-b blue' will start the game with no AI so you can get accustomed to the interface.

I tried executing the below command, but it returned the bellow message, pls help!!

Code:

/opt/zod # ./zod -l map_list.txt -n zlover -t red -b blue -r 800x480

./zod: /usr/libstdc++.so.6: version 'CXXABI_ARM_1.3.3' not found (requested by ./zod)


szopin 2011-08-09 17:59

Re: [Suggestion] Port the old game Z or Zed
 
1 Attachment(s)
Download attached to MyDocs and in xterm:
cd MyDocs
sudo mv libstd.tar.gz /opt/zod
cd /opt/zod
sudo tar -xzvf libstd.tar.gz

Should run now.

sudarsan_avs 2011-08-09 18:26

Re: [Suggestion] Port the old game Z or Zed
 
Quote:

Originally Posted by szopin (Post 1066735)
Download attached to MyDocs and in xterm:
cd MyDocs
sudo mv libstd.tar.gz /opt/zod
cd /opt/zod
sudo tar -xzvf libstd.tar.gz

Should run now.

Still same error :(

Thanks,
Sudarsan

szopin 2011-08-09 18:29

Re: [Suggestion] Port the old game Z or Zed
 
If it's _exactly_ the same try renaming the libstdc++ in /usr/ for a moment and running:

sudo mv /usr/libstdc++.so.6 /usr/libstdc++.so.6.bak

It might be a symlink, so not sure if it'll work. To get it back to previous state:

sudo mv /usr/libstdc++.so.6.bak /usr/libstdc++.so.6

EDIT: alternatively, not to mess with your libs, after extracting libstdc++.so.6 in /opt/zod you can try:
cd /opt/zod
export LD_LIBRARY_PATH=.
./zod ...

sudarsan_avs 2011-08-09 19:27

Re: [Suggestion] Port the old game Z or Zed
 
Quote:

Originally Posted by szopin (Post 1066754)
If it's _exactly_ the same try renaming the libstdc++ in /usr/ for a moment and running:

sudo mv /usr/libstdc++.so.6 /usr/libstdc++.so.6.bak

It might be a symlink, so not sure if it'll work. To get it back to previous state:

sudo mv /usr/libstdc++.so.6.bak /usr/libstdc++.so.6

EDIT: alternatively, not to mess with your libs, after extracting libstdc++.so.6 in /opt/zod you can try:
cd /opt/zod
export LD_LIBRARY_PATH=.
./zod ...

Thanks, this worked :)

cd /opt/zod
export LD_LIBRARY_PATH=.

niko3d 2011-08-10 07:23

Re: [Suggestion] Port the old game Z or Zed
 
works for me too :) thanks guys!!!

Necrofenser 2011-08-23 11:32

Re: [Suggestion] Port the old game Z or Zed
 
I need to write export LD_LIBRARY_PATH=. every time i want to play this game, is there any permanent solution?

archl 2011-08-23 11:58

Re: [Suggestion] Port the old game Z or Zed
 
Is this coming to extra-devel?

toxaris 2011-08-24 07:58

Re: [Suggestion] Port the old game Z or Zed
 
Quote:

Originally Posted by archl (Post 1075223)
Is this coming to extra-devel?

Yea that would be nice.

szopin 2011-08-26 11:21

Re: [Suggestion] Port the old game Z or Zed
 
Necrofenser:
You can write a shell script that will write this for you. Just create an executable .sh file with this line (library...) after #!/bin/sh line and before the command that will run the game. When I get back from vacation I might type you the step by step commands if you still have this issue.

archl, toxaris:
I have no idea whether full chain for upping to extras-devel can be put on device. If so I might in the near future. If it requires full setup on x86 box, this might be not so near future. Sorry, but most of my free time is in the bus in traffic.

Estel 2011-08-26 16:12

Re: [Suggestion] Port the old game Z or Zed
 
It can be uploaded to -devel 100% from device. If You've ported application on N900, You won't have problems with uploading ;)


All times are GMT. The time now is 01:03.

vBulletin® Version 3.8.8