Theoretically, I can just implement your interface in a launcher jar, that will download my client distribution and simply do a process exec for the new client. Am I getting it right?loftar wrote:I see. The launcher currently doesn't support separate JVMs natively, but it does support extensions, so in theory you could add support for that rather easily.APXEOLOG wrote:Thanks for the information. Does the chained launch allow to use another JVM version? We're currently running on GraalVM for JS support.
Let me consider if I want to add support for different JVMs natively to it. It makes some sense, but I also want to keep the size of the non-extended launcher down as small as possible, so I've been trying to be careful about adding built-in features frivolously.
-
APXEOLOG
- Posts: 1300
- Joined: Fri Apr 23, 2010 7:58 am
- Location: Somewhere on Earth
Re: Steam Workshop
W10 Meme Plot | W9 Mantis Garden | W8 Core | W7 Ofir | W6 the City of Dis | W5 Vitterstad | W4 A.D. | W3 Mirniy
jorb wrote:All your characters will be deleted, and I will level every village any one of them were ever members of.
-
loftar
- Posts: 9096
- Joined: Fri Apr 03, 2009 7:05 am
- Location: Your character database
Re: Steam Workshop
Not sure what you mean by that. Please elaborate.
"Object-oriented design is the roman numerals of computing." -- Rob Pike
-
APXEOLOG
- Posts: 1300
- Joined: Fri Apr 23, 2010 7:58 am
- Location: Somewhere on Earth
Re: Steam Workshop
Your launcher will launch the main method in the specified jar file. There is not restriction on what can I do from it - so I can just doloftar wrote:Not sure what you mean by that. Please elaborate.
Code: Select all
Runtime.getRuntime().exec(“./my-local-jvm/java.exe .... other args to launch the client”);Maybe the problem will be that the process launched that way will not be connected to steam? Not sure about that part.
W10 Meme Plot | W9 Mantis Garden | W8 Core | W7 Ofir | W6 the City of Dis | W5 Vitterstad | W4 A.D. | W3 Mirniy
jorb wrote:All your characters will be deleted, and I will level every village any one of them were ever members of.
-
loftar
- Posts: 9096
- Joined: Fri Apr 03, 2009 7:05 am
- Location: Your character database
Re: Steam Workshop
Right, I see. Yes, that should work. I'm fairly sure that the info the Steam library needs is communicated via environment variables, so they should be naturally inherited by your child process.
"Object-oriented design is the roman numerals of computing." -- Rob Pike
-
lightoze
- Posts: 3
- Joined: Mon Feb 08, 2010 12:22 pm
- Location: Finland
Re: Steam Workshop
How do you launch a client from IDE for debugging in Steam mode? Will copying environment variables be enough?
-
loftar
- Posts: 9096
- Joined: Fri Apr 03, 2009 7:05 am
- Location: Your character database
Re: Steam Workshop
Yes, I should have mentioned that. Setting the SteamAppID environment variable should be enough, and should also be enough for running a custom client outside of the Workshop launcher. Haven's app-ID is 3051280 (ie. the same ID that is in the storefront URL).lightoze wrote:How do you launch a client from IDE for debugging in Steam mode? Will copying environment variables be enough?
"Object-oriented design is the roman numerals of computing." -- Rob Pike
-
loftar
- Posts: 9096
- Joined: Fri Apr 03, 2009 7:05 am
- Location: Your character database
Re: Steam Workshop
For the record, I received the Beta keys now, so if there's anyone out there still waiting without having asked for one, or if I missed someone, please PM me.
"Object-oriented design is the roman numerals of computing." -- Rob Pike
-
APXEOLOG
- Posts: 1300
- Joined: Fri Apr 23, 2010 7:58 am
- Location: Somewhere on Earth
Re: Steam Workshop
Aren't you running the normal main method? For upload you should call haven.SteamWorkshopKatodiy wrote:I’m great at launching my client via Steam for debugging, but I’m having problems when I try to upload to the workshop about the lack of a token
W10 Meme Plot | W9 Mantis Garden | W8 Core | W7 Ofir | W6 the City of Dis | W5 Vitterstad | W4 A.D. | W3 Mirniy
jorb wrote:All your characters will be deleted, and I will level every village any one of them were ever members of.
-
Katodiy
- Posts: 20
- Joined: Sun Apr 04, 2021 11:41 pm
Re: Steam Workshop
I tried it likeAPXEOLOG wrote:Aren't you running the normal main method? For upload you should call haven.SteamWorkshopKatodiy wrote:I’m great at launching my client via Steam for debugging, but I’m having problems when I try to upload to the workshop about the lack of a token

-
APXEOLOG
- Posts: 1300
- Joined: Fri Apr 23, 2010 7:58 am
- Location: Somewhere on Earth
Re: Steam Workshop
You're launching the jar's main class (which is MainFrame), and pass the haven.SteamWorkshop as a first argument.Katodiy wrote:I tried it like
You should do
Code: Select all
java -cp hafen.jar haven.SteamWorkshop upload ...
W10 Meme Plot | W9 Mantis Garden | W8 Core | W7 Ofir | W6 the City of Dis | W5 Vitterstad | W4 A.D. | W3 Mirniy
jorb wrote:All your characters will be deleted, and I will level every village any one of them were ever members of.