All times are UTC - 5 hours [ DST ]


Post new topic Reply to topic  [ 56 posts ] 
Go to page 1, 2, 3, 4  Next
Author Message
 Post subject: The....How to play UO on Linux Thread
PostPosted: Wed Jul 30, 2008 12:17 pm 
Offline
Second Age Staff
Second Age Staff
User avatar
User Rep: Unsung
 Profile

Joined: Thu Jul 10, 2008 12:53 pm
Posts: 18
I figured I'd post this because It might come in handy for someone I'm sure.

Wine is an Open Source project that allows Linux users to run windows programs on top of XWindows and Linux.

Below is a link on how to run UO on a Linux based PC. Further testing and documentation is still being gathered but I thought this was kinda neat:

Source Webpage: http://uo.stratics.com/content/guides/linux.shtml

Downloading and Installing Wine

To start, download Wine for your distribution. Wine distribution is managed on SourceForge. The Wine download page lists all of the packages that are available including binary packages for a wide variety of distributions. The source is also available if you want to download and compile Wine, but that is beyond the scope of this article.

The Fedora releases are with the RedHat packages. At the time of writing, the latest release was 20040121. The RPM used is wine-20040121-1fc1winehq.athlon.rpm. Note there are several architecture specific releases for each distribution (the 'athlon' part). Download the correct one for your specific CPU. If in doubt, download the 'i386' version.

Another very useful package is the Winesetuptk application. It makes the initial creation of the wine configuration file very easy. The RPM (winesetuptk-0-72.i586.rpm) is found in the Support Packages section.

The Wine installation is now as easy as installing these RPMs. This will have to done as the root user:

# rpm -Uvh wine-20040121-1fc1winehq.athlon.rpm
# rpm -Uvh winesetuptk-0-72.i586.rpm

Configuring Wine

Configuring Wine can be done with the winesetuptk application. This should be run as a regular (non-root) user. As a user run (you should be in XWindows at this point):

$ winesetuptk

The defaults should work for just about everybody. Check all of the categories and configuration parameters to ensure you are happy with the default value. There are a couple important things to note:

* If you change the location of the config file from the default, you will also have to tell wine where to find it.
* Ensure the 'C Drive' and the tmp drive are both on local drives (i.e. avoid putting it on an NFS mount)
* Ensure the CDROM drive points to the correct mount point for your CDROM drive (this is usually /mnt/cdrom)

When you are satisfied with the configuration values select "Finish" to exit and write out your configuration file.
Installing UO in Wine

Installing UO into Wine is simply a matter of running the installation program. Insert the UO CD into your CDROM drive and make sure the CDROM is mounted (I used the Age Of Shadows CDROM).

Run the installation program. This can be done with either of the following commands (if you have your CDROM mounted elsewhere or mapped differently in wine you will have to adjust these commands):

$ wine /mnt/cdrom/Setup2D.exe
or
$ wine "D:\Setup2D.exe"

NOTE: Normally we would run Install.exe. However, it doesn't work in Wine (feel free to try it and see if you get better results than I did). Running the Setup2D.exe program ultimately installs the 2D client.

At this point in the installation I came across my first real problem. As it turns out, there is an issue with a kernel feature in Fedora Core 1 that affects Wine. If you came across an error message about a "security-patched kernel" please see the Prelink Issue Workaround below. If you are fortunate enough to avoid this issue, continue on.

Install UO as you normally would on windows. I have assumed all of the defaults for the UO install.

You'll notice during the installation process that there are a few odd visual artifacts that shouldn't be there. For example, the "Total Installation" label runs over the CDROM image as well as the progress bar. I'm not sure if there is a way to improve on this. It's not that important at this point, but when we get to the patcher we will see some more issues like this.

When prompted with the "re-install DirectX 8.1" dialog click "No"

The "Create Account" button opens the web browser, which doesn't work, and I suspect you already have an account created.

When prompted with "Run UO: AOS" or "Exit Installer" you can do either. Running AOS will start the initial patch process, which will be done the first time you run UO. You probably want to actually see UO at this point, so hit the "Run UO: AOS" button and continue with the First Launch.
First Launch

The first time you run UO the patch process will startup. Notice that you will start out with the old-style (plain text) message window. Continue as you would normally.

At some point the new patch window will open up. Now we see a few more of those 'visual artifacts' mentioned previously. I believe this window uses the MSIE browser functionality that's built into windows. Wine doesn't have this, so you'll get a text version of the Patch Message instead.

Once the patching is finished the "OK" button will become enabled. Click it to get past the patch window and startup UO.
After First Launch

To Run UO in the future, use the following command:

$ wine "C:\Program Files\Ultima Online 2D\UO.exe"

The file "uo.exe" is not actually the game client. It takes care of running the patch program and then launching the client. If you run uo.exe you will notice a little "untitled window" hangs around when you are playing. This is the "uo.exe" application. If you want to get rid of this window, and you know that UO is all patched up, you can start UO using this command:

wine "C:\Program Files\Ultima Online 2D\client.exe"

