maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Games (https://talk.maemo.org/forumdisplay.php?f=12)
-   -   ScummVM on N900 (https://talk.maemo.org/showthread.php?t=33126)

Addison 2009-10-27 08:22

Re: ScummVM on N900
 
Hey fanoush. Will you be releasing another port for the N8x0 come the November 16th release?

Only asking, not a request this time.

Also, if you do, will it have SCI support?

Looks like in your current version you have that blocked out for some reason.

Thanks chief!

By the way, I'm still enjoying Discworld, so again, many thanks! :)

toninikkanen 2009-10-27 09:44

Re: ScummVM on N900
 
Just to recap, the three most important (and very small) changes I did on top of the included maemo patch were:

Add -lX11 to link flags. This was enough to build the whole package and get it running as well.

Added RX-51 to the list of keyboard-equipped Maemo devices

Commented out the SDL_WM_SetIcon call. This enabled getting window focus -> enabled you to use the keyboard.


The rest is just trying to get the keyboard mappings to such a state that they make sense on the N900 - and I'm still missing the ability to enter the save dialog and enter numbers - the keyboard command part of the code is a bit confusing there and I don't know SDL anyway.
Also I enabled the SCI and SCI32 engines because I wanted to play Quest for Glory 2.

fanoush 2009-10-29 22:08

Re: ScummVM on N900
 
Quote:

Originally Posted by Addison (Post 358825)
Hey fanoush. Will you be releasing another port for the N8x0 come the November 16th release?

Yes, I don't have N900 so N8x0 and 770 are my preferred devices :-)
Quote:

Originally Posted by Addison (Post 358825)
Also, if you do, will it have SCI support?

Official ScummVM package (the one available at scummvm.org site) adheres to rules set by ScummVM developers. AFAIK the SCI engine is currently disabled in official build since it is not out of beta, see http://wiki.scummvm.org/index.php/Engines . Many engines live like that for a long time. Once it is good enough it is enabled with a big fanfare in some release. I am not sure about stability of SCI engine but for build in Maemo extras I guess we can have extra beta engines enabled if at least some games are completable for such engines. Or maybe it would be better to make available some unstable scummvm package with all such engines enabled.

fanoush 2009-10-29 22:44

Re: ScummVM on N900
 
OK, I have finally installed Fremantle SDK :o and made some build of scummvm, installed into x86 target to test with the fancy Maemo 5 UI and indeed there are some issues.

Quote:

Originally Posted by toninikkanen (Post 358855)
Commented out the SDL_WM_SetIcon call. This enabled getting window focus -> enabled you to use the keyboard.

Yes, happens in Xephyr too.

Quote:

Originally Posted by toninikkanen (Post 358855)
The rest is just trying to get the keyboard mappings to such a state that they make sense on the N900.

As I don't have the device I need a bit of help here. So we have no fullscreen, no home and no menu button. Do we have Escape key? What shortcuts are good for those on N900? In maemo developers there was some discussion about fullscreen key, what about other SDL based ports? would ctrl+space be good for fullscreen? What about others? Is there no way to switch to fullscreen in the UI?

Maybe with so many buttons missing, some virtual buttons on screen are really needed :-(

Quote:

Originally Posted by toninikkanen (Post 358855)
and I'm still missing the ability to enter the save dialog and enter numbers - the keyboard command part of the code is a bit confusing there and I don't know SDL anyway.

At least on N810 holding Fn worked to print numbers, Fn is not sticky in SDL. Does this work with N900 too?

So I guess to test the water I will start with fremantle specific sources for uploading to fremantle extras-devel (hopefully this weekend) and try one source for all later. As for dependencies and maemo autobuilder it looks great. I see there is both libvorbisidec and libmad in fremantle extras-devel but libmad is not in extras. FLAC is in both.

As for power management - do SDL apps get lost focus event when the application is switched away or display is blank? How can I blank the display in SDK?

mikkov 2009-10-29 23:06

Re: ScummVM on N900
 
Quote:

Originally Posted by fanoush (Post 361167)
As I don't have the device I need a bit of help here. So we have no fullscreen, no home and no menu button. Do we have Escape key?

That's right, there isn't any of those. Backspace is a good candidate for Escape key.

Quote:

What about others? Is there no way to switch to fullscreen in the UI?
There is no universal way to switch to fullscreen, soft button is needed. One option is to keep it always in fullscreen mode.

Quote:

At least on N810 holding Fn worked to print numbers, Fn is not sticky in SDL. Does this work with N900 too?
I haven't tested scummvm but Fn button works in SDL as before.

Quote:

. I see there is both libvorbisidec and libmad in fremantle extras-devel but libmad is not in extras. FLAC is in both.
Depencies will be promototed automatically towards extras as needed.

Quote:

As for power management - do SDL apps get lost focus event when the application is switched away or display is blank? How can I blank the display in SDK?
SDL_ACTIVEEVENT is received when window is backgrounded. This patch is from madbomber, where game is paused quite violently when it loses focus.

Code:

+        else if (event.type == SDL_ACTIVEEVENT)
+          {
+            if ( event.active.gain == 0)
+              {
+                Mix_PauseMusic();
+                while (SDL_WaitEvent(&event) )
+                {
+                  if (event.type == SDL_ACTIVEEVENT && event.active.gain == 1 ) break;
+                  if (event.type == SDL_QUIT )
+                  {
+                      quit = 1;
+                    break;
+                  }
+                }
+              }
+            Mix_ResumeMusic();
+          }

This is not very good (better than nothing still) because sound isn't deinitialzed so pulseaudio stays active. And even if sound was completely disabled, SDL won't let processor to sleep unless SDL is killed completely.

ACTIVEEVENT is not received when screen blanks. For that we should use libosso, but right now (or again :)) I can't get it to receive display events.

Addison 2009-10-29 23:13

Re: ScummVM on N900
 
Quote:

Originally Posted by fanoush (Post 361130)
Yes, I don't have N900 so N8x0 and 770 are my preferred devices :-)

Official ScummVM package (the one available at scummvm.org site) adheres to rules set by ScummVM developers. AFAIK the SCI engine is currently disabled in official build since it is not out of beta, see http://wiki.scummvm.org/index.php/Engines . Many engines live like that for a long time. Once it is good enough it is enabled with a big fanfare in some release. I am not sure about stability of SCI engine but for build in Maemo extras I guess we can have extra beta engines enabled if at least some games are completable for such engines. Or maybe it would be better to make available some unstable scummvm package with all such engines enabled.

Oh yeah!

I'm all about instability!

Just ask anyone who knows me! :D

I do understand that the daily builds can play a game, such as Leisure Suite Larry VGA, in it's entirety one day and then break it the next. So there's no guarantees on anything with an unofficial release.

It still would be fun just to try a few out though.

Your call. Either way, it won't take away my happiness from your current build. :)

javispedro 2009-10-29 23:15

Re: ScummVM on N900
 
Quote:

Originally Posted by mikkov (Post 361182)
ACTIVEEVENT is not received when screen blanks. For that we should use libosso, but right now (or again :)) I can't get it to receive display events.

Or hildon-games-wrapper, which was designed specifically for SDL games. If only upstream development was active...

Bundyo 2009-10-30 10:50

Re: ScummVM on N900
 
one can use key combinations like Ctrl+Enter to switch to fullscreen too.

pillar 2009-12-01 10:56

Re: ScummVM on N900
 
Is this still being worked on? I would love to have this working on N900.

toninikkanen 2009-12-01 10:58

Re: ScummVM on N900
 
I am no longer actively doing anything at least, since I supposed others picked up the ball..


All times are GMT. The time now is 18:06.

vBulletin® Version 3.8.8