So I was trying to enable a few skills that were disabled. (Meditation, Remove Traps and Stealth). It looked simple enough. I looked at the corresponding skill.cs file and saw where the author commented out the skill with /* .....*/ and I just remove those. Seems like the codes were pretty left intact.

I also modified a couple of custom scripts related to treasuremods. But when I went to restart the server i got tons of warnings for files that inever touched as well as 1 error for a file that I am unable to find. Didn't see any errors for the files that I made changes to. I tried to back track and undo any changes that I made in hope of resolving the error but to no avail.

Below is the output from the console.

Hopefully someone can point me in the right direction. Please let me know if you need me to share any files.

I put a lot of work in adding vendor boxes with loot and making them lock pickable. I'm hoping to not have to re-do the work.

Not sure where the file AssemblyAttributes.cs is located.

Thanks

RunUO - [www.runuo.com] Version 2.2, Build 7933.1602
Core: Running on .NET Framework Version 4.0.30319
Core: Optimizing for 4 processors
Scripts: Compiling C# scripts...failed (1 errors, 45 warnings)
Warnings:
+ Items/Weapons/Staves/BaseStaff.cs:
CS1692: Line 62: Invalid number
CS1692: Line 64: Invalid number
CS0108: Line 63: 'Server.Items.BaseStaff.ConsumeCharge(Server.Mobile)' hides inherited member 'Server.Items.BaseWeapon.ConsumeCharge(Server.Mobile)'. Use the new keyword if hiding was intended.
+ Custom/NewCraftSystem/BlacksmithMenu.cs:
CS0028: Line 26: 'Server.Menus.ItemLists.BlacksmithMenu.Main(Server.Mobile)' has the wrong signature to be an entry point
CS0219: Line 33: The variable 'resHue' is assigned but its value is never used
CS0219: Line 34: The variable 'maxAmount' is assigned but its value is never used
CS0219: Line 35: The variable 'message' is assigned but its value is never used
CS0219: Line 93: The variable 'resHue' is assigned but its value is never used
CS0219: Line 94: The variable 'maxAmount' is assigned but its value is never used
CS0219: Line 95: The variable 'message' is assigned but its value is never used
CS0168: Line 145: The variable 'craftResource' is declared but never used
CS0219: Line 146: The variable 'resHue' is assigned but its value is never used
CS0219: Line 147: The variable 'maxAmount' is assigned but its value is never used
CS0219: Line 148: The variable 'message' is assigned but its value is never used
CS0219: Line 212: The variable 'resHue' is assigned but its value is never used
CS0219: Line 213: The variable 'maxAmount' is assigned but its value is never used
CS0219: Line 214: The variable 'message' is assigned but its value is never used
CS0219: Line 260: The variable 'resHue' is assigned but its value is never used
CS0219: Line 261: The variable 'maxAmount' is assigned but its value is never used
CS0219: Line 262: The variable 'message' is assigned but its value is never used
CS0219: Line 313: The variable 'resHue' is assigned but its value is never used
CS0219: Line 314: The variable 'maxAmount' is assigned but its value is never used
CS0219: Line 315: The variable 'message' is assigned but its value is never used
CS0219: Line 366: The variable 'resHue' is assigned but its value is never used
CS0219: Line 367: The variable 'maxAmount' is assigned but its value is never used
CS0219: Line 368: The variable 'message' is assigned but its value is never used
CS0168: Line 416: The variable 'craftResource' is declared but never used
CS0219: Line 417: The variable 'resHue' is assigned but its value is never used
CS0219: Line 418: The variable 'maxAmount' is assigned but its value is never used
CS0219: Line 419: The variable 'message' is assigned but its value is never used
CS0219: Line 486: The variable 'resHue' is assigned but its value is never used
CS0219: Line 487: The variable 'maxAmount' is assigned but its value is never used
CS0219: Line 488: The variable 'message' is assigned but its value is never used
CS0219: Line 540: The variable 'resHue' is assigned but its value is never used
CS0219: Line 541: The variable 'maxAmount' is assigned but its value is never used
CS0219: Line 542: The variable 'message' is assigned but its value is never used
CS0219: Line 591: The variable 'resHue' is assigned but its value is never used
CS0219: Line 592: The variable 'maxAmount' is assigned but its value is never used
CS0219: Line 593: The variable 'message' is assigned but its value is never used
CS0219: Line 646: The variable 'resHue' is assigned but its value is never used
CS0219: Line 647: The variable 'maxAmount' is assigned but its value is never used
CS0219: Line 648: The variable 'message' is assigned but its value is never used
+ Custom/NewCraftSystem/BowcraftFletchingMenu.cs:
CS0028: Line 26: 'Server.Menus.ItemLists.BowFletchingMenu.Main(Server.Mobile)' has the wrong signature to be an entry point
CS0219: Line 105: The variable 'ResAmount' is assigned but its value is never used
+ Custom/NewCraftSystem/CarpentryMenu.cs:
CS0028: Line 25: 'Server.Menus.ItemLists.CarpentryMenu.Main(Server.Mobile)' has the wrong signature to be an entry point
CS0219: Line 34: The variable 'Misc' is assigned but its value is never used
CS0219: Line 36: The variable 'resHue' is assigned but its value is never used
CS0219: Line 37: The variable 'maxAmount' is assigned but its value is never used
CS0219: Line 38: The variable 'message' is assigned but its value is never used
CS0219: Line 39: The variable 'allRequiredSkills' is assigned but its value is never used
+ Custom/NewCraftSystem/CartographyMenu.cs:
CS0028: Line 26: 'Server.Menus.ItemLists.CartographyMenu.Main(Server.Mobile)' has the wrong signature to be an entry point
CS0168: Line 35: The variable 'ResAmount' is declared but never used
+ Custom/NewCraftSystem/InscriptionMenu.cs:
CS0028: Line 52: 'Server.Menus.ItemLists.InscriptionMenu.Main(Server.Mobile)' has the wrong signature to be an entry point
CS0219: Line 59: The variable 'hasSpell' is assigned but its value is never used
CS0219: Line 170: The variable 'reg' is assigned but its value is never used
CS0219: Line 226: The variable 'reg' is assigned but its value is never used
CS0219: Line 281: The variable 'reg' is assigned but its value is never used
CS0219: Line 338: The variable 'reg' is assigned but its value is never used
CS0219: Line 394: The variable 'reg' is assigned but its value is never used
CS0219: Line 453: The variable 'reg' is assigned but its value is never used
CS0219: Line 509: The variable 'reg' is assigned but its value is never used
CS0219: Line 567: The variable 'reg' is assigned but its value is never used
+ Custom/NewCraftSystem/TailoringMenu.cs:
CS0028: Line 25: 'Server.Menus.ItemLists.TailoringMenu.Main(Server.Mobile)' has the wrong signature to be an entry point
CS0168: Line 74: The variable 'ResAmount' is declared but never used
CS0168: Line 120: The variable 'ResAmount' is declared but never used
CS0168: Line 164: The variable 'ResAmount' is declared but never used
CS0168: Line 209: The variable 'ResAmount' is declared but never used
CS0168: Line 295: The variable 'ResAmount' is declared but never used
CS0168: Line 338: The variable 'ResAmount' is declared but never used
CS0168: Line 387: The variable 'ResAmount' is declared but never used
CS0168: Line 436: The variable 'ResAmount' is declared but never used
+ Custom/PolymorphMenu.cs:
CS0028: Line 59: 'Server.Menus.ItemLists.PolymorphMenu.Main()' has the wrong signature to be an entry point
+ Items/Weapons/BaseWeapon.cs:
CS0114: Line 43: 'Server.Items.BaseWeapon.AsciiName' hides inherited member 'Server.Item.AsciiName'. To make the current member override that implementation, add the override keyword. Otherwise add the new keyword.
CS0162: Line 948: Unreachable code detected
CS0219: Line 1034: The variable 'canSwing' is assigned but its value is never used
+ Items/Food/Cooking.cs:
CS0108: Line 78: 'Server.Items.Dough.InternalTarget' hides inherited member 'Server.Items.CookableFood.InternalTarget'. Use the new keyword if hiding was intended.
CS0108: Line 260: 'Server.Items.SweetDough.InternalTarget' hides inherited member 'Server.Items.CookableFood.InternalTarget'. Use the new keyword if hiding was intended.
+ Items/Jewels/BaseJewel.cs:
CS0114: Line 48: 'Server.Items.BaseJewel.AsciiName' hides inherited member 'Server.Item.AsciiName'. To make the current member override that implementation, add the override keyword. Otherwise add the new keyword.
+ Items/Weapons/Staves/GnarledStaff.cs:
CS0114: Line 68: 'Server.Items.GnarledStaff.OnWandUse(Server.Mobile)' hides inherited member 'Server.Items.BaseStaff.OnWandUse(Server.Mobile)'. To make the current member override that implementation, add the override keyword. Otherwise add the new keyword.
+ Items/Special/Solen Items/BraceletOfBinding.cs:
CS0108: Line 25: 'Server.Items.BraceletOfBinding.Charges' hides inherited member 'Server.Items.BaseJewel.Charges'. Use the new keyword if hiding was intended.
+ Items/Wands/BaseWand.cs:
CS0108: Line 69: 'Server.Items.BaseWand.Effect' hides inherited member 'Server.Items.BaseWeapon.Effect'. Use the new keyword if hiding was intended.
CS0108: Line 82: 'Server.Items.BaseWand.ConsumeCharge(Server.Mobile)' hides inherited member 'Server.Items.BaseWeapon.ConsumeCharge(Server.Mobile)'. Use the new keyword if hiding was intended.
CS0108: Line 158: 'Server.Items.BaseWand.Cast(Server.Spells.Spell)' hides inherited member 'Server.Items.BaseWeapon.Cast(Server.Spells.Spell)'. Use the new keyword if hiding was intended.
+ Skills/Tracking.cs:
CS0028: Line 95: 'Server.SkillHandlers.TrackWhatMenu.Main()' has the wrong signature to be an entry point
CS0028: Line 126: 'Server.SkillHandlers.TrackWhoMenu.Main(System.Collections.Generic.List<Server.Mobile>, Server.Mobile)' has the wrong signature to be an entry point
+ Engines/AI/Creature/BaseCreature.cs:
CS0429: Line 300: Unreachable expression code detected
CS0162: Line 1355: Unreachable code detected
+ Custom/NewCraftSystem/AlchemyMenu.cs:
CS0168: Line 34: The variable 'ResAmount' is declared but never used
+ Custom/NewCraftSystem/TinkingMenu.cs:
CS0168: Line 34: The variable 'ResAmount' is declared but never used
CS0168: Line 78: The variable 'ResAmount' is declared but never used
+ Custom/NPCSpeech/GetJobs.cs:
CS0184: Line 125: The given expression is never of the provided ('Server.Mobiles.TownCrier') type
+ Custom/CC2.0.cs:
CS0168: Line 45: The variable 'e' is declared but never used
+ Multis/BaseHouse.cs:
CS0162: Line 170: Unreachable code detected
CS0219: Line 3560: The variable 'retainDeedHue' is assigned but its value is never used
+ Custom/RazorNegotiator.cs:
CS0162: Line 95: Unreachable code detected
CS0162: Line 155: Unreachable code detected
+ Engines/AI/AI/MageAI.cs:
CS0162: Line 99: Unreachable code detected
CS0162: Line 257: Unreachable code detected
CS0162: Line 277: Unreachable code detected
+ Engines/Craft/DefCartography.cs:
CS0162: Line 65: Unreachable code detected
CS0162: Line 75: Unreachable code detected
+ Engines/Craft/DefTinkering.cs:
CS0184: Line 100: The given expression is never of the provided ('Server.Engines.Craft.DartTrapCraft') type
CS0184: Line 100: The given expression is never of the provided ('Server.Engines.Craft.ExplosionTrapCraft') type
CS0184: Line 100: The given expression is never of the provided ('Server.Engines.Craft.PoisonTrapCraft') type
+ Engines/Party/PartyCommands.cs:
CS0162: Line 19: Unreachable code detected
+ Items/Weapons/Ranged/BaseRanged.cs:
CS0219: Line 44: The variable 'canSwing' is assigned but its value is never used
+ Engines/Virtues/VirtueGump.cs:
CS0162: Line 71: Unreachable code detected
+ Items/Construction/Misc/BaseStationary/BaseStationary.cs:
CS0162: Line 159: Unreachable code detected
CS0162: Line 160: Unreachable code detected
CS0162: Line 161: Unreachable code detected
CS0162: Line 162: Unreachable code detected
CS0162: Line 163: Unreachable code detected
CS0162: Line 164: Unreachable code detected
CS0162: Line 165: Unreachable code detected
CS0162: Line 166: Unreachable code detected
CS0162: Line 167: Unreachable code detected
CS0162: Line 168: Unreachable code detected
CS0162: Line 169: Unreachable code detected
CS0162: Line 170: Unreachable code detected
CS0162: Line 171: Unreachable code detected
CS0162: Line 172: Unreachable code detected
CS0162: Line 173: Unreachable code detected
CS0162: Line 174: Unreachable code detected
CS0162: Line 175: Unreachable code detected
CS0162: Line 176: Unreachable code detected
CS0162: Line 177: Unreachable code detected
CS0162: Line 178: Unreachable code detected
CS0162: Line 179: Unreachable code detected
CS0162: Line 180: Unreachable code detected
+ Items/Misc/InteriorDecorator.cs:
CS0219: Line 170: The variable 'isDecorableComponent' is assigned but its value is never used
+ Items/Skill Items/Carpenter Items/TaxidermyKit.cs:
CS0252: Line 105: Possible unintended reference comparison; to get a value comparison, cast the left hand side to type 'System.Type'
+ Items/Skill Items/Magical/Misc/RecallRune.cs:
CS0472: Line 62: The result of the expression is always 'false' since a value of type 'bool' is never equal to 'null' of type 'bool?'
CS0219: Line 302: The variable 'number' is assigned but its value is never used
+ Items/Skill Items/Misc/Bandage.cs:
CS0219: Line 211: The variable 'patientNumber' is assigned but its value is never used
+ Items/Weapons/Abilities/WeaponAbility.cs:
CS0162: Line 90: Unreachable code detected
CS0162: Line 143: Unreachable code detected
+ Items/Weapons/Abilities/DoubleStrike.cs:
CS0162: Line 23: Unreachable code detected
+ Items/Weapons/Abilities/FrenziedWhirlwind.cs:
CS0162: Line 39: Unreachable code detected
+ Items/Weapons/Abilities/RidingSwipe.cs:
CS0162: Line 46: Unreachable code detected
+ Misc/Titles.cs:
CS0162: Line 18: Unreachable code detected
+ Mobiles/Vendors/PlayerVendor.cs:
CS0162: Line 451: Unreachable code detected
CS0162: Line 582: Unreachable code detected
+ Mobiles/PlayerMobile.cs:
CS0162: Line 3981: Unreachable code detected
+ Multis/Boats/BaseBoat.cs:
CS0162: Line 125: Unreachable code detected
+ Multis/Camps/WarlordsKeep.cs:
CS0168: Line 25: The variable 'bc' is declared but never used
+ Skills/RemoveTrap.cs:
CS0162: Line 20: Unreachable code detected
+ Skills/Stealth.cs:
CS0162: Line 62: Unreachable code detected
+ Spells/Base/SpellHelper.cs:
CS0162: Line 823: Unreachable code detected
Errors:
+ obj/x86/Debug/.NETFramework,Version=v4.0.AssemblyAttributes.cs:
CS0579: Line 4: Duplicate 'global::System.Runtime.Versioning.TargetFrameworkAttribute' attribute
Scripts: One or more scripts failed to compile or no script files were found.
- Press return to exit, or R to try again.
Post automatically merged:

This is what i am getting in MS Visual Studio when i tried to debug

Severity Code Description Project File Line Suppression State
Warning Could not copy "obj\x86\Debug\Server.exe" to "..\Server.exe". Beginning retry 2 in 1000ms. The process cannot access the file '..\Server.exe' because it is being used by another process. The file is locked by: "RunUO Server Core (15084)" Server
Post automatically merged:

I tried shutting down my computer and restarting but still getting the same error.
 
Last edited:
@PyrO Thanks for the reply. I just tried it and still got the same error. Luckily, it wasn't to hard to restore. I extract the server/script into a new folder, copied over cs files that i knew the changes were good, copied over some data files (maps deco spawn etc) and finally copied over the save folder. All the spawns and deco came over. So it wasn't too bad.
 
Back