Enjoy UO on Linux

Hopefully these instructions will be enough to allow you to enjoy UO on Linux. If you have any problems or interesting things to report please feel free to send me an email to hugo at its dot to.
Prelink Issue

The actual error message for this issue is:

err:virtual:map_image Standard load address for a Win32 program (0x00400000) not available - security-patched kernel ?
wine: could not load L"C:\\Program Files\\Ultima Online 2D\\client.exe" as Win32 binary

More information about this issue is available on the Codeweavers forum. There seems to be a number of possible workarounds for this issue, but I have had mixed results with most of them.

The workaround I have the most success with is by executing the following commands (as root):

# echo 0 > /proc/sys/kernel/exec-shield # echo 0 > /proc/sys/kernel/exec-shield-randomize

This fix has to be done after every reboot. You can either do it manually every time you boot into Linux, or put it in a startup script. Hopefully a better solution will present itself soon.

Once you have dealt with this issue you can continue with the install.

_________________
Here are the 4 stages of Life
1) You believe in Santa
2) You don't believe in Santa
3) You ARE Santa
4) You LOOK like Santa


Top
 
These Support SecondAge
Links open a new window.
UOSA Donors & Subscribers do not receive these ads.

 Post subject: Re: The....How to play UO on Linux Thread
PostPosted: Wed Jul 30, 2008 1:27 pm 
Offline
User Rep: Unsung
 Profile

Joined: Tue Jul 29, 2008 12:58 pm
Posts: 331
I play on second age through wine with razor.

The easiest way was to install the Mondain's Legacy client download...no need to patch at all. The wine setup utility installed through apt configured everything correctly the first time.

To get razor working through wine, which is MUCH faster than vm, is to simply install dotnet20 with winetricks...just download winetricks, then run it as a shell script with dotnet20 after it.

Boom, you are up and running in 20 minutes including install time. No need for cedega, vm, and no reason to give up macroing programs.

p.s., the wine I used was that installed through apt on Debian Lenny.

p.p.s., don't connect to ea servers and patch, just use wine to run UOrice and set the client path in razor to the No_crypt_2D.exe, and the directory to the correct wine c drive, for example: .wine/c_drive/Program\ Files/EA\ Games/Ultima\ Online/ or whatever it is.


Last edited by johttenn on Wed Jul 30, 2008 1:29 pm, edited 1 time in total.

Top
 

 Post subject: Re: The....How to play UO on Linux Thread
PostPosted: Wed Jul 30, 2008 1:28 pm 
Offline
User avatar
User Rep: Fair
 WWW  ICQ  Profile

Joined: Wed Jun 04, 2008 6:57 pm
Posts: 1176
Location: North Of Minoc
man i wish i knew what yall were talkin about lol

_________________
Image
http://kingdomofascalon.guildportal.com/Guild.aspx?GuildID=368091&TabID=3084565

AIM - pludiusrack


Top
 

 Post subject: Re: The....How to play UO on Linux Thread
PostPosted: Wed Jul 30, 2008 6:18 pm 
Offline
Second Age Staff
Second Age Staff
User avatar
User Rep: Unsung
 Profile

Joined: Thu Jul 10, 2008 12:53 pm
Posts: 18
See....was useful after all :D

_________________
Here are the 4 stages of Life
1) You believe in Santa
2) You don't believe in Santa
3) You ARE Santa
4) You LOOK like Santa


Top
 

 Post subject: Re: The....How to play UO on Linux Thread
PostPosted: Wed Jul 30, 2008 7:28 pm 
Offline
User avatar
User Rep: Unsung
 WWW  Profile

Joined: Wed Jan 23, 2008 10:27 pm
Posts: 76
Location: colorado springs, CO
Nice Thread! This will be stickied. Thanks Diesel!

_________________
Lord Keathus
Second Age Staff
Forum Administrator


Top
 

 Post subject: Re: The....How to play UO on Linux Thread
PostPosted: Thu Jul 31, 2008 5:17 am 
Offline
User avatar
User Rep: Fair
 Profile

Joined: Fri May 23, 2008 11:15 pm
Posts: 426
Location: Ontario
Very nice, this has always been one of the reason for me not to switch to Linux... now i have no excuse. Maybe I'll get rid of this crappy vista thing.


Top
 

 Post subject: Re: The....How to play UO on Linux Thread
PostPosted: Thu Jul 31, 2008 9:26 am 
Offline
User avatar
User Rep: Unsung
 WWW  Profile

Joined: Wed Jan 23, 2008 10:27 pm
Posts: 76
Location: colorado springs, CO
Maahes wrote:
Very nice, this has always been one of the reason for me not to switch to Linux... now i have no excuse. Maybe I'll get rid of this crappy vista thing.



Im with you on that :D I can't stand vista.

_________________
Lord Keathus
Second Age Staff
Forum Administrator


Top
 

 Post subject: Re: The....How to play UO on Linux Thread
PostPosted: Fri Aug 01, 2008 7:13 pm 
Offline
UOSA Donor!!
UOSA Donor!!
User avatar
User Rep: Unsung
 Profile

