|
||
|
|||||||
| Custom Script Release Archive This is a pre-script database archive of what our users had released. |
|
|
Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
this script read the UO files for all version
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 = AD removed
*/
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
*/
public static void Configure()
{
string pathReg = GetExePath( "Ultima Online" );
string pathTD = GetExePath( "Ultima Online Third Dawn" );
string pathSE = GetExePath("Ultima Online Samurai Empire");
string pathML = GetExePath("Ultima Online Mondain's Legacy");
if ( CustomPath != null )
Core.DataDirectories.Add( CustomPath );
if ( pathReg != null )
Core.DataDirectories.Add( pathReg );
if ( pathTD != null )
Core.DataDirectories.Add( pathTD );
if (pathSE != null)
Core.DataDirectories.Add(pathSE);
if (pathML != null)
Core.DataDirectories.Add(pathML);
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;
}
}
}
}
|
|
|
|
|
|
#2 (permalink) | |
|
Forum Expert
|
Quote:
|
|
|
|
|
|
#7 (permalink) |
|
Forum Novice
Join Date: May 2005
Age: 29
Posts: 950
|
I think it means...
When installing the Mondain's Legacy client completly (not patched up from AoS or SE), RunUO will not be able to load the datafiles automatically, because the name of the registry entry changed. So this fix just enables the auto-loading of the datafiles from an ML-Client, so that you don't have to enter the client path manually. As I didn't test it nor did I install ML seperatly, I can't say if it's needed or working. |
|
|
|
|
#9 (permalink) | |
|
Quote:
![]() |
||
|
|
|
|
#12 (permalink) | |
|
Account Terminated
|
Quote:
|
|
|
|
|
|
#13 (permalink) | ||
|
Forum Expert
|
Quote:
you got all that from : Quote:
lol |
||
|
|
|
|
#15 (permalink) |
|
Forum Expert
Join Date: Oct 2002
Location: Germany (american though)
Age: 33
Posts: 957
|
it works fine. dont mind quick fingers, if you search for his posts, you will notice that they arent helpful at all, and hes bascially just spamming to boost his post count.
Back to the original subject of this thread, it works fine. Thank you for your contribution. |
|
|
|
|
#16 (permalink) | |
|
Account Terminated
|
Quote:
One could say the same about you, because what you just posted is pointless. |
|
|
|
|
|
#18 (permalink) | |
|
Forum Expert
Join Date: Oct 2002
Location: Germany (american though)
Age: 33
Posts: 957
|
Quote:
The person who posted the modification obviously doesnt speak english as a native language, yet still posted a contribution to the community. Another member of the community confused them by posting off topic (as you can see from the response that followed) How is my bringing the topic back on subject and confirming for the person who was kind enough to submit this modification that it works fine "pointless"?? and to DJMatrix: Lo scritto funziona benissimo. Grazie per il vostro contributo (The script works fine. Thank you for your contribution) |
|
|
|
|
|
#19 (permalink) | |
|
Quote:
for Jarrod Il codice funziona( works = lavora ) bene( benissimo ) , Grazie per il tuo contributo! (The script works fine. Thank you for your contribution) |
||
|
|
|
|
#20 (permalink) |
|
Forum Novice
|
I just wanted to say thanks again DjMatrix, this is a great step in enabling the UO:ML client to work for all RunUO servers out there..... on the RunUO side, thanks to what you've shared with us, we're already set to run it...... now we just have to wait for UO Gateway to release a newer version that supports ML as well and we'll be ready to go! Your work here is truly appreciated! Keep up the great work!
![]() |
|
|
|
|
#21 (permalink) | |
|
Account Terminated
|
Quote:
You could just reported the post to a moderator, which is what I do, unless something like this happens. I then have to report multiple posts, and well butt in I suppose... |
|
|
|
|
|
#22 (permalink) | |
|
Quote:
Spellweaving Skill Logs System Elven Weapons Elven Armors Rare Resources Craftable Artifacts ML Animal & Moster New Quest System Button ModMap for see Heartwood & Dungeons |
||
|
|
|
|
#23 (permalink) | |
|
Account Terminated
|
Quote:
I am sure alot of people would appreciate it. |
|
|
|
|
|
#24 (permalink) | |
|
Quote:
if you see Changelog i can post link for Changelog |
||
|
|
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|