[Godot 4.3] Rivet Plugin Initialization and Errors

Versions Godot: 4.3 (Windows 11) Rivet (on the Godot plugins tab): 2.2.2 Description I wanted to test the Rivet plugin because it provides the exact functionality we're looking for. Initially, I checked the documentation, but it appears to be outdated. To explore further, I created a new Godot project to test the plugin. After enabling the plugin, I noticed that the following logs appeared every 2 seconds in the Modules tab:
Start
Task error: PostgreSQL::setup
Restarting in 2 seconds
Start
Task error: PostgreSQL::setup
Restarting in 2 seconds
It seems this error is preventing the plugin from managing modules properly when using a localhost web server. I assumed this issue might be due to the server-side handling that only occurs when the build is deployed on the Rivet servers, so I decided to ignore the log for now. In the new Godot project, I tried using the buttons:
1- Setup Rivet modules 2- Setup Multiplayer & Game Server
The second option created something that looks like an example setup, which seemed promising. However, when I tried to run it locally (both client and server), I encountered the following errors in main.gd:
Line 1 :Could not resolve class "RivetMultiplayerManager".
Line 45 :Identifier "Rivet" not declared in the current scope.
Line 52:Identifier "Rivet" not declared in the current scope.
Line 51:Identifier "Rivet" not declared in the current scope.

res://addons/rivet_sdk/multiplayer_manager.gd:
Line 152 :Identifier "Rivet" not declared in the current scope.
Line 243 :Identifier "Rivet" not declared in the current scope.
Line 291 :Identifier "Rivet" not declared in the current scope.
Line 1 :Could not resolve class "RivetMultiplayerManager".
Line 45 :Identifier "Rivet" not declared in the current scope.
Line 52:Identifier "Rivet" not declared in the current scope.
Line 51:Identifier "Rivet" not declared in the current scope.

res://addons/rivet_sdk/multiplayer_manager.gd:
Line 152 :Identifier "Rivet" not declared in the current scope.
Line 243 :Identifier "Rivet" not declared in the current scope.
Line 291 :Identifier "Rivet" not declared in the current scope.
Logs from the Game Server tab:
Open "Develop" and press "Start" to start game server.
Start
[stdout] Initialize godot-rust (API v4.3.stable.official, runtime v4.3.stable.steam)
[stdout] Godot Engine v4.3.stable.steam.77dcf97d8 - https://godotengine.org
[stdout]
[stderr] SCRIPT ERROR: Parse Error: Could not resolve class "RivetMultiplayerManager".
[stderr] at: GDScript::reload (res://main.gd:1)
[stderr] SCRIPT ERROR: Parse Error: Identifier "Rivet" not declared in the current scope.
[stderr] at: GDScript::reload (res://main.gd:45)
[stderr] SCRIPT ERROR: Parse Error: Identifier "Rivet" not declared in the current scope.
[stderr] at: GDScript::reload (res://main.gd:52)
[stderr] SCRIPT ERROR: Parse Error: Identifier "Rivet" not declared in the current scope.
[stderr] at: GDScript::reload (res://main.gd:51)
[stderr] ERROR: Failed to load script "res://main.gd" with error "Parse error".
[stderr] at: load (modules/gdscript/gdscript.cpp:2936)
Open "Develop" and press "Start" to start game server.
Start
[stdout] Initialize godot-rust (API v4.3.stable.official, runtime v4.3.stable.steam)
[stdout] Godot Engine v4.3.stable.steam.77dcf97d8 - https://godotengine.org
[stdout]
[stderr] SCRIPT ERROR: Parse Error: Could not resolve class "RivetMultiplayerManager".
[stderr] at: GDScript::reload (res://main.gd:1)
[stderr] SCRIPT ERROR: Parse Error: Identifier "Rivet" not declared in the current scope.
[stderr] at: GDScript::reload (res://main.gd:45)
[stderr] SCRIPT ERROR: Parse Error: Identifier "Rivet" not declared in the current scope.
[stderr] at: GDScript::reload (res://main.gd:52)
[stderr] SCRIPT ERROR: Parse Error: Identifier "Rivet" not declared in the current scope.
[stderr] at: GDScript::reload (res://main.gd:51)
[stderr] ERROR: Failed to load script "res://main.gd" with error "Parse error".
[stderr] at: load (modules/gdscript/gdscript.cpp:2936)
I'm not very familiar with using plugin classes in Godot scripts, and with the plugin interface working, this behavior seems unusual. I'm currently stuck and not sure how to resolve these errors. Any help would be greatly appreciated. Thank you!
1 Reply
Nathan
Nathan12mo ago
hey @Noxeg! been hard at work grinding through a handful of godot bugs, including this one. the fix should be live tomorrow when 2.3.0 goes live – https://godotengine.org/asset-library/asset/edit/14080 you can also download the latest release directly from here – https://releases.rivet.gg/plugin-godot/v2.3.0/rivet-plugin-godot.zip the last two errors stem from the first one (PostgreSQL::setup) let me know if that solves your problem! hey! just published 2.3.1, it should be live on the asset library tomorrow morning. you can download it early here – https://releases.rivet.gg/plugin-godot/v2.3.1/rivet-plugin-godot.zip

Did you find this page helpful?