Notices


Reply
Thread Tools
Posts: 3,328 | Thanked: 4,476 times | Joined on May 2011 @ Poland
#1
Hi

NEW
Use preenv-hd: http://talk.maemo.org/showpost.php?p...postcount=2630 by santiago


OLD:
I found here talk.maemo.org/showthread.php?p=1094540 a script webos2hd.sh which swaps libsdlpre.so and libsdlpre-tab.so.
But:
1. You need to remember which is which (their names are swapped)
2. It ain't cool to run it all the time

SO

I used the concept and made a script which swaps the libraries, runs the app, and swaps 'em back right after. Handy, ain't it?

REQUIREMENTS:
1. preenv - you want to run preenv games, aren't you?
2. sudser - I'm using sudo in install script.

USAGE

1. DOWNLOAD
download
2. INSTALL
install script - To use the install script save it in the directory with mar-hdrun.sh. Note: if you haven't made MyDocs, you can't run it from there: you need to save it somewhere else.
to run it, type in terminal (assuming files are in /home/user/MyDocs)
Code:
cd /home/user/MyDocs
cp *mar-hdrun.sh ../
cd ..
chmod +x install-mar-hdrun.sh
./install-mar-hdrun.sh
Now you can run just mar-hdrun instead full path
3. PLAY
assuming your game is Angry Birds Rio HD and the executable is in /home/user/Games/AngryBirdsRioHD/angrybirdsriohd
so you should run
Code:
mar-hdrun "/home/user/Games/AngryBirdsRioHD/angrybirdsriohd"
But it still isn't that handy. You can create a shortcut!
So
navigate in terminal to the game dir and type:
Code:
sudo preenv
desktopgen appinfo.json
Then edit the created shortcut. The line
Code:
Exec="/opt/preenv/wrapper.sh" "com.rovio.angrybirdsriohd" "/home/user/Games/AngryBirdsRioHD/angrybirdsriohd"
to
Code:
Exec=mar-hdrun /home/user/Games/AngryBirdsRioHD/angrybirdsriohd
And you can normally run via the menu



on my N900 executable location was actually /home/user/Games/AngryBirdsRioHD/usr/palm/applications/com.rovio.angrybirdsriohd

Last edited by marmistrz; 2011-09-24 at 15:12. Reason: File relocated on my Dropbox
 

The Following 7 Users Say Thank You to marmistrz For This Useful Post:
Posts: 432 | Thanked: 544 times | Joined on Feb 2011
#2
good job...
i'l giv it a shot...
"can it make NFSUC respond better"
 
Posts: 3,328 | Thanked: 4,476 times | Joined on May 2011 @ Poland
#3
Originally Posted by immi.shk View Post
"can it make NFSUC respond better"
It's only for running Touchpad HD games without pain, nothing to do with the original pre games
 
Posts: 298 | Thanked: 197 times | Joined on Dec 2009 @ Norway
#4
Your installation script is a bit borked.
It requires revision, because it's a bit... Conky. It's a bit inconvenient.
I would gladly revise it for you?

Code:
if [ `whoami` == "root" ]
then
instdir="hdrun.tmp"
mkdir $instdir
cd $instdir
wget http://dl.dropbox.com/u/33608122/maemo/preenv-hacks/mar-hdrun.sh
if [ -e mar-hdrun.sh ]
then
echo "Download succeeded"
echo "Initiating install..."
mkdir -p /opt/mar-hdrun/
echo "Copying file to destination..."
cp mar-hdrun.sh /opt/mar-hdrun/mar-hdrun.sh
cd ..
rm -r $instdir 
chmod +x /opt/mar-hdrun/mar-hdrun.sh
ln -s /opt/mar-hdrun/mar-hdrun.sh /usr/bin/mar-hdrun
else
echo "Download was unsuccessful."
echo "Installation cannot continue."
fi
else
echo "Root privileges are required for the installation to be successful."
echo "Re-run this as root by using sudo or sudo gainroot."
fi
This script works.
I tested it, but then I am faced with another obstacle.
Is still not 100% automatic?

There is a simple improvement I suggest for the main script. Make it use an if-function instead of doing it straight forward.
That way, you can avoid errors if the *-tab.so file doesn't exist, and it's less likely that something will go wrong.
You could also make it automatically download the file if it doesn't exist, making it all a lot easier for the user.

Last edited by Nokia 5700; 2011-09-24 at 13:19.
 

The Following User Says Thank You to Nokia 5700 For This Useful Post:
santiago's Avatar
Posts: 518 | Thanked: 334 times | Joined on Mar 2010 @ italy
#5
 

The Following 3 Users Say Thank You to santiago For This Useful Post:
Posts: 915 | Thanked: 57 times | Joined on Jun 2011
#6
Originally Posted by santiago View Post
try preenv-HD it's much more easy.. check my signature
yes it is thanks a lot
__________________
PR 1.3
CSSU (TESTING)
KERNEL POWER 49
BACKUPMENU
 
Posts: 298 | Thanked: 197 times | Joined on Dec 2009 @ Norway
#7
I see that preenv-HD overwrites all the libraries. I don't like that.
Does the libsdlpre.so file in there support keys? No keys = no game for me.
If it does support keys, it's nice.
And... I don't think there is much difference between how easy they are in use.
This one substitutes the libsdlpre.so file temporarily while running, which essentially is the same as using different wrappers.
 
Posts: 3,328 | Thanked: 4,476 times | Joined on May 2011 @ Poland
#8
Originally Posted by santiago View Post
try preenv-HD it's much more easy.. check my signature
dude, it's great!
 
Posts: 3,328 | Thanked: 4,476 times | Joined on May 2011 @ Poland
#9
Originally Posted by Nokia 5700 View Post
Your installation script is a bit borked.
It requires revision, because it's a bit... Conky. It's a bit inconvenient.
I would gladly revise it for you?

Code:
if [ `whoami` == "root" ]
then
instdir="hdrun.tmp"
mkdir $instdir
cd $instdir
wget http://dl.dropbox.com/u/33608122/maemo/preenv-hacks/mar-hdrun.sh
if [ -e mar-hdrun.sh ]
then
echo "Download succeeded"
echo "Initiating install..."
mkdir -p /opt/mar-hdrun/
echo "Copying file to destination..."
cp mar-hdrun.sh /opt/mar-hdrun/mar-hdrun.sh
cd ..
rm -r $instdir 
chmod +x /opt/mar-hdrun/mar-hdrun.sh
ln -s /opt/mar-hdrun/mar-hdrun.sh /usr/bin/mar-hdrun
else
echo "Download was unsuccessful."
echo "Installation cannot continue."
fi
else
echo "Root privileges are required for the installation to be successful."
echo "Re-run this as root by using sudo or sudo gainroot."
fi
This script works.
I tested it, but then I am faced with another obstacle.
Is still not 100% automatic?

There is a simple improvement I suggest for the main script. Make it use an if-function instead of doing it straight forward.
That way, you can avoid errors if the *-tab.so file doesn't exist, and it's less likely that something will go wrong.
You could also make it automatically download the file if it doesn't exist, making it all a lot easier for the user.
OK, thanks for the script, I included it for the people to let 'em have an alternative ;DD
 
Posts: 298 | Thanked: 197 times | Joined on Dec 2009 @ Norway
#10
Is there any difference between the libs in preenv-HD and the regular one, apart from the HD library?
 
Reply


 
Forum Jump


All times are GMT. The time now is 14:48.