Open
Description
Tested versions
- Reproducible in v4.5.dev2
System information
Ubuntu 24.04 Godot v4.5.dev2
Issue description
get_rpc_config()
returns empty dictionary if RPC functions are defined with @rpc
annotation.
Configuring function with rpc_config()
works as expected (dictionary is returned with methods)
- Test project
https://github.com/dragonhunt02/godot-rpc-get
Here are some rpc code sections I didn't check yet
godot/modules/gdscript/gdscript_parser.cpp
Lines 4995 to 5000 in 1696ab0
godot/modules/gdscript/gdscript_compiler.cpp
Lines 2902 to 2908 in 1696ab0
Steps to reproduce
- Write function with
@rpc
annotation - Call
get_rpc_config()
in class_ready
method - Print return value
Minimal reproduction project (MRP)
https://github.com/dragonhunt02/godot-rpc-get/archive/refs/heads/main.zip
Metadata
Metadata
Assignees
Type
Projects
Status
For team assessment