LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Games (http://www.linuxquestions.org/questions/linux-games-33/)
-   -   Trying to make shortcut to game... (http://www.linuxquestions.org/questions/linux-games-33/trying-to-make-shortcut-to-game-857660/)

floopy1962 01-20-2011 06:56 PM

Trying to make shortcut to game...
 
So my game is Rune: Halls of Valhalla based on unreal engine and its stored in /home/user/.loki/rune/ and i have to start it from /home/user/.loki/rune/System/rune-bin
but nothing happens with double click only if i open terminal navigate to the folder and then type ./rune-bin
suo game runs but do i have to make this every time.
here's my problem i make shortcut in the menu with target /home/user/.loki/rune/System/./rune-bin but it doesn't seems to work, then i tryed to launch from terminal and here what i get:
"user@user-desktop:~$/home/user/.loki/rune/System/./rune-bin
/home/user/.loki/rune/System/./rune-bin: error while loading shared libraries: Engine.so: cannot open shared object file: No such file or directory"
the strange is that if i navigate terminal to the System folder and then type ./rune-bin the game starts
so what i missing?
i tryed also to make .desktop file and that doesn't work...
I just can't figure where is the problem :(
Many thanks :) and sorry for my english :D its my second language :P

John VV 01-20-2011 10:50 PM

Quote:

i tryed also to make .desktop file and that doesn't work...
a desktop file should work
I do that all the time for programs with shortcuts that sit on the desktop or in Gnome menu
/Applications/Games/????

can you post the *.desktop file ?


DID you use the full path to it in the file ?
/home/user/.loki/rune/System/rune-bin or just rune-bin

is the file rune-bin executable ?
did you run " chmod +x rune-bin" on it ?
or in the GUI put a check in that check box ?

is the file path "/home/user/.loki/rune/" set ?
did you set the $PATH for this odd path ?

rizzy 01-21-2011 04:18 AM

try ticking 'run in terminal' box when creating the shortcut

floopy1962 01-21-2011 07:53 AM

Of course i use the full path here the desktop file:
Code:

[Desktop Entry]
Comment[en_US]=Great 3th Porson Game With Vikings
Comment=Great 3th Porson Game With Vikings
Exec=/home/user/.loki/rune/System/./rune-bin
GenericName[en_US]=Online-Multiplayer 3th Porson Game
GenericName=Online-Multiplayer 3th Porson Game
Icon=
MimeType=
Name[en_US]=Rune: Halls of Valhalla
Name=Rune: Halls of Valhalla
Path=/home/user/.loki/rune/System/
StartupNotify=true
Terminal=false
TerminalOptions=
Type=Application
X-DBUS-ServiceName=
X-DBUS-StartupType=
X-KDE-SubstituteUID=false
X-KDE-Username=
X-Ubuntu-Gettext-Domain=desktop_kdebase

i can't figure what is the problem with "/home/se3n/.loki/rune/System/./rune-bin" if i navigate to folder System with dolphin and then open terminal its ok but if i navigate the whole path with terminal i get
Code:

"error while loading shared libraries: Engine.so: cannot open shared object file: No such file or directory"
so check run in terminal option doesn't help... i think this is a game bug the easiest way to make shortcut is
Code:

dolphin /home/user/.loki/rune/System/
btw thank you for the quick respond :P

John VV 01-21-2011 08:23 AM

try this
in the terminal
Code:

cd /home/user/.loki/rune/System
chmod +x rune-bin

then edit the line in the desktop file
Code:

Exec=/home/user/.loki/rune/System/./rune-bin
--- to this ---
Exec=/home/user/.loki/rune/System/rune-bin

a question ?
/home/user ?????
your user name IS " user" ???
or are you just editing that from "se3n"

floopy1962 01-25-2011 11:38 PM

...
 
that doesn't work also... i tryed everithing with "world of goo", "chicken invaders 3 & 4" and one other game... and everything works :D i believe that is a game bug is not a big deal ;) glory of god that is run hov for linux :D now i'm trying to fix sound :( because there is no sound with alsa... and all new distros use alsa instead oss i tryed to install oss and the game works fine with great sound but there is no other sound no amarok no smplayer nothing but the game :D so i remove it and googled a little and read about alsa-oss but when i run the game with aoss (aoss ./rune-bin) there is sound but there is also delay between the sound and gameplay... sound came 5-6 after seconds i click somewere... i also tryed padsp but there is delay too... about 3-4 seconds...
Is there a way to install oss but and make it work with whole system not just the game?
Note: Do i have to move somehow the thread after i changed the subject... ?

knudfl 01-26-2011 04:12 PM

Like with other games, the solution is to use an
executable start script, in /usr/local/bin/ , e.g. 'start-rune.sh' :
Code:

#!/bin/sh

cd /home/user/.loki/rune/System

exec ./rune-bin

Then you can easily start the game with a launcher : Exec=start-rune.sh

..

floopy1962 01-26-2011 05:12 PM

Quote:

Originally Posted by knudfl (Post 4238732)
Like with other games, the solution is to use an
executable start script, in /usr/local/bin/ , e.g. 'start-rune.sh' :
Code:

#!/bin/sh

cd /home/user/.loki/rune/System

exec ./rune-bin

Then you can easily start the game with a launcher : Exec=start-rune.sh

..

grrr...
i created the script and then one .desktop file (with the right click on kde desktop) and when i click on it...
Code:

KDEInit could not launch 'start-rune.sh'.:
Could not find 'start-rune.sh' executable.

i tryed "chmod -x" but no change... may be some other "chmod" ?... i don't know

Person_1873 01-26-2011 05:53 PM

chmod -x removes the ability to execute the script, you need chmod +x

floopy1962 01-26-2011 06:29 PM

Quote:

Originally Posted by Person_1873 (Post 4238830)
chmod -x removes the ability to execute the script, you need chmod +x

Thank you now works like a charm :P useful information for me... never hurt to learn something new :D solved :)


All times are GMT -5. The time now is 11:15 PM.