Lifegranter
Sorceror
RunUO 2.0 Updated Commands
First Off : This wouldn't have been written without the help of o0_Sithid_0o, Phantom, and Gotoxy since they help contribute to the modifications needed for Runuo2.0
Hi, hopfully you're reading this because you've noticed that RunUO 2.0 has some different methods of classifying commands.
The Most Common Script That I Believe Everyone Will Have Problems With Is CALT As It Is Most Servers.
If you are getting any of the following errors, you need to change some scripts that deal with your commands.
~OR~
Any script + this following error..
~OR~
You're Server Automatically Exits When You're Trying To Start It Up (it's not necessarily a problem with your command script, but it could be)
Here's How To Fix It :
There are 3 Main things you need to fix, depending on how you script is scripted.
First -
Change :
To :
Second -
Change :
To :
Third-
You will also want to make sure that
is at the top of the code since you need to make sure you're referenceing the correct places.
First Off : This wouldn't have been written without the help of o0_Sithid_0o, Phantom, and Gotoxy since they help contribute to the modifications needed for Runuo2.0
Hi, hopfully you're reading this because you've noticed that RunUO 2.0 has some different methods of classifying commands.
The Most Common Script That I Believe Everyone Will Have Problems With Is CALT As It Is Most Servers.
If you are getting any of the following errors, you need to change some scripts that deal with your commands.
Code:
RunUO - [www.runuo.com] Version 2.0, Build 2357.32527
Core: Running on .NET Framework Version 2.0.50727
Core: Optimizing for 2 processors
Scripts: Compiling C# scripts...failed (12 errors, 0 warnings)
Errors:
Error:
System.ArgumentException: The path is not of a legal form.
at System.IO.Path.NormalizePathFast(String path, Boolean fullCheck)
at System.IO.Path.GetFullPathInternal(String path)
at System.IO.Path.GetFullPath(String path)
at Server.ScriptCompiler.Display(CompilerResults results)
at Server.ScriptCompiler.CompileCSScripts(Boolean debug, Assembly& assembly)
at Server.ScriptCompiler.Compile(Boolean debug)
at Server.Core.Main(String[] args)
This exception is fatal, press return to exit
~OR~
Any script + this following error..
Code:
S0246: Line 19: The type or namespace name 'CommandEventArgs' could not be
found (are you missing a using directive or an assembly reference?)
~OR~
You're Server Automatically Exits When You're Trying To Start It Up (it's not necessarily a problem with your command script, but it could be)
Here's How To Fix It :
There are 3 Main things you need to fix, depending on how you script is scripted.
First -
Change :
Code:
namespace Server.Scripts.Commands
Code:
namespace Server.Commands
Second -
Change :
Code:
public static void Initialize()
{
Server.Commands.Register( . . . );
}
Code:
public static void Initialize()
{
CommandSystem.Register( . . . )
}
Third-
You will also want to make sure that
Code:
using Server.Commands;