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)

The Arsonist 2010-11-01 14:43

Re: Palm Pre gets SDL! native gaming
 
@realmic

This is why you've gotta check the previous post man. There's no reason to run Preenv as Root. The ONLY reason someone needs Root is simply to change the permissions(chmod) of appinfo.json so that it can be executed(+x). I probably should have read your earlier post a bit better to double-check that, but again this goes out to everyone DO NOT RUN Preenv as root(unless there's some specific case that others have verified that it is necessary).

RenaldoTT 2010-11-01 14:54

Re: Palm Pre gets SDL! native gaming
 
Just installed NFSUC&HeroOfSparta

The Arsonist 2010-11-01 15:31

Re: Palm Pre gets SDL! native gaming
 
Ok I just figured I'd give an update since there hasn't been a response to my original post. I've tried to install the Grooveshark app using Preenv and I'm a little hung up. It seems possible(until I potentially hit some issues with libs), but I just lack knowledge of the structure of WebOS apps.

I followed the same instructions that worked for installation of games. When I get to the
Code:

desktopgen appinfo.json
I get a message:
Code:

'type' attribute is mandatory (and should be 'pdk')
I've poked around in the App folder of the Grooveshark to see if any of it seemed usuable or if I could substitute something, but I've got nothing. There are stylesheets, source.json, and framework_config.json files to work with in the main program folder. Any ideas?

Bratag 2010-11-01 15:41

Re: Palm Pre gets SDL! native gaming
 
Quote:

Originally Posted by The Arsonist (Post 859776)
Ok I just figured I'd give an update since there hasn't been a response to my original post. I've tried to install the Grooveshark app using Preenv and I'm a little hung up. It seems possible(until I potentially hit some issues with libs), but I just lack knowledge of the structure of WebOS apps.

I followed the same instructions that worked for installation of games. When I get to the
Code:

desktopgen appinfo.json
I get a message:
Code:

'type' attribute is mandatory (and should be 'pdk')
I've poked around in the App folder of the Grooveshark to see if any of it seemed usuable or if I could substitute something, but I've got nothing. There are stylesheets, source.json, and framework_config.json files to work with in the main program folder. Any ideas?

This generally happens when trying to install a game that is a web based app rather than a stand alone. I have yet to figure out a way to do it.

The Arsonist 2010-11-01 15:52

Re: Palm Pre gets SDL! native gaming
 
Quote:

Originally Posted by Bratag (Post 859791)
This generally happens when trying to install a game that is a web based app rather than a stand alone. I have yet to figure out a way to do it.

Do you think it would be completely out of this realm to possible edit these values(which is what I imagine that 'type' is)? I understand we're already tip-toeing the line of legalities with all of this. Why can't these developers just port these over!?!

I'm kind of seeing a second life for both platforms if we could allow some kind of community WebOS/Maemo hybrid so they could have our useful and best apps and we can have theirs.

Also, maybe I'm going too quickly or asking too many questions, but has anyone successfully found a way to save the games state or copy the save file of the running game?

Bundyo 2010-11-01 17:33

Re: Palm Pre gets SDL! native gaming
 
Because the web apps require the Palm WRT in their OS. If you want these apps to work on N900 you will need to port the js bindings to the underlying Palm libs to work on the Nokia WRT and connect to Maemo libs. Good luck... :)

P.S. Its not impossible...

Bloody 2010-11-01 19:22

Re: Palm Pre gets SDL! native gaming
 
Guys, help me to run Blades of Fury.. it crashes on the start when loading the game.. black screen and nothing else and close the game

Bratag 2010-11-01 19:26

Re: Palm Pre gets SDL! native gaming
 
Quote:

Originally Posted by Bloody (Post 860057)
Guys, help me to run Blades of Fury.. it crashes on the start when loading the game.. black screen and nothing else and close the game

thats not really a lot to go on. What does it say when you run it from the command line.

Bloody 2010-11-01 19:27

Re: Palm Pre gets SDL! native gaming
 
And how can i make Driver work correctly, without graphics missing

Bloody 2010-11-01 19:29

Re: Palm Pre gets SDL! native gaming
 
Quote:

Originally Posted by Bratag (Post 860065)
thats not really a lot to go on. What does it say when you run it from the command line.

how i can i run it as you said? i never tried before.

games i got work: Asphalt5 NFSU and HeroofSparta

Bloody 2010-11-01 19:38

Re: Palm Pre gets SDL! native gaming
 
What command i need to you use to run it from the command line?

Aranel 2010-11-01 20:01

Re: Palm Pre gets SDL! native gaming
 
