Hello there,

I have some errors with a fresh installation of ServUO & VitaNex in Visual Studio, is it normal? Did I do something wrong?

Thanks for your help!

Error CS0246 The type or namespace name 'WorldItemSA' could not be found (are you missing a using directive or an assembly reference?) Scripts C:\Users\guill\OneDrive\Bureau\ServUO\ServUO1\Scripts\VitaNex\Core\Extensions\Server\PacketExt.cs 63 Active
Error CS0246 The type or namespace name 'WorldItemHS' could not be found (are you missing a using directive or an assembly reference?) Scripts C:\Users\guill\OneDrive\Bureau\ServUO\ServUO1\Scripts\VitaNex\Core\Extensions\Server\PacketExt.cs 68 Active
Error CS0246 The type or namespace name 'MobileIncomingOld' could not be found (are you missing a using directive or an assembly reference?) Scripts C:\Users\guill\OneDrive\Bureau\ServUO\ServUO1\Scripts\VitaNex\Core\Extensions\Server\PacketExt.cs 73 Active
Error CS0246 The type or namespace name 'MobileIncomingOld' could not be found (are you missing a using directive or an assembly reference?) Scripts C:\Users\guill\OneDrive\Bureau\ServUO\ServUO1\Scripts\VitaNex\Core\Extensions\Server\PacketExt.cs 78 Active
Error CS0246 The type or namespace name 'MobileIncomingSA' could not be found (are you missing a using directive or an assembly reference?) Scripts C:\Users\guill\OneDrive\Bureau\ServUO\ServUO1\Scripts\VitaNex\Core\Extensions\Server\PacketExt.cs 93 Active
Error CS0246 The type or namespace name 'MobileIncomingSA' could not be found (are you missing a using directive or an assembly reference?) Scripts C:\Users\guill\OneDrive\Bureau\ServUO\ServUO1\Scripts\VitaNex\Core\Extensions\Server\PacketExt.cs 98 Active
Error CS0115 'BoundsPreviewTile.OnSingleClick(Mobile)': no suitable method found to override Scripts C:\Users\guill\OneDrive\Bureau\ServUO\ServUO1\Scripts\VitaNex\Core\Items\Regions\BoundsPreviewTile.cs 63 Active
Error CS0115 'HauntedMomentoEntity.OnSingleClick(Mobile)': no suitable method found to override Scripts C:\Users\guill\OneDrive\Bureau\ServUO\ServUO1\Scripts\VitaNex\Core\Items\Throwables\AtMobiles\Fun\HauntedMomento.cs 285 Active
Error CS0115 'BaseThrowable<TEntity>.OnSingleClick(Mobile)': no suitable method found to override Scripts C:\Users\guill\OneDrive\Bureau\ServUO\ServUO1\Scripts\VitaNex\Core\Items\Throwables\Base\BaseThrowable.cs 485 Active
Error CS0115 'PvPSpectatorGate.OnSingleClick(Mobile)': no suitable method found to override Scripts C:\Users\guill\OneDrive\Bureau\ServUO\ServUO1\Scripts\VitaNex\Core\Modules\AutoPVP\Items\PvPSpectatorGate.cs 51 Active
Error CS0115 'PvPTeamGate.OnSingleClick(Mobile)': no suitable method found to override Scripts C:\Users\guill\OneDrive\Bureau\ServUO\ServUO1\Scripts\VitaNex\Core\Modules\AutoPVP\Items\PvPTeamGate.cs 50 Active
Error CS0115 'PvPRegion.OnSingleClick(Mobile, object)': no suitable method found to override Scripts C:\Users\guill\OneDrive\Bureau\ServUO\ServUO1\Scripts\VitaNex\Core\Modules\AutoPVP\Objects\Regions.cs 312 Active
Error CS0115 'SepticTank.OnSingleClick(Mobile)': no suitable method found to override Scripts C:\Users\guill\OneDrive\Bureau\ServUO\ServUO1\Scripts\VitaNex\Core\Modules\TrashCollection\Items\SepticTank.cs 147 Active
 
I recommend downloading the publish 58 branch and using that instead.

These errors can be fixed easily, but this will be the first batch, then there may be a lot more after.

If you want to continue with the current 57.2 branch, you can replace this code:
PacketExt.cs
C#:
		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:
C#:
		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);
		}

That will cover the first few errors in your report, the rest can be resolved by just deleting the OnSingleClick overrides in each offending file, as that method simply doesn't exist in the core at that point of the repository.
 
@Voxpire

I've replace with 58, everything is running fine.

I am wondering, can I use 58 in production for the shard I am currently building?
Or should I use 57.2 for more stability?

Thanks again!
 
I am wondering, can I use 58 in production for the shard I am currently building?
Or should I use 57.2 for more stability?

58 is stable enough for production and not long until an official release, priority support is also guaranteed for any bugs you encounter, while P57 is as-is.
 
Back