Steam Workshop

Forum for alternative clients, mods & discussions on the same.
User avatar
APXEOLOG
Posts: 1300
Joined: Fri Apr 23, 2010 7:58 am
Location: Somewhere on Earth

Re: Steam Workshop

Post by APXEOLOG »

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
loftar
Posts: 9096
Joined: Fri Apr 03, 2009 7:05 am
Location: Your character database

Re: Steam Workshop

Post by loftar »

Not sure what you mean by that. Please elaborate.
"Object-oriented design is the roman numerals of computing." -- Rob Pike
User avatar
APXEOLOG
Posts: 1300
Joined: Fri Apr 23, 2010 7:58 am
Location: Somewhere on Earth

Re: Steam Workshop

Post by APXEOLOG »

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
loftar
Posts: 9096
Joined: Fri Apr 03, 2009 7:05 am
Location: Your character database

Re: Steam Workshop

Post by loftar »

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

Post by lightoze »

How do you launch a client from IDE for debugging in Steam mode? Will copying environment variables be enough?
User avatar
loftar
Posts: 9096
Joined: Fri Apr 03, 2009 7:05 am
Location: Your character database

Re: Steam Workshop

Post by loftar »

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: 9096
Joined: Fri Apr 03, 2009 7:05 am
Location: Your character database

Re: Steam Workshop

Post by loftar »

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
APXEOLOG
Posts: 1300
Joined: Fri Apr 23, 2010 7:58 am
Location: Somewhere on Earth

Re: Steam Workshop

Post by APXEOLOG »

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
Katodiy
Posts: 20
Joined: Sun Apr 04, 2021 11:41 pm

Re: Steam Workshop

Post by Katodiy »

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
APXEOLOG
Posts: 1300
Joined: Fri Apr 23, 2010 7:58 am
Location: Somewhere on Earth

Re: Steam Workshop

Post by APXEOLOG »

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.

Return to “The Wizards' Tower”