Author Topic: A Couple Of New Game Ports  (Read 15955 times)

silvio

  • Jr. Member
  • **
  • Posts: 68
    • View Profile
    • http://www.iaccarino.de/silvio
A Couple Of New Game Ports
« on: April 12, 2005, 10:28:38 am »
I've just ported some games (Sharp and Cacko ROM, VGA Landscape Only) to the Zaurus.
LTris
LMarbles
Barrage
LGeneral

You can find the originals, screenshots and details here:
http://lgames.sourceforge.net/index.php

And you can find my ports and screenshots on elsi and on my Zaurus download page:
http://www.iaccarino.de/silvio/zaurusstuff.htm

Have fun!  
Silvio
« Last Edit: May 08, 2005, 11:50:55 am by ev1l »
SL-C860, Cacko 1.22 lite and many toys.
My Zaurus stuff

lareya

  • Full Member
  • ***
  • Posts: 150
    • View Profile
    • http://
A Couple Of New Game Ports
« Reply #1 on: April 12, 2005, 05:12:04 pm »
Wow!
good job Silvio, I see a lot of fun cool games to try out! Appreciate your hard work!

Lareya
SL-C3000: un-bricked (Thanks to Cresho!)
C-860: pdxRom

collywobbles

  • Newbie
  • *
  • Posts: 19
    • View Profile
A Couple Of New Game Ports
« Reply #2 on: April 12, 2005, 05:24:46 pm »
Quote
And you can find my ports and screenshots on elsi and on my Zaurus download page:
http://www.iaccarino.de/silvio/zaurusstuff.htm
Hi Silvio, great work! LGeneral (also backgammon off your site) seems to work on my C3000 but when I try LTris I get these errors. I ialso installed libsdl and libsdl-mixer.
Code: [Select]
SlSharedManager: can't get proc entry
Display size = 480x640
could not open translation file /home/QtPalmtop//i18n/en/libsl.qmid
QT_GetMachine: /proc/deviceinfo/product is 'SL-C3000
čš“@'
 detected machine is 'Sharp SL-5000D'
QT_GetRotation: Read spec from '/tmp/qtembedded-zaurus/QtEmbedded-0.spec'
 spec is 'Transformed:Rot270:Vga:0'
 Rot=3, Qvga=0
QT_SetVideoMode: argSize=640x480
QT_SetVideoMode: qteSize=640x480
QT_SetVideoMode: fbSize=480x640
QT_SetVideoMode: qteRotation=3
QT_SetVideoMode: userRotation=-1
QT_SetVideoMode: sdlRotation=3
QT_SetVideoMode: qteKeyRotation=3
QT_SetVideoMode: sdlKeyRotation=3
Cannot load figures from '/usr/share/ltris/figures'.
Highscore chart doesn't exist in '/usr/var'... creating new one.
Write permission for '/usr/var/ltris.hscr' denied.
Unable to access highscore chart in '/usr/var'.
Trying to use config directory '/home/zaurus/.lgames'.
QLibrary open failed!: /home/QtPalmtop/lib/libqsfepj.so, libkke.so.1: cannot load shared object file: No such file or directory
LTris 1.0.10
Copyright 2002-2004 Michael Speck
Published under GNU GPL
---
Looking up data in: /usr/share/ltris
Mode 640x480x16 Window valid
Mode 640x480x16 Fullscreen valid
Saving highscore chart in: /home/zaurus/.lgames

It starts up fine but when i start a new game its just says "game over".
Thanks
Russell

g333

  • Full Member
  • ***
  • Posts: 196
    • View Profile
A Couple Of New Game Ports
« Reply #3 on: April 12, 2005, 08:57:23 pm »
SL-C3000, Sharp ROM 1.11 JP, AirEdge AH-S405C...

silvio

  • Jr. Member
  • **
  • Posts: 68
    • View Profile
    • http://www.iaccarino.de/silvio
