When I compile my server I get this

[Honesty]: Felucca - Reticulating splines... Error:
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.AggregateException: One or more errors occurred. ---> System.IndexOutOfRangeException: Index was outside the bounds of the array.
at Server.SpawnArea.Compute(Rectangle3D area) in c:\Users\Michael\Desktop\ServUO\ServUO-master\ServUO-master\Server\SpawnArea.cs:line 383
at System.Threading.Tasks.Parallel.<>c__DisplayClass42_0`2.<PartitionerForEachWorker>b__1()
at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask)
at System.Threading.Tasks.Task.<>c__DisplayClass176_0.<ExecuteSelfReplicating>b__0(Object )
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
at System.Threading.Tasks.Parallel.PartitionerForEachWorker[TSource,TLocal](Partitioner`1 source, ParallelOptions parallelOptions, Action`1 simpleBody, Action`2 bodyWithState, Action`3 bodyWithStateAndIndex, Func`4 bodyWithStateAndLocal, Func`5 bodyWithEverything, Func`1 localInit, Action`1 localFinally)
at System.Threading.Tasks.Parallel.ForEachWorker[TSource,TLocal](IEnumerable`1 source, ParallelOptions parallelOptions, Action`1 body, Action`2 bodyWithState, Action`3 bodyWithStateAndIndex, Func`4 bodyWithStateAndLocal, Func`5 bodyWithEverything, Func`1 localInit, Action`1 localFinally)
at System.Threading.Tasks.Parallel.ForEach[TSource](IEnumerable`1 source, Action`1 body)
at Server.SpawnArea.Invalidate() in c:\Users\Michael\Desktop\ServUO\ServUO-master\ServUO-master\Server\SpawnArea.cs:line 347
at Server.SpawnArea.Instantiate(Region region, TileFlag filter, SpawnValidator validator, Boolean cache) in c:\Users\Michael\Desktop\ServUO\ServUO-master\ServUO-master\Server\SpawnArea.cs:line 74
at Server.Services.Virtues.Honesty.GenerateHonestyItems()
at Server.Services.Virtues.Honesty.Initialize()
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)
at Server.ScriptCompiler.Invoke(String method) in c:\Users\Michael\Desktop\ServUO\ServUO-master\ServUO-master\Server\ScriptCompiler.cs:line 668
at Server.Core.Main(String[] args) in c:\Users\Michael\Desktop\ServUO\ServUO-master\ServUO-master\Server\Main.cs:line 636
This exception is fatal, press return to exit
 
This is what I find at the location mentioned

private void Compute(Rectangle3D area)
{
// Check all corners to skip large bodies of water.
if (Filters.Contains(TileFlag.Wet))
{
var land1 = Facet.Tiles.GetLandTile(area.Start.X, area.Start.Y); // TL
var land2 = Facet.Tiles.GetLandTile(area.End.X, area.Start.Y); // TR
var land3 = Facet.Tiles.GetLandTile(area.Start.X, area.End.Y); // BL
var land4 = Facet.Tiles.GetLandTile(area.End.X, area.End.Y); // BR

if ((land1.Ignored || TileData.LandTable[land1.ID].Flags.HasFlag(TileFlag.Wet)) &&
(land2.Ignored || TileData.LandTable[land2.ID].Flags.HasFlag(TileFlag.Wet)) &&
(land3.Ignored || TileData.LandTable[land3.ID].Flags.HasFlag(TileFlag.Wet)) &&
(land4.Ignored || TileData.LandTable[land4.ID].Flags.HasFlag(TileFlag.Wet)))
{
return;
}
}
 
you should put the destination to your client files, so in that case to your UO Installation. But be aware that using the same folder for your client and for the server can cause access issues since they can lock eachother out
 
you should put the destination to your client files, so in that case to your UO Installation. But be aware that using the same folder for your client and for the server can cause access issues since they can lock eachother out

It is installed in the default location.
[doublepost=1523218846][/doublepost]
you should put the destination to your client files, so in that case to your UO Installation. But be aware that using the same folder for your client and for the server can cause access issues since they can lock eachother out
and the server is in a separate location.
 
well yes they are in separator folders, but the server needs access to the files. So usually you would make a copy of your Ultima Folder and then point your server to it with the DataPath.cfg
 
Fixed that fist error now I am running into this one
Error:
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.TypeInitializationException: The type initializer for 'Ultima.Art' threw an exception. ---> System.UnauthorizedAccessException: Access to the path 'C:\Program Files (x86)\Electronic Arts\Ultima Online Classic\artlegacymul.uop' is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
at Ultima.FileIndex..ctor(String idxFile, String mulFile, String uopFile, Int32 length, Int32 file, String uopEntryExtension, Int32 idxLength, Boolean hasExtra)
at Ultima.Art..cctor()
--- End of inner exception stack trace ---
at Ultima.Art.Measure(Bitmap bmp, Int32& xMin, Int32& yMin, Int32& xMax, Int32& yMax)
at Server.CollectionItem..ctor(Type type, Int32 itemID, Int32 tooltip, Int32 hue, Double points, Boolean questitem)
at Server.Engines.VvV.VvVRewards.Initialize()
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at Server.ScriptCompiler.Invoke(String method)
at Server.Core.Main(String[] args)
This exception is fatal, press return to exit
[doublepost=1523231404][/doublepost]
Fixed that fist error now I am running into this one
Error:
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.TypeInitializationException: The type initializer for 'Ultima.Art' threw an exception. ---> System.UnauthorizedAccessException: Access to the path 'C:\Program Files (x86)\Electronic Arts\Ultima Online Classic\artlegacymul.uop' is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
at Ultima.FileIndex..ctor(String idxFile, String mulFile, String uopFile, Int32 length, Int32 file, String uopEntryExtension, Int32 idxLength, Boolean hasExtra)
at Ultima.Art..cctor()
--- End of inner exception stack trace ---
at Ultima.Art.Measure(Bitmap bmp, Int32& xMin, Int32& yMin, Int32& xMax, Int32& yMax)
at Server.CollectionItem..ctor(Type type, Int32 itemID, Int32 tooltip, Int32 hue, Double points, Boolean questitem)
at Server.Engines.VvV.VvVRewards.Initialize()
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at Server.ScriptCompiler.Invoke(String method)
at Server.Core.Main(String[] args)
This exception is fatal, press return to exit


found a syntax error in my change seems to be working now. Thanks for all the help.
 
Back