Can't get more than 1GB of memory

    Joined
    Oct 15, 2015
    Messages
    12
    Reaction score
    0
    So, I just got StarMade, and it looks like a really cool concept. Unfortunately, I'm running into problems with memory. I was able to allocate 1024MB to StarMade, but when I try to allocate more, it can't start. I've heard of people having this problem with Java on 32-bit machines, but I have a 64-bit.
    I'm using a Lenovo Y40-80, Intel Core i7 5500U, AMD Radeon R9 M275 graphics card, and 8GB of RAM.
    I'd like to be able to allocate at least 4GB to StarMade so I can have really big ships.
    Please help.
     
    Joined
    Oct 22, 2014
    Messages
    338
    Reaction score
    148
    • Legacy Citizen 3
    If you use a 32 bit browser, it will only give you 32 bit java when you download. You might have to go manually download the 64 bit version. That's what I had to do. It let me allocate about 6gb after. I also upped all the other settings in that same section to match.
     
    Joined
    Mar 7, 2015
    Messages
    65
    Reaction score
    7
    • Purchased!
    • Community Content - Bronze 1
    Even though you probably have a 64 bit OS (ie Windows), the usual default install for Java is the 32 bit version. This means you have to uninstall Java 32 and install Java 64 bit.

    Bare this in mind though.
    You cannot have the 32 bit and 64 bit versions at the same time.
    Support for Java 64 is far less than Java 32 and therefore many Java applications may no longer run after a 64 bit install.

    Hope this helps.
    There are many help pages on installing Java 64. Do an internet search.
     
    Joined
    Jul 21, 2013
    Messages
    2,932
    Reaction score
    460
    • Hardware Store
    Support for Java 64 is far less than Java 32 and therefore many Java applications may no longer run after a 64 bit install.
    Only if the application isn't 100% java.
    You cannot have the 32 bit and 64 bit versions at the same time.
    False. Only one may be used at a time, but both may be installed at the same time, provided install paths differ.
     
    Joined
    Oct 22, 2014
    Messages
    338
    Reaction score
    148
    • Legacy Citizen 3
    False. Only one may be used at a time, but both may be installed at the same time, provided install paths differ.
    This is true, I have both versions installed on my PC with no conflicts, and have for a very long time. Sometimes you have to manually update the 64bit if you use a 32bit browser(such as firefox), because that is the one downloaded by default for those.
     
    Joined
    Dec 17, 2014
    Messages
    65
    Reaction score
    20
    Im gonna try installing 64 bit java in a different folder
    My question is how to force Starmade to use 64 bit java and not 32
    [DOUBLEPOST=1445386989,1445386553][/DOUBLEPOST]I have installed java 64 from therimmer96's link
    I didn't select delete old version (I think he was trying to delete my 32bit version)
    So now I have C:\Program Files\Java\jre1.8.0_60 and C:\Program Files (x86)\Java\jre1.8.0_60

    But starmade doesnt load when I select anything higher than 1024

    therefore I presume starmade is loading 32bit java and not 64

    how to force loading 64bit java for starmade?
     

    therimmer96

    The Cake Network Staff Senior button unpusher
    Joined
    Jun 21, 2013
    Messages
    3,603
    Reaction score
    1,053
    • Legacy Citizen 10
    • Top Forum Contributor
    open your starmade folder.

    Hold shift and right click, and then click open command window here

    paste in "C:\Program Files\Java\jre1.8.0_51\bin\java.exe" -jar starmade.jar -Xms1024m -Xmx2048m

    That should launch starmade with 2gb of ram allocated to check if its even working :)
     
    Joined
    Jul 21, 2013
    Messages
    2,932
    Reaction score
    460
    • Hardware Store
    open your starmade folder.

    Hold shift and right click, and then click open command window here

    paste in "C:\Program Files\Java\jre1.8.0_51\bin\java.exe" -jar starmade.jar -Xms1024m -Xmx2048m

    That should launch starmade with 2gb of ram allocated to check if its even working :)
    That won't work.
    "C:\Program Files\Java\jre1.8.0_51\bin\java.exe" -Xms1024m -Xmx2048m -jar starmade.jar -client
    This will work.
     

    therimmer96

    The Cake Network Staff Senior button unpusher
    Joined
    Jun 21, 2013
    Messages
    3,603
    Reaction score
    1,053
    • Legacy Citizen 10
    • Top Forum Contributor
    -client isn't needed. it seems to ignore it unless its -server.
     
    Joined
    Jul 21, 2013
    Messages
    2,932
    Reaction score
    460
    • Hardware Store
    -client isn't needed. it seems to ignore it unless its -server.
    Last I checked, StarMade refuses to launch if neither "-client", "-server" or "-force" are arguments. Also, your memory options are most likely not parsed by the JVM, as they are within the 'runtime argument' section, and not the 'JVM-parameter' section.
     

    therimmer96

    The Cake Network Staff Senior button unpusher
    Joined
    Jun 21, 2013
    Messages
    3,603
    Reaction score
    1,053
    • Legacy Citizen 10
    • Top Forum Contributor
    Last I checked, StarMade refuses to launch if neither "-client", "-server" or "-force" are arguments. Also, your memory options are most likely not parsed by the JVM, as they are within the 'runtime argument' section, and not the 'JVM-parameter' section.
    just checked, it would seem if it does not recognise the the argument, it launches the client. Thats why it worked for me because I forgot to put my memory stuff in the right place.

    also seems that -test does something strange...
     
    Joined
    Dec 17, 2014
    Messages
    65
    Reaction score
    20
    Thanks guys, this worked, even tho when I added -Xms1024m -Xmx2048m, the memory settings still showed 1024 maximun memory, 512 initial and 128 on early. I changed maximun to 2048 and left the rest as default.

    Anyway, the problem i see with this is, when I fire Starmade my friends can't see that im playing on Steam, it shows me as online but not as in game. How can I fire the game so it shows up on Steam?
     

    therimmer96

    The Cake Network Staff Senior button unpusher
    Joined
    Jun 21, 2013
    Messages
    3,603
    Reaction score
    1,053
    • Legacy Citizen 10
    • Top Forum Contributor
    Just to be sure, this is the one you are using right?

    "C:\Program Files\Java\jre1.8.0_51\bin\java.exe" -Xms1024m -Xmx2048m -jar starmade.jar -client
    [DOUBLEPOST=1445871426,1445870960][/DOUBLEPOST]wait, ignore that, didn't read properly.

    You can create your own none steam version of the game in steam, but there is little point other than getting steam to show you ingame
    1. Go to the bottom of steam, click add a game and click add a none steam game
    2. click browse, and go to C:\Program Files\Java\, open the folder, go to bin and add the javaw.exe file.
    3. click add selected programs, and javaw should appear in your steam list
    4. right click javaw and select properties
    5. change start in to where ever your starmade install is located, the ./starmade/ folder.
    6. click set launch options and paste in -Xms1024m -Xmx2048m -jar starmade.jar -client and press okay
    7. rename to starmade 2gb ram or something that you will recognise
    8. click choose icon, navigate to the folder with your starmade launcher and select it
    9. press close
    10. launch game
     
    Joined
    Dec 17, 2014
    Messages
    65
    Reaction score
    20
    Step 5 doesn't work, "start in" asks for a .exe, I cant close the window unless I select an executable. The \AppData\Roaming\.StarMade folder only has 2 files and no executables to select.
     
    Joined
    Dec 17, 2014
    Messages
    65
    Reaction score
    20
    Just to be sure, this is the one you are using right?


    [DOUBLEPOST=1445871426,1445870960][/DOUBLEPOST]wait, ignore that, didn't read properly.

    You can create your own none steam version of the game in steam, but there is little point other than getting steam to show you ingame
    1. Go to the bottom of steam, click add a game and click add a none steam game
    2. click browse, and go to C:\Program Files\Java\, open the folder, go to bin and add the javaw.exe file.
    3. click add selected programs, and javaw should appear in your steam list
    4. right click javaw and select properties
    5. change start in to where ever your starmade install is located, the ./starmade/ folder.
    6. click set launch options and paste in -Xms1024m -Xmx2048m -jar starmade.jar -client and press okay
    7. rename to starmade 2gb ram or something that you will recognise
    8. click choose icon, navigate to the folder with your starmade launcher and select it
    9. press close
    10. launch game
    How to solve this?
     

    therimmer96

    The Cake Network Staff Senior button unpusher
    Joined
    Jun 21, 2013
    Messages
    3,603
    Reaction score
    1,053
    • Legacy Citizen 10
    • Top Forum Contributor
    Just type it, the change button is for changing the javaw bit, which you don't need to do

    in my case

     
    Joined
    Dec 17, 2014
    Messages
    65
    Reaction score
    20
    Just type it, the change button is for changing the javaw bit, which you don't need to do

    in my case


    It says "in non-steam game Starmade Demo" which looks pretty ugly...

    Also it didn't even open, it closed for some reason.

    Isn't there really any way to do this conveniently without having to resort to such workarounds? Will the next update of Starmade deal with this? its supossed to be a big update and this is pretty damn basic.

    edit: Whatever, I tried to launch it with the default shortcut and it's working with 2048 mb selected on the launcher... maybe after installing 64 bit java it's not launching it by default instead of the 32 bit one.
     
    Last edited:

    therimmer96

    The Cake Network Staff Senior button unpusher
    Joined
    Jun 21, 2013
    Messages
    3,603
    Reaction score
    1,053
    • Legacy Citizen 10
    • Top Forum Contributor
    do me one last thing and uninstall the 32 bit java and try again.

    this isnt and issue with the game, it seems to be an issue with java on your pc.