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
-
Mashadar
- Posts: 379
- Joined: Thu Jan 20, 2011 9:34 am
Re: JVM Optimizations (Arguments like HeapSize)
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.
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.
-
DonSolo
- Posts: 3
- Joined: Thu Nov 14, 2024 1:28 am
Re: JVM Optimizations (Arguments like HeapSize)
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.
-
Astarisk
- Posts: 882
- Joined: Fri Aug 13, 2010 7:08 am
Re: JVM Optimizations (Arguments like HeapSize)
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
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
Join the (HedgeHugs) Haven & Hearth Discord if you need help.
https://discord.com/invite/Uy8yzm4
-
DonSolo
- Posts: 3
- Joined: Thu Nov 14, 2024 1:28 am
Re: JVM Optimizations (Arguments like HeapSize)
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.
Each update overwrites, but I'd refrain from read-only'ing it.