Jump to content
  • 0

How can you make a debug monitor toggleable?


XtremeMakak

Question

10 answers to this question

Recommended Posts

  • 0

You will need to pull out 2 files from dayz_code.bpo (Find this .bpo in YOUR @dayz_epoch directory).

The files are: playerstats.sqf and dayz_spaceInterrupt.sqf

If you don't already have compiles.sqf in your dayz_mission directory then you will also need it.

 

Edit playerstats.sqf with whatever debug code you wish.

Edit dayz_spaceinterrupt.sqf referencing the location of the playerstats.sqf

Edit compiles.sqf referencing the location of the dayz_spaceinterrupt.sqf

 

You're done.

 

For further help/reference:

Link to comment
Share on other sites

  • 0
I must be having a severe case of brain cramps today. Not sure what I'm missing but even after the overrides, base building actions are disabled.
 
compiles.sqf:
dayz_spaceInterrupt = compile preprocessFileLineNumbers "custom\dayz_spaceInterrupt.sqf";
 
dayz_spaceInterrupt.sqf:
if (_dikCode == 210) then {
_nill = execvm "custom\yourmonitorfilename.sqf";
};
 
if (_dikCode in actionKeys "User20" and (diag_tickTime - dayz_lastCheckBit > 5)) then {
dayz_lastCheckBit = diag_tickTime;
_nill = execvm "custom\yourmonitorfilename.sqf";
};

 

Link to comment
Share on other sites

  • 0

Forgot there is also a need to change the location of your player_monitor.sqf in dayz_mission\init.sqf

	//Run the player monitor
	_id = player addEventHandler ["Respawn", {_id = [] spawn player_death;}];
	_playerMonitor = 	[] execVM "\z\addons\dayz_code\system\player_monitor.sqf";	

Link to comment
Share on other sites

  • 0

 

Forgot there is also a need to change the location of your player_monitor.sqf in dayz_mission\init.sqf

	//Run the player monitor
	_id = player addEventHandler ["Respawn", {_id = [] spawn player_death;}];
	_playerMonitor = 	[] execVM "\z\addons\dayz_code\system\player_monitor.sqf";	

 

Not sure why that's needed? Unless there's a change necessary in player_monitor.fsm that nobody's mentioned.

 

if (isServer) then {
waitUntil{dayz_preloadFinished};
};
_id = [] execFSM "\z\addons\dayz_code\system\player_monitor.fsm";
_void = [] execVM "\z\addons\dayz_code\external\R3F_Realism\R3F_Realism_Init.sqf";
Link to comment
Share on other sites

  • 0

Sorry, I misunderstood the original question.

 

The linked debug monitor obviously has an issue where the dayz_spaceInterrupt causes base building movement keys to not work.

 

It seemed easier to me to simply put the debug code in the current debug monitor which is already a toggle and call it a day.

Link to comment
Share on other sites

  • 0

Sorry to be bumping this old topic, but what is the actual call for the playerstats.sqf? I cant seem to find it anywhere.

The one from the Insert Key (->actions/playerstats.sqf)

 

 

I found in other files such as fn_selfActions the call is mentioned at the top of the code.

/***********************************************************
    ADD ACTIONS FOR SELF
    - Function
    - [] call fnc_usec_selfActions;
************************************************************/
Link to comment
Share on other sites

  • 0

 

Sorry to be bumping this old topic, but what is the actual call for the playerstats.sqf? I cant seem to find it anywhere.

The one from the Insert Key (->actions/playerstats.sqf)

 

 

I found in other files such as fn_selfActions the call is mentioned at the top of the code.

/***********************************************************
    ADD ACTIONS FOR SELF
    - Function
    - [] call fnc_usec_selfActions;
************************************************************/

bump. all help appreciated.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...