OESF Portables Forum

Everything Else => Zaurus Distro Support and Discussion => Distros, Development, and Model Specific Forums => Archived Forums => Sharp ROMs => Topic started by: enodr on December 09, 2006, 07:39:11 pm

Title: Scummvm 0.9.0 And Libsdl
Post by: enodr on December 09, 2006, 07:39:11 pm
I have compiled scummVM 0.9.0 but can't make libSDL work correctly... Can someone please give a try with its current libSDL, thks (feed is at http://sharpromfeed.home.linuxtogo.org/feed/) (http://sharpromfeed.home.linuxtogo.org/feed/)).

Here are my problems building libSDL for qpe (tried 1.2.7 and 1.2.9):
- if built without any patching I get the error: "QPaintDevice: Must construct a QApplication before a QPaintDevice" when lauching scummVM. I tried different versions so I conclude this is a libSDL error

- if built with some patches (tried tons of patches from OE and patches from here: http://www.gnurou.org/code/sharpzaurus) (http://www.gnurou.org/code/sharpzaurus)), I get garbled screen but the sound indicates that scummVM is working...

I have a C760, maybe this would work on another machine?

Any idea?
Title: Scummvm 0.9.0 And Libsdl
Post by: enodr on December 09, 2006, 08:28:18 pm
ok it's 2:25AM libSDL 1.2.9 and scummvm 0.9.0 are working... I tried so many things that I have yet to figure what made everything working!!

Ok I know I had to make some patches to scummvm to compile with gcc-2.95 so that's ok, but I have to figure what I did with libSDL to make everything ok
EDIT: doh! seems I made a mistake... I had libSDL_1.2.6-zports_c7x0-2_arm.ipk installed at the same time. So that may be why it works now  

Anyway I have uploaded the files on sharpromfeed. Use scummvm and not scummvm-qpe
Title: Scummvm 0.9.0 And Libsdl
Post by: pelrun on December 10, 2006, 02:42:07 am
With regards to that QPaintDevice error, here's the solution:

https://www.oesf.org/forums/index.php?showtopic=12012&hl= (https://www.oesf.org/forums/index.php?showtopic=12012&hl=)

I haven't done any SDL coding in a long time (nor running a sharprom), so I do not know if this is still required for the later SDL packages.
Title: Scummvm 0.9.0 And Libsdl
Post by: enodr on December 10, 2006, 07:13:21 am
Quote
With regards to that QPaintDevice error, here's the solution:

https://www.oesf.org/forums/index.php?showtopic=12012&hl= (https://www.oesf.org/forums/index.php?showtopic=12012&hl=)

I haven't done any SDL coding in a long time (nor running a sharprom), so I do not know if this is still required for the later SDL packages.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=148688\"][{POST_SNAPBACK}][/a][/div]

Thanks for the hint.

I have made some cleaning and recompiled everything and the problem I have is with libSDL (currently 1.2.9 but think it's the same with 1.2.7). When I launch scummvm I get a garbled screen. I know it works but all I get is garbage on the left of the screen (remembers me when I was messing with direct fb memory access on the GP32!)...
Title: Scummvm 0.9.0 And Libsdl
Post by: pelrun on December 10, 2006, 08:37:10 am
AFAIK you have to make sure the sdl setmode call is hardcoded to 640x480 or 320x240; the libs don't do it for you, and most SDL apps would set it to something invalid for the Z.
Title: Scummvm 0.9.0 And Libsdl
Post by: HoloVector on December 10, 2006, 09:53:49 am
Thanks for compiling this.  I gave it a try last night but, it wouldn't install for me.  I kept getting a "There was a problem installing this IPKG".   So I went to the console and ran ipkg install scummvm.  It gave a 404 error on the following library: libxex11-6_X11R7.1-1.0.2 which is right because that library isn't in your feed.  The closest match was libx11-6_11R7.1-1.0.1.  Is that the library it is really looking for?   BTW, I tried installing this on a C3200 running Cacko 1.23.
Title: Scummvm 0.9.0 And Libsdl
Post by: enodr on December 10, 2006, 12:11:10 pm
Quote
It gave a 404 error on the following library: libxex11-6_X11R7.1-1.0.2 which is right because that library isn't in your feed. 

Edit:

- libSDL-1.2.7 and scummvm 0.9.0 are working. Don't forget to enable "Aspect ratio correction" in order to have a correct display. I still need to figure how to right click, but every thing seems to work (is it?).

- just ipkg update && ipkg install scummvm-sharprom, this will install the dependencies as needed.

I'll try to compile a newer libSDL version when libsdl.org is accessible (ie not at the moment).
Title: Scummvm 0.9.0 And Libsdl
Post by: HoloVector on December 10, 2006, 02:33:04 pm
Thanks.  I'll give it a try when I get back from the Manitoba Zaurus User's Meeting.
Title: Scummvm 0.9.0 And Libsdl
Post by: enodr on December 10, 2006, 02:50:29 pm
Quote
Thanks.  I'll give it a try when I get back from the Manitoba Zaurus User's Meeting.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=148732\"][{POST_SNAPBACK}][/a][/div]

Removed scummvm-sharprom and replaced by scummvm, so just ipkg update && ipkg install scummvm
Title: Scummvm 0.9.0 And Libsdl
Post by: tovarish on December 11, 2006, 07:31:19 am
i tried your scummvm. it works fine but the only problem is the scummvm menu is inaccessible. Maybe remapping the F5(menu key) to something else in the zaurus (like menu key?) could be a solution.
Title: Scummvm 0.9.0 And Libsdl
Post by: HoloVector on December 11, 2006, 07:53:47 am
The menu is accessible in some games by pressing Ctrl-E.  It sould be all the games like is in OZ but, unfortunately it is not working in all the games I have tried so far.  For example, it works in Zak McKracken and the Alienmindbenders FM Towns, Maniac Mansion and Indiana Jones and the Last Crusade FM Towns but it does not work in Full Throttle, The Dig and Curse of Monkey Island.  Those games can only quit by pressing Ctrl-Q.  I will compile a definitive list of which games have this issue once I have done a quick run through all of them.

Enodr, I might suggest remapping the ScummVM menu to the Menu key on the Zaurus since it is the most likely key a new user will try when they try to access the ScummVM menu.  Another choice would be Fn-5 since the ScummVM standard is that F5 will pull it up on a PC or a Mac.

(Edited for spelling and comprehension)
Title: Scummvm 0.9.0 And Libsdl
Post by: enodr on December 11, 2006, 03:13:27 pm
tovarish, HoloVector, thanks for the feedbacks. The menu fix should be easy to implement I'll have a look soon (but unfortunately I wont be able to do zaurus stuff before the end of the week).
Title: Scummvm 0.9.0 And Libsdl
Post by: HoloVector on December 12, 2006, 06:37:13 am
Quote
The menu is accessible in some games by pressing Ctrl-E.  It sould be all the games like is in OZ but, unfortunately it is not working in all the games I have tried so far.  For example, it works in Zak McKracken and the Alienmindbenders FM Towns, Maniac Mansion and Indiana Jones and the Last Crusade FM Towns but it does not work in Full Throttle, The Dig and Curse of Monkey Island.  Those games can only quit by pressing Ctrl-Q.  I will compile a definitive list of which games have this issue once I have done a quick run through all of them.

Enodr, I might suggest remapping the ScummVM menu to the Menu key on the Zaurus since it is the most likely key a new user will try when they try to access the ScummVM menu.  Another choice would be Fn-5 since the ScummVM standard is that F5 will pull it up on a PC or a Mac.

(Edited for spelling and comprehension)
[div align=\"right\"][a href=\"index.php?act=findpost&pid=148817\"][{POST_SNAPBACK}][/a][/div]
Okay here is what I have found so far.

The following games can pull up the ScummVM menu by pressing Ctrl-E:
Maniac Mansion v2 for DOS
Zak McKracken and the Alien Mindbenders for FM Towns
Indiana Jones and the Last Crusade for FM Towns
Loom for FM Towns

The following games can not pull up the ScummVM menu by pressing Ctrl-E:
Loom CD for DOS
The Secret of Monkey Island Multilingual CD for DOS
Indiana Jones and the Fate of Atlantis CD for DOS
Monkey Island 2 LeChuck's Revenge for DOS
Day of the Tentacle CD for DOS
Sam & Max Hit the Road CD for DOS
Full Throttle for DOS
The Dig for DOS
The Curse of Monkey Island for Windows
Beneath a Steel Sky CD for DOS
Flight of the Amazon Queen CD for DOS

The following game pulls up the ScummVM menu by pressing Cancel:
Broken Sword 1: Shadows of the Templars for Windows (The Esc key was the original key to bring up the menu when the game was first released and the ScummVM team added F5 when they ported over the engine source to ScummVM)

Games to be tested for this issue:
Maniac Mansion v1 for DOS
Zak McKracken v1 for DOS
Zak McKracken v2 for DOS
Indiana Jones and the Last Crusade EGA for DOS
Indiana Jones and the Last Crusade VGA for DOS
Loom EGA for DOS
The Secret of Monkey Island EGA for DOS
The Secret of Monkey Island VGA for DOS
The Secret of Monkey Island Monkey Madness CD for DOS
Day of the Tentacle for DOS
Sam & Max for DOS
Beneath a Steel Sky for DOS
Flight of the Amazon Queen for DOS
Broken Sword 2 The Smoking Mirror for Windows
Title: Scummvm 0.9.0 And Libsdl
Post by: HoloVector on December 12, 2006, 07:01:16 am
Game Issues seen so far:

Broken Sword 1 Notes:

As mentioned above the ScummVM menu is available by pressing the Cancel key.

Zaurus does not have enough horsepower to play the cutscene OGGs and MP2s at the same time from the cutscene pack from the ScummVM website (http://www.scummvm.org/downloads.php#extras).  Reencoding the cutscenes to MP3s and lower res MP2s using this ***WARNING - Windows involved*** PocketPC How-To (http://pocketmatrix.com/forums/viewtopic.php?t=16006) fixes the sound skips but the video is still dropping tons of frames and is not in sync with the sound.  I will try a lower res video of 320x240 to see if that helps some more.


Loom CD Notes:

After the Swan changes the guild into swans and leaves Bobbin alone with the Hetchel egg; the Loom in the background stops it's cascading colors until Bobbin "opens" the egg.  Then the properly colour cascades resume.

Maniac Mansion v2 Notes:

The PC Speaker and PCJr sound options are missing a few notes when playing the intro music.  

Curse of Monkey Island Notes:

Cutscene Audio is faster then the Video so, it looks like a poorly dubbed Japanese film.    Video is a bit more choppier then is was in Tovarish's ScummVM 0.8.2.  I will try overclocking to see if it helps.

More to come.  Thanks for your great port.
Title: Scummvm 0.9.0 And Libsdl
Post by: HoloVector on December 28, 2006, 11:42:11 pm
I've added some more of these to the list in red.  Here's hoping you can fix this issue shortly.  Thanks for your hard work.

Quote
Okay here is what I have found so far.

The following games can pull up the ScummVM menu by pressing Ctrl-E:
Maniac Mansion v2 for DOS
Zak McKracken and the Alien Mindbenders for FM Towns
Indiana Jones and the Last Crusade for FM Towns
Loom for FM Towns
Zak McKracken v1 for DOS
Zak McKracken v2 for DOS
Maniac Mansion v1 for DOS

The following games can not pull up the ScummVM menu by pressing Ctrl-E:
Loom CD for DOS
The Secret of Monkey Island Multilingual CD for DOS
Indiana Jones and the Fate of Atlantis CD for DOS
Monkey Island 2 LeChuck's Revenge for DOS
Day of the Tentacle CD for DOS
Sam & Max Hit the Road CD for DOS
Full Throttle for DOS
The Dig for DOS
The Curse of Monkey Island for Windows
Beneath a Steel Sky CD for DOS
Flight of the Amazon Queen CD for DOS
Beneath a Steel Sky for DOS
Broken Sword 2 The Smoking Mirror for Windows
Flight of the Amazon Queen for DOS
Sam & Max for DOS
The Secret of Monkey Island EGA for DOS
The Secret of Monkey Island VGA for DOS
Indiana Jones and the Last Crusade EGA for DOS
Indiana Jones and the Last Crusade VGA for DOS

The following game pulls up the ScummVM menu by pressing Cancel:
Broken Sword 1: Shadows of the Templars for Windows (The Esc key was the original key to bring up the menu when the game was first released and the ScummVM team added F5 when they ported over the engine source to ScummVM)

Games to be tested for this issue:
Loom EGA for DOS
The Secret of Monkey Island Monkey Madness CD for DOS
Day of the Tentacle for DOS
[div align=\"right\"][a href=\"index.php?act=findpost&pid=148911\"][{POST_SNAPBACK}][/a][/div]
Title: Scummvm 0.9.0 And Libsdl
Post by: Mecit on March 24, 2007, 09:06:17 am
I have scummvm 0.82 and the only problem is right click, so I can't play BS. Is right click enabled in this version.
Title: Scummvm 0.9.0 And Libsdl
Post by: dwagelaar on August 23, 2007, 02:15:33 am
Quote
I have scummvm 0.82 and the only problem is right click, so I can't play BS. Is right click enabled in this version.
[div align=\"right\"][{POST_SNAPBACK}][/a][/div] (http://index.php?act=findpost&pid=157105\")

I used scummvm 0.7.0 for Cacko before, but that did not support compressed video's (Full Throttle, etc.). So I compiled 0.8.2, which works (compiles) out of the box. The 0.8.2 version already contains some Qtopia code, which maps the menu key to bring up the in-game menu. It only did not simulate right-click properly. I mapped the Ctrl key to simulate right-click:

[a href=\"http://ssel.vub.ac.be/Members/DennisWagelaar/download/zaurus/scummvm-events.diff]http://ssel.vub.ac.be/Members/DennisWagela...mvm-events.diff[/url]

Ipk is here:

http://ssel.vub.ac.be/Members/DennisWagela...0.8.2-1_arm.ipk (http://ssel.vub.ac.be/Members/DennisWagelaar/download/zaurus/scummvm_0.8.2-1_arm.ipk)