Go Back   RunUO - Ultima Online Emulation > RunUO > Server Support on Windows

Server Support on Windows Get (and give) support on general questions related to the RunUO server itself.

Reply
 
Thread Tools Display Modes
Old 06-26-2005, 07:14 AM   #1 (permalink)
Forum Expert
 
Join Date: May 2005
Location: United Kingdom
Age: 16
Posts: 255
Send a message via MSN to Swerve_jnr
Default Can't Compile

right well a guy has been helping me i have got rid of about 300 errors lol and now i've got this one that he doesn't have a clue on what to do.
Code:
RunUO - [www.runuo.com] Version 1.0.0, Build 36918
Scripts: Compiling C# scripts...failed (2 errors, 0 warnings)
 - Error: Scripts\my custom\Modified2\DefTinkering.cs: CS0246: (line 222, column
 22) The type or namespace name 'Scales' could not be found (are you missing a u
sing directive or an assembly reference?)
 - Error: Scripts\my custom\Modified2\DefTinkering.cs: CS0246: (line 71, column
35) The type or namespace name 'Scales' could not be found (are you missing a us
ing directive or 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.
that is the last error
hope you can help
thankyou
Swerve_jnr is offline   Reply With Quote
Old 06-26-2005, 07:21 AM   #2 (permalink)
Forum Expert
 
icemallet's Avatar
 
Join Date: Aug 2003
Location: Canada
Posts: 816
Send a message via Skype™ to icemallet
Default

Read the error carefully, It tells you straight forward whats wrong:
Quote:
The type or namespace name 'Scales' could not be found
icemallet is offline   Reply With Quote
Old 06-26-2005, 07:24 AM   #3 (permalink)
Forum Expert
 
Join Date: Aug 2003
Age: 25
Posts: 444
Default

looks like you deleted the wrong scales file.
__________________

blackgriffin is offline   Reply With Quote
Old 06-26-2005, 07:25 AM   #4 (permalink)
Forum Expert
 
Join Date: May 2005
Location: United Kingdom
Age: 16
Posts: 255
Send a message via MSN to Swerve_jnr
Default

but what do i do to fix it?
Swerve_jnr is offline   Reply With Quote
Old 06-26-2005, 07:26 AM   #5 (permalink)
Forum Expert
 
Join Date: Aug 2003
Age: 25
Posts: 444
Default

add it back in silly.
__________________

blackgriffin is offline   Reply With Quote
Old 06-26-2005, 07:27 AM   #6 (permalink)
Master of the Internet
 
Join Date: Aug 2003
Posts: 5,688
Default

At first glance it would appear that you are missing the script defining the Scales class which is an item defined in Items/Misc/Scales.cs

(edit)

Quote:
Originally Posted by blackgriffin
add it back in silly.
hehe, yeah, just as she said
__________________
The first line of the first rule in the forum rules and guidelines "Be respectful of others. "

For questions, information, and support for XmlSpawner and its addons, visit the
XmlSpawner Support Forum
ArteGordon is offline   Reply With Quote
Old 06-26-2005, 07:27 AM   #7 (permalink)
Forum Expert
 
Join Date: May 2005
Location: United Kingdom
Age: 16
Posts: 255
Send a message via MSN to Swerve_jnr
Default

it's in the server though
Swerve_jnr is offline   Reply With Quote
Old 06-26-2005, 07:28 AM   #8 (permalink)
Forum Expert
 
Join Date: May 2005
Location: United Kingdom
Age: 16
Posts: 255
Send a message via MSN to Swerve_jnr
Default

so basdically
i need to get a new copy of scales?
Swerve_jnr is offline   Reply With Quote
Old 06-26-2005, 07:34 AM   #9 (permalink)
Forum Expert
 
Join Date: Aug 2003
Age: 25
Posts: 444
Default

There's two scales files that need to be in the server. The one from your blacksmithy directory should be backedup/removed/moved out of your runuo directory. It's replaced by the one in your modified 2 directory. The one that arte pointed out needs to be exactly where it is. LOL
__________________

blackgriffin is offline   Reply With Quote
Old 06-26-2005, 08:29 AM   #10 (permalink)
Forum Expert
 
Join Date: May 2005
Location: United Kingdom
Age: 16
Posts: 255
Send a message via MSN to Swerve_jnr
Default

i've added new files and stuff and this is what i get

Code:
 - Error: Scripts\Scales.cs: CS0101: (line 7, column 15) The namespace 'Server.I
tems' already contains a definition for 'Scales'
Swerve_jnr is offline   Reply With Quote
Old 06-26-2005, 08:31 AM   #11 (permalink)
Forum Expert
 
Join Date: May 2005
Location: United Kingdom
Age: 16
Posts: 255
Send a message via MSN to Swerve_jnr
Default

i'm realy stuck please help quick
Swerve_jnr is offline   Reply With Quote
Old 06-26-2005, 08:40 AM   #12 (permalink)
Master of the Internet
 
Join Date: Aug 2003
Posts: 5,688
Default

now you have a duplicate file. Just get rid of the duplicate.
__________________
The first line of the first rule in the forum rules and guidelines "Be respectful of others. "

For questions, information, and support for XmlSpawner and its addons, visit the
XmlSpawner Support Forum
ArteGordon is offline   Reply With Quote
Old 06-26-2005, 01:28 PM   #13 (permalink)
Forum Expert
 
Join Date: May 2005
Location: United Kingdom
Age: 16
Posts: 255
Send a message via MSN to Swerve_jnr
Default

as soon as i get rid of it this is what happerns:

Code:
RunUO - [www.runuo.com] Version 1.0.0, Build 36918
Scripts: Compiling C# scripts...failed (17 errors, 0 warnings)
 - Error: Scripts\my custom\Modified2\BaseCreature.cs: CS0246: (line 1086, colum
n 51) The type or namespace name 'CopperScales' could not be found (are you miss
ing a using directive or an assembly reference?)
 - Error: Scripts\my custom\Modified2\BaseCreature.cs: CS0246: (line 1087, colum
n 51) The type or namespace name 'SilverScales' could not be found (are you miss
ing a using directive or an assembly reference?)
 - Error: Scripts\my custom\Modified2\BaseCreature.cs: CS0246: (line 1088, colum
n 49) The type or namespace name 'GoldScales' could not be found (are you missin
g a using directive or an assembly reference?)
 - Error: Scripts\my custom\Modified2\BaseCreature.cs: CS0246: (line 1099, colum
n 29) The type or namespace name 'CopperScales' could not be found (are you miss
ing a using directive or an assembly reference?)
 - Error: Scripts\my custom\Modified2\BaseCreature.cs: CS0246: (line 1100, colum
n 29) The type or namespace name 'SilverScales' could not be found (are you miss
ing a using directive or an assembly reference?)
 - Error: Scripts\my custom\Modified2\BaseCreature.cs: CS0246: (line 1101, colum
n 29) The type or namespace name 'GoldScales' could not be found (are you missin
g a using directive or an assembly reference?)
 - Error: Scripts\my custom\Modified\Spell.cs: CS0246: (line 178, column 5) The
type or namespace name 'SpellCastersKey' could not be found (are you missing a u
sing directive or an assembly reference?)
 - Error: Scripts\my custom\Modified\Spell.cs: CS0103: (line 179, column 10) The
 name 'sck' does not exist in the class or namespace 'Server.Spells.Spell'
 - Error: Scripts\my custom\Modified\OreInfo.cs: CS0246: (line 729, column 126)
The type or namespace name 'CopperScales' could not be found (are you missing a
using directive or an assembly reference?)
 - Error: Scripts\my custom\Modified\OreInfo.cs: CS0246: (line 730, column 126)
The type or namespace name 'SilverScales' could not be found (are you missing a
using directive or an assembly reference?)
 - Error: Scripts\my custom\Modified\OreInfo.cs: CS0246: (line 731, column 121)
The type or namespace name 'GoldScales' could not be found (are you missing a us
ing directive or an assembly reference?)
 - Error: Scripts\my custom\Modified2\DefBlacksmithy.cs: CS0246: (line 449, colu
mn 24) The type or namespace name 'CopperScales' could not be found (are you mis
sing a using directive or an assembly reference?)
 - Error: Scripts\my custom\Modified2\DefBlacksmithy.cs: CS0246: (line 450, colu
mn 24) The type or namespace name 'SilverScales' could not be found (are you mis
sing a using directive or an assembly reference?)
 - Error: Scripts\my custom\Modified2\DefBlacksmithy.cs: CS0246: (line 451, colu
mn 24) The type or namespace name 'GoldScales' could not be found (are you missi
ng a using directive or an assembly reference?)
 - Error: Scripts\my custom\New\LeatherElementals.cs: CS0246: (line 548, column
18) The type or namespace name 'GoldScales' could not be found (are you missing
a using directive or an assembly reference?)
 - Error: Scripts\my custom\New\LeatherElementals.cs: CS0246: (line 620, column
18) The type or namespace name 'GoldScales' could not be found (are you missing
a using directive or an assembly reference?)
 - Error: Scripts\my custom\New\LeatherElementals.cs: CS0246: (line 692, column
18) The type or namespace name 'GoldScales' could not be found (are you missing
a using directive or 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.
Swerve_jnr is offline   Reply With Quote
Old 06-26-2005, 01:46 PM   #14 (permalink)
 
Join Date: May 2005
Age: 19
Posts: 161
Send a message via AIM to Kireko
Default =]

It is stating that you have more than one copy in this error:

Quote:
- Error: Scripts\Scales.cs: CS0101: (line 7, column 15) The namespace 'Server.I
tems' already contains a definition for 'Scales'
You deleted ONE of the two and got the 14 errors (or however many there where)
Go to your main file "RunUO 1.0" and do a search for the file it states. ( "Scales" )
Move one of the files out of the folder (to desktop maybe...) and recompile it. If that dosen't work put that one BACK WHERE YOU GOT IT, and move the second one out (again to desktop maybe) and compile it then.

This should work......
Kireko is offline   Reply With Quote
Old 06-26-2005, 01:52 PM   #15 (permalink)
Forum Expert
 
Join Date: May 2005
Location: United Kingdom
Age: 16
Posts: 255
Send a message via MSN to Swerve_jnr
Default

ok thx i'll give it ago. finaly sum1 who seems to understand
Swerve_jnr is offline   Reply With Quote
Old 06-26-2005, 02:00 PM   #16 (permalink)
 
Join Date: May 2005
Age: 19
Posts: 161
Send a message via AIM to Kireko
Default Oh Trust Me I Do....

Oh yea trust me I do..... Inserting MANY scripts and gettting that error, you tend to NEVER forget to go and search for it.....
Kireko 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