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)

SSLMM 2010-10-25 15:03

Re: Palm Pre gets SDL! native gaming
 
Quote:

Originally Posted by brunoscopel (Post 850438)
How i open and extract a IPK file?

Use 7-zip to extract the ipk file ;)

javispedro 2010-10-25 15:22

Re: Palm Pre gets SDL! native gaming
 
Thanks Bundyo!
GetScreenMetrics is definitely not trivial -- there's the question to whether tell the truth or not. For now I will be telling the truth.
PDL_isAppLicensedForDevice might be... legally problematic.

Quote:

Originally Posted by IzzehO (Post 850348)
Tetris didn't scale properly, but I'm happy with what is working certainly :D

If it's OpenGL ES 2 there's no current way to fix it, but on Git I improved scaling for ES 1 apps.

IzzehO 2010-10-25 16:10

Re: Palm Pre gets SDL! native gaming
 
Quote:

Originally Posted by javispedro (Post 850459)
Thanks Bundyo!
If it's OpenGL ES 2 there's no current way to fix it, but on Git I improved scaling for ES 1 apps.

It's an older 09 application so I doubt its GLES2. It's basically portrait style showing landscape (Ie. Left side of screen only).

I'll definitely try it again on next extras-devel release (Just spent an hour getting rid of build essentials and other garbage on N900 so I could update to pr1.3, so I won't be installing it again anytime soon to compile :P)

Also had mild success with Assassin's Creed until receiving:
./Assassins: symbol lookup error: ./Assassins:undefined symbol: glGenFramebufferOES

Ps. Are you after error reports or is there too many other things to fix at the moment?



And for anyone interested I'm running all the games off ext3 partitioned MicroSD card to save opt space. Haven't had any issues with it (other than having to mount it every time I reboot... is there a way to have Maemo automount ext3?)

zehjotkah 2010-10-25 16:22

Re: Palm Pre gets SDL! native gaming
 
Quote:

Originally Posted by porselinaheart (Post 850289)
@zehjotkah, hi bro mind sharing how u overcame the 'segmentation fault' error when using SSH to transfer the game files??

still needed?
sorry, had an important project today at work so I wasn't able to surf that much at the forums..
I just copied the files again.
no special work needed.
to copy them via SSH I installed OpenSSH-Server on my N900 and then I've configured Nautilus, the built in file manager at my Ubuntu 10.10 machine to SSH into my N900...
It will be mounted like it would be on USB.

porselinaheart 2010-10-25 17:12

Re: Palm Pre gets SDL! native gaming
 
Quote:

Originally Posted by zehjotkah (Post 850501)
still needed?
sorry, had an important project today at work so I wasn't able to surf that much at the forums..
I just copied the files again.
no special work needed.
to copy them via SSH I installed OpenSSH-Server on my N900 and then I've configured Nautilus, the built in file manager at my Ubuntu 10.10 machine to SSH into my N900...
It will be mounted like it would be on USB.


thanks mate, just re-transferring seemed to fix the issues my friends were having as well, :P

ivgalvez 2010-10-25 17:21

Re: Palm Pre gets SDL! native gaming
 
Tested The Settlers version 1.1.1 with preenv 0.1, got the following missing symbol:

PDL_GetUniqueID

Cheers

Nokia7Linux 2010-10-25 17:59

Re: Palm Pre gets SDL! native gaming
 
sorry,, but I the topic is so large to read through it

may you please link me to the post that includes the guide/tutorial

divan 2010-10-25 18:25

Re: Palm Pre gets SDL! native gaming
 
My quick instruction for installing NFSU.
Use this manual on your own risk!

Code:

# get root
root
# install preenv and OpenGLES1 (need extras-devel)
apt-get install libgles1 preenv
# create main game dir on eMMC card
mkdir -p /home/user/MyDocs/Games/nfs
# go to that dir and copy dowloaded .ipk file from desktop (or download directly here)
cd /home/user/MyDocs/Games/nfs
scp user@COMPUTER:/path/to/game/com.ea.app.nfsuc_20.0.28_all.ipk /home/user/MyDocs/Games/nfs

