dockfries / infernus

Node.js library for scripting Open Multiplayer.
https://dockfries.github.io/infernus/
MIT License
21 stars 2 forks source link

raknet read, write, reference type #30

Closed dockfries closed 9 months ago

dockfries commented 9 months ago

Currently, read and write, especially some types passed by references, such as the return value of position,float3,float4,vector, cannot be accessed directly across memory.

The read of sync although there is a reset readpointer in the decorator, I don't know why it still reads the default packetId.

There seems to be a problem with the write value method, which can be simulated manually with samp.callPublic.

At present, the callback function is relatively normal.

dockfries commented 9 months ago

A new polyfill is used to implement it.

Please upgrade @infernus/core to ^0.10.0-beta-8 , @infernus/raknet to ^0.10.4 .

Please update polyfill_raknet.amx .