Project Zomboid

Project Zomboid

75 ratings
[B42] 360º Vision
4
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
292.640 KB
21 Mar @ 3:40pm
24 Mar @ 1:22pm
2 Change Notes ( view )

Subscribe to download
[B42] 360º Vision

Description
This mod requires MANUAL installation to work!!! Read below to learn how:



What does this mod do?
This mod removes the character’s cone of vision and allows a 360º view without shadows. Perfect for Jump-scare magnet chickens cautious players (like me)!



How does it work?
Unnecessarily nerdy explanation below—be careful not to fall asleep while reading.
This mod modifies the method public static float calculateVisionCone() from the Java class LightingJNI, which calculates the character’s condition, moodles, and traits and returns the size of the vision cone. The modification is in the final return line, which, regardless of the calculation results, always returns the maximum possible value (1.0F), equivalent to 360º.

Unlike other mods that are made by decompiling and recompiling classes, I modified the bytecode file directly. Although this means the class method still performs all unnecessary calculations, I believe avoiding the decompilation and recompilation process also prevents many bugs.



How to install?
  1. Back up the LightingJNI file (optional):
    If this is the only mod you’re installing manually, you can skip this step. If you have other manually installed mods, it’s recommended to back up the file in question.

    1.1. Navigate to the iso folder inside the Project Zomboid installation directory, usually found at:
    C:\Program Files (x86)\Steam\steamapps\common\ProjectZomboid\zombie\iso

    1.2. Locate and rename the file LightingJNI.class to LightingJNI_ORIGINAL.class (or any other name you’ll remember later). Renaming this file makes it unrecognized by the game, allowing you to replace it with another version.

    1.3. Do not close this window yet! You’ll return to it in the next step.

  2. Copy and replace the mod file:

    2.1. When subscribing to the mod, Steam will automatically download a folder containing the modified LightingJNI.class file, usually at:
    C:\Program Files (x86)\Steam\steamapps\workshop\content\108600\3449252911\mods\360Vision\42.6\media.

    2.2. Copy the file LightingJNI.class.

    2.3. Go to the iso folder inside the Project Zomboid installation directory (the same window from step 1).

    2.4. Paste the file. If you didn’t create a backup in step 1, the system will ask if you want to replace the file—proceed.

  3. Done! The mod is now installed and will take effect in all saves you create or continue on this computer.



How to uninstall?
• If you backed up the file during installation, go to the iso folder inside the game directory, delete the modified LightingJNI.class file, and rename your backup file LightingJNI_ORIGINAL.class back to LightingJNI.class.

• If you did not back up the original file:
  1. Open your Steam Library.
  2. Find Project Zomboid, right-click it, and select Properties.
  3. Click on the Installed Files tab on the left menu.
  4. Finally, click Verify integrity of game files. Steam will detect that the modified file’s metadata is incorrect and will download the original file.



FAQ
  • Does this mod work on Build 41?
    No, there are already similar mods available for Build 41 in the Workshop.

  • Is this mod safe? Can I add and remove it in existing saves?
    Yes! Since this mod only modifies calculations related to the character’s vision, you can enable and disable it at any time in any save.

  • Does this mod allow seeing zombies through walls?
    No.

  • Will zombies also have 360º vision?
    Probably not. It seems that the calculateVisionCone() method is called only to calculate the player's vision. However, I can’t guarantee that it isn’t used elsewhere in the code, as I don’t have knowledge of all the classes.

  • Will this mod work in (future) multiplayer?
    Probably yes. Please don’t use it on public servers.




This is my first mod, so be kind with tips, suggestions, and criticism. 😊
48 Comments
HuskySibers 1 Aug @ 11:42am 
works perfect and let my fps better, 10/10
Pep 27 Jul @ 12:05pm 
works perfect
XCyclonSix 24 Jul @ 6:14pm 
How to download?
Dirigible 9 Jul @ 9:22pm 
The vision cone is like the biggest thing that stopped me from getting into this game fully, and the only other mod I found for it also breaks zombies and lets you see through walls. Nice to see another attempt at it
Dr Nilsson 🖖 29 Jun @ 7:48am 
He he :D
Chaboter 29 Jun @ 7:40am 
Im still laughing at Dr, Nilsson
Dr Nilsson 🖖 2 Jun @ 4:42am 
Turns out i was just spawning in a completely blacked out room without any lights :P
Dr Nilsson 🖖 2 Jun @ 3:21am 
Nevermind, it works now. :)
Dr Nilsson 🖖 2 Jun @ 3:09am 
Did the latest unstable brake this mod? Because when loading a new game, everything is black and just some of the outlines of the building you start in and the menu is visible.
Crashdown 24 May @ 4:27pm 
Love the idea of this mod. Wish it still had the shadows on solid objects, though, as zombies seemingly fade in and out of existence now without the "shadows". Also had an odd "flickering" visual bug (screen would jump from dark to light quickly and repeatedly) whenever I was in melee combat. It went away when I uninstalled the mod.