|
||
|
|||||||
| Server Support on Mono Forum dedicated to RunUO 2.0 on Mono. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Newbie
Join Date: Mar 2004
Location: Lisbon, Portugal
Posts: 87
|
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 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;
}
}
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 Thanks in advance PitHelvit |
|
|
|
|
#2 (permalink) |
|
Newbie
Join Date: Mar 2004
Location: Lisbon, Portugal
Posts: 87
|
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 |
|
|
|
|
#4 (permalink) | |
|
Newbie
Join Date: Mar 2004
Location: Lisbon, Portugal
Posts: 87
|
Quote:
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. |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|