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 11-21-2004, 09:40 PM   #1 (permalink)
Newbie
 
rocketrod's Avatar
 
Join Date: Apr 2003
Location: In A Small Dug Out
Age: 22
Posts: 98
Send a message via ICQ to rocketrod Send a message via AIM to rocketrod Send a message via MSN to rocketrod Send a message via Yahoo to rocketrod
Default freezeing statics

how do freeze statics in here wat do i change?? i want it in my FreezeFiles Folder...

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 = FreezeFiles;

/* 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 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;
}
}
}
}
rocketrod is offline   Reply With Quote
Old 11-21-2004, 09:46 PM   #2 (permalink)
P3'c Orion Aviator
 
Join Date: Sep 2004
Age: 30
Posts: 1,272
Default

* private const string CustomPath = @"C:\Program Files\Ultima Online";


change it to say @"C:\(your custom folder here)";


-jamie
sirens song 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