JVM Optimizations (Arguments like HeapSize)

General discussion and socializing.

JVM Optimizations (Arguments like HeapSize)

Postby DonSolo » Mon Nov 18, 2024 12:33 pm

I've been trying to figure out exactly where to set arguments for JVM for awhile and I've been unsuccessful, I'm currently also using the Enderclient.

With JAVA games like minecraft writing a simple bat suffices, but I'm wondering where I can input " -Xmx16G" type arguments for it work with my game.


Any tips in the right direction would be beautiful, thank you.


~DS
DonSolo
 
Posts: 3
Joined: Thu Nov 14, 2024 1:28 am

Re: JVM Optimizations (Arguments like HeapSize)

Postby Mashadar » Mon Nov 18, 2024 4:26 pm

Most clients already come with a bat file, but if not you can just add one with the contents java -jar hafen.jar and add your arguments to that.
Ender comes with some fancy launcher that slightly complicates things, but it will probably work if you add the argument to "start-hafen.bat".
If not, you can compile the client yourself, which avoids the launcher completely and lets you run the client in a normal way, by launching hafen.jar.
User avatar
Mashadar
 
Posts: 379
Joined: Thu Jan 20, 2011 9:34 am

Re: JVM Optimizations (Arguments like HeapSize)

Postby DonSolo » Tue Nov 19, 2024 8:11 pm

Problem is I run the game through Steam also, I'm not exactly sure how to do it from there. Adding launch arguments to the steam launcher fails. Even adding it to the shortcut fails.
DonSolo
 
Posts: 3
Joined: Thu Nov 14, 2024 1:28 am

Re: JVM Optimizations (Arguments like HeapSize)

Postby Astarisk » Thu Nov 21, 2024 3:12 am

Your best and easiest bet is to just download a standalone client off the forums that comes packaged with .bat or .sh files to load the client with your own custom JVM settings. As it stands, Ender's VIA steam (or most, clients for that matter on the workshop) would require a fair bit of work to get running with custom JVM options. In Ender's scenario his JVM arguments are loaded in through his own launcher file ( https://github.com/EnderWiggin/hafen-cl ... otstrap.hl -> https://enderwiggin.github.io/hafen-steam/hafen.hl ). You'd have to modify his bootstrap file and have it load your own hafen.hl file with the custom JVM arguments. When loading through steam we end up having a launcher that loads a launcher and the JVM arguments will get lost along the way, so they need to be specified in a launcher file ahead of time.

EDIT :: if you're tech savvy enough and comfortable with java you can kind of get an understanding on what is going on here viewtopic.php?f=49&t=76318
IRC/IGN: Rawrz

Join the (HedgeHugs) Haven & Hearth Discord if you need help.
https://discord.com/invite/Uy8yzm4
User avatar
Astarisk
 
Posts: 881
Joined: Fri Aug 13, 2010 7:08 am

Re: JVM Optimizations (Arguments like HeapSize)

Postby DonSolo » Sat Nov 23, 2024 1:32 pm

It's actually in the appdata folder, launcher-hacks.HL ... Can add arguments after the default additions on line 12~

Each update overwrites, but I'd refrain from read-only'ing it.
DonSolo
 
Posts: 3
Joined: Thu Nov 14, 2024 1:28 am


Return to The Inn of Brodgar

Who is online

Users browsing this forum: Amazon [Bot], Bytespider [Bot], Claude [Bot] and 2 guests