Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Invisible Item on Floor Bug


troglodite
 Share

Recommended Posts

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 (C)Senddropitem -> (S)handlemapdropitem -> (S)playermapdropitem -> (S)SpawnItemSlot ->(S)SendSpawnItemToMap ->(C)HandleSpawnItem

If NPC drops work normally, the issue is within the first 3 in that path.
Link to comment
Share on other sites

> 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

```
Link to comment
Share on other sites

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??
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
 Share

×
×
  • Create New...