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!

How to fix the GetCPA/SetDirect error

Azden777

Page
Hello.. Some of you may have been wondering how to fix this little annoying-yet simple issue:

Code:
RunUO - [www.runuo.com] Version 2.0, Build 2861.21146
Core: Running on .NET Framework Version 2.0.50727
Scripts: Compiling C# scripts...failed (4 errors, 0 warnings)
Errors:
+ Commands/Properties.cs:
    CS0234: Line 713: The type or namespace name 'GetCPA' does not exist in the
namespace 'Server.Properties' (are you missing an assembly reference?)
+ Gumps/Properties/SetListOptionGump.cs:
    CS0234: Line 171: The type or namespace name 'SetDirect' does not exist in t
he namespace 'Server.Properties' (are you missing an assembly reference?)
+ Gumps/Properties/SetCustomEnumGump.cs:
    CS0234: Line 32: The type or namespace name 'SetDirect' does not exist in th
e namespace 'Server.Properties' (are you missing an assembly reference?)
    CS0234: Line 34: The type or namespace name 'SetDirect' does not exist in th
e namespace 'Server.Properties' (are you missing an assembly reference?)
+ Gumps/AdminGump.cs:
    CS0234: Line 2587: The type or namespace name 'SetValue' does not exist in t
he namespace 'Server.Properties' (are you missing an assembly reference?)
    CS0234: Line 2593: The type or namespace name 'SetValue' does not exist in t
he namespace 'Server.Properties' (are you missing an assembly reference?)
    CS0234: Line 2599: The type or namespace name 'SetValue' does not exist in t
he namespace 'Server.Properties' (are you missing an assembly reference?)
    CS0234: Line 2605: The type or namespace name 'SetValue' does not exist in t
he namespace 'Server.Properties' (are you missing an assembly reference?)
    CS0234: Line 2611: The type or namespace name 'SetValue' does not exist in t
he namespace 'Server.Properties' (are you missing an assembly reference?)
    CS0234: Line 2617: The type or namespace name 'SetValue' does not exist in t
he namespace 'Server.Properties' (are you missing an assembly reference?)
Scripts: One or more scripts failed to compile or no script files were found.
- Press return to exit, or R to try again.

This here's fix was simple. It seems I added the source files to RunUO, and so I built the "Scripts" and "Server" folder.

Now.. Scripts happened made some extra folders!

So simply delete anything in your Scripts folder that shouldn't be there, for me it was:

-Scripts/bin
and
-Scripts/obj

Have fun! :D

Anyway Issues, just post here, I'll try to help. Expert C# Programmer, but still learning RunUO.
 
Top