Skip to content

Instantly share code, notes, and snippets.

@4zeta85
4zeta85 / ProjectZomboid64.bar
Last active October 16, 2025 09:44
Fixed version of ProjectZomboid64.json and ProjectZomboid64.bat for Porject Zomboid build 42.11.0, 42.12.0 and 42.12.1 (see full guide on https://steamcommunity.com/sharedfiles/filedetails/?id=3459875383). Ensure that both files stored on "C:\Program Files (x86)\Steam\steamapps\common\ProjectZomboid\" (use any text editor)
@setlocal enableextensions
@cd /d "%~dp0"
SET _JAVA_OPTIONS=
:: Set up classpath for Project Zomboid
SET PZ_CLASSPATH=.\guava-23.0.jar;commons-compress-1.27.1.jar;commons-io-2.18.0.jar;istack-commons-runtime.jar;jassimp.jar;javacord-3.8.0-shaded.jar;javax.activation-api.jar;jaxb-api.jar;jaxb-runtime.jar;lwjgl.jar;lwjgl-natives-windows.jar;lwjgl-glfw.jar;lwjgl-glfw-natives-windows.jar;lwjgl-jemalloc.jar;lwjgl-jemalloc-natives-windows.jar;lwjgl-opengl.jar;lwjgl-opengl-natives-windows.jar;lwjgl_util.jar;sqlite-jdbc-3.48.0.0.jar;trove-3.0.3.jar;uncommons-maths-1.2.3.jar;imgui-binding-1.86.11-8-g3e33dde.jar;commons-codec-1.10.jar;javase-3.2.1.jar;totp-1.0.jar;core-3.2.1.jar;./
:: Detect system hardware specifications
for /f "tokens=2 delims==" %%a in ('wmic OS get TotalVisibleMemorySize /value') do set /a total_mem=%%a/1024
for /f "tokens=2 delims==" %%a in ('wmic cpu get NumberOfCores /value') do set /a num_cores=%%a