To Asphalt 5 players:

Does It crashes at the race when you choose Kawasaki or newer cars? It crashes on mine so I'm wondering if it's a common issue or just mine.

Bratag 2010-11-01 20:07

Re: Palm Pre gets SDL! native gaming
 
Quote:

Originally Posted by Bloody (Post 860084)
What command i need to you use to run it from the command line?

Read the thread - this has been answered several times.

maxximuscool 2010-11-01 20:40

Re: Palm Pre gets SDL! native gaming
 
Asphalt5 works perfectly in game play. But the problem is the cut scenes and movies. There isn't any video but only sound. is there a way to fix this?

Put the game into FAT32 partition on eMMC make it run smoother than in Opt partition.

CepiPerez 2010-11-01 20:48

Re: Palm Pre gets SDL! native gaming
 
Maybe converting the videos will work
But I'm too lazy to test it

maxximuscool 2010-11-01 20:57

Re: Palm Pre gets SDL! native gaming
 
Quote:

Originally Posted by CepiPerez (Post 860144)
Maybe converting the videos will work
But I'm too lazy to test it

I'm converting it but not working. It can play in Media Player but cannot play during game is loaded

iDont 2010-11-01 21:03

Re: Palm Pre gets SDL! native gaming
 
Quote:

Originally Posted by maxximuscool (Post 860139)
Asphalt5 works perfectly in game play. But the problem is the cut scenes and movies. There isn't any video but only sound. is there a way to fix this?

Put the game into FAT32 partition on eMMC make it run smoother than in Opt partition.

How is the FAT32 partition smoother than the ext3 partition?
Both are on the eMMC, so no difference there. If anything, ext3 is linux native. The benchmarks I found on Google showed better performance with ext3. Anyway, can't test it myself as I've removed the FAT32 partition. Maybe someone can time a file operation or similiar to test ($time cp ..)?

Bloody 2010-11-01 21:07

Re: Palm Pre gets SDL! native gaming
 
okay igot the problem like:
error while loading shared libraries: libSDL_net-1.2.so.0: cannot open shared object file: No such file or directory

Bloody 2010-11-01 21:08

Re: Palm Pre gets SDL! native gaming
 
do i need:
apt-get install libsdl-net 1.2?

iDont 2010-11-01 21:10

Re: Palm Pre gets SDL! native gaming
 
Quote:

Originally Posted by Bloody (Post 860158)
okay igot the problem like:
error while loading shared libraries: libSDL_net-1.2.so.0: cannot open shared object file: No such file or directory

http://talk.maemo.org/search.php?searchid=8931273
Second post found ;)

maxximuscool 2010-11-01 21:14

Re: Palm Pre gets SDL! native gaming
 
Quote:

Originally Posted by iDont (Post 860154)
How is the FAT32 partition smoother than the ext3 partition?
Both are on the eMMC, so no difference there. If anything, ext3 is linux native. The benchmarks I found on Google showed better performance with ext3. Anyway, can't test it myself as I've removed the FAT32 partition. Maybe someone can time a file operation or similiar to test ($time cp ..)?

I know ext3 has better performance but somewhat Asphalt5 stuttering on mine sometimes it's like a pulse frame drop.

But after put it into FAT32 it doesn't have any frame drops. I wonder why too.

Bloody 2010-11-01 21:17

Re: Palm Pre gets SDL! native gaming
 
Thanks alot

Bloody 2010-11-01 21:18

Re: Palm Pre gets SDL! native gaming
 
is there any way to get Driver running correctly?

maxximuscool 2010-11-01 21:30

Re: Palm Pre gets SDL! native gaming
 
Anyway Asphalt5 cannot play it's own movie.

RenaldoTT 2010-11-01 22:43

Re: Palm Pre gets SDL! native gaming
 
Quote:

Originally Posted by Bloody (Post 860159)
do i need:
apt-get install libsdl-net 1.2?

im not sure if ur spelling of lib is correct i think it's libsdl-net1.2 i had the same issues and it's solved now but blades of fury wasn't all that good for me, u need multitouch for these fast paced fighting games, racing games work best followed by adventure, i only use 3 games nfsuc, HoS, A5

RenaldoTT 2010-11-01 22:46

Re: Palm Pre gets SDL! native gaming
 
Quote:

Originally Posted by Bloody (Post 860069)
how i can i run it as you said? i never tried before.

games i got work: Asphalt5 NFSU and HeroofSparta

u need to install
apt-get install libsdl-net1.2

if u get an error then check the game compatability thread bcuz i may have gave u the wrong spelling NOVA needs the same thing to run as well

