OESF Portables Forum

Everything Else => General Support and Discussion => Zaurus General Forums => Archived Forums => Software => Topic started by: silvio on April 12, 2005, 10:28:38 am

Title: A Couple Of New Game Ports
Post by: silvio 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 (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 (http://www.iaccarino.de/silvio/zaurusstuff.htm)

Have fun!  
Silvio
Title: A Couple Of New Game Ports
Post by: lareya 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
Title: A Couple Of New Game Ports
Post by: collywobbles 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 (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
Title: A Couple Of New Game Ports
Post by: g333 on April 12, 2005, 08:57:23 pm
Title: A Couple Of New Game Ports
Post by: silvio 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
Title: A Couple Of New Game Ports
Post by: g333 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?
Title: A Couple Of New Game Ports
Post by: silvio 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
Title: A Couple Of New Game Ports
Post by: g333 on April 13, 2005, 10:14:26 am
Has anyone got LMarbles working?
Title: A Couple Of New Game Ports
Post by: silvio 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?
Title: A Couple Of New Game Ports
Post by: stupkid 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.
Title: A Couple Of New Game Ports
Post by: collywobbles 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
Title: A Couple Of New Game Ports
Post by: silvio on April 14, 2005, 03:10:18 am
The lmarbles package was broken - the new release should work now.
Mea culpa.
Title: A Couple Of New Game Ports
Post by: raybert 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
Title: A Couple Of New Game Ports
Post by: silvio 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
Title: A Couple Of New Game Ports
Post by: g333 on April 15, 2005, 01:38:22 pm
LMarbles worked  but I don't know how to play it yet    How do I win?
Title: A Couple Of New Game Ports
Post by: g333 on April 15, 2005, 01:42:34 pm
If the LPong game could also be ported it would be realllllly cool.  Fantastic work man!!!
Title: A Couple Of New Game Ports
Post by: scheck.r on April 15, 2005, 05:00:34 pm
Hi Silvio,

I just installed Lmarbles on the 6k and no prob(stock SHARP ROM fast kernel).
The graphics and the speed are really good.
Just for others, these are the libSDL I had installed:
libSDL_1.2.6cvs-1_arm.ipk (libSDL_1.2.6-zports-5_arm.ipk should work also)
libSDL-mixer_1.2.6-zports-0_arm.ipk

see libSDL_sourceforge (http://sourceforge.net/project/showfiles.php?group_id=95582)

Thanks Silvio.
Title: A Couple Of New Game Ports
Post by: raybert on April 16, 2005, 12:04:40 pm
Quote
Yes - you have installed a wrong SDL. Use the search function in this forum and search for "W100 SDL".
The search only found your own reference. :|  But scheck.r's post set me straight (thanks!).  LTris is very nice!  (Thank you!)  I haven't figured out how to lay LMarbles yet; I'll have to look for the docs.

Quote
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?
Okay, attached.  I'm guessing it's a fonts issue.

Thanks again,

~ray
Title: A Couple Of New Game Ports
Post by: g333 on April 16, 2005, 06:34:06 pm
Did you change your user interface or did it come like that? It's purple  
Title: A Couple Of New Game Ports
Post by: raybert on April 18, 2005, 10:45:08 am
Quote
Did you change your user interface or did it come like that? It's purple 
[div align=\"right\"][a href=\"index.php?act=findpost&pid=75552\"][{POST_SNAPBACK}][/a][/div]
That's a theme that I installed.  It's probably the reason that the scroll bars came up (some component must be larger than the default) but I haven't seen this problem with any other program.

~ray
Title: A Couple Of New Game Ports
Post by: g333 on April 18, 2005, 11:14:47 am
Try changing the layout again to see if it fixes the problem. If it does then the theme can be fixed instead of the game.

BTW LBreakout was the other game that looked cool but isn't in the game list    and occ is a good idea. I would love to be able to play Chess
Title: A Couple Of New Game Ports
Post by: silvio on April 18, 2005, 01:36:49 pm
Quote
Try changing the layout again to see if it fixes the problem. If it does then the theme can be fixed instead of the game.

BTW LBreakout was the other game that looked cool but isn't in the game list    and occ is a good idea. I would love to be able to play Chess
[div align=\"right\"][a href=\"index.php?act=findpost&pid=75795\"][{POST_SNAPBACK}][/a][/div]
Search for Lbreakout in ELSI, the port was done by somebody else.
Title: A Couple Of New Game Ports
Post by: beatgoeson on April 18, 2005, 04:03:14 pm
Quote
Try changing the layout again to see if it fixes the problem. If it does then the theme can be fixed instead of the game.

I have the same problem as raybert, although using the regular Zblue theme.
I've tried several other themes with still the same issue.
Title: A Couple Of New Game Ports
Post by: g333 on April 18, 2005, 08:30:29 pm
I don't have the same problem and I don't know why.
Title: A Couple Of New Game Ports
Post by: raybert on April 19, 2005, 12:08:59 pm
Quote
Try changing the layout again to see if it fixes the problem. If it does then the theme can be fixed instead of the game.
Good idea (for diagnostic reasons, at least).  Unfortunately, it didn't work.  I tried different themes, different font settings, etc., can't seem to find a combination that works.

~ray
Title: A Couple Of New Game Ports
Post by: melee on April 19, 2005, 02:32:19 pm
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
[div align=\"right\"][a href=\"index.php?act=findpost&pid=75321\"][{POST_SNAPBACK}][/a][/div]

I had the same problem with your earlier version, it was the window manager inserting scrollbars not the program

I switched to the most uncluttered theme  - qpe - and got rid of them leaving the whole board visible

Melee
Title: A Couple Of New Game Ports
Post by: g333 on April 20, 2005, 07:52:41 pm
Silvio, I found it. Thanks.
Title: A Couple Of New Game Ports
Post by: merli on May 06, 2005, 10:08:37 am
Is there any possibility to support also SL-5x00 models for these games?
Title: A Couple Of New Game Ports
Post by: Ragnorok on May 06, 2005, 08:45:30 pm
- Thanks, scheckr, for the link to the SDL libs.  Been lookin' all over for those guys.  'Course they're right under my virtual nose the entire time!  (vaccuous stare)
- Snagged every game on the list, Silvio ... overall an EXCELLENT set.  But I'm seeing some wierdness, which is actually somewhat typical for me.  (rolls ii)

BACKGAMMON:
- Same scroll bar thing that lots of others see.  Standard ZPurple theme.

OTHER:
- It would be nice if these would allow save, or save themselves (halleluiah!) when they exit.  Especially Marbles.  Or do like the Atomic port and allow the user to select the level to start at, so they can skip the levels they've seen.
- Screen rotation is an issue on the C1000, or at least mine!  (grin)  If I'm running something in 320x200 with the screen in portrait, then I hti "Home", it repaints the Qt bar at high-res, then garbulates the screen and crashes.  Uncool.
Title: A Couple Of New Game Ports
Post by: glompos21 on May 29, 2005, 11:42:12 am
I have problem playing LGeneral

When i start it from console the message is

Display size = 480x640
QApplicatin  There should be max one application object.

At the right side of the screen the game try to start but the zaurus freeze.
I have a c760 with Cacko 1.22a(Lite).I install the libs.
Title: A Couple Of New Game Ports
Post by: QJimbo on May 29, 2005, 07:41:24 pm
Not to seem out of place here, but has anyone come up with some custom SDL library or something that could scale these VGA games down to 320x240 for the older Zaurii? You guys have all the fun :'( And I want OpenTTD on my zaurus as well damn it
Title: A Couple Of New Game Ports
Post by: cmpayc on June 14, 2005, 04:19:13 pm
@silvio

if i try to start ltris from the console it writes some messages and exits.
i'm running cacko 1.22a on c860. libsdl and libsdl-mixer are installed.

Any idea?

thanks in advance

best regrds

cmpayc
Title: A Couple Of New Game Ports
Post by: Cresho on July 01, 2005, 11:54:38 am
if you guys are interested, i am playing games like interstellar flames, rocket elite, etc.  eon games on my c1000.  it works really nice.

i was amazed.

im gona try your lgames.


thanks man!  good effort.
Title: A Couple Of New Game Ports
Post by: mtnkill on July 01, 2005, 01:11:30 pm
Quote
if you guys are interested, i am playing games like interstellar flames, rocket elite, etc.  eon games on my c1000.  it works really nice.

i was amazed.

im gona try your lgames.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=86645\"][{POST_SNAPBACK}][/a][/div]

Hey!  Quit playing games and get that C1K theme done!!    

Just kidding...keep up the great work, Cresho!

shane
Title: A Couple Of New Game Ports
Post by: Cresho on July 01, 2005, 02:19:23 pm
are you talking about umicons or the updated gant?  i also have a newer umicons icons which look way better...

hmmmm
you you hvent checked the last post i did?

its in beta as for now.

a topic of theme (https://www.oesf.org/forums/index.php?showtopic=13590)
Title: A Couple Of New Game Ports
Post by: ken on July 01, 2005, 02:25:23 pm
Quote
im gona try your lgames.

Barrage is fun
Title: A Couple Of New Game Ports
Post by: kenknight on August 30, 2005, 03:45:41 am
My turn....

I tried to run LTris on my new, and still petty much un-changed (i.e., Sharp ROM) C1000 (English conversion done by Shirtpocket).

At first I installed libSDL_1.2.6cvs-1_arm.ipk and got the max application object error noted by others. Found the libSDL_1.2.6-zports-5_arm.ipk library and installed that instead and now LTris isntead spews forth with a slew of messages too numerous to write here (there must be an easier way to dump those error messages from the Z terminal - QConsole - to my desktop).

So clearly I've got incorrect libraries still, but I am not sure what to try next. My error messages look a lot like those noted by CollieWobbles in his April 12 message (page 1 of this thread), except as I said I'm using libSDL_1.2.6-zports-5_arm.ipk now. Unlike him, for me LTris never runs - launches, spews errorrs, and exits.

Any thoughts? Thaks.
Title: A Couple Of New Game Ports
Post by: kenknight on August 31, 2005, 03:17:21 pm
Solved my problem. Turns out I had a corrupted highscore file in /home/zaurs/.lgames/ltris.hscr Once I removed that things started to work just fine. Now I can burn battery with abandon and get absolutely nothing done.
Title: A Couple Of New Game Ports
Post by: Cresho on April 04, 2006, 02:57:21 pm
here is my list of fix for ltris

http://www.iaccarino.de/silvio/zaurusstuff.htm (http://www.iaccarino.de/silvio/zaurusstuff.htm)
look for ltris

you will need zports sdl
download from this site zports sdl
http://webpages.charter.net/cresho/turbo-nes-snes.zip (http://webpages.charter.net/cresho/turbo-nes-snes.zip)
install
libmad_0.15.0b-zports-0_arm.ipk
libSDL_1.2.6-zports-5_arm.ipk
libSDL-mixer_1.2.6-zports-0_arm.ipk

then in the console you need to do this.

Code: [Select]
su
chown -R zaurus:qpe /home/zaurus/.lgames
chmod 700 /home/zaurus/.lgames

you need to do the above or it will not work.
Title: A Couple Of New Game Ports
Post by: Raul on April 21, 2006, 07:28:14 am
Few questions:
1. lgeneral seems to be memory hungry - it crashes (to be exact: it closes itself without error) a lot. Sometimes I get Low Memory warning and I have to close lgeneral. Adding swap file to SD card didn't help (it crashes but memory applet is green).

2. My "saves" doesn't seems to be saved anywhere.
Save are saved to .lgames directory (after chowning and chmoding the directory).

Thanks in advance for any help

Kind regards,
Raul