Open cyberbobjr opened 3 months ago
mmmm probably the path D:\steam\steamapps\common\ProjectZomboid\java
isn't correct.... mmm i never tested on client side because i don't have the game, but it's probably that the "java" folder is in another folder.
How look's like game files on client side?
Yeah the correct path is :
D:\steam\steamapps\common\ProjectZomboid\zombie
Hello @ZetaMap , i'm not a java expert, but a beginner. I have a question : if i made some changes into the code, how can i compile it to produce a "class" file please ?
ok found the way :)
javac -cp "D:\steam\steamapps\common\ProjectZomboid" --release 17 -Xlint:unchecked .\*.java -d ..\out
i fixed the path, compile the classes and all is working 👍
@ZetaMap i have one doubt : in LuaManager.java at line 612 you declare
public static class GlobalObject
but without any of the original exposed lua methods like these:
@LuaMethod(
name = "loadVehicleModel",
global = true
)
public static Model loadVehicleModel(String var0, String var1, String var2) {
return loadZomboidModel(var0, var1, var2, "vehicle", true);
}
@LuaMethod(
name = "loadStaticZomboidModel",
global = true
)
public static Model loadStaticZomboidModel(String var0, String var1, String var2) {
return loadZomboidModel(var0, var1, var2, (String) null, true);
}
@LuaMethod(
name = "loadSkinnedZomboidModel",
global = true
)
public static Model loadSkinnedZomboidModel(String var0, String var1, String var2) {
return loadZomboidModel(var0, var1, var2, (String) null, false);
}
...
won't this break the game ?
yea normal, this is a stub, just for compilation, because i have lot of errors with importations, i create stubs.
but the problem is, i cannot test this anymore because I was using my friend's game files, who is no longer there, because the school year is over.
Hello, nice works :) I tried to launch the game (in debug mode, nosteam), and i have a NPE at startup :
Thanks for your help :)