Steam Workshop

Forum for alternative clients, mods & discussions on the same.

Re: Steam Workshop

Postby APXEOLOG » Mon Sep 30, 2024 7:05 pm

loftar wrote:
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.

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.

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.


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?
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.
User avatar
APXEOLOG
 
Posts: 1296
Joined: Fri Apr 23, 2010 7:58 am
Location: Somewhere on Earth

Re: Steam Workshop

Postby loftar » Mon Sep 30, 2024 7:08 pm

Not sure what you mean by that. Please elaborate.
"Object-oriented design is the roman numerals of computing." -- Rob Pike
User avatar
loftar
 
Posts: 9045
Joined: Fri Apr 03, 2009 7:05 am

Re: Steam Workshop

Postby APXEOLOG » Mon Sep 30, 2024 7:13 pm

loftar wrote:Not sure what you mean by that. Please elaborate.


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 do
Code: Select all
 Runtime.getRuntime().exec(“./my-local-jvm/java.exe .... other args to launch the client”);


So the workshop jar will be a launcher itself.
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.
User avatar
APXEOLOG
 
Posts: 1296
Joined: Fri Apr 23, 2010 7:58 am
Location: Somewhere on Earth

Re: Steam Workshop

Postby loftar » Mon Sep 30, 2024 7:46 pm

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
User avatar
loftar
 
Posts: 9045
Joined: Fri Apr 03, 2009 7:05 am

Re: Steam Workshop

Postby lightoze » Mon Sep 30, 2024 8:52 pm

How do you launch a client from IDE for debugging in Steam mode? Will copying environment variables be enough?
lightoze
 
Posts: 3
Joined: Mon Feb 08, 2010 12:22 pm
Location: Finland

Re: Steam Workshop

Postby loftar » Mon Sep 30, 2024 11:01 pm

lightoze wrote:How do you launch a client from IDE for debugging in Steam mode? Will copying environment variables be enough?

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).
"Object-oriented design is the roman numerals of computing." -- Rob Pike
User avatar
loftar
 
Posts: 9045
Joined: Fri Apr 03, 2009 7:05 am

Re: Steam Workshop

Postby loftar » Tue Oct 01, 2024 2:14 am

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
User avatar
loftar
 
Posts: 9045
Joined: Fri Apr 03, 2009 7:05 am

Re: Steam Workshop

Postby APXEOLOG » Tue Oct 01, 2024 9:49 am

Katodiy 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


Aren't you running the normal main method? For upload you should call haven.SteamWorkshop
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.
User avatar
APXEOLOG
 
Posts: 1296
Joined: Fri Apr 23, 2010 7:58 am
Location: Somewhere on Earth

Re: Steam Workshop

Postby Katodiy » Tue Oct 01, 2024 9:54 am

APXEOLOG wrote:
Katodiy 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


Aren't you running the normal main method? For upload you should call haven.SteamWorkshop


I tried it like Image
User avatar
Katodiy
 
Posts: 17
Joined: Sun Apr 04, 2021 11:41 pm

Re: Steam Workshop

Postby APXEOLOG » Tue Oct 01, 2024 10:00 am

Katodiy wrote:I tried it like

You're launching the jar's main class (which is MainFrame), and pass the haven.SteamWorkshop as a first argument.
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.
User avatar
APXEOLOG
 
Posts: 1296
Joined: Fri Apr 23, 2010 7:58 am
Location: Somewhere on Earth

PreviousNext

Return to The Wizards' Tower

Who is online

Users browsing this forum: Claude [Bot] and 1 guest