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!

Tiledata.mul not found/server.engines.bulkOrders.LargeSmithBOD error

Hades

Sorceror
Hey guys, i am not new to programing but i cant seem to figure this out. i have not programmed in ages and this is what my datapath.cs is reading and i am having a the bulkorder problem as well. Here is my datapath. i want to set it up on a sand box not live in till i feel it ready. i am using windows xp office if that makes a difference.



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 const string CustomPath = @"C:\Program Files\Ultima OnlineClassic";
*/
private static string CustomPath = null;

/* The following is a list of files which a required for proper execution:
*
* Multi.idx
* Multi.mul
* VerData.mul
* TileData.mul
* Map*.mul
* 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" );

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 ( 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;
}
}
}
}

------------------------------------------------------------------------------------
Any help and ideas would be great guys. i am ready to learn everything you guys know.
 

Arvoreen

Sorceror
Hey guys, i am not new to programing but i cant seem to figure this out. i have not programmed in ages and this is what my datapath.cs is reading and i am having a the bulkorder problem as well. Here is my datapath. i want to set it up on a sand box not live in till i feel it ready. i am using windows xp office if that makes a difference.

In case you haven't figured this out yet, I noticed 2 things:
- You changed the CustomPath in the comment, not the actual code (the one you wanted to change is a cpl lines down, set to null)
- Did you mean "C:\Program Files\Ultima OnlineClassic" or "C:\Program Files\Ultima Online Classic"? (the space between Online and Classic is what I'm asking about)
 
Top