Shazzy

Member
"Ultima Art: Unable to read client files"
Then is wants to start deleting all the elven glasses in saves.
This is a bad path to my game directory correct???
In the .cfg file I added:

Code:
# Uncomment this line and set it to the path of the client files to set a
# custom data path. Otherwise ServUO will look for the client in the default
# Windows installation directories. Note that this is *required* when running
# on non-Windows systems.
Custom Path=@C:\Electronic Arts\EA Games\Ultima Onine Classic

# If true all data paths other than CustomPath will be ignored.
IgnoreStandardPaths=False
But still the issue.
Wong formatting in there....yes I have 2 installs of the classic client in far apart dircetories, what do you suggest?
Thanks!
 
When you are reading files from the C drive the program must have administrative rights when UAC is enabled. So, right click servuo.exe and click run as administrator.
 
Thanks!
That is just weird, because all I did was recompiled the core like I always do and ti suddenly popped up :/
Will give it a shot when I get home!! :)
 
I am running linux with the latest ServUO server and am getting this error. I have tried everything I could think of to fix this issue but to no avail.

any ideas people?
 
I am running linux with the latest ServUO server and am getting this error. I have tried everything I could think of to fix this issue but to no avail.

any ideas people?
Can you post the content of your datapath.cfg then?
 
Here you go, my DataPath.cs file.

Code:
using System;
using System.IO;
using System.Linq;

using Microsoft.Win32;

namespace Server.Misc
{
    public class DataPath
    {
        /* If you have not installed Ultima Online,
        * or wish the server to use a separate set of datafiles,
        * change the 'CustomPath' value.
        * Example:
        *  private static string CustomPath = @"C:\Program Files\Ultima Online";
        */
        private static readonly string CustomPath = Config.Get(@"DataPath.CustomPath", null);
        private static readonly bool IgnoreStandardPaths = Config.Get("DataPath.IgnoreStandardPaths", true);
        /* The following is a list of files which a required for proper execution:
        *
        * Multi.idx
        * Multi.mul
        * VerData.mul
        * TileData.mul
        * Map*.mul or Map*LegacyMUL.uop
        * StaIdx*.mul
        * Statics*.mul
        * MapDif*.mul
        * MapDifL*.mul
        * StaDif*.mul
        * StaDifL*.mul
        * StaDifI*.mul
        */

        public static void Configure()
        {
            if (CustomPath != null)
                Core.DataDirectories.Add(CustomPath);

            if (!IgnoreStandardPaths)
            {
                string pathUO = GetPath(@"Origin Worlds Online\Ultima Online\1.0", "ExePath");
                string pathTD = GetPath(@"Origin Worlds Online\Ultima Online Third Dawn\1.0", "ExePath"); //These refer to 2D & 3D, not the Third Dawn expansion
                string pathKR = GetPath(@"Origin Worlds Online\Ultima Online\KR Legacy Beta", "ExePath"); //After KR, This is the new registry key for the 2D client
                string pathSA = GetPath(@"Electronic Arts\EA Games\Ultima Online Stygian Abyss Classic", "InstallDir");
                string pathHS = GetPath(@"Electronic Arts\EA Games\Ultima Online Classic", "InstallDir");

                if (pathUO != null)
                    Core.DataDirectories.Add(pathUO);

                if (pathTD != null)
                    Core.DataDirectories.Add(pathTD);

                if (pathKR != null)
                    Core.DataDirectories.Add(pathKR);

                if (pathSA != null)
                    Core.DataDirectories.Add(pathSA);

                if (pathHS != null)
                    Core.DataDirectories.Add(pathHS);
            }

            if (Core.DataDirectories.Count == 0 && !Core.Service)
            {
                Console.WriteLine("Enter the Ultima Online directory:");
                Console.Write("> ");

                Core.DataDirectories.Add(Console.ReadLine());
            }

            foreach (var dir in Core.DataDirectories)
            {
                Ultima.Files.SetMulPath(dir);
            }
        }

        private static string GetPath(string subName, string keyName)
        {
            try
            {
                string keyString;

                if (Core.Is64Bit)
                    keyString = @"SOFTWARE\Wow6432Node\{0}";
                else
                    keyString = @"SOFTWARE\{0}";

                using (RegistryKey key = Registry.LocalMachine.OpenSubKey(String.Format(keyString, subName)))
                {
                    if (key == null)
                        return null;

                    string v = key.GetValue(keyName) as string;

                    if (String.IsNullOrEmpty(v))
                        return null;

                    if (keyName == "InstallDir")
                        v = v + @"\";

                    v = Path.GetDirectoryName(v);

                    if (String.IsNullOrEmpty(v))
                        return null;

                    return v;
                }
            }
            catch
            {
                return null;
            }
        }
    }
}
 
Well thats your DataPath.cs but what did you set in the DataPath.cfg?

DataPath.cfg?
oooops, didn't look for that.
LOOKING NOW
[doublepost=1485489635][/doublepost]OK, set it as the following, but same error.

Code:
# Uncomment this line and set it to the path of the client files to set a
# custom data path. Otherwise ServUO will look for the client in the default
# Windows installation directories. Note that this is *required* when running
# on non-Windows systems.
CustomPath=/home/johnny/0-Server/Files

# If true all data paths other than CustomPath will be ignored.
# Highly Recommended if you set a custom client above to prevent multiple
# instances of the client being loaded.
IgnoreStandardPaths=True
 
/home/johnny/0-Server/Files is the correct path to the server files? and readable by the account running the server?
 
Hmm this is what I used on my linux test
CustomPath=/home/pyro/Ultima/Files/

Also linux is case sensitive, so maybe the error comes from that?
 

Active Shards

Donations

Total amount
$0.00
Goal
$1,000.00
Back