Hi guys, ive this problem.


Server Crash Report
===================

ServUO Version 0.5, Build 6571.32868
Operating System: Microsoft Windows NT 6.1.7601 Service Pack 1
.NET Framework: 4.0.30319.42000
Time: 27/01/2018 23:19:48
Mobiles: 3481
Items: 12343
Exception:
System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
at System.ThrowHelper.ThrowKeyNotFoundException()
at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
at Server.Misc.SkillGrowthRates.GetGrowthRateByClass(PlayerMobile pm, SkillName skill)
at Server.Misc.SkillCheck.CheckSkill(Mobile from, Skill skill, Object amObj, Double chance)
at Server.Misc.SkillCheck.Mobile_SkillCheckDirectLocation(Mobile from, SkillName skillName, Double chance)
at Server.Mobiles.XmlSpawnerSkillCheck.Mobile_SkillCheckDirectLocation(Mobile from, SkillName skillName, Double chance)
at Server.Items.BaseRanged.OnSwing(Mobile attacker, IDamageable damageable)
at Server.Mobile.CombatTimer.OnTick() in c:\Users\Michele\Desktop\Oalm\Server\Mobile.cs:line 2080
at Server.Timer.Slice() in c:\Users\Michele\Desktop\Oalm\Server\Timer.cs:line 410
at Server.Core.Main(String[] args) in c:\Users\Michele\Desktop\Oalm\Server\Main.cs:line 588

Clients:
- Count: 1
+ 95.141.40.109: (account = quazar7) (mobile = 0x4B 'GM Onikage')


I dont understand this:

at Server.Mobile.CombatTimer.OnTick() in c:\Users\Michele\Desktop\Oalm\Server\Mobile.cs:line 2080

This was a folder on my pc, on the server is C:\user\admin\etcc......

why server try to use folder on my pc?
 
I think yes, path are correct

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 = @"C:\Users\Administrator\Desktop\Map";
/* 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);
else
{
if(Ultima.Files.LoadDirectory() != null && !Core.Unix)
{
Core.DataDirectories.Add(Ultima.Files.LoadDirectory());
}
}

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

Core.DataDirectories.Add(Console.ReadLine());
}
Ultima.Files.SetMulPath(Core.DataDirectories[0]);
Utility.PushColor(ConsoleColor.DarkYellow);
Console.WriteLine("DataPath: " + Core.DataDirectories[0]);
Utility.PopColor();
}

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;
}
}
}
}


# 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=C:\Users\Administrator\Desktop\Olam
 
Well if your Server is not in the Administrator folder and you therefor run it from your personal folder, then the files (including the one you wrote down there) is in your personal desktop folder and not the admins.

That has nothing to do with the client files
 
mmmm no i have servuo on our remote server (vps) we run it on server, path is on server.

Gm connect to this server........... nothing on my desktop....
 
DataPath.cfg is never used as the following line has been edited.

private static readonly string CustomPath = @"C:\Users\Administrator\Desktop\Map";


Your code hugely defers from git and seems to be mixed with older and newer code.
 
I only followed the instruction e set this path.. it work.... when i freeze world he update file in map folder correctly..

i have an old repo i think :(

sorri for bad eng
 
So in which folder is your ServUO?
In which Folder are your Map/Tiledata etc. files?

Do you run as admin? (right click -> run as admin)?
 
"C:\Users\Administrator\Desktop\olam server" (servuo folder )
"C:\Users\Administrator\Desktop\map" (map0,etcc...)
"C:\Users\Administrator\Desktop\olam " (ultima online folder)

This is all on server (not in my pc, in my pc i have nothing)
 
So all these files:
* 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

Are in C:\Users\Administrator\Desktop\map ?


Go to Scripts\Output and move all files to different location so scripts going to recompile.
 
Just move files from Scripts/Output to a different folder for Backup or delete them. Just to force a recompile of scripts.
 
Back