Active Topics

 



Notices


Reply
Thread Tools
Posts: 424 | Thanked: 196 times | Joined on Mar 2010 @ Sweden
#1
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.
 

The Following 9 Users Say Thank You to toxaris For This Useful Post:
wicket's Avatar
Posts: 634 | Thanked: 3,266 times | Joined on May 2010 @ Colombia
#2
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.
 
Posts: 249 | Thanked: 277 times | Joined on May 2010 @ Brighton, UK
#3
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's Avatar
Posts: 634 | Thanked: 3,266 times | Joined on May 2010 @ Colombia
#4
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!
 

The Following User Says Thank You to wicket For This Useful Post:
Posts: 249 | Thanked: 277 times | Joined on May 2010 @ Brighton, UK
#5
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.
 

The Following User Says Thank You to mr_jrt For This Useful Post:
Posts: 249 | Thanked: 277 times | Joined on May 2010 @ Brighton, UK
#6
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
 

The Following User Says Thank You to mr_jrt For This Useful Post:
Posts: 249 | Thanked: 277 times | Joined on May 2010 @ Brighton, UK
#7
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.
Attached Images
 
 

The Following 4 Users Say Thank You to mr_jrt For This Useful Post:
Posts: 424 | Thanked: 196 times | Joined on Mar 2010 @ Sweden
#8
@mr_jrt and wicket: Nice work sofar.
Will try it out.

Last edited by toxaris; 2011-03-02 at 13:59.
 
Posts: 241 | Thanked: 69 times | Joined on Dec 2009 @ Germany
#9
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.
 
Posts: 179 | Thanked: 99 times | Joined on Feb 2010 @ Yorkshire, UK
#10
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.
__________________
They say: Once bitten, twice shy.
I say: After the N900, never buying nokia.

Anti-Nokia Ambassador
 
Reply


 
Forum Jump


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