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!

Trying to setup my server and get error

Vaul

Traveler
Like title says. I've changed the datapath.cs to find the uo folder & still keep getting an error for large blacksmith bod.
 

Attachments

  • error.jpg
    128.4 KB · Views: 16

Vaul

Traveler
Here's what I have:

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 (x86)\Electronic Arts\Ultima Online Classic";
*/
private static string CustomPath = @"C:\Program Files (x86)\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;
}
}
}
}
 

Vaul

Traveler
here you go:

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:\Electronic Arts\Ultima Online Classic";
*/
private static string CustomPath = @"C:\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;
}
}
}
}
 

Vaul

Traveler
I see nothing.
I have the following show up in the UO classic folder:

GDF folder
Uninstall
UO.cfg
UO.exe
UO patch
 

tindo

Sorceror
Yeah, it doesn't add the mul files until you patch up the client, thats why the files were not there.

7.0.24.0 will work with 2.3 but the problem is you will have to patch it up to the current client to get the proper mul files.

You will either have to use RunUO 2.4 or get the 7.0.15.1 client, which can be downloaded with all the correct files without patching.
 

Vaul

Traveler
Yeah just got done patching, can walk around. I can't enter buildings & have some starting equipment but no clothes & the equipment is wrong.
 

Vaul

Traveler
Where can I find a version of that client tindo?

or would i be better off just using one of my old dvd copies? I really am just looking for a LBTR era client.
 
Top