# create file for loopback mount
dd if=/dev/zero of=/home/user/MyDocs/Games/nfs/nfsu.ext2 count=120 bs=1024k
# create ext2 filesystem on it
mkfs.ext2 /home/user/MyDocs/Games/nfs/nfsu.ext2
# press 'y'
# make mountpoint
mkdir /mnt/nfsu
# save it to the fstab
echo -e "/home/user/MyDocs/Games/nfs/nfsu.ext2\t/mnt/nfsu\text2\tloop,auto\t0\t0" >> /etc/fstab
# finally, mount it
mount  /mnt/nfsu/
# create symlynk from /usr/palm (NFSU installs there)
ln -s /mnt/nfsu/ /usr/palm
# extrack .ipk file
dpkg -X /home/user/MyDocs/Games/nfs/com.ea.app.nfsuc_20.0.28_all.ipk /mnt/nfsu/
# make binary executable
chmod +x /mnt/nfsu/applications/com.ea.app.nfsuc/nfsuc
# create desktop launcher
desktopgen /mnt/nfsu/applications/com.ea.app.nfsuc/appinfo.json

Go to the applications and press on NFSU icon.
Enjoy!

javispedro 2010-10-25 18:37

Re: Palm Pre gets SDL! native gaming
 
Quote:

Originally Posted by IzzehO (Post 850489)
Ps. Are you after error reports or is there too many other things to fix at the moment?

I am, but quite a lot of them have been fixed in git...

Also, PR1.3 might break a few things... I planned to push 0.1.1 today but I think I will wait until tomorrow for PR1.3 to settle.

Removing a game's icon from the menu: You currently have to read the appinfo.json from that game; there will be a line that reads like:
Code:

"id": "com.gamemaker.gamename.stuff"
(where gamename, etc. is of course the real game's info)

You'll have to find a file named like that ("com.gamemaker.gamename.stuff") in each of the following directories:
/usr/share/applications/hildon/ (with .desktop as extension)
/usr/share/dbus-1/services/ (with .service as extension)
/usr/share/icons/hicolor/scalable/hildon/ (with .png as extension)
thus, total files you need to delete = 3

It is important that you do this if you plan on remove or upgrade a Pre game. The next version will come with a program that will undo whatever desktopgen does, but unfortunately, it might not be able to delete files created by the current version of desktopgen (as they're invalid).

In fact, if you think you will not be able to delete the files by yourself I suggest you refrain from using desktopgen as it is in the current version.

Next version will clearly mark preenv generated files as such and you will be able to uninstall all of them by just uninstalling preenv.

Sorry for the inconvenience!

thecubed 2010-10-25 19:40

Re: Palm Pre gets SDL! native gaming
 
Quick suggestion: if you use this solution, you'll need to issue "umount /mnt/nfsu" before you are able to use USB mass storage option.

Even after umounting the file, my N900 refused to mount via USB until I rebooted it, even though lsof | grep /mnt showed nothing.



Quote:

Originally Posted by divan (Post 850593)
My quick instruction for installing NFSU.
Use this manual on your own risk!

Code:

# get root
root
# install preenv and OpenGLES1 (need extras-devel)
apt-get install libgles1 preenv
# create main game dir on eMMC card
mkdir -p /home/user/MyDocs/Games/nfs
# go to that dir and copy dowloaded .ipk file from desktop (or download directly here)
cd /home/user/MyDocs/Games/nfs
scp user@COMPUTER:/path/to/game/com.ea.app.nfsuc_20.0.28_all.ipk /home/user/MyDocs/Games/nfs

# create file for loopback mount
dd if=/dev/zero of=/home/user/MyDocs/Games/nfs/nfsu.ext2 count=120 bs=1024k
# create ext2 filesystem on it
mkfs.ext2 /home/user/MyDocs/Games/nfs/nfsu.ext2
# press 'y'
# make mountpoint
mkdir /mnt/nfsu
# save it to the fstab
echo -e "/home/user/MyDocs/Games/nfs/nfsu.ext2\t/mnt/nfsu\text2\tloop,auto\t0\t0" >> /etc/fstab
# finally, mount it
mount  /mnt/nfsu/
# create symlynk from /usr/palm (NFSU installs there)
ln -s /mnt/nfsu/ /usr/palm
# extrack .ipk file
dpkg -X /home/user/MyDocs/Games/nfs/com.ea.app.nfsuc_20.0.28_all.ipk /mnt/nfsu/
# make binary executable
chmod +x /mnt/nfsu/applications/com.ea.app.nfsuc/nfsuc
# create desktop launcher
desktopgen /mnt/nfsu/applications/com.ea.app.nfsuc/appinfo.json

Go to the applications and press on NFSU icon.
Enjoy!



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

vBulletin® Version 3.8.8