Go Back   RunUO - Ultima Online Emulation > RunUO > Custom Script Release Archive

Custom Script Release Archive This is a pre-script database archive of what our users had released.

 
 
Thread Tools Display Modes
Old 09-19-2005, 12:10 PM   #1 (permalink)
 
Join Date: Nov 2003
Location: Italy - Terni
Age: 22
Posts: 47
Send a message via ICQ to DjMatrix Send a message via MSN to DjMatrix
Default DataPath

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; 
         } 
      } 
   } 
}
DjMatrix is offline  
Old 09-19-2005, 12:25 PM   #2 (permalink)
Forum Expert
 
Raider's Avatar
 
Join Date: Jan 2005
Age: 31
Posts: 288
Send a message via Yahoo to Raider
Cool

Quote:
Originally Posted by DjMatrix
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; 
         } 
      } 
   } 
}
so what exactly is this going too do for runuo more detail would be nice what would be different then regular datapath
Raider is offline  
Old 09-19-2005, 01:41 PM   #3 (permalink)
Account Terminated
 
Join Date: Sep 2002
Age: 26
Posts: 3,846
Send a message via ICQ to Phantom Send a message via AIM to Phantom Send a message via MSN to Phantom
Default

Quote:
Originally Posted by Raider
so what exactly is this going too do for runuo more detail would be nice what would be different then regular datapath
Compare it to the original file, should answer your question.
Phantom is offline  
Old 09-19-2005, 01:54 PM   #4 (permalink)
 
Join Date: Aug 2004
Age: 31
Posts: 546
Default

Quote:
Originally Posted by Phantom
Compare it to the original file, should answer your question.
Really the author needs to post this information when they submit something or it really doesnt help many people.
Memnoch is offline  
Old 09-19-2005, 02:39 PM   #5 (permalink)
 
Join Date: Nov 2003
Location: Italy - Terni
Age: 22
Posts: 47
Send a message via ICQ to DjMatrix Send a message via MSN to DjMatrix
Default

i have mod the RunUO 1.0.0 DataPath for read the files of new UO

this code support the read for UOSE and UOML files ...
DjMatrix is offline  
Old 09-19-2005, 05:31 PM   #6 (permalink)
Forum Novice
 
Join Date: Jul 2005
Location: Indiana
Age: 35
Posts: 179
Send a message via AIM to drkgpsy Send a message via MSN to drkgpsy Send a message via Yahoo to drkgpsy
Default

so does this really enable the use of the new ML client?! :O
drkgpsy is offline  
Old 09-19-2005, 05:46 PM   #7 (permalink)
Forum Novice
 
Join Date: May 2005
Age: 29
Posts: 950
Default

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.
Irian is offline  
Old 09-19-2005, 05:52 PM   #8 (permalink)
Forum Novice
 
Join Date: Jul 2005
Location: Indiana
Age: 35
Posts: 179
Send a message via AIM to drkgpsy Send a message via MSN to drkgpsy Send a message via Yahoo to drkgpsy
Default

ah i see..... so this will enable RunUO to load the files from ML...... but UOGateway still won't recognize the ML Client so we still can't really use it
drkgpsy is offline  
Old 09-19-2005, 05:57 PM   #9 (permalink)
 
Join Date: Nov 2003
Location: Italy - Terni
Age: 22
Posts: 47
Send a message via ICQ to DjMatrix Send a message via MSN to DjMatrix
Default

Quote:
Originally Posted by Irian
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.
UP
DjMatrix is offline  
Old 09-19-2005, 06:00 PM   #10 (permalink)
Forum Novice
 
Join Date: Jul 2005
Location: Indiana
Age: 35
Posts: 179
Send a message via AIM to drkgpsy Send a message via MSN to drkgpsy Send a message via Yahoo to drkgpsy
Default

well done on making it so that RunUO recognizes all the versions of UO...... got any idea how to make Gateway recognize the ML client?
drkgpsy is offline  
Old 09-19-2005, 06:15 PM   #11 (permalink)
Account Terminated
 
Join Date: Sep 2002
Age: 26
Posts: 3,846
Send a message via ICQ to Phantom Send a message via AIM to Phantom Send a message via MSN to Phantom
Default

Quote:
Originally Posted by Memnoch
Really the author needs to post this information when they submit something or it really doesnt help many people.
The author did do this, if you read his post, he explains what it does.
Phantom is offline  
Old 09-19-2005, 06:16 PM   #12 (permalink)
Account Terminated
 
Join Date: Sep 2002
Age: 26
Posts: 3,846
Send a message via ICQ to Phantom Send a message via AIM to Phantom Send a message via MSN to Phantom
Default

Quote:
Originally Posted by drkgpsy
well done on making it so that RunUO recognizes all the versions of UO...... got any idea how to make Gateway recognize the ML client?
There is nothing you can do to make it work, so just install the SE client instead.
Phantom is offline  
Old 09-20-2005, 07:04 AM   #13 (permalink)
Forum Expert
 
Join Date: Mar 2004
Location: Ireland
Age: 24
Posts: 284
Send a message via ICQ to QuIcK_FiNgErS Send a message via MSN to QuIcK_FiNgErS
Default

Quote:
Originally Posted by Irian
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.

you got all that from :
Quote:
--------------------------------------------------------------------------------

i have mod the RunUO 1.0.0 DataPath for read the files of new UO

this code support the read for UOSE and UOML files ...
?


lol
QuIcK_FiNgErS is offline  
Old 09-20-2005, 08:11 AM   #14 (permalink)
 
