Go Back   RunUO - Ultima Online Emulation > RunUO > FAQ Forum

FAQ Forum A place to find answers to the most frequently asked questions, and a place to post said answers. Do NOT use this forum to ask questions.

Reply
 
Thread Tools Display Modes
Old 06-16-2006, 09:26 AM   #1 (permalink)
Forum Novice
 
Join Date: Nov 2004
Posts: 149
Default 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.

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
To :
Code:
namespace Server.Commands
Second -

Change :
Code:
		public static void Initialize()
		{
			Server.Commands.Register( . . . );
                }
To :
Code:
		public static void Initialize()
		{
			CommandSystem.Register( . . . )
                }
Third-

You will also want to make sure that
Code:
using Server.Commands;
is at the top of the code since you need to make sure you're referenceing the correct places.

Last edited by Lifegranter; 06-16-2006 at 09:39 AM.
Lifegranter is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5