DayZ
60 ratings
Zens Proxy Framework
   
Award
Favorite
Favorited
Unfavorite
Type: Mod
Mod Type: Mechanics
File Size
Posted
Updated
109.812 KB
Dec 29, 2024 @ 4:57pm
Dec 29, 2024 @ 5:32pm
5 Change Notes ( view )

Subscribe to download
Zens Proxy Framework

Description
What Is This?

This mod is a framework mod. It adds the ability to implement actions on proxy objects in buildings (eg. on house furniture).

It is heavily inspired by the work of Hunterz, Zedmag and Ujniher's "Search For Loot" mod https://steamcommunity.com/sharedfiles/filedetails/?id=3200745813. Shout-out to their awesome work.

Unfortunately because their mod does not have a #define declared, my mod is not compatible with theirs as some code conflicts with the scripted vanilla houses.

I learned the method for identifying proxy objects through studying their code, but my framework mod is written from scratch with the intention of creating a generic codebase for modders to add their own custom actions to in-game proxy objects.

Some examples of what's possible include:
Adding ability to sleep emote on beds or sit on chairs
Adding ability to repair and drink from sinks
Adding ability to search bookcases/fridges/etc for items

Those are the examples included in my basic proxy action template mod, but you can add any action you want to pretty much any proxy object in houses (with a few rare exceptions).

The mod has a debug mode in which you can press "F" on various objects to get their proxy name (the name is copied to your clipboard). Then to add an action to it, just follow the template code provided.

It will require some intermediate level modding experience and skills to figure out how to add your own actions to things.

I made the framework as intuitive and simple as possible, but if you're new to DayZ modding then you might need to reach out to someone for help (unfortunately I don't have the time to help everyone who messages me - but there will be plenty of modders out there who will know how to add in-game actions using this framework so just ask for help on the various community discords).

A template mod's source code is included in the "extras" folder for reference, and is a mod I created for use on my own server. The framework itself contains some example templates for adding actions to things in the code as well.

There's a video guide on my YouTube channel explaining how the mod works and how to add custom actions.

Installation Instructions:

Install this mod like any other mod - copy it into your server folder and add it to your mods list. Make sure to copy the .bikey into your server keys if you're not using a server management tool like OmegaManager which does that automatically.

This mod must be run on both client & server so make sure to repack it into your server mod or add it to your modlist to use it.

The framework comes with an example .pbo file included for adding some basic proxy actions - repack that pbo file into your server modpack if you want to add some actions to your server but don't know how to.

Alternatively, if you don't know how to repack mods but still want some basic actions added to furniture, I published the template mod to the workshop here: https://steamcommunity.com/sharedfiles/filedetails/?id=3395567006

Don't forget to copy the types.xml entries if you want to enable persistence on the repaired sinks/searched objects.

The JSON config for turning on/off debug and overriding specific proxy objects is located in $serverprofiles:/Zenarchist/Utilities/ZenProxyFrameworkConfig.json

Repack & Source Code:

You can repack this mod if you like, and do anything else you want with it for that matter. The source code is on my GitHub at www.zenarchist.com

Buy Me A Coffee:

All my mods are free and open source, but it takes an enormous amount of time to put some of these mods together. If I've helped you out, please consider helping me buy my next coffee! I don't expect it, but I very much appreciate it.

https://buymeacoffee.com/zenarchist

Enjoy!
17 Comments
[S.C.] Zedmag 15 hours ago 
So you’re saying it WASNT inspired by MY proxy search frame work 1 and 2.0? 🤔
水杉 Jun 6 @ 7:32am 
Hope to be compatible with version 1.28
FreddyCruger Jun 4 @ 3:55am 
after update 1.28 mod was broken. If you decide to search some proxies (cartoon boxies or book shelves) character is stoped and only jump can help
7emenoff May 9 @ 9:24am 
Land_House_1W11, "almara" - does't recognise even if overrided
Firsken Feb 25 @ 4:35pm 
So I'm wondering... Can this be used to, for example, "hijack" fridges in houses to be able to connect them to generators to store food/drinks? Or, possibly check close objects for a more realistic heating area (so you could heat a whole house and be able to sleep in a bed without freezing to death)? :) Just asking!
Arielluke Jan 21 @ 1:33pm 
Would be so cool if one could set a animation for sitting on chairs and stuff like that. Great job Zen!
EL Susurrador Jan 20 @ 5:18am 
@Zenarchist It would be nice a small tutorial or example to add custom proxies to mod models, such as buildings that come in mod maps.
At least looking at the github I only see explanation for adding actions.
MOHTEP Jan 7 @ 11:07pm 
I noticed this feature when using this mod. When approaching a large city, for example, Petropavlovsk-Sakhalsky from the Frostline add-on, a huge freeze occurs, which often leads to the destruction of the car. Can this be fixed somehow?
Wilma Fingerdoo Jan 3 @ 10:32pm 
just so you know as of 1.21 mods dont need to have a #define, they are auto generated from the cfgmods class so if you wanted to script something to only work with my 240z mod the class in cfgmods is "Datsun240z" so all you need to do is use

#ifdef Datsun240z
your code to use
#endif

and it will work if the mod was installed