Go Back   RunUO - Ultima Online Emulation > RunUO > Server Support on Windows

Server Support on Windows Get (and give) support on general questions related to the RunUO server itself.

Reply
 
Thread Tools Display Modes
Old 05-17-2006, 02:30 AM   #1 (permalink)
Forum Newbie
 
Join Date: Jan 2006
Posts: 41
Default Freezing problem

well Im trying to freeze on my shard and I set the datapath.cs up but I still get the message telling me that my ciant are on the same data path I set up a new local ciant with the files in the new folder and it still didnt work here is my datapath maybe I dont have it set up right any help would be appriciated
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 seperate set of datafiles,
		 * change the 'CustomPath' value, example:
		 * 
		 * private const string CustomPath = @"C:\Program Files\Ultima Online";
		 */
		private static string CustomPath = @"C:\Freezes";

		/* 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
		 * statics*.mul
		 * staidx*.mul
		 * statics2*.mul
		 * staidx2*.mul
		 * statics3*.mul
		 * staidx3*.mul
		 * statics4*.mul
		 * staidx4*.mul
		 */

		public static void Configure()
		{
			string pathReg = GetExePath( "Ultima Online" );
			string pathTD = GetExePath( "Ultima Online Third Dawn" );

			if ( CustomPath != null )
				Core.DataDirectories.Add( CustomPath );

			if ( pathReg != null )
				Core.DataDirectories.Add( pathReg );

			if ( pathTD != null )
				Core.DataDirectories.Add( pathTD );

			if ( Core.DataDirectories.Count == 0 )
			{
				Console.WriteLine( "Enter the Ultima Online directory:" );
				Console.Write( "> " );

				Core.DataDirectories.Add( Console.ReadLine() );
			}
		}

		private static string GetExePath( string subName )
		{
			try
			{
				using ( RegistryKey key = Registry.LocalMachine.OpenSubKey( String.Format( @"SOFTWARE\Origin Worlds Online\{0}\1.0", subName ) ) )
				{
					if ( key == null )
						return null;

					string v = key.GetValue( "ExePath" ) as string;

					if ( v == null || v.Length <= 0 )
						return null;

					if ( !File.Exists( v ) )
						return null;

					v = Path.GetDirectoryName( v );

					if ( v == null )
						return null;

					return v;
				}
			}
			catch
			{
				return null;
			}
		}
	}
}
Leenk is offline   Reply With Quote
Old 05-17-2006, 05:09 AM   #2 (permalink)
Forum Expert
 
seltor's Avatar
 
Join Date: Nov 2003
Location: North Carolina
Age: 36
Posts: 283
Send a message via Yahoo to seltor
Default

Did you create the folder and copy all of the files in the required for proper excecution list into the folder?
seltor is offline   Reply With Quote
Old 05-17-2006, 04:05 PM   #3 (permalink)
Forum Newbie
 
Join Date: Jan 2006
Posts: 41
Default

yes i did i rebooted my comp and it worked thankyou tho for your help
Leenk is offline   Reply With Quote
Old 05-17-2006, 10:01 PM   #4 (permalink)
Forum Expert
 
seltor's Avatar
 
Join Date: Nov 2003
Location: North Carolina
Age: 36
Posts: 283
Send a message via Yahoo to seltor
Default

Anytime mate. Only glad my advice was good for something LOL
seltor is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5