troglodite Posted May 29, 2013 Author Share Posted May 29, 2013 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? Link to comment Share on other sites More sharing options...
Zeno Posted May 29, 2013 Share Posted May 29, 2013 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- SendSpawnItemToMapThe data path is basically (C)Senddropitem -> (S)handlemapdropitem -> (S)playermapdropitem -> (S)SpawnItemSlot ->(S)SendSpawnItemToMap ->(C)HandleSpawnItemIf NPC drops work normally, the issue is within the first 3 in that path. Link to comment Share on other sites More sharing options...
troglodite Posted May 30, 2013 Author Share Posted May 30, 2013 > 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 deathIn 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 More sharing options...
Zeno Posted May 30, 2013 Share Posted May 30, 2013 If you mean you commented the lines out by adding ' before each line - that would make no difference. Link to comment Share on other sites More sharing options...
troglodite Posted May 30, 2013 Author Share Posted May 30, 2013 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 LongEnd Type```Client Side```Private Type MapItemRec playerName As String num As Long Value As Long Frame As Byte x As Byte y As ByteEnd Type```Are right?? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now