|
||
|
|||||||
| Server Support on Windows Get (and give) support on general questions related to the RunUO server itself. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
I seem to be having an usually high number of errors with this upgrade and as difficult of a time fixing them.
Here's a excerpt: [code:1] Scripts: Compiling C# scripts...failed (75 errors, 0 warnings) - Error: Scripts\Custom\Modified\Multis\StaticHouse\StaticH ouse.cs: CS0246: (li ne 890, column 29) The type or namespace name 'StaticStrongBox' could not be fou nd (are you missing a using directive or an assembly reference?) - Error: Scripts\Custom\Modified\Multis\StaticHouse\StaticH ouse.cs: CS0246: (li ne 897, column 4) The type or namespace name 'StaticStrongBox' could not be foun d (are you missing a using directive or an assembly reference?) - Error: Scripts\Custom\Modified\Multis\StaticHouse\StaticH ouse.cs: CS0246: (li ne 898, column 4) The type or namespace name 'sb' could not be found (are you mi ssing a using directive or an assembly reference?) - Error: Scripts\Custom\Modified\Multis\StaticHouse\StaticH ouse.cs: CS0103: (li ne 899, column 41) The name 'sb' does not exist in the class or namespace 'Serve r.StaticHousing.StaticHouseSign' - Error: Scripts\Custom\Modified\Multis\StaticHouse\StaticH ouse.cs: CS0246: (li ne 900, column 4) The type or namespace name 'sb' could not be found (are you mi ssing a using directive or an assembly reference?) - Error: Scripts\Custom\New\Items\Containers\PuzzleChest.cs : CS1501: (line 72, column 8) No overload for method 'Container' takes '4' arguments - Error: Scripts\Custom\New\Items\Containers\TreasureChestL evel1.cs: CS0200: (l ine 48, column 21) Property or indexer 'Server.Items.Container.DefaultDropSound' cannot be assigned to -- it is read only - Error: Scripts\Custom\New\Items\Containers\TreasureChestL evel1.cs: CS0200: (l ine 54, column 21) Property or indexer 'Server.Items.Container.DefaultDropSound' cannot be assigned to -- it is read only - Error: Scripts\Custom\New\Items\Containers\TreasureChestL evel1.cs: CS0200: (l ine 60, column 21) Property or indexer 'Server.Items.Container.DefaultDropSound' cannot be assigned to -- it is read only - Error: Scripts\Custom\New\Items\Containers\TreasureChestL evel1.cs: CS0200: (l ine 66, column 21) Property or indexer 'Server.Items.Container.DefaultDropSound' cannot be assigned to -- it is read only - Error: Scripts\Custom\New\Items\Containers\TreasureChestL evel1.cs: CS0200: (l ine 72, column 21) Property or indexer 'Server.Items.Container.DefaultDropSound' cannot be assigned to -- it is read only - Error: Scripts\Custom\New\Items\Containers\TreasureChestL evel1.cs: CS0200: (l ine 78, column 21) Property or indexer 'Server.Items.Container.DefaultDropSound' cannot be assigned to -- it is read only - Error: Scripts\Custom\New\Items\Containers\TreasureChestL evel1.cs: CS1501: (l ine 83, column 10) No overload for method 'LockableContainer' takes '4' argument s - Error: Scripts\Custom\New\Items\Containers\TreasureChestL evel2.cs: CS0200: (l ine 48, column 21) Property or indexer 'Server.Items.Container.DefaultDropSound' cannot be assigned to -- it is read only - Error: Scripts\Custom\New\Items\Containers\TreasureChestL evel2.cs: CS0200: (l ine 54, column 21) Property or indexer 'Server.Items.Container.DefaultDropSound' cannot be assigned to -- it is read only - Error: Scripts\Custom\New\Items\Containers\TreasureChestL evel2.cs: CS0200: (l ine 60, column 21) Property or indexer 'Server.Items.Container.DefaultDropSound' cannot be assigned to -- it is read only - Error: Scripts\Custom\New\Items\Containers\TreasureChestL evel2.cs: CS0200: (l ine 66, column 21) Property or indexer 'Server.Items.Container.DefaultDropSound' cannot be assigned to -- it is read only - Error: Scripts\Custom\New\Items\Containers\TreasureChestL evel2.cs: CS0200: (l ine 72, column 21) Property or indexer 'Server.Items.Container.DefaultDropSound' cannot be assigned to -- it is read only - Error: Scripts\Custom\New\Items\Containers\TreasureChestL evel2.cs: CS0200: (l ine 78, column 21) Property or indexer 'Server.Items.Container.DefaultDropSound' cannot be assigned to -- it is read only - Error: Scripts\Custom\New\Items\Containers\TreasureChestL evel2.cs: CS1501: (l ine 83, column 10) No overload for method 'LockableContainer' takes '4' argument s - Error: Scripts\Custom\New\Items\Containers\TreasureChestL evel3.cs: CS0200: (l ine 48, column 21) Property or indexer 'Server.Items.Container.DefaultDropSound' cannot be assigned to -- it is read only - Error: Scripts\Custom\New\Items\Containers\TreasureChestL evel3.cs: CS0200: (l ine 54, column 21) Property or indexer 'Server.Items.Container.DefaultDropSound' cannot be assigned to -- it is read only - Error: Scripts\Custom\New\Items\Containers\TreasureChestL evel3.cs: CS0200: (l ine 60, column 21) Property or indexer 'Server.Items.Container.DefaultDropSound' cannot be assigned to -- it is read only - Error: Scripts\Custom\New\Items\Containers\TreasureChestL evel3.cs: CS0200: (l ine 66, column 21) Property or indexer 'Server.Items.Container.DefaultDropSound' cannot be assigned to -- it is read only - Error: Scripts\Custom\New\Items\Containers\TreasureChestL evel3.cs: CS0200: (l ine 72, column 21) Property or indexer 'Server.Items.Container.DefaultDropSound' cannot be assigned to -- it is read only - Error: Scripts\Custom\New\Items\Containers\TreasureChestL evel3.cs: CS0200: (l ine 78, column 21) Property or indexer 'Server.Items.Container.DefaultDropSound' cannot be assigned to -- it is read only - Error: Scripts\Custom\New\Items\Containers\TreasureChestL evel3.cs: CS1501: (l ine 83, column 10) No overload for method 'LockableContainer' takes '4' argument s - Error: Scripts\Custom\New\Items\Containers\TreasureChestL evel4.cs: CS0200: (l ine 48, column 21) Property or indexer 'Server.Items.Container.DefaultDropSound' cannot be assigned to -- it is read only - Error: Scripts\Custom\New\Items\Containers\TreasureChestL evel4.cs: CS0200: (l ine 54, column 21) Property or indexer 'Server.Items.Container.DefaultDropSound' cannot be assigned to -- it is read only - Error: Scripts\Custom\New\Items\Containers\TreasureChestL evel4.cs: CS0200: (l ine 60, column 21) Property or indexer 'Server.Items.Container.DefaultDropSound' cannot be assigned to -- it is read only - Error: Scripts\Custom\New\Items\Containers\TreasureChestL evel4.cs: CS0200: (l ine 66, column 21) Property or indexer 'Server.Items.Container.DefaultDropSound' cannot be assigned to -- it is read only - Error: Scripts\Custom\New\Items\Containers\TreasureChestL evel4.cs: CS0200: (l ine 72, column 21) Property or indexer 'Server.Items.Container.DefaultDropSound' cannot be assigned to -- it is read only - Error: Scripts\Custom\New\Items\Containers\TreasureChestL evel4.cs: CS0200: (l ine 78, column 21) Property or indexer 'Server.Items.Container.DefaultDropSound' cannot be assigned to -- it is read only - Error: Scripts\Custom\New\Items\Containers\TreasureChestL evel4.cs: CS1501: (l ine 83, column 10) No overload for method 'LockableContainer' takes '4' argument s - Error: Scripts\Custom\New\Items\Containers\TreasureChestL evel5.cs: CS0200: (l ine 48, column 21) Property or indexer 'Server.Items.Container.DefaultDropSound' cannot be assigned to -- it is read only - Error: Scripts\Custom\New\Items\Containers\TreasureChestL evel5.cs: CS0200: (l ine 54, column 21) Property or indexer 'Server.Items.Container.DefaultDropSound' cannot be assigned to -- it is read only - Error: Scripts\Custom\New\Items\Containers\TreasureChestL evel5.cs: CS0200: (l ine 60, column 21) Property or indexer 'Server.Items.Container.DefaultDropSound' cannot be assigned to -- it is read only - Error: Scripts\Custom\New\Items\Containers\TreasureChestL evel5.cs: CS0200: (l ine 66, column 21) Property or indexer 'Server.Items.Container.DefaultDropSound' cannot be assigned to -- it is read only - Error: Scripts\Custom\New\Items\Containers\TreasureChestL evel5.cs: CS0200: (l ine 72, column 21) Property or indexer 'Server.Items.Container.DefaultDropSound' cannot be assigned to -- it is read only - Error: Scripts\Custom\New\Items\Containers\TreasureChestL evel5.cs: CS0200: (l ine 78, column 21) Property or indexer 'Server.Items.Container.DefaultDropSound' cannot be assigned to -- it is read only - Error: Scripts\Custom\New\Items\Containers\TreasureChestL evel5.cs: CS1501: (l ine 83, column 10) No overload for method 'LockableContainer' takes '4' argument s - Error: Scripts\Custom\New\Items\Farming\FoodContainers\Ba sin.cs: CS1501: (lin e 9, column 4) No overload for method 'Container' takes '4' arguments - Error: Scripts\Custom\New\Items\Farming\FoodContainers\Tu b.cs: CS1501: (line 9, column 4) No overload for method 'Container' takes '4' arguments - Error: Scripts\Custom\New\Items\Farming\FillableBasket.cs : CS1501: (line 11, column 4) No overload for method 'Container' takes '4' arguments - Error: Scripts\Custom\New\Items\Misc\MetalBox.cs: CS1501: (line 11, column 8) No overload for method 'LockableContainer' takes '4' arguments - Error: Scripts\Custom\New\Items\Solen\BagOfHolding.cs: CS1501: (line 14, colu mn 14) No overload for method 'Container' takes '4' arguments - Error: Scripts\Items\Weapons\BaseWeapon.cs: CS0117: (line 448, column 21) 'Se rver.AosWeaponAttributes' does not contain a definition for 'MageWeapon' - Error: Scripts\Items\Weapons\BaseWeapon.cs: CS0117: (line 453, column 63) 'Se rver.AosWeaponAttributes' does not contain a definition for 'MageWeapon' - Error: Scripts\Items\Weapons\BaseWeapon.cs: CS0117: (line 504, column 28) 'Se rver.AosWeaponAttributes' does not contain a definition for 'UseBestSkill' - Error: Scripts\Items\Weapons\BaseWeapon.cs: CS0117: (line 519, column 14) 'Se rver.AosWeaponAttributes' does not contain a definition for 'MageWeapon' - Error: Scripts\Items\Weapons\BaseWeapon.cs: CS0117: (line 1725, column 23) 'S erver.AosWeaponAttributes' does not contain a definition for 'MageWeapon' - Error: Scripts\Items\Weapons\BaseWeapon.cs: CS0117: (line 1727, column 65) 'S erver.AosWeaponAttributes' does not contain a definition for 'MageWeapon' - Error: Scripts\Items\Weapons\BaseWeapon.cs: CS0117: (line 1944, column 13) 'S erver.AosAttributes' does not contain a definition for 'SpellChanneling' - Error: Scripts\Items\Weapons\BaseWeapon.cs: CS0117: (line 1976, column 17) 'S erver.AosWeaponAttributes' does not contain a definition for 'UseBestSkill' - Error: Scripts\Items\Weapons\BaseWeapon.cs: CS0117: (line 2060, column 17) 'S erver.AosWeaponAttributes' does not contain a definition for 'MageWeapon' - Error: Scripts\Items\Weapons\BaseWeapon.cs: CS0117: (line 2081, column 17) 'S erver.AosAttributes' does not contain a definition for 'SpellChanneling' - Error: Scripts\Items\Weapons\BaseWeapon.cs: CS0117: (line 2131, column 9) 'Se rver.AosWeaponAttributes' does not contain a definition for 'UseBestSkill' - Error: Scripts\Gumps\ViewHousesGump.cs: CS0117: (line 42, column 21) 'Server. Multis.BaseHouse' does not contain a definition for 'GetHouses' - Error: Scripts\Items\Armor\BaseArmor.cs: CS0117: (line 1165, column 13) 'Serv er.AosAttributes' does not contain a definition for 'SpellChanneling' - Error: Scripts\Items\Armor\BaseArmor.cs: CS0117: (line 1219, column 17) 'Serv er.AosArmorAttributes' does not contain a definition for 'MageArmor' - Error: Scripts\Items\Armor\BaseArmor.cs: CS0117: (line 1240, column 17) 'Serv er.AosAttributes' does not contain a definition for 'SpellChanneling' - Error: Scripts\Items\Armor\Artifacts\ArmorOfFortune.cs: CS0117: (line 21, col umn 4) 'Server.AosArmorAttributes' does not contain a definition for 'MageArmor' - Error: Scripts\Items\Armor\Artifacts\InquisitorsResolutio n.cs: CS0117: (line 20, column 4) 'Server.AosArmorAttributes' does not contain a definition for 'Mag eArmor' - Error: Scripts\Items\Armor\Artifacts\MidnightBracers.cs: CS0117: (line 20, co lumn 4) 'Server.AosArmorAttributes' does not contain a definition for 'MageArmor ' - Error: Scripts\Items\Shields\Artifacts\ArcaneShield.cs: CS0117: (line 19, col umn 4) 'Server.AosAttributes' does not contain a definition for 'SpellChanneling ' - Error: Scripts\Items\Skill Items\Tools\BaseRunicTool.cs: CS0117: (line 174, c olumn 53) 'Server.AosWeaponAttribute' does not contain a definition for 'UseBest Skill' - Error: Scripts\Items\Skill Items\Tools\BaseRunicTool.cs: CS0117: (line 175, c olumn 53) 'Server.AosWeaponAttribute' does not contain a definition for 'MageWea pon' - Error: Scripts\Items\Skill Items\Tools\BaseRunicTool.cs: CS0117: (line 186, c olumn 50) 'Server.AosAttribute' does not contain a definition for 'SpellChanneli ng' - Error: Scripts\Items\Skill Items\Tools\BaseRunicTool.cs: CS0117: (line 245, c olumn 50) 'Server.AosAttribute' does not contain a definition for 'SpellChanneli ng' - Error: Scripts\Items\Skill Items\Tools\BaseRunicTool.cs: CS0117: (line 252, c olumn 52) 'Server.AosArmorAttribute' does not contain a definition for 'MageArmo r' - Error: Scripts\Items\Weapons\Artifacts\BladeOfTheRighteou s.cs: CS0117: (line 17, column 4) 'Server.AosWeaponAttributes' does not contain a definition for 'Us eBestSkill' - Error: Scripts\Items\Weapons\Artifacts\LegacyOfTheDreadLo rd.cs: CS0117: (line 15, column 4) 'Server.AosAttributes' does not contain a definition for 'SpellCh anneling' - Error: Scripts\Items\Weapons\Artifacts\StaffOfTheMagi.cs: CS0117: (line 16, c olumn 4) 'Server.AosAttributes' does not contain a definition for 'SpellChanneli ng' - Error: Scripts\Items\Weapons\Artifacts\TheDragonSlayer.cs : CS0117: (line 19, column 4) 'Server.AosWeaponAttributes' does not contain a definition for 'UseBes tSkill' - Error: Scripts\Misc\RegenRates.cs: CS0117: (line 172, column 23) 'Server.AosA rmorAttributes' does not contain a definition for 'MageArmor' - Warning: Scripts\Mobiles\PlayerMobile.cs: CS0162: (line 547, column 6) Unreac hable code detected Scripts: One or more scripts failed to compile or no script files were found. - Press return to exit, or R to try again. [/code:1] Any guidance would be appreciated. |
|
|
|
|
|
|
#2 (permalink) |
|
Account Terminated
|
Your missing files I believe...
[code:1] Error: Scripts\Custom\Modified\Multis\StaticHouse\StaticH ouse.cs: CS0246: (line 890, column 29) The type or namespace name 'StaticStrongBox' could not be found (are you missing a using directive or an assembly reference?) [/code:1] StaticStrongBox was added I believe this Beta so your missing files. Try running a fresh Beta 32 |
|
|
|
|
|
#3 (permalink) |
|
UO Gamers: Demise Administrator
Join Date: Oct 2002
Location: Swamp
Age: 29
Posts: 10,819
|
Also, look in Script Support: You're using bobsmart's treasurechests, and I've a post there that krrios shows how to get them to work.
__________________
psz Demise' Creator (Retired) The RunUO.com Forum Moderator Team Former Official RunUO Scripter (Retired) Websites: My 360 Blog My Gaming Site(Old Link) My Gaming Site(New Link) |
|
|
|
|
|
#4 (permalink) |
|
The missing file is staticstrongbox.cs, I renamed it to .cs.old because it wanted 4 arguments for a container. This is something new to beta 32 as I get that error for a number of custom containers, but I'm not sure what the new additional arguments should be. Here is the code for staticstrongbox.cs
[code:1] using System; using Server; using Server.Multis; using Server.Network; using Server.StaticHousing; namespace Server.Items { [FlipableAttribute( 0xe80, 0x9a8 )] public class StaticStrongBox : Container, IChopable { private StaticHouseSign m_House; private Mobile m_Owner; public StaticStrongBox( Mobile owner, StaticHouseSign house ) : base( 0xE80, 0x4B, 0x42, new Rectangle2D( 16, 51, 168, 73 ) ) { m_Owner = owner; m_House = house; MaxItems = 25; } [CommandProperty( AccessLevel.GameMaster )] public Mobile Owner { get { return m_Owner; } set { m_Owner = value; InvalidateProperties(); } } public override int MaxWeight { get { return 0; } } public StaticStrongBox( Serial serial ) : base(serial) { } public override void Serialize( GenericWriter writer ) { base.Serialize( writer ); writer.Write( (int) 0 ); // version writer.Write( m_Owner ); writer.Write( m_House ); } public override void Deserialize( GenericReader reader ) { base.Deserialize( reader ); int version = reader.ReadInt(); switch ( version ) { case 0: { m_Owner = reader.ReadMobile(); m_House = reader.ReadItem() as StaticHouseSign; break; } } } public override bool Decays { get { if ( m_House != null && m_Owner != null && !m_Owner.Deleted ) return !m_House.IsCoOwner( m_Owner ); else return true; } } public override TimeSpan DecayTime { get { return TimeSpan.FromMinutes( 30.0 ); } } public override void AddNameProperty( ObjectPropertyList list ) { if ( m_Owner != null ) list.Add( 1042887, m_Owner.Name ); // a strong box owned by ~1_OWNER_NAME~ else base.AddNameProperty( list ); } public override void OnSingleClick( Mobile from ) { if ( m_Owner != null ) { LabelTo( from, 1042887, m_Owner.Name ); // a strong box owned by ~1_OWNER_NAME~ if ( CheckContentDisplay( from ) ) LabelTo( from, "({0} items, {1} stones)", TotalItems, TotalWeight ); } else { base.OnSingleClick( from ); } } public override bool IsAccessibleTo( Mobile m ) { if ( m_Owner == null || m_Owner.Deleted || m_House == null || m_House.Deleted ) return true; return ( m.AccessLevel >= AccessLevel.GameMaster || m_House.Owner == m || (m_House.CoOwners.Contains( m ) && m == m_Owner) ) && base.IsAccessibleTo( m ); } private void Chop( Mobile from ) { while ( this.Items.Count > 0 ) ((Item)Items[0]).MoveToWorld( this.Location, this.Map ); Effects.PlaySound( Location, Map, 0x11C ); from.SendLocalizedMessage( 500461 ); // You destroy the item. this.Delete(); } public void OnChop( Mobile from ) { if ( m_House != null && !m_House.Deleted && m_Owner != null && !m_Owner.Deleted ) { if ( from == m_Owner || m_House.IsOwner( from ) ) Chop( from ); } else { Chop( from ); } } } } [/code:1] |
|
|
|
|
|
|
#5 (permalink) | |
|
UO Gamers: Demise Administrator
Join Date: Oct 2002
Location: Swamp
Age: 29
Posts: 10,819
|
Quote:
__________________
psz Demise' Creator (Retired) The RunUO.com Forum Moderator Team Former Official RunUO Scripter (Retired) Websites: My 360 Blog My Gaming Site(Old Link) My Gaming Site(New Link) |
|
|
|
|
|
|
#7 (permalink) |
|
I went through the script and modified it but haven't had time to actually test it.
It compiled okay but have not tested the box its self. See the post in the support forum. http://www.runuo.com/discussion/viewtopic.php?t=14317
__________________
I am Dallenforth........ Its not what you did, its how you did it...... Try a search the answer is usually the if not It will be discovered hence forth......... |
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|