cocolabs / pz-zmod

ZomboidMod is compact mod development environment for Project Zomboid.
MIT License
22 stars 1 forks source link

runZomboidDoc config fails with java version error #36

Open kaen opened 2 years ago

kaen commented 2 years ago

Running with fresh install and default settings against build 41 gives an error like:

zombie/Lua/LuaManager has been compiled by a more recent version of the Java Runtime

Changing the following line in zdoc.gradle (176):

        languageVersion = JavaLanguageVersion.of(8)

to

        languageVersion = JavaLanguageVersion.of(15)

fixes the issue for me. Not sure if 15 is the right version to pick but it gets the job to run happily and autocomplete works like a charm.

robwhitewick commented 2 years ago

did you ever manage to fix the debug run configs for running the game? https://steady.is-fi.re/32gxqsR.png seems the zombie class isnt defined at all but ive not found a fix for importing the classes yet