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

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

Closed Thread
 
Thread Tools Display Modes
Old 11-12-2009, 09:28 AM   #1 (permalink)
Newbie
 
Join Date: Mar 2004
Location: Lisbon, Portugal
Posts: 87
Default MONO, ML and Ultima.dll

New version, new problem.

I'm trying to get Callandor2k's RunUO version to run on MONO.

So far I'm getting this error:

Code:
./Item.cs(832,40): error CS0103: The name `Ultima' does not exist in the current context
./Item.cs(846,17): error CS0103: The name `Ultima' does not exist in the current context
So I check the Item.cs, and I come across this:

Code:
         public static System.Drawing.Bitmap GetBitmap( int itemID )
        {
            try 
			{ 
				return Ultima.Art.GetStatic( itemID ); 
			}
            catch ( Exception e ) 
			{ 
				Console.WriteLine( e.ToString() ); 
			}

            return null;
        }

        public static void Measure( System.Drawing.Bitmap bmp, out int xMin, out int yMin, out int xMax, out int yMax )
        {
            try 
            { 
            	Ultima.Art.Measure( bmp, out xMin, out yMin, out xMax, out yMax ); 
            }
            catch ( Exception e ) 
            { 
            	Console.WriteLine( e.ToString() ); 
            	xMin = yMin = xMax = yMax = 0;
            }
        }
Apparently it's using the Ultima.dll to handle something regarding the Collections System

Now, while I could just skip that system altogheter (I wasn't planning on using it anyway), I'd like to know if there's anyway I can get it to work the way it was supposed to.

Any thoughts?

PS:
I'm using the latest Callandor2k version, and MONO 2.4.2.3.
I have Ultima.dll in the same folder as the scripts

I'm using
Code:
gmcs -out:../RunUO.exe -d:MONO -optimize+ -unsafe -r:System,System.Configuration.Install,System.Data,System.Drawing,System.EnterpriseServices,System.Management,System.Security,System.ServiceProcess,System.Web,System.Web.Services,System.Windows.Forms,System.Xml -nowarn:219 -recurse:*.cs
to compile the core

Thanks in advance
PitHelvit
PitHelvit is offline  
Old 11-12-2009, 10:26 AM   #2 (permalink)
Newbie
 
Join Date: Mar 2004
Location: Lisbon, Portugal
Posts: 87
Default

Removing the references to Ultima.dll works like a charm, though I'm still getting some warnings while compiling the core. The game itself works without a hitch so far.

I'm still not sure if the system is usable without that little reference, and I'd still like to be able to use it at 100%, so I'm still open to ideas :P
PitHelvit is offline  
Old 11-12-2009, 12:50 PM   #3 (permalink)
Forum Novice
 
Join Date: Aug 2005
Location: Italy (Piemonte)
Age: 21
Posts: 297
Send a message via ICQ to Smjert Send a message via MSN to Smjert
Default

You have to put Ultima.dll outside Scripts directory, in the RunUO root directory, then add Ultima.dll in Data/Assembly.cfg.
__________________
Pandora's Box 3 Developer.
Smjert is offline  
Old 11-12-2009, 01:05 PM   #4 (permalink)
Newbie
 
Join Date: Mar 2004
Location: Lisbon, Portugal
Posts: 87
Default

Quote:
Originally Posted by Smjert View Post
You have to put Ultima.dll outside Scripts directory, in the RunUO root directory, then add Ultima.dll in Data/Assembly.cfg.
Did that. Still doesn't recognize it, on Linux OR Windows. Both compilers give me the same error

EDIT:
Nevermind, I got it to work. I just had to add Ultima.dll to the compiler info (script noob)

This is the compiler I'm using now:

Code:
gmcs -out:RunUO.exe -d:MONO -optimize+ -unsafe -r:System,System.Configuration.Install,System.Data,System.Drawing,System.EnterpriseServices,System.Management,System.Security,System.ServiceProcess,System.Web,System.Web.Services,System.Windows.Forms,System.Xml,Ultima.dll -nowarn:219 -recurse:Server/*.cs

Last edited by Jeff; 11-22-2009 at 03:15 PM.
PitHelvit is offline  
Closed Thread

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 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5