Ради вашего удобства наш сайт использует cookies! Узнать больше! Мы используем cookies

Reflection Enabler [B42.15 - B42.16.2]

[url=https%3A%2F%2Fko-fi.com%2Fryumods][img]https://i.postimg.cc/mrsRkDGx/kofi-steam.png[/img][/url][ko-fi.com] [u]!!!!! YOU ONLY NEED THIS MOD IF ANOTHER MOD REQUIRES IT !!!!![/u] What is it?! This is a java mod that re-enables reflection functionality that was disabled in B42.15. The following functions have been re-enabled: [list] [*] getNumClassFields [*] getNumClassFunctions [*] getClassField [*] getClassFieldVal [*] getClassFunction [*] getMethodParameter [*] getMethodParameterCount [/list] Installation [b]1.[/b] Assuming default Steam install location, and Project Zomboid install location, navigate to: [list] [*] [b]Windows:[/b] C:\Program Files (x86)\Steam\steamapps\workshop\content\108600\3682136459\ [*] [b]Linux:[/b] /home/<username>/.steam/steam/steamapps/workshop/content/108600/3682136459/ [/list] [b]2.[/b] Go into: [b]mods/reflection-enabler/[/b] [b]3.[/b] Copy the 'zombie' folder into the following: [list] [*] [b]Windows:[/b] C:\Program Files (x86)\Steam\steamapps\common\ProjectZomboid\ [*] [b]Linux:[/b] /home/<username>/.steam/steam/steamapps/common/ProjectZomboid/projectzomboid/ [/list] [b][u]If you're in the right location, you'll see some, or all of the following folders:[/u][/b] - android - jre64 - launcher - license - linux64 - media - steamapps - Workshop [b]4.[/b] Enable the mod in-game, so it can validate that the Java mod is installed correctly, and up to date. Modders: How to check if the patch is enabled Two new functions have been added to lua globally: [list] [*] getReflectionVersion() - Returns the version of this mod. [*] getReflectionGameVersion() - Returns the version the patch was created for. [/list] You can use lua's pcall function to test and get the results of these functions, to see if the patch is enabled: local status, result = pcall(getReflectionGameVersion) 'status' will return true if the function exists, and executed. 'result' will be the return value of the function. You can view the scripts included with this mod for further details. [b]You should make the lua mod a requirement, so the lua can perform the version checking.[/b] Workshop ID: 3682136459 Mod ID: ReflectionEnabler