maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Games (https://talk.maemo.org/forumdisplay.php?f=12)
-   -   Preenv webOS games compatibility list (https://talk.maemo.org/showthread.php?t=64392)

aligoodidea 2010-12-16 08:50

Re: Preenv webOS games compatibility list
 
Quote:

Originally Posted by ivgalvez (Post 897907)
I don't want to start a discussion but your messages seem a bit rude to me.

I were not rude, it is just for development, we are discussing whether the alpha channel is needed or not.
Quote:

Originally Posted by ivgalvez (Post 897907)
Javispedro is doing it for free in his spare time.

Me too.I am also trying to help him in my spare time.

ivgalvez 2010-12-16 09:19

Re: Preenv webOS games compatibility list
 
Excuse me so, I might have misunderstood your words.

Andy1210 2010-12-16 14:02

Re: Preenv webOS games compatibility list
 
Quote:

Originally Posted by aligoodidea (Post 897881)
How did you managed to run it? because I am facing the application crash after the first message.

i started remotely with ssh as 'user'.
but if you start with icon from menu, that works too!

if i started from xterm, crashed after the first message too... :D

javispedro 2010-12-16 14:37

Re: Preenv webOS games compatibility list
 
Quote:

Originally Posted by aligoodidea (Post 897879)
Well, I don't have the sdk so somebody else should do it.

But as it stands it resembles a text book example of a GL application more than anything.

Quote:

Originally Posted by aligoodidea (Post 897879)
Then we should poll a voting for this! the subject is:
How many times do you see the message "ignoring colorbuffer size" in the corrupted/black graphics game (in a row)
a)3
b)4

So what. You don't even know if it's just setting 0,0,0,0 which wouldn't work on the N900 but would on a Pre.

Quote:

Originally Posted by aligoodidea (Post 897879)
Try it.As only one game actually uses it, it won't cause much damage to the others,but don't skip it.

There's a reason I didn't implement it: it will cost me time, and I'm yet to see a valid reasoning for it. It will not fix crashes.

Quote:

Originally Posted by aligoodidea (Post 897879)
And opengles 1.0 limited(minor)

No, 1.1 only.

aligoodidea 2010-12-16 17:24

Re: Preenv webOS games compatibility list
 
Quote:

Originally Posted by javispedro (Post 898089)
But as it stands it resembles a text book example of a GL application more than anything.

I was just curious what would happen if we force GL initialization instead of letting the game to do it.Remember,I only had written the codes like this for easier understanding for the users that are new to programming(not for you,or else I would just uploaded it to your email instead of publishing the codes here)
Quote:

Originally Posted by javispedro (Post 898089)
So what. You don't even know if it's just setting 0,0,0,0 which wouldn't work on the N900 but would on a Pre.

I don't know what you mean.First time you told me rgb565 is way better than rgba5551,Second time you tell me that rgba5551 is impossible on N900?(I long as I know N900 is alpha channel native)
Quote:

Originally Posted by javispedro (Post 898089)
There's a reason I didn't implement it: it will cost me time, and I'm yet to see a valid reasoning for it. It will not fix crashes.
.

Then copy and paste my code.It may save your time somehow.
Quote:

Originally Posted by javispedro (Post 898089)
No, 1.1 only!

Yes. In N900,there is no 1.0,so you have done it correctly(Initializing the whole opengl es version upon the major request and ignoring the minor version).
Quote:

Originally Posted by javispedro (Post 898089)
Code:

int SDL_GL_SetAttribute(SDL_GLattr attr, int value)
{
        gles_init();
        switch (attr) {
                case SDL_GL_CONTEXT_MAJOR_VERSION:
                        TRACE("Requested GL major version %d", value);
                        switch (value) {
                                case 1:
                                        desired_version = SDL_GLES_VERSION_1_1;
                                        return 0;
                                case 2:
                                        desired_version = SDL_GLES_VERSION_2_0;
                                        return 0;
                                default:
                                        SDL_SetError("Invalid GLES major version: %d", value);
                                        return -1;
                        }
                        break;
                case SDL_GL_CONTEXT_MINOR_VERSION:
                        TRACE("Requested GL minor version %d (ignored)", value);
                        return 0;
                case SDL_GL_RED_SIZE:
                case SDL_GL_GREEN_SIZE:
                case SDL_GL_BLUE_SIZE:
                case SDL_GL_ALPHA_SIZE:
                        TRACE("Ignoring color buffer size");
                        /* It does not work on the N900 either way. */
                        /* TODO: But we need support for 24bpp surfaces. */
                        return 0;
                case SDL_GL_DOUBLEBUFFER:
                        TRACE("Ignoring doublebuffer preference");
                        /* I wouldn't know how to handle it either way. */
                        return 0;
                case SDL_GL_DEPTH_SIZE:
                        TRACE("Requested depth buffer size %d", value);
                        SDL_GLES_SetAttribute(SDL_GLES_DEPTH_SIZE, value);
                        return 0;
                default:
                        WARN("Application asks for unknown GL attribute %u, value %d", attr, value);
                        return 0;
        }
}