Joined: Fri Feb 15, 2008 3:48 am
Posts: 167
Location: K to the S
Wow, great post, thanks. I am having one problem with this though, it does not allow me to input the port in Razor and wont load a client for UOSA. anyone run into this problem? Also, I think this maybe be Ubuntu related.

_________________
Image


Top
 

 Post subject: Re: The....How to play UO on Linux Thread
PostPosted: Sat Aug 02, 2008 2:52 am 
Offline
User Rep: Unsung
 Profile

Joined: Tue Jul 29, 2008 12:58 pm
Posts: 331
have you installed the dotnet20 framework with winetricks? If so, you will have to manually set client and uo directory paths.


Top
 

 Post subject: Re: The....How to play UO on Linux Thread
PostPosted: Sat Aug 02, 2008 2:58 pm 
Offline
UOSA Donor!!
UOSA Donor!!
User avatar
User Rep: Unsung
 Profile

Joined: Fri Feb 15, 2008 3:48 am
Posts: 167
Location: K to the S
I edited my login.cfg to point to UOSA, and I can use the 2d no crypt exe to login to UOSA, but I still cannot get razor to start a client because of the port input box remaining grey. How can I trick razor to load from the login.cfg? or can I load razor after I already start the 2d no crypt?

_________________
Image


Top
 

 Post subject: Re: The....How to play UO on Linux Thread
PostPosted: Sat Aug 02, 2008 8:01 pm 
Offline
User Rep: Unsung
 Profile

Joined: Tue Jul 29, 2008 12:58 pm
Posts: 331
use razor to call the no_crypt, set the client path to it in the screen where you first run razor, the global settings

there is an option to not show the screen again, if you checked that, i'm not sure how you would get it back, maybe reinstall razor, it'll take just a second


Top
 

 Post subject: Re: The....How to play UO on Linux Thread
PostPosted: Sat Aug 02, 2008 8:18 pm 
Offline
UOSA Donor!!
UOSA Donor!!
User avatar
User Rep: Unsung
 Profile

Joined: Fri Feb 15, 2008 3:48 am
Posts: 167
Location: K to the S
I am not having a problem with getting that initial razor screen up. that is where I cannot input the port info, it is staying greyed out when i put in the server info...there is a thread started on the runuo forums here: http://www.runuo.com/forums/razor-cutting-edge-uo-assistant/90976-razor-port-not-configurable.html. do you think it is my Ubuntu kernel? I am on 2.6.24.20, what is the kernel you use on your Debian?

_________________
Image


Top
 

 Post subject: Re: The....How to play UO on Linux Thread
PostPosted: Mon Aug 04, 2008 5:19 pm 
Offline
UOSA Donor!!
UOSA Donor!!
User avatar
User Rep: Unsung
 Profile

Joined: Fri Feb 15, 2008 3:48 am
Posts: 167
Location: K to the S
Blacula on the runuo forums has given a work around for this! I will quote him here:

Quote:
I had that problem too, then I figured out a solution

Do this:
cd ~/.wine/drive_c/windows/
wine regedit.exe

Then change the registry key for Razor (I forgot where) that says "last server", just edit the string
to your server of choice, and exit and start Razor with wine as usual. It will blank the field and port
so you can put in whatever you like (which made me very happy.) *claps*

P.s.: This is with the latest wine from source (1.1x) and Fluxbuntu, but everything should be the same across the board.


For me, I found the "LastPort" and "LastServer" in the registry editor under: HKEY_USERS > S-1-5-4 > Software > Razor

This worked perfectly for me. Finally it is possible to run Razor through wine. I will hafta see what kind of bugs I run into now, I heard that the hotkey function does not work well, which could be a bummer.
There is now no excuse to not move fully over to linux.

_________________
Image


Top
 

 Post subject: Re: The....How to play UO on Linux Thread
PostPosted: Mon Aug 04, 2008 6:00 pm 
Offline
User avatar
User Rep: Trustworthy
Trustworthy
 WWW  ICQ  Profile

Joined: Thu Dec 13, 2007 7:49 pm
Posts: 9002
Location: Cove
Nice. Congratulations on getting that working. I love Linux, it's a far superior operating system, but only if you have the time.


Top
 

 Post subject: Re: The....How to play UO on Linux Thread
PostPosted: Mon Aug 04, 2008 6:53 pm 
Offline
User Rep: Unsung
 Profile

Joined: Tue Jul 29, 2008 12:58 pm
Posts: 331
Quote:
This worked perfectly for me. Finally it is possible to run Razor through wine. I will hafta see what kind of bugs I run into now, I heard that the hotkey function does not work well, which could be a bummer.
There is now no excuse to not move fully over to linux.



Using a similar kernel, glad you figured out the issue.

I have not had any problems with the hot keys so far. Post if you have problems.


Top
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 56 posts ]  Go to page 1, 2, 3, 4  Next

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Support Second Age: These links Open in a New Window

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group  
Extended by Karma MOD © 2007—2012 m157y