RunUO Community

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Porting an SVN to Linux

robynuo

Sorceror
Porting an SVN to Linux

I have trouble compiling the Callador SVN core to linux as the Server/Item.cs has the following lines the compiler does not know

Code:
        public static System.Drawing.Bitmap GetBitmap( int itemID )
        {
            try 
			{ 
				[COLOR="Red"]return Ultima.Art.GetStatic( itemID ); [/COLOR]
			}
            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 
            { 
            	[COLOR="Red"]Ultima.Art.Measure( bmp, out xMin, out yMin, out xMax, out yMax ); [/COLOR]
            }
            catch ( Exception e ) 
            { 
            	Console.WriteLine( e.ToString() ); 
            	xMin = yMin = xMax = yMax = 0;
            }
        }

The server compiles with no problems in Windows and just gives these troubles in Linux.
When compiling it says that Ultima does not exist in that context. As this sections seem to have to do only with the ML collections (Vesper Museeum, Moonglow Zoo) I commented it out and compiled it then.
Just wondering if anyone has a solution for it?
 
Top