[Portrequest] Zodengine


thatgui

Advanced Member
Joined
Apr 2, 2009
Messages
3,048
I did a portrequest for this a while ago in the old gp32x Forum.


slaeshjag was kind enough to provide a compiled binary for the pandora. As I did not have my pandora back then I couldn't test ist, and so I forgot about it.


Yesterday I rembered it, tried it, and it works ! ... sort of. I got to get on the first map, but I could not command my units.


To give commands the right mouse button is needed, and it's handling seems to be a little borked:


- using the nubs to move the mouse works, left klick with the right nub works, right click doesn't seem to be "fully" recognized. if I make a right click, it seems to recognize it (a dotted line is drawn to the point I clicked on), but the command isn't executed


- using the stylus works spot on, but how to simulate the right mouse click ?


So maybe someone is kind enough to provide a build from the latest available Version (and is also looking in the control issue) ? It seems to be a straight forward build - at least slaeshjag did not mentionend any build related problems.


It needs a small amount of fiddling to get it running, I'm willing to provide a small tutorial if someone asks for it


Small, hurried HowTo

  • grab Streaks build here
  • Next you will need the game data files, there a two ways to get it (but I have only tested the windows option!)


option a

  • grab the latest windows build here and install it


option b

  • grab the latest linux build here and extract it


now

  • create a directory on your sd e.g. "zodengine"
  • extract Streaks build in here - one file "zod" should now be in the directory
  • goto the install or extraction directory of zodengine
  • copy the complete "assets" directory in your "zodengine" directory
  • also copy the files "default_settings.txt", "map_list.txt" and every file that contains the extension ".map" from the root folder of your installation/extraction into the "zodengine" directory.
  • if you haven't done this already, copy the directory anywhere you wont on your card.
  • boot up the and open a terminal
  • change into your "zodengine" directory on your card e.g.: "cd /medi/mmcblk0p1/zodengine"
  • zod engine has a plethora of command line parameters. Its best to use the zod launcher (supplied with the windows installer/linux archive), to get one, that you like best. Best choose a local game for testing (I don't know if it is still possible to connect to the nighsoft server) and a resolution of 800x480. a sample parameter list could look like this "-l map_list.txt -n zlover -t blue -r 800x480 -b red"
  • now type "./zod %insertcommandlineargumentshere%" into the terminal and hit enter (example: "./zod -l map_list.txt -n zlover -t blue -r 800x480 -b red")
  • the loading screen should come up very fast, but after that it takes a while till the game loads


I had not much time for testing, but the game seem to work fine (haven't tested sound/music yet).
 
Last edited by a moderator:
Thanks a lot for trying, but unfortunatly when i try to start it i get:

error while loading shared libraries: libmysqlclient.so.14: cannot open shared object file: No such file or directory
 
any hint on that one ?:


i tried to put the so into /usr/lib/mysql (i had to create the mysql dir) with no effect. is there a environment variable if have to set ?
 
create on your sd card:


zod--- zod [binary]


.....|--- lib


.............|--- libmysql[].so.14


and add in zod dir script "run.sh"



Code:
#!/bin/sh

export LD_LIBRARY_PATH=HOME="$PWD/lib"

export HOME="$PWD"

./zod $@
 
Last edited:
maybe we could avoid the mysql problem ?


if found this in the zodengine Forum


But I don't know if this will "cripple" the port


Edit: will try your suggestion
 
Last edited by a moderator:
unfortunatly I'm not very into bash scripting. I tried what you suggested, but when I execute the script I get the error "can't open" but I don't know what he is missing. The script is in the same directory as the zod binary.
 
unfortunatly I'm not very into bash scripting. I tried what you suggested, but when I execute the script I get the error "can't open" but I don't know what he is missing. The script is in the same directory as the zod binary.


my fault:



Code:
./zod $@


instead of


zod $@





Code:
--ZOD

    |-----zod [file]

    |-----run.sh [file]

    |-----lib [dir]

            |----------libmysql*.so.14
 
Last edited:
i already corrected that, with no effect. but i can still start the executable with ./zod (with the known lib error of course) directly from the terminal
 
Last edited by a moderator:
yeah, another error :)


replace with that:



Code:
export LD_LIBRARY_PATH="$PWD/lib"

and should work
 
Last edited:
no freakin idea what's wrong then..


#!/bin/sh


should work too..


edit:


type straight in terminal [in zod dir]:


export LD_LIBRARY_PATH="$PWD/lib"


export HOME="$PWD"


and then


./zod
 
Last edited:
this gives me (after executing "./zod")

./zod: /media/mmcblk0p1/zodengine/lib/libmysqlclient.so.14: version 'libmysqlclient_14' not found (required by ./zod)
 
so we reached deadend... try maybe mix libs from slaesh build


i wonder why mysql is used anyway.. strange..
 
Last edited:
sleashjag didn't provide any additional libs - maybe mysql wasn't included back then. But removing the need for mysql does not seem to be very hard "-DDISABLE_MYSQL". Maybe we could try that, if you still got some nerves for it left.


nevertheless thanks for your support
 
Last edited by a moderator:
Back
Top