Go Back   RunUO - Ultima Online Emulation > RunUO > Server Support on Mono

Server Support on Mono Forum dedicated to RunUO 2.0 on Mono.

Reply
 
Thread Tools Display Modes
Old 09-14-2007, 05:57 PM   #1 (permalink)
Forum Administrator
 
Join Date: Jan 2003
Location: Northern Virginia
Posts: 1,554
Default Linux/Mono Notes

Using Mono 1.2.5:

1. You must have some form of libc and libz installed on your system.
2. Mono must be in your path.
3. You will need a copy of the mul/idx files listed in "Scripts\Misc\DataPath.cs".

Known Issues:

1. Mono does not like a class containing two methods with the same name that differ only by a generic parameter. This means you will need to patch "Serialization.cs" and modify any affected Script files.
2. Mono increments pointers by 4 bytes no matter what the underlying type is in unsafe code when using the "++" operator. This is already accounted for in RunUO, but I am noting it here so it can be tested in future versions.
3. Generic commands do not work and will crash the Mono runtime. The issue occurs when we call Extensions.Parse from the commands area, global, region, online, etc. I have not found a workaround for this yet.
4. Documentation generation does not work. I haven't investigated the issue.

Compiling:

Here is how I compile the core:
Code:
$ ~/mono-1.2.5/bin/gmcs -d:MONO -unsafe+ -optimize- -t:exe -out:RunUO.exe -recurse:Server/*.cs
* Mono is installed in my home directory, your path to gmcs may very.

Here is how I start RunUO:
Code:
$ PATH=~/mono-1.2.5/bin ~/mono-1.2.5/bin/mono RunUO.exe
* If Mono is not in your path, ScriptCompiler will fail. Setting the PATH variable shouldn't be necessary in most cases.

Last edited by Mark; 09-14-2007 at 06:56 PM.
Mark is offline   Reply With Quote
Old 09-29-2007, 08:36 PM   #2 (permalink)
Forum Expert
 
FallsUpStairs's Avatar
 
Join Date: Oct 2002
Posts: 508
Default

Code:
xxxx@xxxx:~/ultimaonline/devel$ gmcs -d:MONO -unsafe+ -optimize- -t:exe -out:RunUO.exe -recurse:Server/*.cs
Server/Main.cs(451,16): warning CS0219: The variable `ms' is assigned but its value is never used
Server/Map.cs(1797,12): warning CS0219: The variable `start' is assigned but its value is never used
Server/Mobile.cs(8728,11): warning CS0219: The variable `oldRegion' is assigned but its value is never used
Server/MultiData.cs(108,12): warning CS0219: The variable `extra' is assigned but its value is never used
Server/Utility.cs(1252,104): error CS0030: Cannot convert type `TInput' to `TOutput'
Server/Utility.cs(1252,104): The type  has two conflicting definitions, one comes from RunUO, Version=0.0.0.0, Culture=neutral and the other from RunUO, Version=0.0.0.0, Culture=neutralerror)
Compilation failed: 1 error(s), 4 warnings
This is rev. 263 on Ubuntu Feisty server, latest Mono.

Am I doing something wrong, or do I have to patch Utility.cs...? I thought it worked directly out of the repository.

Any ideas would be great.
__________________
Fueled by Bawls :cool:
FallsUpStairs is offline   Reply With Quote
Old 09-30-2007, 04:01 AM   #3 (permalink)
Newbie
 
Join Date: Aug 2004
Age: 24
Posts: 35
Default

It seems that mono is 1.2.3.1.
Please, show mono --version.
seirge is offline   Reply With Quote
Old 10-08-2007, 12:36 PM   #4 (permalink)
Lurker
 
Join Date: Sep 2007
Age: 21
Posts: 9
Default

antidoto@antidoto-desktop:~/Desktop/RunUO2$ gmcs -d:MONO -unsafe+ -optimize- -t:exe -out:RunUO.exe -recurse:Server/*.cs
Server/Utility.cs(1,1): error CS1646: Keyword, identifier, or string expected after verbatim specifier: @
Compilation failed: 1 error(s), 0 warnings
antidoto@antidoto-desktop:~/Desktop/RunUO2$

I have Ubuntu 7.04

What's the metter?
Excuse me for my erorr...
Antidoto is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5