A Couple Of New Game Ports
« Reply #4 on: April 12, 2005, 09:25:38 pm »
I've uploaded an update for ltris with a missing file and removed the /usr/var stuff.
But ltris neither depends on libqsfepj.so nor on libkke.so.1.
Are you shure you got correct sdl / sdl-mixer versions for your device?

regards,
Silvio
« Last Edit: April 12, 2005, 09:27:00 pm by silvio »
SL-C860, Cacko 1.22 lite and many toys.
My Zaurus stuff

g333

  • Full Member
  • ***
  • Posts: 196
    • View Profile
A Couple Of New Game Ports
« Reply #5 on: April 13, 2005, 08:59:21 am »
LMarbles doesn't show anything when you try to install it.  

Barrage, LGeneral, LTris and ZMarhjongg all work on the SL-C3000.  

ZMarhjongg still scrolls a little but it is much better than before.

LTris wouldn't let me use the large OK button to rotate.  

You're doing a nice job. How do you port a program?
SL-C3000, Sharp ROM 1.11 JP, AirEdge AH-S405C...

silvio

  • Jr. Member
  • **
  • Posts: 68
    • View Profile
    • http://www.iaccarino.de/silvio
A Couple Of New Game Ports
« Reply #6 on: April 13, 2005, 09:27:47 am »
Quote
LMarbles doesn't show anything when you try to install it.  

Barrage, LGeneral, LTris and ZMarhjongg all work on the SL-C3000.  

ZMarhjongg still scrolls a little but it is much better than before.

LTris wouldn't let me use the large OK button to rotate.  

You're doing a nice job. How do you port a program?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=74938\"][{POST_SNAPBACK}][/a][/div]

1. Check if the game supports VGA resolution

2. ./configure --prefix=/usr

3. Searching for screen resolution constants in the whole project and set them fixed to VGA.

4. Searching for the initial SDL_SetVideoMode() and remove all further SDL_SetVideoMode() calls because it should be called only once (the app screen flickers heavily if you ignore this step).

5. Searching for SDL_WaitEvent() and SDL_PollEvent(), removing the mousebutton stuff (especially for second and third mousebuttons), inserting hokeys instead, enable the cancel-key everywhere, this key should be traversed through all eventhandlers because Zaurus applications should be closed when cancel is pressed.

6. Rarely you have to modify some graphics.

Call make now and cross the fingers.

Round about 50% of the SDL games will work after this modifications.

regards,
Silvio
SL-C860, Cacko 1.22 lite and many toys.
My Zaurus stuff

g333

  • Full Member
  • ***
  • Posts: 196
    • View Profile
A Couple Of New Game Ports
« Reply #7 on: April 13, 2005, 10:14:26 am »
Has anyone got LMarbles working?
SL-C3000, Sharp ROM 1.11 JP, AirEdge AH-S405C...

silvio

  • Jr. Member
  • **
  • Posts: 68
    • View Profile
    • http://www.iaccarino.de/silvio
A Couple Of New Game Ports
« Reply #8 on: April 13, 2005, 10:46:44 am »
For me (C860, Cacko 1.22 lite) it is working. What happens if you start it from a shell?
SL-C860, Cacko 1.22 lite and many toys.
My Zaurus stuff

stupkid

  • Hero Member
  • *****
  • Posts: 578
    • View Profile
    • http://
A Couple Of New Game Ports
« Reply #9 on: April 13, 2005, 11:11:04 am »
You might want to run ./configure --prefix=/opt/QtPalmtop for your packages to enable your packages for alternate installs on Sharp ROMs.  Otherwise you can run into problems installing to SD/CF/HD etc.

Zaurus SL-C3200 pdaXii13v2 5.5 / Ambicom WC1100C-CF / Socket Bluetooth Rev G


OpenMoko FreeRunner - Running Tweaked OM2008.x Image

