Page 2 of 2
Re: I made an installer for Linux version of Unreal
Posted: Mon May 18, 2009 7:53 am
by Smirftsch
sign!
Re: I made an installer for Linux version of Unreal
Posted: Mon May 18, 2009 12:34 pm
by GreatEmerald
After doing some investigation, it turns out that adding new items to the menu is very, very easy. All you need to do is create a file called Unreal.desktop in /usr/share/applications, and put this in it:
Code: Select all
[Desktop Entry]
Version=227
Type=Game
Name=Unreal
Comment=Alter your reality. Forever.
Categories=Game;
Exec=/home/aidas/Unreal/System/UnrealLinux.sh
Icon=/home/aidas/Unreal/Help/Unreal.ico
Terminal=false
StartupNotify=true
Of course, you'll need to change Exec and Icon paths depending on where the user has it installed. Exec is also the launchable file. Not tested with the .bin file, but might work too.
Re: I made an installer for Linux version of Unreal
Posted: Mon May 18, 2009 1:09 pm
by Trydi
Yes - adding item is easy, but i don't now why it's not working with bin. Anyway - i must test this. But there is one problem - you set static patch to your install.dir in /home folder - other users may install game somewhere else and have personal user_name - what then ? I think it's not a problem for someone who knows bash. I know only few command - not whole language. Maybe someone write script to searching UnrealLinux.bin i directory, where user installed game ?
Re: I made an installer for Linux version of Unreal
Posted: Mon May 18, 2009 5:01 pm
by GreatEmerald
Why so complicated? The user has to enter the install dir when they install - so when you install, just generate a .desktop file and dump it into /usr/share/applications.
Also, to execute .bin files correctly, the official Epic script for UT2004 is this:
Code: Select all
#!/bin/sh
SUBDIR="."
#----------------------------------------
script=$0
count=0
while [ -L "$script" ]
do
script=`perl -e "print readlink(\"$script\"), \"\n\""`
count=`expr $count + 1`
if [ $count -gt 100 ]
then
echo "Too many symbolic links"
exit 1
fi
done
GAME_DIR=`dirname $script`
cd $GAME_DIR
cd System
./ut2004-bin "$@"
The file is named ut2004 and is in UT2004 folder (not in UT2004/System). So, to make it work, just alter it so the last line reads UnrealLinux.bin and name the file something like Unreal and dump it into the Unreal directory, then try .desktoping that file.
EDIT: Oh, Smirf, I found one issue with the Windows installer. It doesn't install if you have a server of
another Unreal game running in the background! The installer simply won't launch

I have to shut down the server, install and restart!
Re: I made an installer for Linux version of Unreal
Posted: Wed May 20, 2009 9:53 pm
by Trydi
New version of installer is available
*better launching script (thx
GreatEmerald)
*better uninstall script
*menu entries (tested on GNOME 2.22.3)
I think this is first RC version. When game are uninstalled, activator is still in menu. We must manual delete this activator . It's not a problem - Wine and some commercial Linux titles (ex. Penumbra series) don't delete entries too, and user must manual delete them - this takes hmm... 10 seconds. It's Linux - user must do something too, and it's nothing new

I think my work is over (but who knows - maybe i make new version

. Installer do what he must to do and it's fully automated. Now future of project is in
Smirftsch hands. This installer is only fan-project. Maybe he build new and better installer.
Best Regards
Trydi
Link for installer :
http://dl.getdropbox.com/u/1039704/Unreal_Linux_Setup
Re: I made an installer for Linux version of Unreal
Posted: Wed May 20, 2009 10:35 pm
by []KAOS[]Casey
New version of installer is available
*better launching script (thx GreatEmerald)
*better uninstall script
*menu entries (tested on GNOME 2.22.3)
I have no idea why, but I laughed when I saw that, at least you made one though :p
Re: I made an installer for Linux version of Unreal
Posted: Wed May 20, 2009 10:47 pm
by Trydi
Ok - maybe not better, but more simplify method. If you have more/better ideas etc. - fell free to modify source code. Like i said - it's fun project - not professional, and in my opinion any uninstalling script is not needed - more simply is push Delete key. Linux don't have registry, and in that case - Delete is good solution too.
Re: I made an installer for Linux version of Unreal
Posted: Thu May 21, 2009 1:07 am
by []KAOS[]Casey
Nah I mean.. i've never heard of anyone actually uninstalling unreal :p
Re: I made an installer for Linux version of Unreal
Posted: Thu May 21, 2009 1:08 am
by Spike
You can uninstall unreal O.o
Re: I made an installer for Linux version of Unreal
Posted: Thu May 21, 2009 1:41 am
by Shivaxi
You can uninstall unreal O.o
dude....i thought that wasn't physically....or even mentally possible

Re: I made an installer for Linux version of Unreal
Posted: Thu May 21, 2009 6:19 pm
by [§Ŕ] ŤhěxĐâŕkśîđěŕ
Why the fuck would I uninstall Unreal? What would I play THEN? :-?
Re: I made an installer for Linux version of Unreal
Posted: Sun Jun 14, 2009 3:44 pm
by sir_brizz
How do I get this installer? the link above doesn't work anymore.
Re: I made an installer for Linux version of Unreal
Posted: Thu Jun 25, 2009 2:39 pm
by Trydi
I upload this again - give me some time to build installer again and upload. Link is dead because... i don't know how , but file is not on server.
Download Here :
http://files.getdropbox.com/u/1039704/U ... inux_Setup 