Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
  • Need help?

    Create a topic in the appropriate section
    Don't write everything in the chat!
  • Take a look at the marketplace

    There you can buy
    everything related to game servers
  • Don't want a ban?

    Please read our rules
    Don't disturb the order!
  • Sell or buy?

    Use services of the guarantor
    We will make your deal safe
  • 0
Mtv777

дебаг монитор

У меня в админке инфистара (я ее не покупал) нет стандартного дебаг монитора, есть какие-то подсказки как и куда его ставить? хочу чтобы еще координаты показывало

Share this post


Link to post
Share on other sites

Recommended Posts

  • 0

Мне пишет где позиция "any", а я хотел чтобы писало например координаты (не по GPS) 11212.1,12121181.0,22.0 вот так например

	admin_debug =
	{
		debugMonitorX = false;
		if (isNil "admin_debug_run") then {admin_debug_run = true;} else {admin_debug_run = !admin_debug_run;};
		while {admin_debug_run} do 
		{
			_pic = (gettext (configFile >> 'CfgVehicles' >> (typeof vehicle player) >> 'picture'));
			if (player == vehicle player) then {_pic = (gettext (configFile >> 'cfgWeapons' >> (currentWeapon player) >> 'picture'));
			}else{_pic = (gettext (configFile >> 'CfgVehicles' >> (typeof vehicle player) >> 'picture'));};
			
			_txt = '';
			_txt = (gettext (configFile >> 'CfgVehicles' >> (typeof vehicle player) >> 'displayName'));
			
			_stime = 0;
			if(serverTime > 36000)then{_stime = time;}else{_stime = serverTime;};
			_hours = (_stime/60/60);
			_hours = toArray (str _hours);
			_hours resize 1;
			_hours = toString _hours;
			_hours = compile _hours;
			_hours = call  _hours;
			_minutes = floor(_stime/60);
			_minutes2 = _minutes - (_hours*60);
			_pos = getPosATL player;
			
			hintSilent parseText format ["
			<t size='1' font='Bitstream' align='Center' >[%1]</t><br/>
			<img size='4.75' image='%4'/><br/>
			<t size='1' font='Bitstream' align='left' color='#CC0000'>Blood: </t><t size='1' font='Bitstream' align='right'>%2</t><br/>
			<t size='1' font='Bitstream' align='left' color='#0066CC'>Humanity: </t><t size='1' font='Bitstream' align='right'>%3</t><br/>
			<br/>
			<t size='1' font='Bitstream' align='left' color='#FFBF00'>Zombie Kills: </t><t size='1' font='Bitstream' align='right'>%9</t><br/>
			<t size='1' font='Bitstream' align='left' color='#FFBF00'>Murders: </t><t size='1' font='Bitstream' align='right'>%10</t><br/>
			<t size='1' font='Bitstream' align='left' color='#FFBF00'>Bandits Killed: </t><t size='1' font='Bitstream' align='right'>%11</t><br/>
			<br/>
			<t size='1' font='Bitstream' align='left' color='#FFBF00'>UPTIME: </t><t size='1' font='Bitstream' align='right'>%5h %6min</t><br/>
			<t size='1' font='Bitstream' align='left' color='#FFBF00'>FPS: </t><t size='1' font='Bitstream' align='right'>%8</t><br/>
			<t size='1' font='Bitstream' align='Center' color='#CC0000'>infiSTAR.de AdminDebug</t><br/>
			<t size='1'font='Bitstream'align='left' color='#0066CC'>Player Online:</t><t size='1'font='Bitstream'align='right'>%12</t><br/>
			<t size='1'font='Bitstream'align='left' color='#0066CC'>Vehicles:</t><t size='1'font='Bitstream'align='right'>%15(%16)</t><br/>
			<t size='1'font='Bitstream'align='left' color='#0066CC'>Player in 500m:</t><t size='1'font='Bitstream'align='right'>%13</t><br/>
			<t size='1'font='Bitstream'align='left' color='#0066CC'>Viewdistance:</t><t size='1'font='Bitstream'align='right'>%14</t>
			<br/>
			<t size='1'font='Bitstream'align='left' color='#0066CC'>GPS:</t><t size='1'font='Bitstream'align='right'>%17</t><br/>
			<t size='1'font='Bitstream'align='left' color='#0066CC'>Position:</t>
			<t size='1'font='Bitstream'>%18</t>
			",
			_txt,
			(r_player_blood),
			round (player getVariable['humanity', 0]),
			_pic,
			_hours,
			_minutes2,
			'',
			(round diag_fps),
			(player getVariable['zombieKills', 0]),
			(player getVariable['humanKills', 0]),
			(player getVariable['banditKills', 0]),
			(count playableUnits),
			({isPlayer _x} count ((vehicle player) nearEntities ['AllVehicles', 500]))-1,
			viewdistance,
			{alive _x} count ([0,0,0] nearEntities [['LandVehicle','Air','Ship'], 10000000]),
			count vehicles,
			mapGridPosition _pos,
			_pos
			];
			sleep 1;
		};
		if (!admin_debug_run) then {hintSilent parseText format ["<t size='1'font='TahomaB'align='center'>DEBUG OFF</t>"];};
	};

