Skip to content

n8m4re/A3_Epoch_PersistenceAddon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CHANGELOG

v0.1.7-fix-1
- [FIXED] storing of server daytime


v0.1.7
- [NEW] storing of server daytime (StaticDateTime only): PersistenceDayTime = true;
- [NEW] holder setting -> enable/disable expiring of holders: PersistenceHolderCanExpire = true;
- [NEW] holder setting -> enable/disable storing of groundholders: PersistenceHolder = true;  
- [MISC] code change

v0.1.6-fix-2
- an "any" table was created when adding items to clothing/vest/backpack  

v0.1.6-fix
- duplicate holder index

v0.1.6
- holder load/spawn and indexing reworked

v0.1.5-fix
- HolderIndex fixed

v0.1.5

   - config variable names changed
   - removed "map name" from tablename
   - decrease of load time
   - prevent cleanup of groundholders
   - disabled not needed hint message in sqf

Install Server

ADD "a3_n8m4re_persistence.bpo" TO "@epochhive/addons"

Install Client Mission

ADD "N8M4RE_Persistence_Client.sqf" TO "mpmissions/epoch.mapname", if you have there a *.pbo instead of a folder, please google for "how to extract .pbo", pbo is an archive like "zip" you need a tool for that.

open the "init.sqf" inside of the "mpmissions/epoch.mapname" folder, if not exist then create an new file with an editor like "notepad++" and name it to "init.sqf"

example for the "init.sqf"

// stop server loading the client script
// tutorial: http://killzonekid.com/arma-scripting-tutorials-basic-multiplayer-coding-summary/  
if (isDedicated) exitWith {}; 

// compile the script on mission load
// https://community.bistudio.com/wiki/compileFinal
N8M4RE_Persistence_Client=compileFinal preprocessFileLineNumbers "N8M4RE_Persistence_Client.sqf";

// wait client is ready 
// https://community.bistudio.com/wiki/waitUntil
// https://community.bistudio.com/wiki/isPlayer
// https://community.bistudio.com/wiki/alive
waitUntil{(isPlayer player) && (alive player) && !isNil "EPOCH_loadingScreenDone"};

// Starts running the script
// https://community.bistudio.com/wiki/spawn
[] spawn N8M4RE_Persistence_Client;

Battleye

ADD TO "publicvariable.txt"

!="N8M4RE_(PERSISTENCE_PUT|PERSISTENCE_TAKE)"

Epoch Server Config

ADD TO "@epochhive/epochconfig.hpp"

PersistenceTablePrefix = "PERSIST"; 	// change will create a new table in db

PersistenceHolder = true; 				// enable/disable storing of groundholder items
PersistenceHolderCanExpire = true; 		// enable/disable expiring of holders
PersistenceHolderExpires = "172800"; 	// 1day=86400, 2days=172800, 4days=345600, 8days=691200 
PersistenceHolderLimit = 1500; 			// max groundholder can stored (a groundholder can hold more than one item)

PersistenceDayTime = true;				// enable/disable storing of server daytime (StaticDateTime only)
  • This addon contains some bit of code lines from the Epoch server.pbo. (like the magazine/ammo count )
  • So also Credits to the Epochmod-Team.

Author

Nightmare - http://n8m4re.de

License

All the code and information provided here is provided under an Attribution Non-Commercial ShareAlike 4.0 Commons License.

http://creativecommons.org/licenses/by-nc-sa/4.0/

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published