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)

javispedro 2010-10-23 23:32

Re: Palm Pre gets SDL! native gaming
 
Quote:

Originally Posted by anwar71839 (Post 849056)
i cant find it. I tried to do it via xterminal too, no luck. :(

Package name is preenv, on repository extras-devel.

dalonso 2010-10-24 00:21

Re: Palm Pre gets SDL! native gaming
 
What about Flash 10.1 from the WebOS 2.0? Should it be possible to copy libflashplayer.so from it into th N900 and have it working?

javispedro 2010-10-24 00:37

Re: Palm Pre gets SDL! native gaming
 
Quote:

Originally Posted by dalonso (Post 849091)
What about Flash 10.1 from the WebOS 2.0? Should it be possible to copy libflashplayer.so from it into th N900 and have it working?

I suggested such a thing long ago ( http://talk.maemo.org/showthread.php...890#post689890 ). I do not have any interest in Flash, though, so I won't try.

Btw. The Pre got Flash 10.1 in a quite old version, 1.4.0 iirc. (Unlike Nokia :D:D:D).

anwar71839 2010-10-24 01:54

Re: Palm Pre gets SDL! native gaming
 
Quote:

Originally Posted by javispedro (Post 849070)
Package name is preenv, on repository extras-devel.

It says couldn't find package

Airtux 2010-10-24 01:57

Re: Palm Pre gets SDL! native gaming
 
@anwar71839

Quote:

sudo gainroot
apt-get update
apt-get install preenv
@javispedro

I not have palm pre, it's possible to install a games on N900?

You have one example for launch a game?

EDITE: I have Buy a Palm pre for 150CHE! :D

porselinaheart 2010-10-24 03:23

Re: Palm Pre gets SDL! native gaming
 
quick question, do i just transfer the whole usr/palm/application folder and sub-folders to my n900??

javispedro 2010-10-24 03:38

Re: Palm Pre gets SDL! native gaming
 
Quote:

Originally Posted by porselinaheart (Post 849142)
quick question, do i just transfer the whole usr/palm/application folder and sub-folders to my n900??

Just the games you're interested in. If you are unsure about some app's name, check the appinfo.json file inside each folder (in fact, that's the file desktopgen uses to create a game's icons -- one could say a folder containing an appinfo.json file is a "selfcontained" application).

Quote:

Originally Posted by Airtux (Post 849124)
I not have palm pre, it's possible to install a games on N900?

Only those distributed outside the Palm Catalog (including a port of DrNokSnes, btw :D ).

Quote:

Originally Posted by Airtux (Post 849124)
You have one example for launch a game?

$ preenv
$ cd game_dir
$ ./game
:)

Airtux 2010-10-24 03:57

Re: Palm Pre gets SDL! native gaming
 
Thanks,

With $./game
I have "Permission denied"

With $ desktopgen appinfo.json
I have "is not executable" :confused:

SSLMM 2010-10-24 04:07

Re: Palm Pre gets SDL! native gaming
 
Quote:

Originally Posted by Airtux (Post 849151)
Thanks,

With $./game
I have "Permission denied"

With $ desketopgen appinfo.json
I have "is not executable" :confused:

Thanks for all of this but i'm getting the same as Airtux :/

Keep the good work :)

porselinaheart 2010-10-24 05:45

Re: Palm Pre gets SDL! native gaming
 
affirmative, i'm getting permission denied as well..

porselinaheart 2010-10-24 07:53

Re: Palm Pre gets SDL! native gaming
 
javispedro we need you! :P

zehjotkah 2010-10-24 08:59

Re: Palm Pre gets SDL! native gaming
 
Quote:

Originally Posted by javispedro (Post 848753)
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!

Really great work, javi!
Do you have a plan when to upload the latest git to extras-devel?
I'm getting the segmetation fault while trying to launch NFSU...


@all you have to chmod +rwx the executeable first.

edit: and also on Sims I get an Segmentation fault.

porselinaheart 2010-10-24 10:13

Re: Palm Pre gets SDL! native gaming
 
works awesome!!!!, managed to get it working WooHooo

zehjotkah 2010-10-24 10:25

Re: Palm Pre gets SDL! native gaming
 
Quote:

Originally Posted by porselinaheart (Post 849307)
works awesome!!!!, managed to get it working WooHooo

which game?

iDont 2010-10-24 11:06

Re: Palm Pre gets SDL! native gaming
 
First of all, thanks for this package. I would love to see some Palm Pre games running on the N900 :)

I've installed preenv and copied a game to /home/user. After making the game executable, it gives me an error when I try to run it:

error while loading shared libraries: libGLES_CM.so: cannot open shared object file: No such file or directory.

A quick "find / -name libGLES_CM" didn't find libGLES_CM.so anywhere in my filesystem. I am running PR 1.2 and have got opengles-sgx-img-common installed (if that matters, I found a reference to it while googling for libGLES_CM).