вот тебе админ-дебаг выдранный из инфистара

Share this post


Link to post
Share on other sites






  • 0

p.s. Ставил еще другой дебаг монитор, были баги (не мог строить, пришлось убрать его)

Share this post


Link to post
Share on other sites
  • 0

По стандарту кнопка End должна запустить Debug Меню.
Нажмите на кнопку и скажите появилось ли меню или нет. Если нет, то далее будем вписывать debug меню.

Share this post


Link to post
Share on other sites
  • 0

У меня в админке инфистара (я ее не покупал) нет стандартного дебаг монитора, есть какие-то подсказки как и куда его ставить? хочу чтобы еще координаты показывало

а инфистаре в файле конфига есть параметр debag on-off поищи, легко найдёшь, если у тебя его нету значит кривой у тебя инфистар, или очень старый

Share this post


Link to post
Share on other sites
  • 0

и в инфистаре уже есть админ-дебаг с координатами, поищи в меню

Share this post


Link to post
Share on other sites
  • 0

Дело в том что мне не стандартный дебаг нужен, он мне не нравится, а нужен красивый инфистаровский например

Share this post


Link to post
Share on other sites
  • 0

Дело в том что мне не стандартный дебаг нужен, он мне не нравится, а нужен красивый инфистаровский например

Ничего сложного не составит сделать в инфистаре красивый дебаг меню. Все меняется точно так же как и на других меню. Далее играет дело фантазии.

 

Мне и такого хватает. Ничего лишнего.

 

