Jump to content
  • 0

Can't add a property to the SlotQuantityPacket class without crashing program


AlysiumX

Question

So I am working on a feature for being able to drag and drop items out of the inventory, as part of that I am planning on passing the tileIndex based on the mouse position to the server. The problem is in order to do that I need to modify the DropItemPacket which is dependent upon the SlotQuantityPacket abstract class. When I add a property to the class I start getting these error when rebuilding the code : 

 

Error        The command ""C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\MSBuild.exe" "..\targets\Intersect.Building.KeyGeneration.msbuild" /property:KeySize=4096 /property:GenerateEachBuild=false /property:OutputDirectory="..\build\debug\keys" /property:IntersectBuildingAssemblyFile="..\build\debug\Intersect.Building\Intersect.Building.dll"" exited with code 1.    Intersect.Network    D:\Development\Intersect-Engine-Shoppe\Intersect.Network\Intersect.Network.csproj    121    

Error        The "Intersect.Building.KeyGenerationTask" task could not be loaded from the assembly D:\Development\Intersect-Engine-Shoppe\targets\..\build\debug\Intersect.Building\Intersect.Building.dll. Could not load file or assembly 'file:///D:\Development\Intersect-Engine-Shoppe\build\debug\Intersect.Building\Intersect.Building.dll' or one of its dependencies. The system cannot find the file specified. Confirm that the <UsingTask> declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask.    Intersect.Network    D:\Development\Intersect-Engine-Shoppe\targets\Intersect.Building.KeyGeneration.msbuild    12    

Error        The "Intersect.Building.KeyGenerationTask" task could not be loaded from the assembly D:\Development\Intersect-Engine-Shoppe\targets\..\build\debug\Intersect.Building\Intersect.Building.dll. Could not load file or assembly 'file:///D:\Development\Intersect-Engine-Shoppe\build\debug\Intersect.Building\Intersect.Building.dll' or one of its dependencies. The system cannot find the file specified. Confirm that the <UsingTask> declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask.    Intersect.Network    D:\Development\Intersect-Engine-Shoppe\targets\Intersect.Building.KeyGeneration.msbuild    12    

 

Is anyone able to tell my why that is happening?

 

Thanks

 

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

Good to know the problem is solved!

 

For the sake of your own sanity and server performance, I do hope you're not sending the location of the mouse Itself constantly.

What would make more sense is to send the tile you want to drop the item on when the player stops dragging the item out of their inventory.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...