Join Date: Nov 2003
Location: Italy - Terni
Age: 22
Posts: 47
Send a message via ICQ to DjMatrix Send a message via MSN to DjMatrix
Default

Quote:
Originally Posted by QuIcK_FiNgErS
?


lol
is vary easy
DjMatrix is offline  
Old 09-20-2005, 08:46 AM   #15 (permalink)
Forum Expert
 
Join Date: Oct 2002
Location: Germany (american though)
Age: 33
Posts: 957
Default

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.
Jarrod is offline  
Old 09-20-2005, 09:53 AM   #16 (permalink)
Account Terminated
 
Join Date: Sep 2002
Age: 26
Posts: 3,846
Send a message via ICQ to Phantom Send a message via AIM to Phantom Send a message via MSN to Phantom
Default

Quote:
Originally Posted by Jarrod
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.
Please don't attack other members of this forum.

One could say the same about you, because what you just posted is pointless.
Phantom is offline  
Old 09-20-2005, 10:06 AM   #17 (permalink)
 
Join Date: Nov 2003
Location: Italy - Terni
Age: 22
Posts: 47
Send a message via ICQ to DjMatrix Send a message via MSN to DjMatrix
Default

Quote:
Originally Posted by Jarrod
Thank you for your contribution.
The code work fine...

i develop for RunIT ( IT = Italian )

i develop this code for RunIT ... and other more code .... but this is OT


Tnks Bye Bye
DjMatrix is offline  
Old 09-20-2005, 10:12 AM   #18 (permalink)
Forum Expert
 
Join Date: Oct 2002
Location: Germany (american though)
Age: 33
Posts: 957
Default

Quote:
Originally Posted by Phantom
Please don't attack other members of this forum.

One could say the same about you, because what you just posted is pointless.

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)
Jarrod is offline  
Old 09-20-2005, 10:30 AM   #19 (permalink)
 
Join Date: Nov 2003
Location: Italy - Terni
Age: 22
Posts: 47
Send a message via ICQ to DjMatrix Send a message via MSN to DjMatrix
Default

Quote:
Originally Posted by Jarrod
and to DJMatrix:
Lo scritto funziona benissimo. Grazie per il vostro contributo
(The script works fine. Thank you for your contribution)
Sorry for my english...

for Jarrod
Il codice funziona( works = lavora ) bene( benissimo ) , Grazie per il tuo contributo!
(The script works fine. Thank you for your contribution)
DjMatrix is offline  
Old 09-20-2005, 11:32 AM   #20 (permalink)
Forum Novice
 
Join Date: Jul 2005
Location: Indiana
Age: 35
Posts: 179
Send a message via AIM to drkgpsy Send a message via MSN to drkgpsy Send a message via Yahoo to drkgpsy
Default

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!
drkgpsy is offline  
Old 09-20-2005, 12:01 PM   #21 (permalink)
Account Terminated
 
Join Date: Sep 2002
Age: 26
Posts: 3,846
Send a message via ICQ to Phantom Send a message via AIM to Phantom Send a message via MSN to Phantom
Default

Quote:
Originally Posted by Jarrod
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)
You attacked another member, which is pointless, enough said.

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...
Phantom is offline  
Old 09-20-2005, 12:09 PM   #22 (permalink)
 
Join Date: Nov 2003
Location: Italy - Terni
Age: 22
Posts: 47
Send a message via ICQ to DjMatrix Send a message via MSN to DjMatrix
Default

Quote:
Originally Posted by drkgpsy
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.....
i have qualify ML for RunIT and my shard ... i have qualify

Spellweaving Skill
Logs System
Elven Weapons
Elven Armors
Rare Resources
Craftable Artifacts
ML Animal & Moster
New Quest System Button
ModMap for see Heartwood & Dungeons
DjMatrix is offline  
Old 09-20-2005, 12:11 PM   #23 (permalink)
Account Terminated
 
Join Date: Sep 2002
Age: 26
Posts: 3,846
Send a message via ICQ to Phantom Send a message via AIM to Phantom Send a message via MSN to Phantom
Default

Quote:
Originally Posted by DjMatrix
i have qualify ML for RunIT and my shard ... i have qualify

Spellweaving Skill
Logs System
Elven Weapons
Elven Armors
Rare Resources
Craftable Artifacts
ML Animal & Moster
New Quest System Button
ModMap for see Heartwood & Dungeons
If your work is original, perhaps you should release some of your stuff.

I am sure alot of people would appreciate it.
Phantom is offline  
Old 09-20-2005, 12:16 PM   #24 (permalink)
 
Join Date: Nov 2003
Location: Italy - Terni
Age: 22
Posts: 47
Send a message via ICQ to DjMatrix Send a message via MSN to DjMatrix
Default

Quote:
Originally Posted by Phantom
If your work is original, perhaps you should release some of your stuff.

I am sure alot of people would appreciate it.
i know ... but i work for RunUO Italian Mod ... and i develop this code for her...

if you see Changelog i can post link for Changelog
DjMatrix is offline  
Old 09-21-2005, 12:30 AM   #25 (permalink)
Forum Expert
 
Alis's Avatar
 
Join Date: Jun 2005
Location: Probably where people call it heaven
Posts: 1,452
Send a message via AIM to Alis Send a message via MSN to Alis
Default

Interesting work ; one thing guys about 2-4 weeks i cant follow beacuse of my buisnesses. Does Runuo really intend to go on Mondains Legacy Because as far as i know Runuo is not finished with still samurai is it correct ?
Alis is offline  
 

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