1. 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).
     
  2. Wulf

    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.
     
  3. Wulf

    Wulf Community Admin

    I believe the answer for this before was that on Linux, if your locale is something other than English, Rust doesn't handle the JSON it receives properly. I may be wrong though, but I vaguely remember something about that when it came out way back.
     
  4. 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).
     
  5. 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).
     
  6. Wulf

    Wulf Community Admin

    Not sure, some way that Rust handles it when received.