Thanks in advance and keep up the good work
-iDont

javispedro 2010-10-24 11:26

Re: Palm Pre gets SDL! native gaming
 
Quote:

Originally Posted by zehjotkah (Post 849253)
edit: and also on Sims I get an Segmentation fault.

PM me with the full log.


You need to keep the files' permissions while copying stuff from the Pre. This might be difficult if you use Windows or MyDocs for the transfer, but hopefully chmoding the executable as per zehjotkah's post will be enough.

javispedro 2010-10-24 11:29

Re: Palm Pre gets SDL! native gaming
 
Quote:

Originally Posted by iDont (Post 849360)
error while loading shared libraries: libGLES_CM.so: cannot open shared object file: No such file or directory.

# apt-get install libgles1-sgx-img
(I guess I should make the package depend on common libraries used by Pre games... :P)

Bundyo 2010-10-24 11:37

Re: Palm Pre gets SDL! native gaming
 
Thank you Javispedro, EA games are working. However games written specifically for Palm Pre require bindings to their PDL SDL extensions. Do we have the source for these or can we reverse engeneer them (looks like there are only several calls)?

javispedro 2010-10-24 11:42

Re: Palm Pre gets SDL! native gaming
 
Quote:

Originally Posted by Bundyo (Post 849390)
Thank you Javipedro, EA games are working. However games written specifically for Palm Pre require bindings to their PDL SDL extensions. Do we have the source for these or can we reverse engeneer them (looks like there are only several calls)?

I usually stub these or try to get what do mean by its name (they're usually trivial stuff like GetDeviceName()); give me the log and i'll try to see what those are. The current git has also more such calls implemented.

Bundyo 2010-10-24 11:50

Re: Palm Pre gets SDL! native gaming
 
PDL_GetCallingPath and PDL_GetScreenMetrics are two that I'm getting, they sure look trivial. :)

iDont 2010-10-24 11:53

Re: Palm Pre gets SDL! native gaming
 
Quote:

Originally Posted by javispedro (Post 849383)
# apt-get install libgles1-sgx-img
(I guess I should make the package depend on common libraries used by Pre games... :P)

Thank you sir!

NFSU runs great, but Asphalt 5 crashes (probably same thing as Bunyo said about specific Palm libraries). Nonetheless, every game that does run is a neat plus for the N900 :)

-iDont

zehjotkah 2010-10-24 12:37

Re: Palm Pre gets SDL! native gaming
 
I've SSH'd into my N900 copied the files again, and now it's running! Great!
Some graphics are even in native 800x480 resolution!
And it's really fast!

Airtux 2010-10-24 13:07

Re: Palm Pre gets SDL! native gaming
 
Yep! niccccce! good work! very thanks javispedro!

Magik 2010-10-24 13:35

Re: Palm Pre gets SDL! native gaming
 
Wooo! Javi you're the boss :D

ps
Shouldn't this thread be in games subforum? :>

porselinaheart 2010-10-24 13:40

Re: Palm Pre gets SDL! native gaming
 
Quote:

Originally Posted by zehjotkah (Post 849318)
which game?

NFSU, though i can't exit the car selection/car purchase screen. not sure if its a bug or just that some file is missing or corrupted..

arcean 2010-10-24 14:23

Re: Palm Pre gets SDL! native gaming
 
Quote:

Originally Posted by porselinaheart (Post 849476)
NFSU, though i can't exit the car selection/car purchase screen. not sure if its a bug or just that some file is missing or corrupted..

It's possible to exit the car selection screen by tapping multiple times on return button. (ver. 20.0.29, preenv 0.1 from devel)

Reffyyyy 2010-10-24 14:30

Re: Palm Pre gets SDL! native gaming
 
I'll try and upload one shortly.

Reffyyyy 2010-10-24 15:08

Re: Palm Pre gets SDL! native gaming
 
Video recorded. I'm compressing the file and then going to upload to Youtube.

Pardon the quality, I used my laptop Webcam. Also, if I put the phone too close, it would begin lagging.

EDIT: It appears that my microphone decided to break. Pretty much, the sound works great anyway.

cedlmw 2010-10-24 15:13

Re: Palm Pre gets SDL! native gaming
 
any chance of having a tutorial on how to install palm applications? :)

Bundyo 2010-10-24 15:46

Re: Palm Pre gets SDL! native gaming
 
Hm, here's another: undefined symbol: glGenFramebuffersOES, probably more complicated by the looks of it.

Reffyyyy 2010-10-24 15:53

Re: Palm Pre gets SDL! native gaming
 
Here's the video:

http://www.youtube.com/watch?v=k-zIzA9UjqY

Pardon the lack of sound. Microphone decided not to work today.

oldnetdog 2010-10-24 16:03

Re: Palm Pre gets SDL! native gaming
 
