|
||
|
|||||||
| LearnUO Team Irro\'s Team of LearnUO and their Documentation for RunUO |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Forum Expert
|
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: 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;
}
}
}
}
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) |
|
|
|
|
|
#4 (permalink) |
|
Forum Novice
Join Date: Apr 2005
Age: 48
Posts: 173
|
Okay, I must be doing something wrong. I have copied all of the above files and created a folder for Data FIles - I also copied all the changes for the datapatch.cs but when i do [freezemap it still says I must be sharing files.
1 - I dont have a datapatch.cs as it says in the tutorial I only have datapath.cs - I assumed it was meant to be Datapath so thats where I copied the file to. 2 - I dont have a verdata.mul file in my Uo directory should I create an empty cs file for that and place it in the file anyway? 3 - My comp says I am running on low disk space - is it the 70k items in my world causing this? |
|
|
|
|
|
#5 (permalink) |
|
Newbie
|
1. You're right, it's datapath.cs
2. Verdata.mul is an old format which is not used anymore in the later clients, no need for it unless someone wants to distribute an old client to their players 3. After adding 70k items and saving a few times, my saves and backups folders were only about 13 meg total so it shouldn't be that Check the custom directory name in datapath.cs is exactly right for you, if it isn't it defaults to your UO directory again from what I can tell. |
|
|
|
|
|
#8 (permalink) | |
|
Account Terminated
|
Quote:
For that matter are you sure you even froze the objects... |
|
|
|
|
|
|
#10 (permalink) | |
|
Account Terminated
|
Quote:
|
|
|
|
|
|
|
#14 (permalink) | |
|
Forum Expert
|
Quote:
You can try adding the oringal files back into UO. Then creating a local server listing in UOG, and adding the new patches in for the server. |
|
|
|
|
|
|
#15 (permalink) |
|
Join Date: Nov 2004
Age: 20
Posts: 86
|
Hello,
I created some of my own areas ingame and succesfully froze them. I just realized, however, that my frozen areas appeared in both Trammel and Felucca. The ones on the facet opposite of the area I froze appear different and are not the way they should be. The tiles are un-wipable, un-deletable, and cannot be unfrozen. Is this suppose to happen? If not, is there any way to stop it? Thanks |
|
|
|
|
|
#16 (permalink) |
|
Master of the Internet
|
trammel and felucca are mirror images, minus a bit different decoration for trees and grave stones
what you do to one is done to the other, there is a way to seperate the 2 maps and its been done before by 1 person that i know of, but that is something i dont intend on covering |
|
|
|
|
|
#18 (permalink) |
|
UO Hobbyist
Join Date: Jul 2004
Age: 32
Posts: 179
|
Look at this thread: http://www.orbsydia.com/forum/showthread.php?t=2148 and find Parts II and III for a lot of information on the different map files and how they work.
Hope this helps, -Janice aka kirax2 |
|
|
|
|
|
#20 (permalink) | |
|
Forum Expert
|
Quote:
What you need to do is to take out what you added, in the facet that you added it in. Then use punts worldforge to add it to the mapDIFFS. Then distribute the mapdif files. map0diffs for felucca map1diffs for trammel |
|
|
|
|
|
|
#21 (permalink) | |
|
Quote:
could you please give us the title of this Threat? The given link seems to be dead. Thanks in advance... ![]() |
||
|
|
|
|
|
#22 (permalink) |
|
UO Hobbyist
Join Date: Jul 2004
Age: 32
Posts: 179
|
Sorry it took me so long to reply. ^_^ Orb keeps moving things around! LOL
Here's the thread: http://www.orbsydia.ca/forum/showthread.php?t=2134 It's called "Looking for information on custom graphics and animations. I plan to turn the article into a more FAQ-like structure at some point, but haven't had time. ![]() -Janice aka kirax2 |
|
|
|
|
|
#25 (permalink) |
|
Forum Expert
Join Date: Sep 2005
Location: UK
Age: 29
Posts: 781
|
Hi there all can anyone help me i have UO-Samurai Empire.
and i found all the files but 1. VerData.mul -------------- i have vercfg.cfg - vercfg.cfg Verinfo - A file Version - A DAT file Version.txt thanks you all for any help. ![]() |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|