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!

Editing Static Buildings

Necrotecha

Wanderer
Editing Static Buildings

I'd like ot know how to edit static object, walls, buildings, at least what type of things are involved.

any help would be apreciated, thanks a bunch in advance.
 

Phantom

Knight
Necrotecha said:
I'd like ot know how to edit static object, walls, buildings, at least what type of things are involved.

any help would be apreciated, thanks a bunch in advance.

unfreeze and freeze

In the future if you have questions on the commands, check the documentation, nice explaination of each command.
 

Necrotecha

Wanderer
im still having problems, despite what i read and did.

i did what it told me to do ( as far as i can tell) and im still getting the "output data files could not be opened and the unfreeze operation has been aborted" message.

now i do not know if i did everythign correctly but as far as ive been able to decipher i have, i probably havent finished creating the proper filepaths or something but im stumped.
 

Phantom

Knight
Necrotecha said:
im still having problems, despite what i read and did.

i did what it told me to do ( as far as i can tell) and im still getting the "output data files could not be opened and the unfreeze operation has been aborted" message.

now i do not know if i did everythign correctly but as far as ive been able to decipher i have, i probably havent finished creating the proper filepaths or something but im stumped.

You need to modify DataPath.cs and do exactly what it says.
 

Necrotecha

Wanderer
i did edit datapath, i think theres somethign else i did improperly, an read and interpret what instructions i have i can't relaly figure out what taht is.
 

Necrotecha

Wanderer
well thats just t he problem, i catn quite figure it out, i've edited datapath by adding *static*.mul and *staidx*.mul to the list of files but im not quite sure what else to do or if ive doen this wrong.
 

TMSTKSBK

Lord
ok, lemme ask more specific questions.

A. Does the server compile?

B. Does the command appear to work in-game?

C. If B, is the stuff still visible when you log out/in?

D. If C, have you updated your client's .mul's?
 

Necrotecha

Wanderer
PHP:
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 = 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
		 * Statics*.mul
		 * Staidx*.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;
			}
		}
	}
}

thats my datapath
 

Calbracht

Wanderer
Necrotecha said:
PHP:
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 = 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
		 * Statics*.mul
		 * Staidx*.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;
			}
		}
	}
}

thats my datapath

private static string CustomPath = null;QUOTE]


Make a extra Folder somewhere (Runuo directory is probly best bet) Name it what you wish, Ill name it DataFiles so i can make a example.

So in C:\Program Files\RunUO 1.0 make a new folder named DataFile, Or where ever you Runuo folder is.

Then Extract these Files into it

Code:
		 * 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

Change DataPath

private static string CustomPath = null;

to

private const string CustomPath = @"C:\Program Files\RunUO 1.0\DataFiles";


That should fix the problem cause right now it is trying to copy new statics on the Statics that are being used by the server.
 

Necrotecha

Wanderer
i did this (interchanging your filepath for mine) and now when i go to log in the server stops at the "connecting" screen after the "verifyin account" screen and the console reads the usual..."connected" message however shortly thereafter it comes up and says "disconnected" for whichever account is logging in, I.E. my own admin account.
 

Calbracht

Wanderer
make sure you are using you exact acount it can be that you havn't edited the AccountHandler.cs. cause your account will be Firewalled
 

Calbracht

Wanderer
go to runuo directory scripts/accounts/accounthandler.cs open it find this line(at the top)

Code:
	public class AccountHandler
	{
		private static int MaxAccountsPerIP = 1;


Change the MaxAccountsPerIP = 2; or whatever you want.

Also make sure these two paths are the same

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

so since you said you follow what i said it should look like this


Code:
         * private const string CustomPath = @"C:\Program Files\RunUO 1.0\DataFiles";
         */ 
        private static string CustomPath = @"C:\Program Files\RunUO 1.0\DataFiles";
 

Necrotecha

Wanderer
PHP:
* private static 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";

well as i said, i used my own file path so this is what it looks like in my datapath.

i should not that when i transfered my files INTO the "data files" folder the VerData.mul file doesnt and never has existed on my computer at any time, i did manual searches and looked with teh find files or folders option and it couldt find it, though i dont know if that would be causing this problem.
 
Top