Skip to content

Further explanation into net methods. #4176

Answered by DanielWillett
Jdance-Media asked this question in Q&A
Discussion options

You must be logged in to vote

I believe those attributes generate read/write methods at compile time, so they won't be of much use to you (which could be changed to be done at runtime using Dynamic Methods).

As someone who has also done this, I had success with making my own knockoff of his RPCs that use dynamic methods.

If you want you can check out how I was able to update the read/write methods to add a few extra enum values to EServerMessage and EClientMessage and add my own listeners for it:
https://github.com/DanielWillett/DevkitServer/blob/master/Multiplayer/Networking/NetFactory.cs#L100

  • Note you need to patch the read/write methods and change the amount of bits they read/write to support larger values.
  • Then y…

Replies: 3 comments 5 replies

Comment options

You must be logged in to vote
1 reply
@SDGNelson
Comment options

Answer selected by SDGNelson
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@DanielWillett
Comment options

@SDGNelson
Comment options

@Jdance-Media
Comment options

@SDGNelson
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants