Jump to content

[HowTo] use Journal


jOoPs

Recommended Posts

Its not really hard to add/use journal in epoch, since most files are still integerated in dayz_communityassets. You only need a custom-compiles. How this is done can be read in forum more then one time, so search for it und use your brain! All necessary files are included in the rar-archive
 
first a list of modified files (which are not part of rar-archive!)
 
- description.ext
- dayz_code/actions/dayz_spaceInterrupt.sqf
- dayz_code/init/compiles.sqf

 
added folder and files (content of rar-archive)
 
- dayz_code/actions/playerstats/
  - determine_humanity_fnc.sqf
  - epeen_setText_humanity.sqf
  - epeen_setText_journal.sqf
  - epeen_setText_stats.sqf
  - fill_page_fnc.sqf
  - show_humanity_fnc.sqf
 
- dayz_code/config/CfgPlayerStats/
  - defines.hpp
  - p__cover.hpp
  - p_bandits_killed.hpp
  - p_headshots.hpp
  - p_humanity_art.hpp
  - p_journal_humanity.hpp
  - p_murders.hpp
  - p_zombies_killed.hpp
  - sound.hpp

 
------------------

 

download the given rar-archive and extract into your missionfolder. If you use other folderstructures/filenames, change the given paths.

 

------------------

in description.ext add at top
 
class RscIGUIShortcutButton;
#include "dayz_code\config\CfgPlayerStats\defines.hpp"
#include "dayz_code\config\CfgPlayerStats\p__cover.hpp"
#include "dayz_code\config\CfgPlayerStats\p_journal_humanity.hpp"
#include "dayz_code\config\CfgPlayerStats\p_humanity_art.hpp"
#include "dayz_code\config\CfgPlayerStats\p_zombies_killed.hpp"
#include "dayz_code\config\CfgPlayerStats\p_bandits_killed.hpp"
#include "dayz_code\config\CfgPlayerStats\p_headshots.hpp"
#include "dayz_code\config\CfgPlayerStats\p_murders.hpp"
#include "dayz_code\config\CfgPlayerStats\sound.hpp"

 

in dayz_code/actions/dayz_spaceInterrupt.sqf search for User20 (line 138)
replace _nill = execvm "\z\addons\dayz_code\actions\playerstats.sqf"; (line 140)
with createDialog "horde_journal_front_cover";

 

 

in dayz_code/init/compiles.sqf search for dayz_spaceInterrupt (line 26)

replace dayz_spaceInterrupt =            compile preprocessFileLineNumbers "\z\addons\dayz_code\actions\dayz_spaceInterrupt.sqf"; (line 26)

with dayz_spaceInterrupt =            compile preprocessFileLineNumbers "dayz_code\actions\dayz_spaceInterrupt.sqf";

 

 

in dayz_code/init/compiles.sqf search for //System (line 122) above insert ...

    //playerstats
    horde_epeen_fnc_fill_page = compile preProcessFile "dayz_code\actions\playerstats\fill_page_fnc.sqf";
    horde_epeen_determine_humanity_fnc = compile preProcessFile "dayz_code\actions\playerstats\determine_humanity_fnc.sqf";
    horde_epeen_setText_journal_fnc = compile preProcessFile "dayz_code\actions\playerstats\epeen_setText_journal.sqf";
    horde_epeen_setText_humanity_fnc = compile preProcessFile "dayz_code\actions\playerstats\epeen_setText_humanity.sqf";
    horde_epeen_setText_stats_fnc = compile preProcessFile "dayz_code\actions\playerstats\epeen_setText_stats.sqf";
    horde_epeen_show_humanity_fnc = compile preProcessFile "dayz_code\actions\playerstats\show_humanity_fnc.sqf";

 

 

thats all

 

note: craftpage was removed

Link to comment
Share on other sites

  • 4 months later...
  • 3 weeks later...
  • 1 month later...

  Reveal hidden contents

replace content of epeen_setText_journal.sqf file with this...

 

cheers

Link to comment
Share on other sites

  • 2 weeks later...
  On 9/9/2014 at 4:41 AM, WarHammer(DayZ) said:

Quick question as it's eluding me presently, but what default button is this supposed to be brought up with ?  I had assumed "J" for diary, but that brings nothing up. 

 

 

If anyone is looking for this ,

 

it's in options, controls, custom controls, and user action 20, then bind a key for it. I used "J"... 

Link to comment
Share on other sites

  • 1 month later...
  • 7 months later...
  • 1 year later...
  On 10/28/2016 at 4:25 PM, Alexander9822 said:

Is there anyway to bind it to that key automatically or make it use the insert key?

Expand  

mmm try it...

First DONT! do it this step:

in dayz_code/actions/dayz_spaceInterrupt.sqf search for User20 (line 138)
replace _nill = execvm "\z\addons\dayz_code\actions\playerstats.sqf"; (line 140)
with createDialog "horde_journal_front_cover";

Second:

in dayz_spaceInterrupt.sqf  find:   (Note if ure using snap_pro mod.. you have this file into this mod folder):

Find:

if (_dikCode in (actionKeys "GetOver")) then {
	
	if (player isKindOf  "PZombie_VB") then {
		_handled = true;
		DZE_PZATTACK = true;
	} else {
		_nearbyObjects = nearestObjects[getPosATL player, dayz_disallowedVault, 8];
		if (count _nearbyObjects > 0) then {
			if((diag_tickTime - dayz_lastCheckBit > 4)) then {
				[objNull, player, rSwitchMove,"GetOver"] call RE;
				player playActionNow "GetOver";
				dayz_lastCheckBit = diag_tickTime;
			} else {
				_handled = true;
			};
		};
	};
};

add this bellow :

//Cutom Journal Menu
if (_dikCode == 0xD2) then {  
	
createDialog "horde_journal_front_cover";

};

**Note: 0xD2 its insert key on arrow keypad-

Find others Key codes here:

https://community.bistudio.com/wiki/DIK_KeyCodes

and also you can check it to make your own journal:

  Reveal hidden contents

 

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Discord

×
×
  • Create New...