|
I will be updating the list as I can, I know some RPCs are missing, but won't be for long.
Information about reliability updated. |
float AttachOffsetX, float AttachOffsetY, float AttachOffsetZ, float AttachRotX, float AttachRotY, float AttachRotZ, BYTE SyncRotation
BYTE byteMethod; // (always 1 here, because it is material) BYTE byteSlot; WORD wModelID; char szTXDName[65]; char szTextureName[65]; DWORD dwMaterialColor;
BYTE byteMethod; // (always 2 here, because it is materialtext) BYTE byteSlot; BYTE byteMaterialSize; char szFont[65]; BYTE byteFontSize; BYTE byteBold; DWORD dwFontColor; DWORD dwBackgroundColor; BYTE byteAlign;
BYTE byteFlags; float fLetterWidth; float fLetterHeight; DWORD dwLetterColor; float fLineWidth; float fLineHeight; DWORD dwBoxColor; BYTE byteShadow; BYTE byteOutline; DWORD dwBackgroundColor; BYTE byteStyle; BYTE byteSelectable; float fX; float fY; WORD wModelID; float fRotX; float fRotY; float fRotZ; float fZoom; WORD wColor1; WORD wColor2; char szText[1024];
|
Nice tutorial, it will surely help people understand how server communicate with client using RakNet and how to work with Pawn.RakNet.
I looked into samp-server, it looks like RPC ID 44 (CreateObject) contains all these stuff. If object is attached to a vehicle or another object it will write to BitStream those stuff you wrote in your RPC List. Code:
float AttachOffsetX, float AttachOffsetY, float AttachOffsetZ, float AttachRotX, float AttachRotY, float AttachRotZ, BYTE SyncRotation |
|
About materials, both MaterialText and Material are being used with the same CreateObject RPC.
All 16 materials slots will be stored in the same RPC. Parameters: If it is Material: Code:
BYTE byteMethod; // (always 1 here, because it is material) BYTE byteUsed; // Boolean, Non-zero true zero false BYTE byteSlot; WORD wModelID; char szTXDName[65]; char szTextureName[65]; DWORD dwMaterialColor; Code:
BYTE byteMethod; // (always 2 here, because it is materialtext) BYTE byteUsed; // Boolean, Non-zero true zero false BYTE byteMaterialSize; char szFont[65]; BYTE byteFontSize; BYTE byteBold; DWORD dwFontColor; DWORD dwBackgroundColor; BYTE byteAlign; |
|
And your ShowTextDraw - ID: 134 is not correct.
Correct parameters: Code:
BYTE byteFlags; float fLetterWidth; float fLetterHeight; DWORD dwLetterColor; float fLineWidth; float fLineHeight; DWORD dwBoxColor; BYTE byteShadow; BYTE byteOutline; DWORD dwBackgroundColor; BYTE byteStyle; BYTE byteSelectable; float fX; float fY; WORD wModelID; float fRotX; float fRotY; float fRotZ; float fZoom; WORD wColor1; WORD wColor2; char szText[1024]; ![]() |
[00:13:10] [debug] Server crashed due to an unknown error
[00:13:10] [debug] Native backtrace:
[00:13:10] [debug] #0 6a82b9d8 in ?? () from plugins\pawnraknet.dll
[00:13:10] [debug] #1 00457e32 in ?? () from samp-server.exe
[00:13:10] [debug] #2 004583ca in ?? () from samp-server.exe
[00:13:10] [debug] #3 0045abda in ?? () from samp-server.exe
[00:13:10] [debug] #4 0049104c in ?? () from samp-server.exe
[00:13:10] [debug] #5 0049125c in ?? () from samp-server.exe
[00:13:10] [debug] #6 0048d4db in ?? () from samp-server.exe
[00:13:10] [debug] #7 0049b531 in ?? () from samp-server.exe
[00:13:10] [debug] #8 0049b541 in ?? () from samp-server.exe