Kenny1001 2010-11-01 23:20

Re: Palm Pre gets SDL! native gaming
 
I cant install nfsu
Tried it with the autoinstaller, and the ipk file, and he blocks on allready the first step.
Did I not read a step?

CepiPerez 2010-11-02 00:05

Re: Palm Pre gets SDL! native gaming
 
Quote:

Originally Posted by maxximuscool (Post 860151)
I'm converting it but not working. It can play in Media Player but cannot play during game is loaded

You're right, didn't notice that videos works in media player.
I think it's very probable libsdlpre was compiled without all codecs, or maybe libcinema.

jonchew 2010-11-02 03:40

Re: Palm Pre gets SDL! native gaming
 
cant install preenv successfully. i get this ff errors
Code:

home/user/MyDocs/Preenv # apt-get install preenv
Reading package lists... Done
Building dependency tree     
Reading state information... Done
preenv is already the newest version.
You might want to run `apt-get -f install' to correct these:
The following packages have unmet dependencies:
  preenv: Depends: libgles1-sgx-img but it is not going to be installed
  python-pygame: Depends: libsdl-ttf2.0 (>= 2.0.9) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

help me guys!

kumarsiyer 2010-11-02 09:52

Re: Palm Pre gets SDL! native gaming
 
Quote:

Originally Posted by jonchew (Post 860435)
cant install preenv successfully. i get this ff errors
Code:

home/user/MyDocs/Preenv # apt-get install preenv
Reading package lists... Done
Building dependency tree     
Reading state information... Done
preenv is already the newest version.
You might want to run `apt-get -f install' to correct these:
The following packages have unmet dependencies:
  preenv: Depends: libgles1-sgx-img but it is not going to be installed
  python-pygame: Depends: libsdl-ttf2.0 (>= 2.0.9) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

help me guys!

Hi you should try this in terminal

apt-get -f install

This will correct all the issues wrt to dependency issues. enjoy.

for more info visist: www.techoinfo.com

kumarsiyer 2010-11-02 09:53

Re: Palm Pre gets SDL! native gaming
 
Quote:

Originally Posted by Kenny1001 (Post 860281)
I cant install nfsu
Tried it with the autoinstaller, and the ipk file, and he blocks on allready the first step.
Did I not read a step?

hey you can find the instalation guide on www.techoinfo.com

impeham 2010-11-02 11:50

Re: Palm Pre gets SDL! native gaming
 
i am trying to play monopoly but i get an error when i disable the shake to roll feature and press the back button - when i run from the console i get this:

SDLGL: Requested GL minor version 0 (ignored)
SDLGL: Requested GL major version 1
SDLGL: Called SetVideoMode(320, 480, 0, 0x2)
SDLGL: Requested OpenGL video mode
SDLGL: SDL_GLES initialized (res=0)
SDLGL: Asked if video mode 800x480x16 (0x90000000) is ok
PDL: Init: Service name is com.ea.app.monopoly
PDL: Screen dimming prevention ON
PDL: Application handles pause events
PDL: Switch orientation to 3
ACCEL: Opening accelerometer
PDL: Application asked for lang, giving en_GB
Segmentation fault

anyone knows why?

all the files in the monopolyclassic folder are symlinks to a folder in mydocs, except for the executable one (all the games are working this way).


Thanks.

jaimex2 2010-11-02 12:02

Re: Palm Pre gets SDL! native gaming
 
Quote:

Originally Posted by maxximuscool (Post 860181)
Anyway Asphalt5 cannot play it's own movie.

I can get Asphalt to do everything except play the in game movies.I've seen demo videos of them working though, I'm thinking its a codec issue?

I get black screens and can hear sound but i cant see anything during videos.

travla 2010-11-02 12:10

Re: Palm Pre gets SDL! native gaming
 
Quote:

Originally Posted by impeham (Post 860829)
i am trying to play monopoly but i get an error when i disable the shake to roll feature and press the back button - when i run from the console i get this:

SDLGL: Requested GL minor version 0 (ignored)
SDLGL: Requested GL major version 1
SDLGL: Called SetVideoMode(320, 480, 0, 0x2)
SDLGL: Requested OpenGL video mode
SDLGL: SDL_GLES initialized (res=0)
SDLGL: Asked if video mode 800x480x16 (0x90000000) is ok
PDL: Init: Service name is com.ea.app.monopoly
PDL: Screen dimming prevention ON
PDL: Application handles pause events
PDL: Switch orientation to 3
ACCEL: Opening accelerometer
PDL: Application asked for lang, giving en_GB
Segmentation fault

