Invisible Item on Floor Bug

Hello peopleee!

Im having this bug when…

A friendly player throws an item: I cant see the item, and when I try to gather it, a new “empty” item I get, like a bugged item.

Anyone know why this is happening?

Well. That sucks.

If you’ve edited any of the following, it may have caused it.

  • Server and client packet enumerations (especially any changes above CMapDropItem or SSpawnItem; should be identical between server & client)
  • ModTypes MapItemRec on either side
  • TCP Protocols (send from client, server handles)
  • Client - SendDropItem
  • Client - HandleSpawnItem
  • Server - HandleMapDropItem
  • Server - PlayerMapDropItem
  • Server- SpawnItemSlot
  • Server- SendSpawnItemToMap

The data path is basically ©Senddropitem -> (S)handlemapdropitem -> (S)playermapdropitem -> (S)SpawnItemSlot ->(S)SendSpawnItemToMap ->©HandleSpawnItem

If NPC drops work normally, the issue is within the first 3 in that path.

Well. That sucks.

If you’ve edited any of the following, it may have caused it.

  • Server and client packet enumerations (especially any changes above CMapDropItem or SSpawnItem; should be identical between server & client)
  • ModTypes MapItemRec on either side
  • TCP Protocols (send from client, server handles)
  • Client - SendDropItem
  • Client - HandleSpawnItem
  • Server - HandleMapDropItem
  • Server - PlayerMapDropItem
  • Server- SpawnItemSlot
  • Server- SendSpawnItemToMap

The data path is basically ©Senddropitem -> (S)handlemapdropitem -> (S)playermapdropitem -> (S)SpawnItemSlot ->(S)SendSpawnItemToMap ->©HandleSpawnItem

If NPC drops work normally, the issue is within the first 3 in that path.

Everything seems to be ok (the C and S list)

Maybe… this:

I “erase” this lines with ’ because I dont want to drop any item on death

In Sub OnDeath(ByVal Index As Long)


    ' Drop all worn items

    For i = 1 To Equipment.Equipment_Count - 1

	    If GetPlayerEquipment(Index, i) > 0 Then

		    PlayerMapDropItem Index, GetPlayerEquipment(Index, i), 0

	    End If

    Next

If you mean you commented the lines out by adding ’ before each line - that would make no difference.

Server Side

Private Type MapItemRec

    Num As Long

    Value As Long

    x As Byte

    y As Byte

    ' ownership + despawn

    playerName As String

    playerTimer As Long

    canDespawn As Boolean

    despawnTimer As Long

End Type

Client Side

Private Type MapItemRec

    playerName As String

    num As Long

    Value As Long

    Frame As Byte

    x As Byte

    y As Byte

End Type

Are right??

Log in to reply