First I thought that N900 supports double buffering in the X11 package:http://maemo.org/packages/package_in...emo20081209.0/

Second: I don't think there are any games with 24bpp, 99% of the games are 8bit,16bit and 16bit alpha(If you think you are in a bad need of 24bpp you should do the trick I have mentioned before,If a device does not support a surface,then the conversion is the only way). also I found this quotation from the OpenGLES developer site:
Quote:

The OpenGL attributes you can set generally involve the size of OpenGL’s frame, depth, stencil, and accumulation buffers. One attribute virtually every game needs is double buffering. When you use double buffering, drawing is done in an offscreen buffer and the image is moved from the offscreen buffer to the screen. Use the following call to use double buffering in OpenGL:

SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1);
On Mac OS X you don’t need to set the size of the frame buffer’s red, green, blue, and alpha components. If you create a draw context with 32 bit color, Mac OS X uses 8 bits for each of the four components. On other operating systems, you may need to set the size of the frame buffer’s components. The following code sets 8 bits of red, green, blue, and alpha:
... (continued):In Maemo 5, The hildon-desktop process acts as a compositing window manager for all applications. All screen painting, including painting of X windows, is done through the Clutter canvas library and OpenGL ES v2.0 API. Compositing means that hildon-desktop tells the X server (through the X Composite extension) to draw all windows to an off-screen buffer, instead of drawing them directly to the framebuffer. This allows hildon-desktop to modify window contents before drawing them onto the screen.

In Fremantle, compositing is used to implement window transitions and blurring of the screen. hildon-desktop handles all mapped windows as Clutter actors, which are objects usually containing an OpenGL texture. As the window manager hildon-desktop will reparent application windows to decorate them with the application title bar and close button. Windows on the screen will normally be oriented in landscape, but the window manager will have a limited support for portrait mode, using the Xrandr extension.

Task launcher and Task switcher (aka. Dashboard, Task navigator) is implemented by the hildon-desktop process. Task launcher is a menu the user can access to start new applications or bring running applications on top. Task switcher is a view to switch between running applications, some of which might be ’background killed’, which means that they appear running to the user but really have saved their UI state and are started by hildon-desktop on demand. Task launcher and switcher UI transitions could be challenging to implement with traditional toolkits, but hildon-desktop can use Clutter and hildon-desktop’s internal data about application windows to give a good performance.


I know you may know,this.It was just for completing the quotation.(Not for teaching.)
Oh,no. XSP scaling has been droped since the PR1.3 released use the hildon animation actor instead(It assumes that the original size of main is 320×240, and that you want to scale the window to 800×424.
)It will win FPS too.
:
Code:

actor = HILDON_ANIMATION_ACTOR (hildon_animation_actor_new());
gtk_container_add (GTK_CONTAINER (actor), main);
gtk_window_resize (GTK_WINDOW (actor), 320, 240);
hildon_animation_actor_set_position (actor, 0, 56);
hildon_animation_actor_set_parent (actor, window);
hildon_animation_actor_set_scale (actor, 2.5, 1.77);
gtk_widget_show_all (GTK_WIDGET (actor));

Anyway, I am going to hang back until I actually have the SDK(Because I need your application source to code and test it from time to time to get understanding of the real problems),thanks for your time,Javier S.Pedro.

vir3us 2010-12-17 12:19

Re: Preenv webOS games compatibility list
 
Quote:

Originally Posted by aligoodidea (Post 896614)
do the trick mentioned on Preenv FAQ but just write /home/opt/ (or /home/opt/preenv/) instead of /home/user/