anyone knows why?

all the files in the monopolyclassic folder are symlinks to a folder in mydocs, except for the executable one (all the games are working this way).


Thanks.

Hi there,
I was struggling with the very same problem for the past couple of nights, and just resolved it. The problem was the the save folder and it's contents are not writeable, and when you change an option, the app needs to make a change to some of the files and can't. So the solution is:

chmod -R 777 monopolyclassic/save

This will recursively give write access to everyone (i.e. user), and all works well. I've updated the Wiki (http://wiki.maemo.org/Preenv/FAQ#How...ith_an_icon.3F).

Now I'm trying to move it to MyDocs to save some space, problem is you can't change ownership in MyDocs (I think because it is NTFS fs). But I moved NFSUC in to MyDocs and game saves are working fine, so I'm hoping Monopoly will be fine too.

Cheers,

travla

EDIT: I just created symlinks to all directories under monopolyclassic, and it is working a treat - no crash on changing settings and game saves working. This saved 45mb of space, had to leave all files under monopolyclassic in /home/user/. I may have been able to create symlinks to each one of those (I saw someone had written a simple loop for this) but couldn't be bothered, only 15 mb...

Airtux 2010-11-02 12:52

Re: Palm Pre gets SDL! native gaming
 
it's possible to play Gangstar on N900 one day?

aligatro 2010-11-02 12:58

Re: Palm Pre gets SDL! native gaming
 
Quote:

Originally Posted by jaimex2 (Post 860835)
I can get Asphalt to do everything except play the in game movies.I've seen demo videos of them working though, I'm thinking its a codec issue?

I get black screens and can hear sound but i cant see anything during videos.

It only shows on tv-out screen for some reason.

Bratag 2010-11-02 13:05

Re: Palm Pre gets SDL! native gaming
 
Quote:

Originally Posted by travla (Post 860846)
Hi there,
I was struggling with the very same problem for the past couple of nights, and just resolved it. The problem was the the save folder and it's contents are not writeable, and when you change an option, the app needs to make a change to some of the files and can't. So the solution is:

chmod -R 777 monopolyclassic/save

This will recursively give write access to everyone (i.e. user), and all works well. I've updated the Wiki (http://wiki.maemo.org/Preenv/FAQ#How...ith_an_icon.3F).

Now I'm trying to move it to MyDocs to save some space, problem is you can't change ownership in MyDocs (I think because it is NTFS fs). But I moved NFSUC in to MyDocs and game saves are working fine, so I'm hoping Monopoly will be fine too.

Cheers,

travla

EDIT: I just created symlinks to all directories under monopolyclassic, and it is working a treat - no crash on changing settings and game saves working. This saved 45mb of space, had to leave all files under monopolyclassic in /home/user/. I may have been able to create symlinks to each one of those (I saw someone had written a simple loop for this) but couldn't be bothered, only 15 mb...

Once again. This is wrong. Yes it will work , but no its not correct. It is much better to do a chown -R user:users on the game folder. This changes ownership of the folder to be owned by user who runs the app rather than just giving everyone write access to the folder.

aligatro 2010-11-02 14:05

Re: Palm Pre gets SDL! native gaming
 
Quote:

Originally Posted by Bratag (Post 860903)
Once again. This is wrong. Yes it will work , but no its not correct. It is much better to do a chown -R user:users on the game folder. This changes ownership of the folder to be owned by user who runs the app rather than just giving everyone write access to the folder.

I don't think it matters that much on the mobile system. There is only one user. But on overall, you are right.

travla 2010-11-02 14:48

Re: Palm Pre gets SDL! native gaming
 
Quote:

Originally Posted by Bratag (Post 860903)
Once again. This is wrong. Yes it will work , but no its not correct. It is much better to do a chown -R user:users on the game folder. This changes ownership of the folder to be owned by user who runs the app rather than just giving everyone write access to the folder.

Thanks for the tip Bratag, learning as I go. Do you recommend that I chown the top level game folder recursively (that has multiple games), or just the folders that a particular game needs to write to?

Bratag 2010-11-02 15:09

Re: Palm Pre gets SDL! native gaming
 
Quote:

Originally Posted by travla (Post 861012)
Thanks for the tip Bratag, learning as I go. Do you recommend that I chown the top level game folder recursively (that has multiple games), or just the folders that a particular game needs to write to?

That would work - I generally do each game folder as I install it but recursive from the applications (or wherever you have your palm games installed - mine is /home/user/applications) would work.


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

vBulletin® Version 3.8.8