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.


All times are GMT. The time now is 12:53.

vBulletin® Version 3.8.8