saltysystems / overworld

Open source framework for scalable multiplayer games.
Mozilla Public License 2.0
22 stars 4 forks source link

gdscript bindings: optional vector2 tries to decode as if required #22

Closed cmdrk closed 5 months ago

cmdrk commented 1 year ago
message entity {
    required uint64  id       = 1;
    required vector2 position = 2;
    optional vector2 velocity = 3; // doesn't work as OPTIONAL and VECTOR2 in this message. investigate!
    required float   rotation = 4;
}

In Godot:

Invalid call. Nonexistent function 'get_x' in base 'Nil'.

Workaround to just require velocity or remove it from the message altogether. Not ideal!

cmdrk commented 5 months ago

I believe this is fixed