When i type in the 9. bit i get /bin/sh: -s: not found

Can you post the commands so i can get asphalt5 to save please.

mido.fayad 2010-12-17 12:23

Re: Preenv webOS games compatibility list
 
Quote:

Originally Posted by vir3us (Post 898674)
When i type in the 9. bit i get /bin/sh: -s: not found

Can you post the commands so i can get asphalt5 to save please.

what's the directory of ur game ???????

vir3us 2010-12-17 12:39

Re: Preenv webOS games compatibility list
 
Im not sure, i installed the .deb version with the 5gb emmc.

luiscesjr 2010-12-17 12:46

Re: Preenv webOS games compatibility list
 
Quote:

Originally Posted by vir3us (Post 898692)
Im not sure, i installed the .deb version with the 5gb emmc.

Code:

chown -R user:users /opt/preenv/usr/palm/applications/com.gameloft.app.asphalt5/Asphalt5
See if it works.

vir3us 2010-12-17 12:50

Re: Preenv webOS games compatibility list
 
Quote:

Originally Posted by luiscesjr (Post 898696)
Code:

chown -R user:users /opt/preenv/usr/palm/applications/com.gameloft.app.asphalt5/Asphalt5
See if it works.

Do sudo gainroot and just that? ill try it now. Thanks

Says no such file or directory :(

luiscesjr 2010-12-17 12:57

Re: Preenv webOS games compatibility list
 
Quote:

Originally Posted by vir3us (Post 898701)
Do sudo gainroot and just that? ill try it now. Thanks

Says no such file or directory :(

Code:

Sudo gainroot

vir3us 2010-12-17 13:04

Re: Preenv webOS games compatibility list
 
Yh put that 1st :s

luiscesjr 2010-12-17 13:08

Re: Preenv webOS games compatibility list
 
Oh well, you need to know where you installed it then.
Are you sure it's a deb you installed? Should be this path I gave you.

Edit - Try it without the /Asphalt5 at the end then.

mido.fayad 2010-12-17 13:12

Re: Preenv webOS games compatibility list
 
if u installed debian it should save without any additions

but as there is no save in ur game u can try this "

root

cd /home/opt/preenv/usr/palm/applications/com.gameloft.app.asphalt5/Asphalt5

chmod 777 data.sav

vir3us 2010-12-17 13:16

Re: Preenv webOS games compatibility list
 
I looked in filebox and found it in

/opt/preenv/usr/palm/applications/com.gameloft.app.asphalt5/Asphalt5

Sorry not sure if i put a capital A, will try again. Cheers

vir3us 2010-12-17 13:21

Re: Preenv webOS games compatibility list
 
Thankyou guys :) its saves now XD

agdroubi 2010-12-17 14:58

Re: Preenv webOS games compatibility list
 
i installed angry birds by following instructions but now angry birds is launching in a small screen only shows the welcome screen and then closes, what's happening?

agdroubi 2010-12-17 15:15

Re: Preenv webOS games compatibility list
 
Quote:

Originally Posted by agdroubi (Post 898775)
i installed angry birds by following instructions but now angry birds is launching in a small screen only shows the welcome screen and then closes, what's happening?

can somebody help me?

tetris11_ 2010-12-17 15:23

Re: Preenv webOS games compatibility list
 
Does anybody know if there is any actual difference in quality between Asphalt5 on PreenV, and Asphalt5 on Nitdroid?

tele 2010-12-17 15:34

Re: Preenv webOS games compatibility list
 
Quote:

Originally Posted by tetris11_ (Post 898792)
Does anybody know if there is any actual difference in quality between Asphalt5 on PreenV, and Asphalt5 on Nitdroid?

on Nitdroid the resolution is much better although barely noticible!
when racing the car windscreen is transparent in nitdroid so you can see through it but it preenv you cant
hardly an issue...

AgogData 2010-12-17 20:32

Re: Preenv webOS games compatibility list
 
2 Attachment(s)
javipedro : isn't there a fix for resolution glitches like this ?
btw there is the .ini file

travla 2010-12-17 21:25

Re: Preenv webOS games compatibility list
 
Quote:

Originally Posted by AgogData (Post 898980)
javipedro : isn't there a fix for resolution glitches like this ?
btw there is the .ini file

Have you got ShrekKarting.ini in the PowerVR dirctory per the wiki? Also, ammyt mentioned earlier that you may need to have 2 empty lines under ForceExternalZBuffer=0 (Driver needed 1 empty line for me before it worked).

If I get a chance I will try ShrekKarting tonight, just not enough time lately...

AgogData 2010-12-17 21:43

Re: Preenv webOS games compatibility list
 
Quote:

Originally Posted by travla (Post 899012)
Have you got ShrekKarting.ini in the PowerVR dirctory per the wiki? Also, ammyt mentioned earlier that you may need to have 2 empty lines under ForceExternalZBuffer=0 (Driver needed 1 empty line for me before it worked).

If I get a chance I will try ShrekKarting tonight, just not enough time lately...

yes i have, i've tried it all before the update but when the problem persisted i removed shrek, now i thought that the update may solve it but it didn't

OperationNT 2010-12-17 23:49

Re: Preenv webOS games compatibility list
 
I try Angry Birds 1.4.2 and Angry Birds Seasons 1.1.1 on Preenv 0.1.3 : there is a bad scaling issue (some parts of those games are crushed in the game-up axis) but those games works and are "playable" (very hard to be precise in shots).

Even the "network" functionality to unlock Chrismas levels is perfectly working.

travla 2010-12-18 04:23

Re: Preenv webOS games compatibility list
 
Can someone please tell me how to edit the table on this wiki page:

http://wiki.maemo.org/Preenv/Game_Compatibility

I have been able to edit all other pages on our wiki, just not this page with the table (I can't see an edit link anywhere). And yes, I am logged in when trying to edit.

Edit: Worked it out, edit button to the right...can be hard to see on an N900... :o

aligoodidea 2010-12-18 10:15

Re: Preenv webOS games compatibility list
 
You might find my edited post useful javispedro:
http://talk.maemo.org/showpost.php?p...&postcount=889

Leon4 2010-12-18 10:23

Re: Preenv webOS games compatibility list
 
Hey, guys I managed to install angry birds seasons v 1.1.1 but when I tap on the icon it crashes...what to do? btw I'm on preenv 0.1.1 should I install the 0.1.3 if so, how? thax :)

OperationNT 2010-12-18 13:29

Re: Preenv webOS games compatibility list
 
I tried before with Preenv 0.1.1 and I remember I could not get it work. With Preenv 0.1.3, Angry Birds (and the Seasons version) works.

Another thing, before I create an icon, I always check if the game can run through a terminal execution (often in root). But with Angry BIrds, it's a bad idea : it creates "settings.lua" and "highscores.lua" files with unappropriate permissions for non-root user and it makes that the game can't start anymore for a non-root user (it is always possible to fix this issue by a "chmod" command).

But, as I say in my previous post, you will be disappointed by an issue...

ammyt 2010-12-18 13:43

Re: Preenv webOS games compatibility list
 
Quote:

Originally Posted by AgogData (Post 898980)
javipedro : isn't there a fix for resolution glitches like this ?
btw there is the .ini file

Hey, look, create a ShrekKarting.ini using LEAFPAD and place 2 empty lines under ForceExternaZBuffer=0. Shrek Karting just plays beautiful in my device (well except for a few missing lighting textures)

Leon4 2010-12-18 14:55

Re: Preenv webOS games compatibility list
 
Quote:

Originally Posted by OperationNT (Post 899373)
I tried before with Preenv 0.1.1 and I remember I could not get it work. With Preenv 0.1.3, Angry Birds (and the Seasons version) works.

Another thing, before I create an icon, I always check if the game can run through a terminal execution (often in root). But with Angry BIrds, it's a bad idea : it creates "settings.lua" and "highscores.lua" files with unappropriate permissions for non-root user and it makes that the game can't start anymore for a non-root user (it is always possible to fix this issue by a "chmod" command).

But, as I say in my previous post, you will be disappointed by an issue...

I updated the preenv to 0.1.3 but I have the same problem again it crashes when I tap on the icon :S

AgogData 2010-12-18 14:58

Re: Preenv webOS games compatibility list
 
Quote:

Originally Posted by ammyt (Post 899381)
Hey, look, create a ShrekKarting.ini using LEAFPAD and place 2 empty lines under ForceExternaZBuffer=0. Shrek Karting just plays beautiful in my device (well except for a few missing lighting textures)

thank you ammyt, thats what i did exactly but sadly with no change what so ever

ammyt 2010-12-18 15:00

Re: Preenv webOS games compatibility list
 
make sure th .ini has the same name as shrek's esecutable file (other than that I've nothing to say....)

javispedro 2010-12-18 19:53

Re: Preenv webOS games compatibility list
 
Quote:

Originally Posted by OperationNT (Post 899373)
Another thing, before I create an icon, I always check if the game can run through a terminal execution (often in root). But with Angry BIrds, it's a bad idea : it creates "settings.lua" and "highscores.lua" files with unappropriate permissions for non-root user and it makes that the game can't start anymore for a non-root user (it is always possible to fix this issue by a "chmod" command).

You know I usually suggest not running the games as root...
(Not only because of what you experienced, but the PDL library usually assumes it is run as user, and the functions this library calls assume you're running as user, etc. etc. I don't really would like to debug a system that's been exposed to that for weeks (already seen weird things like /home/user being owned by root or the like).

OperationNT 2010-12-18 20:42

Re: Preenv webOS games compatibility list
 
@javispedro : I am sorry, I didn't know the real issues before, thanks ;). I did it only because I was too lazy to open another terminal after my "chmod +rwx" on the executable file :o.

@Leon4 : Did you try to run Angry Birds from a terminal to see what is the error message ?

Leon4 2010-12-18 21:10

Re: Preenv webOS games compatibility list
 
2 Attachment(s)
Quote:

Originally Posted by OperationNT (Post 899643)
@javispedro : I am sorry, I didn't know the real issues before, thanks ;). I did it only because I was too lazy to open another terminal after my "chmod +rwx" on the executable file :o.

@Leon4 : Did you try to run Angry Birds from a terminal to see what is the error message ?

yes i tryed that here are the screenshots

OperationNT 2010-12-18 21:27

Re: Preenv webOS games compatibility list
 
Are you sure, in your "/home/use/com.rovio.angrybirdsseasons/data/scripts" directory, you have the following files ?
gamelogic.lua
loadlist.lua
particles.lua
starLimits.lua

If those files exist on your phone, are you sure they have appropriate permissions ?

Leon4 2010-12-18 21:56

Re: Preenv webOS games compatibility list
 
Quote:

Originally Posted by OperationNT (Post 899660)
Are you sure, in your "/home/use/com.rovio.angrybirdsseasons/data/scripts" directory, you have the following files ?
gamelogic.lua
loadlist.lua
particles.lua
starLimits.lua

If those files exist on your phone, are you sure they have appropriate permissions ?

yes i have this files in scripts directory...what to do now :)

OperationNT 2010-12-18 22:13

Re: Preenv webOS games compatibility list
 
Very strange...

Maybe you can try this :
chmod 777 /home/use/com.rovio.angrybirdsseasons/data/scripts/*

Can you also check your files size ?
(for example, "du /home/use/com.rovio.angrybirdsseasons/data/scripts/gamelogic.lua" should return you 416 KB)

Leon4 2010-12-18 22:23

Re: Preenv webOS games compatibility list
 
Quote:

Originally Posted by OperationNT (Post 899669)
Very strange...

Maybe you can try this :
chmod 777 /home/use/com.rovio.angrybirdsseasons/data/scripts/*

Can you also check your files size ?
(for example, "du /home/use/com.rovio.angrybirdsseasons/data/scripts/gamelogic.lua" should return you 416 KB)

a tryed thah it says: no such file or directory...

i checked the gamelogic.lua it has 411KB not 416KB what does that mean?

aligoodidea 2010-12-19 06:11

Re: Preenv webOS games compatibility list
 
Quote:

Originally Posted by Leon4 (Post 899678)
a tryed thah it says: no such file or directory...

i checked the gamelogic.lua it has 411KB not 416KB what does that mean?

Maybe your game is corrupted.Have you tried creating a folder home/user/usr/palm/applications/ and copying angry birds inside it?
javispedro,please reply if you have seen this:
http://talk.maemo.org/showpost.php?p...&postcount=889


All times are GMT. The time now is 16:21.

vBulletin® Version 3.8.8