Upgrade 1.0.8 to 1.0.9
From VbGORE Visual Basic Online RPG Engine
Contents |
This guide will lead you through how to upgrade Version 1.0.8 to Version 1.0.9. For help, please refer to the How to upgrade article. It is highly recommended you read it before ever upgrading.
Fix - Disconnecting
Open GameServer.vbp.
Find:
<vb>
'Check if a keep-alive packet needs to be sent
If UserList(UserIndex).HasBuffer = 0 Then 'Don't add the keep-alive to a user already with a buffer
If timeGetTime - UserList(UserIndex).LastPacketSent > UpdateRate_KeepAliveClient Then 'Check if enough time has elapsed
'Add the keep-alive packet to the user's buffer
Data_Send ToIndex, UserIndex, KeepAlivePacket()
End If
End If
</vb>
Replace with:
<vb>
'Check if too much time has elapsed since the user's last packet
If timeGetTime - UserList(UserIndex).LastPacketSent > UpdateRate_KeepAliveClient Then
'If the user has no packet, give them one
If UserList(UserIndex).HasBuffer = 0 Then Data_Send ToIndex, UserIndex, KeepAlivePacket()
'This will force the packet through
UserList(UserIndex).PPCount = 1
UserList(UserIndex).PacketWait = 0
End If
</vb>
Add - Bitmap Splitter tool
Copy the bitmap splitter 3rd party tool into your copy of vbGORE.
Fix - Stacking NPC slaves
Open GameServer.vbp.
Find:
<vb>
If .NPCIndex > 0 Then
If .NPCIndex < LastNPC Then
'Check if we count whether our slave NPCs count as blocked or not
</vb>
Replace with:
<vb>
If .NPCIndex > 0 Then
If .NPCIndex <= LastNPC Then
'Check if we count whether our slave NPCs count as blocked or not
</vb>