SSR: Safehouses Overhaul

If you liked this item, please rate it up on Steam Workshop page.

Author: Oneline

Last revision: 24 Jun, 2018 at 18:48 UTC

File size: 6.93 MB

On Steam Workshop

Description:

This mod implements factions-based safehouse capture system
(this includes auto raid-times and blood effect on damage received)

Installation of this mod requires some knowledge in java modding
By changing java code you agree that you are solely responsible for the consequences resulting from your actions

Take in mind that you will have to do this over and over each game update, because contents of java scripts may change, and, if you use old version, you can break your game

Client-side installation:

1) Subscribe
2) Enjoy

Server-side installation:

Step 1: Modifying classes

0) Download special java mod and unpack zombie folder to pzserverjava

This contains my SSROverride.class and modified isoLosUtil.class (to init custom class).
I strongly suggest you to make a fresh LosUtil.class by yourself to ensure it’s up to date and won’t cause any problems. I’ll explain how to do that below:

1) Install Eclipse[www.eclipse.org]
2) Decompile all classes from pzserverjava directory using this fernflower build
3) Open LosUtil.java
4) Find the following

public static void init(int width, int height) { XSIZE = Math.min(width, 200); YSIZE = Math.min(height, 200); cachedresults = new byte[XSIZE][YSIZE][ZSIZE][4]; }

5) Add zombie.SSROverride.init(); and build

public static void init(int width, int height) { XSIZE = Math.min(width, 200); YSIZE = Math.min(height, 200); cachedresults = new byte[XSIZE][YSIZE][ZSIZE][4]; zombie.SSROverride.init(); }

6) Replace existing class (LosUtil) with one you compiled

Step 2: Installation

1) Install mod to your server
2) Go to ZomboidLua directory
3) Create FWSettings.ini file and fill in using this example

StartTime=13 EndTime=15

4) Enjoy

Since ContextFix.lua overrides game functions, it can be outdated and provide less options than expected.
I suggest you to make a similar script for your modpack with up to date ISWorldObjectContextMenu.createMenu function override

I shall ask you not to add this mod to your modpack. It’s designed for being used separately

Workshop ID: 1178772929
Mod ID: ssr-private

Download
Required items:

Click the title to search on this site.


SSR: CoreSteam Workshop