Deltaman Posted December 31, 2021 Share Posted December 31, 2021 Hello, I'm looking to add a discord invite button on my server workshop mod and as it turns out the method openUrl(string) does not work. With some investigating, it turns out this Java parameter disabled the call: Djava.awt.headless=true Any reason why this is set? Will this API call be usable in the future? I see some of the current Lua code actually calls this method. Thanks. Link to comment Share on other sites More sharing options...
EnigmaGrey Posted January 31, 2022 Share Posted January 31, 2022 As far as I understand: we use GLFW instead of AWT, AWT-based commands won't work with the game. Link to comment Share on other sites More sharing options...
Deltaman Posted January 31, 2022 Author Share Posted January 31, 2022 58 minutes ago, EnigmaGrey said: As far as I understand: we use GLFW instead of AWT, AWT-based commands won't work with the game. Sure thing. I think though that this old API method is still very useful as well as possibly needed for the non-steam version. I do not own a non-steam copy of the game so I don't know if this flag is not set for that release. The issue revolves specifically around Desktop Instrumentation API being disabled as it detects the game being ran in a headless state. Thank you for answering, however this answer doesn't seem to relate to the question. It has nothing to do with the render library. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now