RunUO Community

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Server Error?

Downloaded UO and Server Went to start it up and got this, not sure what to do.




RunUO - [www.runuo.com] Version 2.2, Build 4782.3756
Core: Running on .NET Framework Version 2.0.50727
Core: Optimizing for 2 processors
Scripts: Compiling C# scripts...done (cached)
Scripts: Skipping VB.NET Scripts...done (use -vb to enable)
Scripts: Verifying...done (2841 items, 594 mobiles) (3.41 seconds)
Regions: Loading...done
World: Loading...tiledata.mul was not found
Make sure your Scripts/Misc/DataPath.cs is properly configured
After pressing return an exception will be thrown and the server will terminate
An error was encountered while loading a saved object
- Type: Server.Engines.BulkOrders.LargeTailorBOD
- Serial: 0x400000EF
Delete the object? (y/n)


When I Press Y I get this




RunUO - [www.runuo.com] Version 2.2, Build 4782.3756
Core: Running on .NET Framework Version 2.0.50727
Core: Optimizing for 2 processors
Scripts: Compiling C# scripts...done (cached)
Scripts: Skipping VB.NET Scripts...done (use -vb to enable)
Scripts: Verifying...done (2841 items, 594 mobiles) (3.41 seconds)
Regions: Loading...done
World: Loading...tiledata.mul was not found
Make sure your Scripts/Misc/DataPath.cs is properly configured
After pressing return an exception will be thrown and the server will terminate
An error was encountered while loading a saved object
- Type: Server.Engines.BulkOrders.LargeTailorBOD
- Serial: 0x400000EF
Delete the object? (y/n)
Delete all objects of that type? (y/n)
After pressing return an exception will be thrown and the server will terminate.

Error:
System.Exception: Load failed (items=True, mobiles=False, guilds=False, type=Ser
ver.Engines.BulkOrders.LargeTailorBOD, serial=0x400000EF) ---> System.TypeInitia
lizationException: The type initializer for 'Server.TileData' threw an exception
. ---> System.Exception: TileData: not found
at Server.TileData..cctor()
--- End of inner exception stack trace ---
at Server.TileData.get_MaxItemValue()
at Server.Item.get_DefaultWeight()
at Server.Item.get_Weight()
at Server.Engines.BulkOrders.LargeBOD.Deserialize(GenericReader reader)
at Server.Engines.BulkOrders.LargeTailorBOD.Deserialize(GenericReader reader)
at Server.World.Load()
--- End of inner exception stack trace ---
at Server.World.Load()
at Server.Core.Main(String[] args)
This exception is fatal, press return to exit
 

Enroq

Sorceror
Ahem.
Make sure your Scripts/Misc/DataPath.cs is properly configured

Make sure your datapath.cs is referencing your UO directory or the proper .MUL files.

Code:
        /* 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 string CustomPath = null;
        private static string CustomPath = "Maps";
 
        /* 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
        */

Also, stop deleting them. :D

Oh yeah, and this is the wrong category for support.
 
ha oh ops, it's been a while since I did anything UO related forgot a lot but my datapath.cs looks right to me but like I said it's been a while, here's what I got for my datapath.cs




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 separate set of datafiles,
* change the 'CustomPath' value.
* Example:
* private static string CustomPath = @"C:\Program Files\Ultima Online";
*/
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 or Map*LegacyMUL.uop
* StaIdx*.mul
* Statics*.mul
* MapDif*.mul
* MapDifL*.mul
* StaDif*.mul
* StaDifL*.mul
* StaDifI*.mul
*/
public static void Configure()
{
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 ( CustomPath != null )
Core.DataDirectories.Add( CustomPath );
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() );
}
}
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;
}
}
}
}
 

Enroq

Sorceror
Yeah, your datapath.cs looks as it should. I'm hoping you have UO installed. The only thing I can think of off the top of my head is your client version may be too far patched. But I've been up for like 24 hours and do not feel like thinking, let alone investigating. So, good luck. I'm out for the day.
 

tindo

Sorceror
Code:
private static string CustomPath = null;

That's not gonna work. Point it to your client files, usually like C:\Program Files(x86)\Electronic Arts\Ultima Online
 
I changed it in the script like this



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 separate set of datafiles,
* change the 'CustomPath' value.
* Example:
* private static string CustomPath = @"C:\Program Files\Ultima Online";
*/
private static string CustomPath = "C:\Program Files\Electronic Arts\Ultima Online Classic";
/* 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
*/


and then I got this error back from it




RunUO - [www.runuo.com] Version 2.2, Build 4782.3756
Core: Running on .NET Framework Version 2.0.50727
Core: Optimizing for 2 processors
Scripts: Compiling C# scripts...failed (1 errors, 0 warnings)
Errors:
+ Misc/DataPath.cs:
CS1056: Line 16: Unexpected character '\'
CS1056: Line 16: Unexpected character '\'
CS1009: Line 16: Unrecognized escape sequence
CS1002: Line 16: ; expected
CS1002: Line 16: ; expected
CS1002: Line 16: ; expected
Scripts: One or more scripts failed to compile or no script files were found.
- Press return to exit, or R to try again.
Scripts: Compiling C# scripts...failed (1 errors, 0 warnings)
Errors:
+ Misc/DataPath.cs:
CS1009: Line 16: Unrecognized escape sequence
CS1009: Line 16: Unrecognized escape sequence
CS1009: Line 16: Unrecognized escape sequence
Scripts: One or more scripts failed to compile or no script files were found.
- Press return to exit, or R to try again.
 

tindo

Sorceror
You took out the @ symbol, it needs to be like it is in the example 2 lines above the change but with the correct path.
 
Top