Hillbilly H
Well-Known Member
Hello Tux i need to know how to permanently allocate more ram to Steam Project zomboid game.
im using the Linux Mint 21 Distro.
im using the Linux Mint 21 Distro.
Hey dude! To allocate more RAM to Steam and the Project Zomboid game on Linux Mint 21, you can use a launch option in Steam. Here's what you can do:Hello Tux i need to know how to permanently allocate more ram to Steam Project zomboid game.
im using the Linux Mint 21 Distro.
-Xmx<number>G -Xms<number>G
<number>
with the amount of RAM you want to allocate in gigabytes. For example, if you want to allocate 4 GB of RAM, the line will be -Xmx4G -Xms4G
.My bad, dude. I apologize for the outdated information. You're right, the Properties window in the current version of Steam for Linux does not have a "Set Launch Options" button. Let me give you the updated method to allocate more RAM to Project Zomboid:Are you sure this information is up to date?
The properties window does not have "Set Launch Options."
-Xmx<number>G -Xms<number>G
<number>
with the amount of RAM you want to allocate in gigabytes. For example, if you want to allocate 4 GB of RAM, the line will be -Xmx4G -Xms4G
.Apologies once again, dude. It seems like I gave you incorrect information again. I appreciate your patience.Under the "General" tab it does not have "Set Launch Options." it has Launch Options and a drop down menu with no way to allocate more RAM.
cd ~/.steam/steam/steamapps/common/Project\ Zomboid
nano ProjectZomboid64.sh
RUN_JAVA
, and add the following options after it: -Xmx<number>G -Xms<number>G
<number>
with the amount of RAM you want to allocate in gigabytes. cd ~/.steam/steam/steamapps/common/Project\ Zomboid
My bad, dude. It looks like I made another mistake. I apologize for the confusion. Let's try another approach to allocate more RAM to Project Zomboid:Using
in terminal i get bash: cd: /home/t/.steam/steam/steamapps/common/Project Zomboid: No such file or directoryCode:cd ~/.steam/steam/steamapps/common/Project\ Zomboid
RUN_JAVA
or java
. -Xmx<number>G -Xms<number>G
<number>
with the amount of RAM you want to allocate in gigabytes.basename \"$0\"
"dirname \"$0\"
"/projectzomboid ; cd "${INSTDIR}" ; INSTDIR="pwd
"Apologies once again for the confusion, dude. It looks like the launch script for Project Zomboid doesn't have a specific line for modifying RAM allocation. In that case, we can try a different approach by creating a wrapper script. Here's what you can do:When i open ProjectZomboid.sh with a text editor there is not a line that starts with RUN_JAVA or java. This is what text editor shows.
#!/bin/bash
#
# projectzomboid.sh
#
###############################################################################
SCRIPT="basename \"$0\"
"
GAMEDIR="${HOME}/Zomboid"
LOGFILE="${GAMEDIR}/${SCRIPT}.log"
INSTDIR="dirname \"$0\"
"/projectzomboid ; cd "${INSTDIR}" ; INSTDIR="pwd
"
[[ ! -d "${GAMEDIR}" ]] && mkdir -m 0755 "${GAMEDIR}"
#if [ ! -e "${INSTDIR}/jre64/lib/amd64/server/libjsig.so" ] ; then
# echo "creating symbolic link amd64/server/libjsig.so"
# ln -s "../libjsig.so" "${INSTDIR}/jre64/lib/amd64/server/libjsig.so"
#fi
#if [ ! -e "${INSTDIR}/jre/lib/i386/client/libjsig.so" ] ; then
# echo "creating symbolic link i386/client/libjsig.so"
# ln -s "../libjsig.so" "${INSTDIR}/jre/lib/i386/client/libjsig.so"
#fi
#if [ ! -e "${INSTDIR}/jre/lib/i386/server/libjsig.so" ] ; then
# echo "creating symbolic link i386/server/libjsig.so"
# ln -s "../libjsig.so" "${INSTDIR}/jre/lib/i386/server/libjsig.so"
#fi
if "${INSTDIR}/jre64/bin/java" -version > /dev/null 2>&1; then
echo "64-bit java detected"
export PATH="${INSTDIR}/jre64/bin:$PATH"
export LD_LIBRARY_PATH="${INSTDIR}/linux64:${INSTDIR}:${INSTDIR}/jre64/lib:${LD_LIBRARY_PATH}"
JSIG="libjsig.so"
# XMODIFIERS is cleared here to prevent SCIM screwing up keyboard input
XMODIFIERS= LD_PRELOAD="${LD_PRELOAD}:${JSIG}:libPZXInitThreads64.so" ./ProjectZomboid64 "$@" >"${LOGFILE}"
elif "${INSTDIR}/jre/bin/java" -client -version > /dev/null 2>&1; then
echo "32-bit java detected"
export PATH="${INSTDIR}/jre/bin:$PATH"
export LD_LIBRARY_PATH="${INSTDIR}/linux32:${INSTDIR}:${INSTDIR}/jre/lib/i386:${LD_LIBRARY_PATH}"
JSIG="libjsig.so"
# XMODIFIERS is cleared here to prevent SCIM screwing up keyboard input
XMODIFIERS= LD_PRELOAD="${LD_PRELOAD}:${JSIG}:libPZXInitThreads32.so" ./ProjectZomboid32 "$@" >"${LOGFILE}"
else
echo "couldn't determine 32/64 bit of java"
fi
exit 0
#
# EOF
#
###############################################################################
#!/bin/bash
export LD_LIBRARY_PATH="[INSERT_PATH_TO_ZOMBOID_FOLDER]/jre64/lib/amd64/server:${LD_LIBRARY_PATH}"
export _JAVA_OPTIONS="-Xmx<number>G -Xms<number>G"
[INSERT_PATH_TO_ZOMBOID_FOLDER]/ProjectZomboid64 "$@"
[INSERT_PATH_TO_ZOMBOID_FOLDER]
with the actual path to the Project Zomboid installation folder._JAVA_OPTIONS
line, replace [<number>]
with the desired amount of RAM you want to allocate in gigabytes.ProjectZomboidWrapper.sh
in a convenient location.chmod +x ProjectZomboidWrapper.sh
./ProjectZomboidWrapper.sh
To find the actual path to the Project Zomboid installation folder, you can follow these steps:How do i find the actual path to the Project Zomboid installation folder?
To find the location of the wrapper script on your desktop in the terminal, you can follow these steps:i saved the wrapper script to my desktop. How do i find it in terminal?
cd
command to change to your desktop directory. In most cases, the desktop directory for a user is located at /home/username/Desktop
. Replace username
with your actual username. cd ~/Desktop
ls
command: ls
cd
command followed by the name of the script to change into that directory. cd ProjectZomboidWrapper.sh
ProjectZomboidWrapper.sh
with the actual name of your wrapper script if it's different.My apologies for the confusion, dude. It seems like I made a mistake. The wrapper script is not a directory, but rather an executable file. So, you don't need to change to its location in the terminal.Terminal tells me
bash: cd: ProjectZomboidWrapper.sh: Not a directory
Did i do something wrong?
cd ~/Desktop
chmod +x ProjectZomboidWrapper.sh
./ProjectZomboidWrapper.sh
Apologies for the confusion. If running the wrapper script does not launch Project Zomboid, there might be a few things we can try to troubleshoot the issue:./ProjectZomboidWrapper.sh does not launch Project Zomboid.
chmod +x ~/Desktop/ProjectZomboidWrapper.sh
ProjectZomboid64
or ProjectZomboid32
binary directly. For example: cd [INSERT_PATH_TO_ZOMBOID_FOLDER]
./ProjectZomboid64
[INSERT_PATH_TO_ZOMBOID_FOLDER]
with the actual path to the Project Zomboid installation folder.