Hello everyone i am using ubuntu 12.04 and having a hard time trying to get this to run
i have got uo client installed and fully patched up and got the datapath.cs update to where the client it installed but still not working right and cant seem to figure it out
above is the error i keep getting and then here is my datapath.cs below
i have got uo client installed and fully patched up and got the datapath.cs update to where the client it installed but still not working right and cant seem to figure it out
Code:
RunUO - [www.runuo.com] Version 2.2, Build 5108.35711
Core: Running on .NET Framework Version 2.0.50727
Core: Optimizing for 4 processors
Core: Unix environment detected
Scripts: Compiling C# scripts...done (0 errors, 0 warnings)
Scripts: Skipping VB.NET Scripts...done (use -vb to enable)
Scripts: Verifying...done (2925 items, 742 mobiles) (0.60 seconds)
Regions: Loading...done
World: Loading...done (0 items, 0 mobiles) (0.00 seconds)
tiledata.mul was not found
Make sure your Scripts/Misc/DataPath.cs is properly configured
After pressing return an exception will be thrown and the server will terminate
Error:
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.TypeInitializationException: An exception was thrown by the type initializer for Server.TileData ---> System.Exception: TileData: not found
at Server.TileData..cctor () [0x00000] in <filename unknown>:0
--- End of inner exception stack trace ---
at Server.Item.get_DefaultWeight () [0x00000] in <filename unknown>:0
at Server.Item.get_Weight () [0x00000] in <filename unknown>:0
at Server.Item.get_PileWeight () [0x00000] in <filename unknown>:0
at Server.Item.set_Amount (Int32 value) [0x00000] in <filename unknown>:0
at Server.Item..ctor () [0x00000] in <filename unknown>:0
at Server.Item..ctor (Int32 itemID) [0x00000] in <filename unknown>:0
at Server.Items.BaseWeapon..ctor (Int32 itemID) [0x00000] in <filename unknown>:0
at Server.Items.BaseMeleeWeapon..ctor (Int32 itemID) [0x00000] in <filename unknown>:0
at Server.Items.Fists..ctor () [0x00000] in <filename unknown>:0
at Server.Items.Fists.Initialize () [0x00000] in <filename unknown>:0
at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
--- End of inner exception stack trace ---
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <filename unknown>:0
at Server.ScriptCompiler.Invoke (System.String method) [0x00000] in <filename unknown>:0
at Server.Core.Main (System.String[] args) [0x00000] in <filename unknown>:0
This exception is fatal, press return to exit
above is the error i keep getting and then here is my datapath.cs below
Code:
using System;
using System.IO;
using Microsoft.Win32;
using Server;
namespace Server.Misc
{
public class DataPath
{
/* If you have not installed Ultima Online,
* or wish the server to use a separate set of datafiles,
* change the 'CustomPath' value.
* Example:
* private static string CustomPath = @"C:\Program Files\Ultima Online";
*/
private static string CustomPath = @"Z:/Electronic Arts/Ultima Online Classic";
/* The following is a list of files which a required for proper execution:
*
* Multi.idx
* Multi.mul
* VerData.mul
* TileData.mul
* Map*.mul or Map*LegacyMUL.uop
* StaIdx*.mul
* Statics*.mul
* MapDif*.mul
* MapDifL*.mul
* StaDif*.mul
* StaDifL*.mul
* StaDifI*.mul
*/
public static void Configure()
{
string pathUO = GetPath( @"Origin Worlds Online\Ultima Online\1.0", "ExePath" );
string pathTD = GetPath( @"Origin Worlds Online\Ultima Online Third Dawn\1.0", "ExePath" ); //These refer to 2D & 3D, not the Third Dawn expansion
string pathKR = GetPath( @"Origin Worlds Online\Ultima Online\KR Legacy Beta", "ExePath" ); //After KR, This is the new registry key for the 2D client
string pathSA = GetPath( @"Electronic Arts\EA Games\Ultima Online Stygian Abyss Classic", "InstallDir" );
string pathHS = GetPath( @"Electronic Arts\EA Games\Ultima Online Classic", "InstallDir" );
if ( CustomPath != null )
Core.DataDirectories.Add( CustomPath );
if ( pathUO != null )
Core.DataDirectories.Add( pathUO );
if ( pathTD != null )
Core.DataDirectories.Add( pathTD );
if ( pathKR != null )
Core.DataDirectories.Add( pathKR );
if ( pathSA != null )
Core.DataDirectories.Add( pathSA );
if ( pathHS != null )
Core.DataDirectories.Add( pathHS );
if ( Core.DataDirectories.Count == 0 && !Core.Service )
{
Console.WriteLine( "Enter the Ultima Online directory:" );
Console.Write( "> " );
Core.DataDirectories.Add( Console.ReadLine() );
}
}
private static string GetPath( string subName, string keyName )
{
try
{
string keyString;
if( Core.Is64Bit )
keyString = @"SOFTWARE\Wow6432Node\{0}";
else
keyString = @"SOFTWARE\{0}";
using( RegistryKey key = Registry.LocalMachine.OpenSubKey( String.Format( keyString, subName ) ) )
{
if( key == null )
return null;
string v = key.GetValue( keyName ) as string;
if( String.IsNullOrEmpty( v ) )
return null;
if ( keyName == "InstallDir" )
v = v + @"\";
v = Path.GetDirectoryName( v );
if ( String.IsNullOrEmpty( v ) )
return null;
return v;
}
}
catch
{
return null;
}
}
}
}