How do I freeze statics?
So you have built something that you want to add the the clients static files? There are a few ways to do this, but I will describe the way that I use.
First you we will be using Runuo version 1.0.0
Make sure its installed to C:\Program Files\RunUO Software Team\
In your Runuo dir make a new folder called "Data Files"
Now you need to goto your UO Directory can copy all these files into the new "Data Files" folder you just created
Make sure they are copied to C:\Program Files\RunUO Software Team\RunUO 1.0\Data Files\
Now in the \Scripts\Misc Folder There is a file called "Datapath.cs" open it.
Now replace everything in the file with this:
OK, now restart runuo and start UO, then log in to your administrative account. Go to what you want to freeze and use the [freeze command and select everything you want frozen. When the Dialog menu comes up click "OK".
Now go into the "Data Files" folder and copy the correct files
If you froze items in trammel or felucca it will be:
StaIdx0.mul
Statics0.mul
If you froze items in Ishnier it will be:
StaIdx2.mul
Statics2.mul
If you froze items in Malas it will be:
StaIdx3.mul
Statics3.mul
If you froze items in Tokuno it will be:
StaIdx4.mul
Statics4.mul
Now you will need to distribe these files to everyone that plays your server.
(Note: you should only do this if the server is on a local machine)
So you have built something that you want to add the the clients static files? There are a few ways to do this, but I will describe the way that I use.
First you we will be using Runuo version 1.0.0
Make sure its installed to C:\Program Files\RunUO Software Team\
In your Runuo dir make a new folder called "Data Files"
Now you need to goto your UO Directory can copy all these files into the new "Data Files" folder you just created
Multi.idx
Multi.mul
VerData.mul
TileData.mul
Map*.mul
StaIdx*.mul
Statics*.mul
MapDif*.mul
MapDifL*.mul
StaDif*.mul
StaDifL*.mul
StaDifI*.mul
Make sure they are copied to C:\Program Files\RunUO Software Team\RunUO 1.0\Data Files\
Now in the \Scripts\Misc Folder There is a file called "Datapath.cs" open it.
Now replace everything in the file with this:
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\RunUO Software Team\RunUO 1.0\Data Files";
*/
private static string CustomPath = @"C:\Program Files\RunUO Software Team\RunUO 1.0\Data Files";
/* 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;
}
}
}
}
OK, now restart runuo and start UO, then log in to your administrative account. Go to what you want to freeze and use the [freeze command and select everything you want frozen. When the Dialog menu comes up click "OK".
Now go into the "Data Files" folder and copy the correct files
If you froze items in trammel or felucca it will be:
StaIdx0.mul
Statics0.mul
If you froze items in Ishnier it will be:
StaIdx2.mul
Statics2.mul
If you froze items in Malas it will be:
StaIdx3.mul
Statics3.mul
If you froze items in Tokuno it will be:
StaIdx4.mul
Statics4.mul
Now you will need to distribe these files to everyone that plays your server.
(Note: you should only do this if the server is on a local machine)