VNC 5.2.0.0 Compile Errors using newest repo

john burns

Citizen
Getting these errors, and would like to know how to fix them . . . .

VNCCore/Extensions/Server/PacketExt.cs(27,41): error CS0246: The type or namespace name 'WorldItemSA' could not be found (are you missing a using directive or an assembly reference?) [/root/ServUO/Scripts/Scripts.csproj]
VNCCore/Extensions/Server/PacketExt.cs(32,41): error CS0246: The type or namespace name 'WorldItemHS' could not be found (are you missing a using directive or an assembly reference?) [/root/ServUO/Scripts/Scripts.csproj]
VNCCore/Extensions/Server/PacketExt.cs(37,39): error CS0246: The type or namespace name 'MobileIncomingOld' could not be found (are you missing a using directive or an assembly reference?) [/root/ServUO/Scripts/Scripts.csproj]
VNCCore/Items/Regions/BoundsPreviewTile.cs(58,24): error CS0115: 'BoundsPreviewTile.OnSingleClick(Mobile)': no suitable method found to override [/root/ServUO/Scripts/Scripts.csproj]
VNCCore/Items/Throwables/AtMobiles/Fun/HauntedMomento.cs(41,24): error CS0115: 'HauntedMomentoEntity.CanDrop': no suitable method found to override [/root/ServUO/Scripts/Scripts.csproj]
VNCCore/Items/Throwables/AtMobiles/Fun/HauntedMomento.cs(281,24): error CS0115: 'HauntedMomentoEntity.OnSingleClick(Mobile)': no suitable method found to override [/root/ServUO/Scripts/Scripts.csproj]
VNCCore/Items/Throwables/Base/BaseThrowable.cs(485,24): error CS0115: 'BaseThrowable<TEntity>.OnSingleClick(Mobile)': no suitable method found to override [/root/ServUO/Scripts/Scripts.csproj]
VNCCore/Modules/AutoPVP/Items/PvPSpectatorGate.cs(51,24): error CS0115: 'PvPSpectatorGate.OnSingleClick(Mobile)': no suitable method found to override [/root/ServUO/Scripts/Scripts.csproj]
VNCCore/Modules/AutoPVP/Items/PvPTeamGate.cs(50,24): error CS0115: 'PvPTeamGate.OnSingleClick(Mobile)': no suitable method found to override [/root/ServUO/Scripts/Scripts.csproj]
VNCCore/Modules/AutoPVP/Objects/Regions.cs(336,24): error CS0115: 'PvPRegion.OnSingleClick(Mobile, object)': no suitable method found to override [/root/ServUO/Scripts/Scripts.csproj]
VNCCore/Modules/TrashCollection/Items/SepticTank.cs(147,24): error CS0115: 'SepticTank.OnSingleClick(Mobile)': no suitable method found to override [/root/ServUO/Scripts/Scripts.csproj]
 

DragnMaw

Citizen
I know a lot of the SingleClick(Mobile) were removed from the earlier base code, so you can update to double click or remove those.
 

Vorspire

Vita-Nex: Core
Administrator
ServUO Developer
VNCCore/Extensions/Server/PacketExt.cs(27,41): error CS0246: The type or namespace name 'WorldItemSA' could not be found (are you missing a using directive or an assembly reference?) [/root/ServUO/Scripts/Scripts.csproj]
VNCCore/Extensions/Server/PacketExt.cs(32,41): error CS0246: The type or namespace name 'WorldItemHS' could not be found (are you missing a using directive or an assembly reference?) [/root/ServUO/Scripts/Scripts.csproj]
VNCCore/Extensions/Server/PacketExt.cs(37,39): error CS0246: The type or namespace name 'MobileIncomingOld' could not be found (are you missing a using directive or an assembly reference?) [/root/ServUO/Scripts/Scripts.csproj]

Replace this code:
Code:
		public static bool RewriteItemID(this WorldItem p, int itemID, bool reset = true)
		{
			return Rewrite(p, 7, (short)itemID, reset);
		}

		public static bool RewriteItemID(this WorldItemSA p, int itemID, bool reset = true)
		{
			return Rewrite(p, 8, (short)itemID, reset);
		}

		public static bool RewriteItemID(this WorldItemHS p, int itemID, bool reset = true)
		{
			return Rewrite(p, 8, (ushort)itemID, reset);
		}

		public static bool RewriteBody(this MobileIncomingOld p, int itemID, bool reset = true)
		{
			return Rewrite(p, 8, (ushort)itemID, reset);
		}

With this code:
Code:
		public static bool RewriteItemID(this WorldItem p, int itemID, bool reset = true)
		{
			return Rewrite(p, 8, (short)itemID, reset);
		}

		public static bool RewriteBody(this MobileIncoming p, int itemID, bool reset = true)
		{
			return Rewrite(p, 7, (ushort)itemID, reset);
		}




VNCCore/Items/Regions/BoundsPreviewTile.cs(58,24): error CS0115: 'BoundsPreviewTile.OnSingleClick(Mobile)': no suitable method found to override [/root/ServUO/Scripts/Scripts.csproj]
VNCCore/Items/Throwables/AtMobiles/Fun/HauntedMomento.cs(41,24): error CS0115: 'HauntedMomentoEntity.CanDrop': no suitable method found to override [/root/ServUO/Scripts/Scripts.csproj]
VNCCore/Items/Throwables/AtMobiles/Fun/HauntedMomento.cs(281,24): error CS0115: 'HauntedMomentoEntity.OnSingleClick(Mobile)': no suitable method found to override [/root/ServUO/Scripts/Scripts.csproj]
VNCCore/Items/Throwables/Base/BaseThrowable.cs(485,24): error CS0115: 'BaseThrowable<TEntity>.OnSingleClick(Mobile)': no suitable method found to override [/root/ServUO/Scripts/Scripts.csproj]
VNCCore/Modules/AutoPVP/Items/PvPSpectatorGate.cs(51,24): error CS0115: 'PvPSpectatorGate.OnSingleClick(Mobile)': no suitable method found to override [/root/ServUO/Scripts/Scripts.csproj]
VNCCore/Modules/AutoPVP/Items/PvPTeamGate.cs(50,24): error CS0115: 'PvPTeamGate.OnSingleClick(Mobile)': no suitable method found to override [/root/ServUO/Scripts/Scripts.csproj]
VNCCore/Modules/AutoPVP/Objects/Regions.cs(336,24): error CS0115: 'PvPRegion.OnSingleClick(Mobile, object)': no suitable method found to override [/root/ServUO/Scripts/Scripts.csproj]
VNCCore/Modules/TrashCollection/Items/SepticTank.cs(147,24): error CS0115: 'SepticTank.OnSingleClick(Mobile)': no suitable method found to override [/root/ServUO/Scripts/Scripts.csproj]

Remove all of these overrides.




Be prepared for another layer of compiler errors, post them if they come up.