maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Games (https://talk.maemo.org/forumdisplay.php?f=12)
-   -   Palm Pre gets SDL! native gaming (https://talk.maemo.org/showthread.php?t=39809)

anidel 2010-10-23 03:43

Re: Palm Pre gets SDL! native gaming
 
And, OT, why I haven't seen Palm Pre OS running on the N900 or viceversa?
Or even MeeGo on a Pre?

porselinaheart 2010-10-23 04:07

Re: Palm Pre gets SDL! native gaming
 
'fap' 'fap'

javispedro 2010-10-23 15:40

Re: Palm Pre gets SDL! native gaming
 
Quote:

Originally Posted by anidel (Post 848422)
What about sounds?

Yes, they work! Including background music. In fact, Pre games usually use Vorbis music, which the Pre flawlessly supports and the N900 doesn't (heh!) without extras packages.

Quote:

Originally Posted by anidel (Post 848423)
And, OT, why I haven't seen Palm Pre OS running on the N900 or viceversa?
Or even MeeGo on a Pre?

WebOS on the N900 -- Same reason you don't get Maemo on any other device. Because it's not 100% OSS, and nobody has started a project to purge it from the closed stuff. As the closed vs free ratio is worse than the Maemo one, such a project would need even more work than Mer, etc..
(BTW, I know at least one person who tried to run the closed components of WebOS on the N900 with "some" success)
Meego on the Pre -- dunno. Pre kernel is open save for some DSP stuff (Texas Instruments copyright iirc).




On latest git even _cinematics_ work, so I can already play certain cool-looking racing game with a screenshot on the 2nd page of this thread!

pingu 2010-10-23 21:53

Re: Palm Pre gets SDL! native gaming
 
I want to install this but unfortunatly I don't know how. if someone could write the commands list for installing it in "/opt/preenv/" I will really appreciate it?

javispedro 2010-10-23 22:06

Re: Palm Pre gets SDL! native gaming
 
1 Attachment(s)
Ok, the package is in extras-devel, called "Preenv" 0.1. As it has no graphical user interface, you will not find it in the application manager, so you have to install from the command line.

To get games, grab your Pre and copy your application storage directory out of it (that depends on your version of WebOS and requires rooting it, so it is out of the scope of this little post). Then copy it into your N900's home directory (note: /home/user !, not MyDocs).

To enter the "Pre environment", just type "preenv" on the terminal. This will spawn another shell with the correct LD_LIBRARY_PATH. Now you can try running your games as if they were native applications (they are!). They all run fullscreen; quit them using Ctrl+Backspace.

You can also generate a menu icon for a game (like if it was a N900 game!); just run "desktopgen <path to a game's appinfo.json file>" within the Pre environment. (desktopgen needs root for obvious reasons; the rest of preenv doesn't).


Remember that this only runs "Native" applications. If an application makes use of the Mojo framework (javascript, html widgets, ...) it's no longer native. ALL OpenGL games are "native" applications, though.

Also, currently only OpenGL ES 1 PORTRAIT games will be automatically rotated & enlarged.

A screenshot with the result of running "desktopgen" on some Pre games (those two games run flawlessly):

ivyking 2010-10-23 22:26

Re: Palm Pre gets SDL! native gaming
 
thanks a lot for your efforts !
how about mapping the proximity sensor + single finger scroll as virtual multitouch ? (I know this has been asked before , but now we can have a use for this !)

javispedro 2010-10-23 22:32

Re: Palm Pre gets SDL! native gaming
 
Quote:

Originally Posted by ivyking (Post 849032)
thanks a lot for your efforts !
how about mapping the proximity sensor + single finger scroll as virtual multitouch ?

I don't know how it would work like.

Multitouch is having two or more fingers at the screen at different positions. Think http://www.youtube.com/watch?v=V8_0Oz7KOso . The proximity sensor does not get position info!

(btw, that one game also works nearly flawlessly -- save for not being able to move and attack at the same time due to missing multitouch, which makes it a bit harder but still quite playable. it is also a bit slower than the original one, because preenv makes it run at 800x480. the startup cinematic also works.).

djs_tx 2010-10-23 22:34

Re: Palm Pre gets SDL! native gaming
 
Stupid idea....

I understand the legal aspects of "you must own a pre to do this" but...

EA wants to sell games. Have you thought about approaching EA and showing them how easy it is to expand their market? Of course I guess it could backfire and they could DRM the heck out of their games. But it sounds like a major opportunity for them.

If a hacker without any "inside" knowledge of their code can get them so functional with such little effort, why wouldn't they tweak their games a little and make them available in OVI?

Or am I crazy...?

javispedro 2010-10-23 22:38

Re: Palm Pre gets SDL! native gaming
 
Quote:

Originally Posted by djs_tx (Post 849040)
EA wants to sell games. Have you thought about approaching EA and showing them how easy it is to expand their market?

Oh well, that's what I would have really wanted, and the reason I waited a lot of time from noticing the similarities between the Pre and the N900 to starting the project. I was optimistic in that maybe we could see something similar from Nokia "soon".

Well, it didn't pay.

Even more depressing: from a technical point of view, EA could port _all_ of their games in an afternoon in man-hours. In fact, that's the time _I_ spent from having "just" the idea to actually seeing the Sims running!

anwar71839 2010-10-23 22:56

Re: Palm Pre gets SDL! native gaming
 
i cant find it. I tried to do it via xterminal too, no luck. :(


All times are GMT. The time now is 15:10.

vBulletin® Version 3.8.8