collywobbles

  • Newbie
  • *
  • Posts: 19
    • View Profile
A Couple Of New Game Ports
« Reply #10 on: April 13, 2005, 04:16:55 pm »
Quote
I've uploaded an update for ltris with a missing file and removed the /usr/var stuff.
But ltris neither depends on libqsfepj.so nor on libkke.so.1.
Are you shure you got correct sdl / sdl-mixer versions for your device?

regards,
Silvio
[div align=\"right\"][a href=\"index.php?act=findpost&pid=74865\"][{POST_SNAPBACK}][/a][/div]
Hi Silvio. i rolled back to an older lib sdl mixer and installed your latest version. The lib error still shows up in a terminal window but it all runs fine now.

great job thanks
Russell

silvio

  • Jr. Member
  • **
  • Posts: 68
    • View Profile
    • http://www.iaccarino.de/silvio
A Couple Of New Game Ports
« Reply #11 on: April 14, 2005, 03:10:18 am »
The lmarbles package was broken - the new release should work now.
Mea culpa.
SL-C860, Cacko 1.22 lite and many toys.
My Zaurus stuff

raybert

  • Full Member
  • ***
  • Posts: 233
    • View Profile
A Couple Of New Game Ports
« Reply #12 on: April 14, 2005, 11:14:38 pm »
Hi Silvio,

Thanks for porting these apps.  They're quite nice.

I'm having a problem with LTris and LMarbles though.  I installed the latest SDL stuff from ELSI (libSDL 1.2.6cvs-1 and libSDL-mixer 1.2.5cvs-1).  The apps run but the display consists only of a narrow strip of garbage pixels on the left side of the screen.  If I hit Cancel the app quits cleanly (and the garbage on the display goes away).  Running them from the command line doesn't reveal any errors (except for the usual QImage::color Index out of range messages) and the following: "QApplication: There should be max one application object".

LMarbles additionally shows this info about "Video hardware capabilities":

Code: [Select]
Hardware Surfaces: No
HW_Blit (CC, A): No (No, No)
SW_Blit (CC, A): No (No, No)
HW_Fill: No
Video Memory: 0
(I don't know the SDL API but that info doesn't look good to me.)

Any idea what's wrong here?  Do I have the wrong SDL?  A bad SDL install?

BTW, I have a C860 running the tkcROM (Sharp-based, excellent compatibility).

One other thing: Backgammon seems to have a minor problem: the game board is not all visible; scroll bars appear and I must scroll to see the whole board.  That's not intentional, is it?

Thanks again!

~ray

silvio

  • Jr. Member
  • **
  • Posts: 68
    • View Profile
    • http://www.iaccarino.de/silvio
A Couple Of New Game Ports
« Reply #13 on: April 15, 2005, 05:07:22 am »
Quote
I'm having a problem with LTris and LMarbles though.  I installed the latest SDL stuff from ELSI (libSDL 1.2.6cvs-1 and libSDL-mixer 1.2.5cvs-1).  The apps run but the display consists only of a narrow strip of garbage pixels on the left side of the screen.
Any idea what's wrong here?  Do I have the wrong SDL?  A bad SDL install?
Yes - you have installed a wrong SDL. Use the search function in this forum and search for "W100 SDL".

Quote
One other thing: Backgammon seems to have a minor problem: the game board is not all visible; scroll bars appear and I must scroll to see the whole board.  That's not intentional, is it?
Thats strange - I have no scrollbars. Could you send me some screenies?

regards,
Silvio
SL-C860, Cacko 1.22 lite and many toys.
My Zaurus stuff

g333

  • Full Member
  • ***
  • Posts: 196
    • View Profile
A Couple Of New Game Ports
« Reply #14 on: April 15, 2005, 01:38:22 pm »
LMarbles worked  but I don't know how to play it yet    How do I win?
SL-C3000, Sharp ROM 1.11 JP, AirEdge AH-S405C...