I have successfully run EA's NFSUC, Sims 3 and GameLoft's letsgoft.

javispedro 2010-10-24 16:06

Re: Palm Pre gets SDL! native gaming
 
Quote:

Originally Posted by Bundyo (Post 849572)
Hm, here's another: undefined symbol: glGenFramebuffersOES, probably more complicated by the looks of it.

That one's already in the git.

Airtux 2010-10-24 16:26

Re: Palm Pre gets SDL! native gaming
 
I have tested Gangstar and assassin's creed not work...

oldnetdog 2010-10-24 16:32

Re: Palm Pre gets SDL! native gaming
 
Quote:

Originally Posted by Airtux (Post 849614)
I have tested Gangstar and assassin's creed not work...


yes, the same with me.

Code:

Nokia-N900:/home/user/com.gameloft.app.gangstar/Gangstar# ./Gangstar
SDLGL: called sdl_init with flags = 0x100230
PDL: Switch orientation to 3
SDLGL: Going for a 270 deg rotation
PDL: Init: Service name is com.javispedro.preenv.Gangstar
PDL: Screen dimming prevention ON
PDL: Music is playing
PDL: TODO: Set do_not_disturb flag to true
SDLGL: Requested GL major version 1
SDLGL: SDL_GLES initialized (res=0)
SDLGL: Application asks for unknown GL attribute 5, value 1
SDLGL: Requested GL minor version 1
SDLGL: Called SetVideoMode(320, 480, 0, 0x2)
SDLGL: Requested OpenGL video mode
SDLGL: Going for a 270 deg rotation
PDL: Application asked for lang, giving en_US
Segmentation fault


Bundyo 2010-10-24 16:35

Re: Palm Pre gets SDL! native gaming
 
Well, I'm with 0.1.1 from git and still get it...

cedlmw 2010-10-24 17:21

Re: Palm Pre gets SDL! native gaming
 
ah i finally got it :) heres a noob friendly tutorial:
firstly, youll need the applications folder which is found in your palm pre /user/ directory. if you do not own any palm, youll have to download the ipk legally and open it with 7z..

if you have the ipk file, open it and extract the applications folder and put it in the /home/user on your n900. this can easily be done by openssh.

now just follow the following steps:
1. sudo gainroot
2. preenv
3. cd /home/user/applications/'name of game folder'.
4. chmod +rwx 'name of the game' (for example, need for speed would be nfsuc)
5. To create a desktop icon, just type: desktopgen appinfo.json

enjoy :)
special thanks go to airtux, javispedro and all those involved in the project

dalonso 2010-10-24 18:03

Re: Palm Pre gets SDL! native gaming
 
I just tried Super KO boxing and it fails with an undefined symbol:

Nokia-N900:/home/user/com.glu.app.skob2/skob2# ./skob2.exe
SDLGL: called sdl_init with flags = 0x100231
PDL: Init: Service name is com.javispedro.preenv.skob2.exe
PDL: Screen dimming prevention ON
ACCEL: Opening accelerometer
SDLGL: Requested GL major version 1
SDLGL: SDL_GLES initialized (res=0)
SDLGL: Application asks for unknown GL attribute 5, value 1
SDLGL: Requested GL minor version 1
SDLGL: Requested depth buffer size 16
SDLGL: Application asks for unknown GL attribute 0, value 8
SDLGL: Application asks for unknown GL attribute 1, value 8
SDLGL: Application asks for unknown GL attribute 2, value 8
SDLGL: Application asks for unknown GL attribute 3, value 8
SDLGL: Called SetVideoMode(2, 2, 32, 0x2)
SDLGL: Requested OpenGL video mode
SDLGL: This orientation is not handled yet
SDLGL: Application asks for unknown GL attribute 5, value 1
SDLGL: Requested GL minor version 1
SDLGL: Requested depth buffer size 16
SDLGL: Application asks for unknown GL attribute 0, value 8
SDLGL: Application asks for unknown GL attribute 1, value 8
SDLGL: Application asks for unknown GL attribute 2, value 8
SDLGL: Application asks for unknown GL attribute 3, value 8
./skob2.exe: symbol lookup error: ./skob2.exe: undefined symbol: glBindFramebufferOES

Izmır 2010-10-24 18:17

Re: Palm Pre gets SDL! native gaming
 
Thank you very much, javispedro.You solve our game problem.

javispedro 2010-10-24 18:33

Re: Palm Pre gets SDL! native gaming
 
Quote:

Originally Posted by Bundyo (Post 849627)
Well, I'm with 0.1.1 from git and still get it...

I am quite sure I implemented it, so either you are using the old lib or I failed to commit the changed file (gles1.c).


Btw, there's no way I am buying every Pre game in existence (in fact, at this point I own just three and one of them is not native), so if your game crashes in mysterious ways you will have to debug &document it (strace is a good start).


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

vBulletin® Version 3.8.8