Improve docs for rpc annotations
- Improve docs for the
@rpcannotation - Add links in the docs from the
Callable.rpctoNode.rpcwhich contains more detailed information about how rpc works - Mention the
@rpcannotation inNode.rpcandNode.rpc_configdocs - Correct
@rpc(any)to@rpc(any_peer)inNode.rpc_configdocs
Now that you've changed the source of those annotations, default values in the docs should be kept as you were suggesting. This is why the CI build fails now. Make sure to run doctool locally.
You also need to rebase this PR, seems like there are now conflicts with recently merged changes.
Please squash the commits into one. :)
@mhilbrunner I messed up a bit with git and rebasing took a little while, but I think I managed to squash it all in one
@YuriSizov I think it is good to go now
@GeroVeni Yes, sorry, it should be good, but our spellcheck noticed you have a typo. If you could fix that, we should be okay to merge :)
Thanks, and congrats on the first merged pull request!
This PR does not take into account changes from #71634. I've added fixes to this in #72276.
I think we missed an opportunity to explain what each of the arguments actually do. I have no idea and cannot find any breakdown anywhere in the code, documentation or editor. The closest I have are community youtube videos but they are out of date.
I think we missed an opportunity to explain what each of the arguments actually do. I have no idea and cannot find any breakdown anywhere in the code, documentation or editor.
I think the best place for this information to go would be in the docs site when the tutorials are updated for Godot 4 (e.g. https://docs.godotengine.org/en/stable/tutorials/networking/high_level_multiplayer.html#rpc) and then provide a link in the code documentation to this tutorial page.

A guide I made.