I get this error "RPC error : addui" with every plugin that calls "CuiHelper.AddUi".
This only occurs in the Linux Client, when connecting from the Windows client it works and shows the GUI.
It happens with every plugin I have tried, when they try to call "CuiHelper.AddUi" it works in Windows with every one of them but not in the Linux client so this leads me to believe the problem is not in the plugin but in "CuiHelper.AddUi" function that does not send the correct RPC call to Linux clients (guessing that the call is different to Linux compared to windows but have been unable to verify this).
Solved RPC error: addui problem on Linux
Discussion in 'Rust Discussion' started by Erebus, May 25, 2016.
-
Wulf Community Admin
The error generally means that the usage of it isn't valid, and that it's trying to send JSON to the client that isn't valid. Oxide's CUI helper doesn't make the magic happen, it just providers a wrapper so you don't have to deal with JSON directly.
-
How come it works on windows but not Linux?
Same server, same plugins, same computer. Should the JSON not be the same to both clients?
A couple of plugins that caused the error is:
GUI Shop: GUI Shop for Rust | Oxide
ServerRewards: ServerRewards for Rust | Oxide
Hunt RPG: Hunt RPG for Rust | Oxide -
Wulf Community Admin
-
I will do some checking on that and see if that is indeed the problem.
I will write back here once I checked on it, so if someone else has the problem they will know what to do (if I can solve it that way). -
So I set the locale of both the server and client (both running Linux) to en_US.UTF-8 and now it works, so there was nothing wrong with the plugins.
Not sure if it was needed on the server (it did not work after I set the server only to en_UTF-8).
Not sure why its an issue though, I have used JSON in many projects and never had this problem, perhaps its the way its encoded (when I used JSON it was encoded with UTF-8). -
Wulf Community Admin