hintSilent parseText format [""

    <t size='1.2' font='Bitstream' align='Center' color='#FF0000'>Пиши что хочешь</t><br/>

    <img size='3' image='%4'/><br/>

    <t size='1.5' font='Bitstream' align='Center' color='#FFBF00'>FPS: </t><t size='2' font='Bitstream' align='Center'>%8</t><br/>

    <t size='1' font='Bitstream' align='Center' color='#FF0000'>Кровь: %2</t><br/>

    <t size='1' font='Bitstream' align='Center' color='#0000FF'>Человечность: %3</t><br/>

    <t size='1' font='Bitstream' align='center' color='#DDDDDD'>Игроков онлайн: %10</t><br/>

    <t size='1.2' font='Bitstream' align='Center' color='#228B22'>Рестарт через </t><br/>

    <t size='1.2' font='Bitstream' align='Center'>%11 минут</t><br/>

    <t size='1.2' font='Bitstream' align='Center' color='#FF0000'>пиши что хочешь.</t><br/>

    "",

    _txt,

    (r_player_blood),

    round (player getVariable['humanity', 0]),

    _pic,

    _hours,

    _minutes2,

    _BottomDebug,

    (round diag_fps),

    (dayz_Survived),

    (count playableUnits),

    (240-(round(serverTime/60)))

 

По порядку:

 

size= - это размер твоего текста.

font= - это шрифт. Не рекомендую использовать любые другие кроме стандартных в системе.

align= - это где будет располагаться твой текст (Слева, по центру, справа)

color= - это какого цвета будет твой текст (через HTML цвета. Википедия в помощь, там их много)

% - это не трогать если не понимаешь. (Коротко это нумерации тех предметов, которые будут показываться на экране, а их порядок написан снизу)

Share this post


Link to post
Share on other sites
  • 0

 

Дело в том что мне не стандартный дебаг нужен, он мне не нравится, а нужен красивый инфистаровский например

Ничего сложного не составит сделать в инфистаре красивый дебаг меню. Все меняется точно так же как и на других меню. Далее играет дело фантазии.

 

Мне и такого хватает. Ничего лишнего.

 

hintSilent parseText format [""

    <t size='1.2' font='Bitstream' align='Center' color='#FF0000'>Пиши что хочешь</t><br/>

    <img size='3' image='%4'/><br/>

    <t size='1.5' font='Bitstream' align='Center' color='#FFBF00'>FPS: </t><t size='2' font='Bitstream' align='Center'>%8</t><br/>

    <t size='1' font='Bitstream' align='Center' color='#FF0000'>Кровь: %2</t><br/>

    <t size='1' font='Bitstream' align='Center' color='#0000FF'>Человечность: %3</t><br/>

    <t size='1' font='Bitstream' align='center' color='#DDDDDD'>Игроков онлайн: %10</t><br/>

    <t size='1.2' font='Bitstream' align='Center' color='#228B22'>Рестарт через </t><br/>

    <t size='1.2' font='Bitstream' align='Center'>%11 минут</t><br/>

    <t size='1.2' font='Bitstream' align='Center' color='#FF0000'>пиши что хочешь.</t><br/>

    "",

    _txt,

    (r_player_blood),

    round (player getVariable['humanity', 0]),

    _pic,

    _hours,

    _minutes2,

    _BottomDebug,

    (round diag_fps),

    (dayz_Survived),

    (count playableUnits),

    (240-(round(serverTime/60)))

 

По порядку:

 

size= - это размер твоего текста.

font= - это шрифт. Не рекомендую использовать любые другие кроме стандартных в системе.

align= - это где будет располагаться твой текст (Слева, по центру, справа)

color= - это какого цвета будет твой текст (через HTML цвета. Википедия в помощь, там их много)

% - это не трогать если не понимаешь. (Коротко это нумерации тех предметов, которые будут показываться на экране, а их порядок написан снизу)

Я знаю, что к чему, а тем более уж о % - нумерации, у меня 5 лет опыта павно, но все равно меня интересует дебаг монитор

Share this post


Link to post
Share on other sites
  • 0

То, что я скинул выше и есть дебаг монитор.

Так, давайте по порядку.

1. Откройте dayz_server.pbo
2. Перейти в папку Init и открыть файл AHconfig.sqf
3. Найдите следующую строчку:
/*  Use DebugMonitor      */ _DMS =  true; /* true or false */ /* starts up with debugmonitor ON if true */
4. Вот сама строчка _DMS =  отвечает за запуск Debug Menu. Установите после = значение true.

Отпишите результат и далее будем делать вам нужный дебаг меню.
Заранее отпишите какие координаты вам нужны? GPS или Позиции (Это совершенно разные вещи!)

Edited by TheFirstNoob (see edit history)

Share this post


Link to post
Share on other sites
  • 0

То, что я скинул выше и есть дебаг монитор.

 

Так, давайте по порядку.

 

1. Откройте dayz_server.pbo

2. Перейти в папку Init и открыть файл AHconfig.sqf

3. Найдите следующую строчку:

/*  Use DebugMonitor      */ _DMS =  true; /* true or false */ /* starts up with debugmonitor ON if true */

4. Вот сама строчка _DMS =  отвечает за запуск Debug Menu. Установите после = значение true.

 

Отпишите результат и далее будем делать вам нужный дебаг меню.

Заранее отпишите какие координаты вам нужны? GPS или Позиции (Это совершенно разные вещи!)

позиции

Share this post


Link to post
Share on other sites
  • 0

Во, работает дебаг монитор, спасибо, а старый убрать как-то можно? Типа стандартный этот? И хочу чтобы координаты позиции показывало

Share this post


Link to post
Share on other sites
  • 0

Зачем убирать стандартный InfiStar Debug Menu. Просто переделайте в конфигах его.

hintSilent parseText format [""
    <t size='1.2' font='Bitstream' align='Center' color='#FF0000'>Пиши что хочешь</t><br/>
    <img size='3' image='%4'/><br/>
    <t size='1.5' font='Bitstream' align='Center' color='#FFBF00'>FPS: </t><t size='2' font='Bitstream' align='Center'>%8</t><br/>
    <t size='1' font='Bitstream' align='Center' color='#FF0000'>Кровь: %2</t><br/>
    <t size='1' font='Bitstream' align='Center' color='#0000FF'>Человечность: %3</t><br/>
    <t size='1' font='Bitstream' align='center' color='#DDDDDD'>Игроков онлайн: %10</t><br/>
    <t size='1.2' font='Bitstream' align='Center' color='#228B22'>Рестарт через </t><br/>
    <t size='1.2' font='Bitstream' align='Center'>%11 минут</t><br/>
    <t size='1.2' font='Bitstream' align='left' color='#FFBF00'>Позиция: </t><t size='1.2' font='Bitstream' align='right'>%12</t><br/>
    <t size='1.2' font='Bitstream' align='Center' color='#FF0000'>пиши что хочешь.</t><br/>
    "",
    _txt,
    (r_player_blood),
    round (player getVariable['humanity', 0]),
    _pic,
    _hours,
    _minutes2,
    _BottomDebug,
    (round diag_fps),
    (dayz_Survived),
    (count playableUnits),
    (240-(round(serverTime/60)))
    _pos

Share this post


Link to post
Share on other sites
  • 0

Во, работает дебаг монитор, спасибо, а старый убрать как-то можно? Типа стандартный этот? И хочу чтобы координаты позиции показывало

А еще есть другой способ. В админке есть кнопка Admin Debug Menu. Вот и все. Только у вас будет позиция. Другим игрокам именно Позицию знать не нужно. GPS это по их желанию. Тоже все настраивается.

Share this post


Link to post
Share on other sites
  • 0

А еще есть другой способ. В админке есть кнопка Admin Debug Menu. Вот и все. Только у вас будет позиция. Другим игрокам именно Позицию знать не нужно. GPS это по их желанию. Тоже все настраивается.

В админском дебаге, у меня нету позиции, я уберу потом позицию, мне тут для одного дела нужно знать и записывать быстро

Share this post


Link to post
Share on other sites
  • 0

В админском дебаге, у меня нету позиции, я уберу потом позицию, мне тут для одного дела нужно знать и записывать быстро

Ну, читайте выше. Там я выложил настройку Debug Menu. Позиция туда настроена.

Share this post


Link to post
Share on other sites
  • 0

Ну, читайте выше. Там я выложил настройку Debug Menu. Позиция туда настроена.

а если я к своему добавлю просто

 

 <t size='1.2' font='Bitstream' align='left' color='#FFBF00'>Позиция: </t><t size='1.2' font='Bitstream' align='right'>%12</t><br/>

_pos

 

ну только поменяю %12 у меня вроде меньше там

Share this post


Link to post
Share on other sites
  • 0

а если я к своему добавлю просто

 

 <t size='1.2' font='Bitstream' align='left' color='#FFBF00'>Позиция: </t><t size='1.2' font='Bitstream' align='right'>%12</t><br/>

_pos

 

ну только поменяю %12 у меня вроде меньше там

Выложите свое и я скажу. Скрипт я писал под свой конфиг ранее. Либо в ЛС отпишите чтобы не палить конфиг.

Share this post


Link to post
Share on other sites
  • 0

Мне пишет где позиция "any", а я хотел чтобы писало например координаты (не по GPS) 11212.1,12121181.0,22.0 вот так например

Share this post


Link to post
Share on other sites
  • 0

Не работало, потому что парень не дал строчку _pos = getPosATL player;, все работает уже спасибо, только я не понимаю как узнать азимут поворота

Share this post


Link to post
Share on other sites
  • 0

надо узнать где находится фаил задающий переменные и найти там что-то навроде: Dir
я думаю

_pos = getPosATL player; или на основе этого сделать свое, вставив где нужно
_dir = getdirATL player; может сработает

Share this post


Link to post
Share on other sites
  • 0

надо узнать где находится фаил задающий переменные и найти там что-то навроде: Dir

я думаю

_pos = getPosATL player; или на основе этого сделать свое, вставив где нужно

_dir = getdirATL player; может сработает

не, админка потом не включалась :D

Share this post


Link to post
Share on other sites
  • 0

А кто подскажет как свой кастомный дебаг монитор заставить пропадать и появляться по нажатию биндуемой клавишы. Причем еще прикрутить не особо надоедливую подсказку, чтоб не знающие понимали какой именно клавишей это делается?

Share this post


Link to post
Share on other sites
  • 0

Дэ так то оно да, но я пытался понять какой скрипт за это отвечает (за закрыть\открыть дебаг). Дело в том, что я вырезал дебаг меню оттуда. Так как скорее всего сервер оставлю без инфи.... (глупо, но мне так надо) да и проще редактировать дебаг меню когда отдельным файлом)

Share this post


Link to post
Share on other sites
  • 0

Дэ так то оно да, но я пытался понять какой скрипт за это отвечает (за закрыть\открыть дебаг). Дело в том, что я вырезал дебаг меню оттуда. Так как скорее всего сервер оставлю без инфи.... (глупо, но мне так надо) да и проще редактировать дебаг меню когда отдельным файлом)

Так що, просто вырежи функцию дебага нормально, или в настройках инфи отключи его и поставь свой.

Share this post


Link to post
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

  • Similar Content

    • By Ford
      Создание скрипта можно разделить на 2 этапа: написание кода и его тестирование. Второй у меня занимает около 80% всего времени, т.к. каждый раз нужно загружать сервер и миссию.
      Есть ли более быстрый способ отлаживать код?
    • By JolyMonk
      Здравствуйте, как можно создать свой, прозрачный, hint для дебаг монитора? 
    • By ZizionarD
      Тема взята с сайта: EpochMod.com
       

       
      1. Скачиваем архив и распаковываем его
      2. Открываем кастомный файл compiles.sqf и находим строку:
      DZ_KeyDown_EH = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\keyboard.sqf"; И меняем ее на:
      DZ_KeyDown_EH = compile preprocessFileLineNumbers "PATHTOYOUR\keyboard.sqf"; 3. Открываем файл init.sqf и находим строку:
      waitUntil {scriptDone progress_monitor}; И под ней вставляем
      if (isNil 'debugMonitor') then {debugMonitor = true; _nill = execvm "dayz_code\compile\player_debug.sqf"; }; *Файл init.sqf который находится в архиве ни в коем случае не заменяйте его! В этом файле прописано то, что выше написано.
       
      На это все, всем спасибо за внимание!
       
      Keyboard.sqf
      // (c) facoptere@gmail.com, licensed to DayZMod for the community #include "\ca\editor\Data\Scripts\dikCodes.h" _dikCode = _this select 1; _shiftState = _this select 2; _ctrlState = _this select 3; _altState = _this select 4; _handled = false; if (isNil "keyboard_keys") then { _cancelBuild = { DZE_cancelBuilding = true; call dayz_EjectPlayer; _handled = false; if (r_player_dead) then {_handled = true;}; // Disable ESC after death }; _dze_f = { if (!_ctrlState && !_altState) then {DZE_F = true;}; }; _dze_q = { if (!_ctrlState && !_altState) then {DZE_Q = true;}; if (!_ctrlState && _altState) then {DZE_Q_alt = true;}; if (_ctrlState && !_altState) then {DZE_Q_ctrl = true;}; }; _dze_z = { if (!_ctrlState && !_altState) then {DZE_Z = true;}; if (!_ctrlState && _altState) then {DZE_Z_alt = true;}; if (_ctrlState && !_altState) then {DZE_Z_ctrl = true;}; }; _autoRun = { if (!dayz_autoRun) then { dayz_autoRun = true; dayz_autoRunThread = [] spawn { _weapon = currentWeapon player; while {dayz_autoRun} do { // SurfaceIsWater does not work for ponds // Check weapon to detect Arma action (dayz action is handled in dz_fn_switchWeapon) if (player != vehicle player or (surfaceIsWater getPosASL player) or ((call fn_nearWaterHole) select 0) or (currentWeapon player != _weapon) or r_fracture_legs) exitWith { call dayz_autoRunOff; }; player playAction "FastF"; uiSleep 0.5; }; }; } else { call dayz_autoRunOff; }; _handled = true; }; _filterCheat = { //Overriding default engine handling does not stop cheat input, need manual disableUserInput too _handled = [displayNull,_dikCode,_shiftState] call dze_filterCheats; }; _openGroups = { if (dayz_requireRadio && !("ItemRadio" in items player)) then { localize "STR_EPOCH_NEED_RADIO" call dayz_rollingMessages; } else { if (isNull findDisplay 80000) then { if (!isNil "dayz_groupInit") then {[] spawn dayz_openGroupDialog;}; } else { findDisplay 80000 closeDisplay 2; }; }; _handled = true; }; _muteSound = { call player_toggleSoundMute; _handled = true; }; _rifle = { 2 call dz_fn_switchWeapon; _handled = true; }; _pistol = { 3 call dz_fn_switchWeapon; _handled = true; }; _melee = { // Also works for rifle on back if DZE_TwoPrimaries = 2; 4 call dz_fn_switchWeapon; _handled = true; }; _throwable = { // select next non empty throwable weapon if (vehicle player == player) then { _ammo_throwable = []; _muzzles_throwable = []; _weapon_throwable = []; { _weapon = _x; _muzzles = getArray(configFile >> "cfgWeapons" >> _weapon >> "muzzles"); if (count _muzzles == 0) then { _muzzles = [_weapon ]; }; { _muzz = _x; { if (_x in magazines player) then { _ammo_throwable set [ count _ammo_throwable, getText(configFile >> "cfgMagazines" >> _x >> "ammo") ]; _muzzles_throwable set [ count _muzzles_throwable, _muzz ]; _weapon_throwable set [ count _weapon_throwable, _weapon ]; }; } forEach getArray(configFile >> "cfgWeapons" >> _weapon >> _muzz >> "magazines"); } forEach _muzzles; } forEach ["Throw"]; _magCount = count _ammo_throwable; if (_magCount > 0) then { if (isNil "KB_CurrentThrowable") then { KB_CurrentThrowable = -1; }; _currentAmmo = (weaponState player) select 3; _idx = _ammo_throwable find _currentAmmo; if (_idx >= 0) then { KB_CurrentThrowable = _idx; }; KB_CurrentThrowable = (KB_CurrentThrowable + 1) mod _magCount; player selectWeapon (_muzzles_throwable select KB_CurrentThrowable); _handled = true; }; }; }; _surrender = { call player_surrender; _handled = true; }; _gear = { if ((vehicle player != player) and !_shiftState and !_ctrlState and !_altState && !dialog) then { createGearDialog [player, "RscDisplayGear"]; _handled = true; } else { if ((vehicle player == player) and (speed vehicle player > 0)) then { //[objNull, player, rSwitchMove,""] call RE; _handled = true; };}; }; _forcesave = { dayz_lastCheckBit = diag_ticktime; call player_forceSave; call dayz_EjectPlayer; }; _forcesave2 = { if ((!isNull (findDisplay 106)) OR dialog) then { call player_forceSave; }; }; _drop = { if (r_drag_sqf) then { _doors = nearestObjects [player, DayZ_DropDrageeObjects, 3]; //Prevent dropping dragged player through objects if (count _doors > 0) then {_handled = true;}; force_dropBody = true; } else { _doors = nearestObjects [player, DZE_DoorsLocked, 3]; if (count _doors > 0 && {speed player > 0}) then {_handled = true;}; //Prevent sprint and prone through doors glitch }; }; _interrupt = { if (vehicle player == player) then { //allow med actions in moving vehicles r_interrupt = true; }; if (DZE_Surrender) then {call dze_surrender_off}; if (dayz_autoRun) then {call dayz_autoRunOff;}; }; // TODO: left/right, when gear open: onKeyDown = "[_this,'onKeyDown',0,107,0,107] execVM '\z\addons\dayz_code\system\handleGear.sqf'"; _noise = { //Overriding default engine handling does not stop combination binds, need manual disableUserInput too _handled = [displayNull,_dikCode,_shiftState] call dze_filterCheats; if (diag_ticktime - dayz_lastCheckBit > 10 && !(_dikCode in channel_keys)) then { dayz_lastCheckBit = diag_ticktime; [player,20,true,(getPosATL player)] call player_alertZombies; }; }; _journal = { if (!dayz_isSwimming and !dialog) then { [player,4,true,(getPosATL player)] call player_alertZombies; createDialog 'horde_journal_front_cover'; }; _handled = true; }; _build_left = { DZE_4 = true; // fence construction if (0 != count Dayz_constructionContext) then { _angleRef = Dayz_constructionContext select 1; _dir = _angleRef - (getDir player) -5; if (_dir > 180) then {_dir = _dir - 360}; if (_dir < -180) then {_dir = _dir + 360}; if ( _dir > -75) then { _new = floor((_angleRef - 5)/5)*5; Dayz_constructionContext set [ 1, _new]; // favorite angle r_interrupt = true; }; _handled = true; }; // tents and stash construction _object = player getVariable ["constructionObject", objNull]; if (!isNull _object) then { _dir = getDir _object - 3; _object setDir _dir; _handled = true; }; dayz_dodge = true; }; _build_right = { DZE_6 = true; if (0 != count Dayz_constructionContext) then { _angleRef = Dayz_constructionContext select 1; _dir = _angleRef - (getDir player) +5; if (_dir > 180) then { _dir = _dir - 360; }; if (_dir < -180) then { _dir = _dir + 360; }; if (_dir < 75) then { _new = ceil((_angleRef + 5)/5)*5; Dayz_constructionContext set [ 1, _new]; // favorite angle r_interrupt = true; }; _handled = true; }; // tents and stash construction _object = player getVariable ["constructionObject", objNull]; if (!isNull _object) then { _dir = getDir _object + 3; _object setDir _dir; _handled = true; }; dayz_dodge = true; }; _build_camOnOff = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\fn_buildCamera.sqf"; _build_str8OnOff = { if (0 != count Dayz_constructionContext) then { Dayz_constructionContext set [ 5, !(Dayz_constructionContext select 5) ]; _handled = true; r_interrupt = true; }; if (animationState player in ["bunnyhopunarmed","bunnyhoprifle"]) then { //Fixes invisible weapon switch glitch if double tapping vault with no weapon in hands _handled = true; }; if (player isKindOf "PZombie_VB") then { _handled = true; // do not allow player zombies to vault or jump } 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; }; }; }; }; _block = { _handled = true; }; _addArray = { { keyboard_keys set [_x, _this select 1]; } forEach (_this select 0); }; keyboard_keys = []; channel_keys = []; voice_keys = []; {voice_keys = voice_keys + (actionKeys _x)} count voice_actions; {channel_keys = channel_keys + (actionKeys _x)} count ["NextChannel","PrevChannel"]; keyboard_keys resize 256; [[DIK_ESCAPE], _cancelBuild] call _addArray; [[DIK_INSERT], {DZE_Q_alt = true;}] call _addArray; [[DIK_A,DIK_D,DIK_LEFT,DIK_RIGHT], _interrupt] call _addArray; [[DIK_F], _dze_f] call _addArray; [[DIK_PRIOR], _dze_q] call _addArray; [[DIK_NEXT], _dze_z] call _addArray; [[DIK_Q], {DZE_4 = true;}] call _addArray; [[DIK_E], {DZE_6 = true;}] call _addArray; [[DIK_0], _autoRun] call _addArray; [[DIK_NUMPADMINUS,DIK_LSHIFT], _filterCheat] call _addArray; [[DIK_SPACE], {DZE_5 = true;}] call _addArray; [actionKeys "User6", {DZE_F = true;}] call _addArray; [actionKeys "User7", {DZE_Q_ctrl = true;}] call _addArray; [actionKeys "User8", {DZE_Z_ctrl = true;}] call _addArray; [actionKeys "User13", {DZE_Q_alt = true;}] call _addArray; [actionKeys "User14", {DZE_Z_alt = true;}] call _addArray; [actionKeys "User15", {DZE_Q = true;}] call _addArray; [actionKeys "User16", {DZE_Z = true;}] call _addArray; [actionKeys "User17", {DZE_4 = true;}] call _addArray; [actionKeys "User18", {DZE_6 = true;}] call _addArray; [actionKeys "User19", {DZE_5 = true;}] call _addArray; [actionKeys "Surrender", _surrender] call _addArray; [[DIK_1], _rifle] call _addArray; [[DIK_2], _pistol] call _addArray; [[DIK_3], _melee] call _addArray; //[[DIK_4], _throwable] call _addArray; [actionKeys "Gear", _gear] call _addArray; [actionKeys "Prone", _drop] call _addArray; [actionKeys "Crouch", _drop] call _addArray; [actionKeys "MoveLeft", _interrupt] call _addArray; [actionKeys "MoveRight", _interrupt] call _addArray; [actionKeys "MoveForward", _interrupt] call _addArray; [actionKeys "MoveBack", _interrupt] call _addArray; [actionKeys "TurnLeft", _interrupt] call _addArray; [actionKeys "TurnRight", _interrupt] call _addArray; [actionKeys "PushToTalk", _noise] call _addArray; [actionKeys "PushToTalkAll", _noise] call _addArray; [actionKeys "PushToTalkCommand", _noise] call _addArray; [actionKeys "PushToTalkDirect", _noise] call _addArray; [actionKeys "PushToTalkGroup", _noise] call _addArray; [actionKeys "PushToTalkSide", _noise] call _addArray; [actionKeys "PushToTalkVehicle", _noise] call _addArray; [actionKeys "VoiceOverNet", _noise] call _addArray; [actionKeys "NextChannel", _noise] call _addArray; [actionKeys "PrevChannel", _noise] call _addArray; [actionKeys "Chat", _noise] call _addArray; [actionKeys "User20", _journal] call _addArray; [actionKeys "Diary", _journal] call _addArray; [actionKeys "NetworkStats", _journal] call _addArray; [[DIK_F1], _muteSound] call _addArray; //[[DIK_F4, DIK_TAB, DIK_DELETE], _forcesave] call _addArray; //[[DIK_F4, DIK_RMENU, DIK_LMENU,DIK_LSHIFT,DIK_RSHIFT,DIK_ESCAPE], _forcesave2] call _addArray; [actionKeys "LeanLeft", _build_left ] call _addArray; [actionKeys "LeanRight", _build_right ] call _addArray; [actionKeys "PersonView", _build_camOnOff ] call _addArray; // Camera Mode [actionKeys "GetOver", _build_str8OnOff ] call _addArray; // V // [[DIK_NUMPAD7], _rotate_left] call _addArray; // [[DIK_NUMPAD9], _rotate_right] call _addArray; [actionKeys "ForceCommandingMode", {DZE_5 = true;_handled = true;}] call _addArray; [[ DIK_F9,DIK_F10,DIK_F11,DIK_F12, DIK_F8,DIK_F7,DIK_F6,DIK_F5,DIK_F4, DIK_F3,DIK_F2,DIK_9, DIK_8,DIK_7,DIK_6,DIK_5,DIK_4], _block] call _addArray; if (dayz_groupSystem) then { [[DIK_F5], _openGroups] call _addArray; [[DIK_LWIN,DIK_RWIN], {dayz_groupNameTags = !dayz_groupNameTags;_handled = true;}] call _addArray; [actionKeys "TacticalView", _block] call _addArray; }; diag_log "keyboard_keys reset"; if (!isNil "bis_fnc_halo_keydown_eh") then {bis_fnc_halo_keydown_eh = (finddisplay 46) displayaddeventhandler ["keydown","_this call bis_fnc_halo_keydown;"];}; // halo in progress }; if (r_player_unconsciousInputDisabled) exitWith {true}; _code = keyboard_keys select _dikCode; if (!isNil "_code") then { call _code; }; //------------------DEBUG-----------------// if (_dikCode == 210) then { // _dikCode 210 = InsertKey if (isNil 'debugMonitor') then { debugMonitor = true; _nill = execvm "PATHTOYOUR\player_debug.sqf"; } else { debugMonitor = !debugMonitor; hintSilent ''; _nill = execvm "PATHTOYOUR\player_debug.sqf"; }; }; //-----------------DEBUGEND---------------// _handled  
      Понравилась статья? Поставь +
    • By Alex39
      Дебаг монитор
      Идем в корень сервера в папку SE1\serverDZ.cfg  и открываем блокнотом, и вставляем код, ну к примеру после строки BattlEye = 1;
      loginQueueMaxPlayers = 10; storageAutoFix = 1; disablePublisherBanKick = 1; updateStrategyVersion = 1; showPlayerStatus = 1; И получаем

       
      Сам дебаг вкл/выкл  showPlayerStatus = 1;
  • Our picks

×
×
  • Create New...

Important Information

By using this site, you automaticly agree to our Guidelines and Privacy Policy.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.