Jump to content
PeterBeer

[Tutorial] Custom Debug / Stats

Recommended Posts

This is not working at all. All that I can see of the player hud: "Blood 12000" near the top right corner of the screen, everything else not visible except for the vanilla hud elements.
Tried a different things, but no use its not showing up.

I really have to say that this whole project is a huge coding mess, no clear instructions anywhere, the code written horribly (tab-stops are really useful - dont know, does zupa use a shit notepad editor that doesnt work well or something?). I hate to be so negative, but when you already have a working mission/server file and try to implent this system and its addons, it is either use the braindead version (aka here have a precompiled mission and server file and throw it on your server) or get a stroke attempting to fit everything together with your existing mission file.

Share this post


Link to post
Share on other sites

This is not working at all. All that I can see of the player hud: "Blood 12000" near the top right corner of the screen, everything else not visible except for the vanilla hud elements.

Tried a different things, but no use its not showing up.

I really have to say that this whole project is a huge coding mess, no clear instructions anywhere, the code written horribly (tab-stops are really useful - dont know, does zupa use a shit notepad editor that doesnt work well or something?). I hate to be so negative, but when you already have a working mission/server file and try to implent this system and its addons, it is either use the braindead version (aka here have a precompiled mission and server file and throw it on your server) or get a stroke attempting to fit everything together with your existing mission file.

 

 

The instructions are clear replace the folder cant do that then you need to learn how too use computed ......, The code is clean in what way is it a mess ?

 

Zupa might not have the cleanest spaces in his files but if you don't like then do something about that if not don't use his scripts .....

 

Also you are using my files that I made, correct ? if so it all ready added if you had an common sense what so ever

Share this post


Link to post
Share on other sites

This is not working at all. All that I can see of the player hud: "Blood 12000" near the top right corner of the screen, everything else not visible except for the vanilla hud elements.

Tried a different things, but no use its not showing up.

I really have to say that this whole project is a huge coding mess, no clear instructions anywhere, the code written horribly (tab-stops are really useful - dont know, does zupa use a shit notepad editor that doesnt work well or something?). I hate to be so negative, but when you already have a working mission/server file and try to implent this system and its addons, it is either use the braindead version (aka here have a precompiled mission and server file and throw it on your server) or get a stroke attempting to fit everything together with your existing mission file.

 

Never had the time cleaning it up :) but thx for the heads up!

 

I love your contribution to the atmosphere ^^ is really a motivation to help you out^^

Share this post


Link to post
Share on other sites

The instructions are clear replace the folder cant do that then you need to learn how too use computed ......, The code is clean in what way is it a mess ?

 

Zupa might not have the cleanest spaces in his files but if you don't like then do something about that if not don't use his scripts .....

 

Also you are using my files that I made, correct ? if so it all ready added if you had an common sense what so ever

 

I used souls version, and downloaded your version, I even tried the full souls pack, that didnt work either.

All I see is the vanilla HUD and a 'blood' 12000' text part non custom icons or anything, its rather weird - didnt changed paths or anything, dont even have any other scripts loaded that mess with defines.

I followed the instructions to the letter, but thanks for insulting me, really nice of you. *clap clap*

 

Share this post


Link to post
Share on other sites

Never had the time cleaning it up :) but thx for the heads up!

 

I love your contribution to the atmosphere ^^ is really a motivation to help you out^^

8kjNoTS.png

Why not, instead of removing tabs and rows and etc .., just add your changes to a default vanilla version of the file and leave everything that you dont have to change as it is? Makes notepad++ comparing so much easier. When it looks like this I have no choice but to go through it line by line. This is frustrating and then I write frustrated posts :P No need sarcasm tho.

Share this post


Link to post
Share on other sites

Insulting. And you def didn start that ?

What do i get for the work i did ? Right nothing. You will take it and prob tell your server. Hey i made some new scripts. Enjoy.

Then you come here and insult my work. I wouldnt even had to release it.

Now dont think i cant handl crtisism. I love making the script better based on experience and bugs reported by FRIENDLY people. Which gives me joy yo help those poeple for FREE. Now why wwould i help someone that just insults me.

Im a working man with a social life. When i get home. Most of my sparz time goes into coding dayz servers and helping the eppch comunity.

Share this post


Link to post
Share on other sites

Insulting. And you def didn start that ?

What do i get for the work i did ? Right nothing. You will take it and prob tell your server. Hey i made some new scripts. Enjoy.

Then you come here and insult my work. I wouldnt even had to release it.

Now dont think i cant handl crtisism. I love making the script better based on experience and bugs reported by FRIENDLY people. Which gives me joy yo help those poeple for FREE. Now why wwould i help someone that just insults me.

Im a working man with a social life. When i get home. Most of my sparz time goes into coding dayz servers and helping the eppch comunity.

I did NOT insult you, if you think I did, I am sorry. I was critising the way you write your scripts, (not you or your scripts!) because it made me very frustrated. I was trying to get everything to work from 8am til 10pm and it didnt want to work.

Maybe I vented my frustration too harsh, but it was not my intention at all to attack YOU. Again, if you feel I did, I am sorry for that.

And no I do not take credit for things I put on my server that are not my own. I am not a complete asshole.

Share this post


Link to post
Share on other sites

I did NOT insult you, if you think I did, I am sorry. I was critising the way you write your scripts, (not you or your scripts!) because it made me very frustrated. I was trying to get everything to work from 8am til 10pm and it didnt want to work.

Maybe I vented my frustration too harsh, but it was not my intention at all to attack YOU. Again, if you feel I did, I am sorry for that.

And no I do not take credit for things I put on my server that are not my own. I am not a complete asshole.

 

I accept the appology.

 

You also must understand i get contacted 24/7 for making custom code/script, coding for communities, helping people set up their servers, helping with my releases, bug fixing their rpt/hiv elogs.

 

It's sometimes just too much after a hard workday. Then i can get a bit stressed ofcourse. ( I even help people from my work ( typing this now from my desk)).

 

I never took and had alot of time cleaning this code up, It was my first release ever ( real release) in epoch. ( Before this i never released anything). So i wasnt bother cleaning it up, cus it worked.

 

But as you probably see other releases of me which are pretty clean and straight forward what to do. ( I mostly left out the basics like get the compiles out of your dayz pbo if u dont have it). Because mos tof my scripts are pretty more advanced and should require abit of dayz scripting knowdledge.

 

Because there are so many servers with people behind it that know nothing of scripting/coding. If there is any kind of bug or problem that needs attention in the code then they cannot help their players because they simply not have the knowledge.

Share this post


Link to post
Share on other sites

I accept the appology.

 

You also must understand i get contacted 24/7 for making custom code/script, coding for communities, helping people set up their servers, helping with my releases, bug fixing their rpt/hiv elogs.

 

It's sometimes just too much after a hard workday. Then i can get a bit stressed ofcourse. ( I even help people from my work ( typing this now from my desk)).

 

I never took and had alot of time cleaning this code up, It was my first release ever ( real release) in epoch. ( Before this i never released anything). So i wasnt bother cleaning it up, cus it worked.

 

But as you probably see other releases of me which are pretty clean and straight forward what to do. ( I mostly left out the basics like get the compiles out of your dayz pbo if u dont have it). Because mos tof my scripts are pretty more advanced and should require abit of dayz scripting knowdledge.

 

Because there are so many servers with people behind it that know nothing of scripting/coding. If there is any kind of bug or problem that needs attention in the code then they cannot help their players because they simply not have the knowledge.

Thank you.

Well, you seem to a really busy man.

It's not that I dont have any coding experience, I released some small stuff of my own too. Problem with this particular script was that it was a precompiled pbo, plug n play release so to speak (not a fan of that I rather be able to implement scripts/changes into my already working mission file with my compiles and variables files already in place .. etc, like raymix showed in his tutorial video about the script basics) so I had to take it apart because some of the files are already used by other scripts like P4L, Snap Pro, etc .. I also have your plot management script on my server (my players love it).

The difficulty for me was as you could see in the Notepad++ screenshot above that in some files the tabstops and code comments have been removed, thereby highly altering the file, and thus making any comparision a real nightmare since everything shows up as being different. It's luckily not for all files like that, but for many it is however. I would be glad if the next standard release would address those issues. Just add your changes to a vanilla epoch file, so its much easier for someone like me to find the differences and apply the changes to their own mission file without having to rebuild the missionfile from scratch basically. I just love coherent file and code structures that are consistent.

So basically I got very much lost in the sea of changes that this script brings with it.

 

Share this post


Link to post
Share on other sites

How to add the remaining time?

Work ;)

disableSerialization;

AsReMixhud_Control = true;

while {true} do
{

	1000 cutRsc ["AsReMixhud","PLAIN"];

	_wpui = uiNameSpace getVariable "AsReMixhud";
    _vitals = _wpui displayCtrl 4900;
	_Player = player;

	ZombieKills 		= 		_Player getVariable["zombieKills",0];
	Money 		        = 		_Player getVariable["cashMoney",0];
	Hero_Kills 			= 		_Player getVariable["humanKills",0];
    Bank_Balance 		= 		_Player getVariable["bankMoney",0];
	Bandit_Kills 		= 		_Player getVariable["banditKills",0];
	Humanity 		    = 		_Player getVariable["humanity",0];
	Blood 		        = 		_Player getVariable["USEC_BloodQty",12000];
	Fps 		        = 		(round diag_fps);
	Rest 		        = 		(178-(round(serverTime/60)));
//	Restarttan bu yana gecen sure 
/*_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)) min 60) max 0;if (_minutes2 < 10) then {_minutes2 = format ['0%1',_minutes2];};
	*/
		// (asagıya eklenecek text) <t size='0.9'> %9h %10min </t><img size='0.9' align='right' image='Scripts\Player_Hud\icons\Uptime.paa'/><br/>

	//	Restarttan bu yana gecen sure end

	if(Humanity >= 5000) then { Humanity_Icon = "<img size='0.9' image='Scripts\Player_Hud\icons\HeroHumanity.paa'/>"; };
	if((Humanity >= 200) && (Humanity <= 4999)) then { Humanity_Icon = "<img size='0.9' image='Scripts\Player_Hud\icons\CivHumanity.paa'/>"; };
	if(Humanity <= 199) then { Humanity_Icon = "<img size='0.9' image='Scripts\Player_Hud\icons\BanditHumanity.paa'/>"; };

	_vitals ctrlSetStructuredText parseText format 
["
	<t size='0.8' align='right'>TEXT</t><br/>
	<t size='0.9'> %1 </t><img size='0.9' align='right' image='Scripts\Player_Hud\icons\Health.paa'/><br/> 
	<t size='0.9'> %2 %3 </t><br/> 
	<t size='0.9'> %4 </t><img size='0.9' align='right' image='Scripts\Player_Hud\icons\Money.paa'/><br/>
	<t size='0.9'> %5 </t><img size='0.9' align='right' image='Scripts\Player_Hud\icons\Bank.paa'/><br/>
	<t size='0.9'> %6 </t><img size='0.9' align='right' image='Scripts\Player_Hud\icons\HeroKills.paa'/><br/> 
	<t size='0.9'> %7 </t><img size='0.9' align='right' image='Scripts\Player_Hud\icons\BanditKills.paa'/><br/>
	<t size='0.9'> %8 </t><img size='0.9' align='right' image='Scripts\Player_Hud\icons\ZombieKills.paa'/><br/>
	<t size='0.9'> %12min </t><img size='0.9' align='right' image='Scripts\Player_Hud\icons\Uptime.paa'/><br/>
	<t size='0.9'> %11 </t><img size='0.9' align='right' image='Scripts\Player_Hud\icons\Fps.paa'/><br/>
	<t size='0.7' align='right'>TEXT</t><br/>",
	Blood,
	[Humanity] call BIS_fnc_numberText,
	Humanity_Icon,
	[Money] call BIS_fnc_numberText,
	[Bank_Balance] call BIS_fnc_numberText,
	Hero_Kills,
	Bandit_Kills,
	Zombiekills,
	_hours,
	_minutes2,
	Fps,
	Rest
];
	_vitals ctrlCommit 0;
    sleep 1.5;
};

Share this post


Link to post
Share on other sites

The HUD.

what addons folder? 

In my ZSC folder I only have 

Gui

Gold

Config

Compiles 

Action

 

I've tried replacing the icons folder with the files inside Gui and replacing PlayerHud.sqf with the one in Compiles.

But that leaves me with hud.hpp and commonhud.hpp what do I do with them?

 

 

Try 2

I've made an addons folder, put all files from the hud in there, and in the init.sqf i've put  execVM "ZSC\addons\playerHud.sqf"

 

^ Try 2 didn't work  upon load in got resource AsReMixhud could not be found

 

I'm out of ideas anyone able to help

Share this post


Link to post
Share on other sites
disableSerialization;

AsReMixhud_Control = true;

while {true} do
{

	1000 cutRsc ["AsReMixhud","PLAIN"];

	_wpui = uiNameSpace getVariable "AsReMixhud";
    _vitals = _wpui displayCtrl 4900;
	_Player = player;

	ZombieKills 		= 		_Player getVariable["zombieKills",0];
	Money 		        = 		_Player getVariable["cashMoney",0];
	Hero_Kills 		= 		_Player getVariable["humanKills",0];
    Bank_Balance 		= 		_Player getVariable["bankMoney",0];
	Bandit_Kills 		= 		_Player getVariable["banditKills",0];
	Humanity 		    = 		_Player getVariable["humanity",0];
	Blood 		        = 		_Player getVariable["USEC_BloodQty",12000];
	Fps 		        = 		(round diag_fps);
	_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)) min 60) max 0;if (_minutes2 < 10) then {_minutes2 = format ['0%1',_minutes2];};
	if(Humanity >= 5000) then { Humanity_Icon = "<img size='0.9' image='Scripts\Player_Hud\icons\HeroHumanity.paa'/>"; };
	if((Humanity >= 200) && (Humanity <= 4999)) then { Humanity_Icon = "<img size='0.9' image='Scripts\Player_Hud\icons\CivHumanity.paa'/>"; };
	if(Humanity <= 199) then { Humanity_Icon = "<img size='0.9' image='Scripts\Player_Hud\icons\BanditHumanity.paa'/>"; };

	_vitals ctrlSetStructuredText parseText format 
["
	<t size='0.8' align='right'>~~~~~ Stats ~~~~~</t><br/>
	<t size='0.9'> %1 </t><img size='0.9' align='right' image='Scripts\Player_Hud\icons\Health.paa'/><br/> 
	<t size='0.9'> %2 %3 </t><br/> 
	<t size='0.9'> %4 </t><img size='0.9' align='right' image='Scripts\Player_Hud\icons\Money.paa'/><br/>
	<t size='0.9'> %5 </t><img size='0.9' align='right' image='Scripts\Player_Hud\icons\Bank.paa'/><br/>
	<t size='0.9'> %6 </t><img size='0.9' align='right' image='Scripts\Player_Hud\icons\HeroKills.paa'/><br/> 
	<t size='0.9'> %7 </t><img size='0.9' align='right' image='Scripts\Player_Hud\icons\BanditKills.paa'/><br/>
	<t size='0.9'> %8 </t><img size='0.9' align='right' image='Scripts\Player_Hud\icons\ZombieKills.paa'/><br/>
	<t size='0.9'> %9h %10min </t><img size='0.9' align='right' image='Scripts\Player_Hud\icons\Uptime.paa'/><br/>
	<t size='0.9'> %11 </t><img size='0.9' align='right' image='Scripts\Player_Hud\icons\Fps.paa'/><br/>
	<t size='0.8' align='right'>~~~~~~~~~~~~~~~~~</t><br/>",
	Blood,
	[Humanity] call BIS_fnc_numberText,
	Humanity_Icon,
	[Money] call BIS_fnc_numberText,
	[Bank_Balance] call BIS_fnc_numberText,
	Hero_Kills,
	Bandit_Kills,
	Zombiekills,
	_hours,
	_minutes2,
	Fps
];
	_vitals ctrlCommit 0;
    sleep 1.5;
};

Anyone know how i Add reboot remain time ? like this  ..

round(240-(serverTime) / 60)

Share this post


Link to post
Share on other sites

disableSerialization;

AsReMixhud_Control = true;

while {true} do

{

    1000 cutRsc ["AsReMixhud","PLAIN"];

    _wpui = uiNameSpace getVariable "AsReMixhud";

    _vitals = _wpui displayCtrl 4900;

    _Player = player;

    ZombieKills         =         _Player getVariable["zombieKills",0];

    Money                 =         _Player getVariable["cashMoney",0];

    Hero_Kills         =          _Player getVariable["humanKills",0];

    Bank_Balance         =         _Player getVariable["bankMoney",0];

    Bandit_Kills         =         _Player getVariable["banditKills",0];

    Humanity             =         _Player getVariable["humanity",0];

    Blood                 =         _Player getVariable["USEC_BloodQty",12000];

    Fps                 =         (round diag_fps);

    Res                  =       (round(240-(serverTime) / 60));

    Surv                =        (dayz_Survived);

    _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)) min 60) max 0;if (_minutes2 < 10) then {_minutes2 = format ['0%1',_minutes2];};

    if(Humanity >= 5000) then { Humanity_Icon = "<img size='0.9' image='Scripts\Player_Hud\icons\HeroHumanity.paa'/>"; };

    if((Humanity >= 200) && (Humanity <= 4999)) then { Humanity_Icon = "<img size='0.9' image='Scripts\Player_Hud\icons\CivHumanity.paa'/>"; };

    if(Humanity <= 199) then { Humanity_Icon = "<img size='0.9' image='Scripts\Player_Hud\icons\BanditHumanity.paa'/>"; };

    _vitals ctrlSetStructuredText parseText format

["

    <t size='1.0' align='right'>~~~~~ Stats ~~~~~</t><br/>

    <t size='1.0'> %1 </t><img size='0.9' align='right' image='Scripts\Player_Hud\icons\Health.paa'/><br/>

    <t size='1.0'> %2 %3 </t><br/>

    <t size='1.0'> %4 </t><img size='0.9' align='right' image='Scripts\Player_Hud\icons\Money.paa'/><br/>

    <t size='1.0'> %5 </t><img size='0.9' align='right' image='Scripts\Player_Hud\icons\Bank.paa'/><br/>

    <t size='1.0'> %6 </t><img size='0.9' align='right' image='Scripts\Player_Hud\icons\HeroKills.paa'/><br/>

    <t size='1.0'> %7 </t><img size='0.9' align='right' image='Scripts\Player_Hud\icons\BanditKills.paa'/><br/>

    <t size='1.0'> %8 </t><img size='0.9' align='right' image='Scripts\Player_Hud\icons\ZombieKills.paa'/><br/>

    <t size='1.0'> %9h %10min </t><img size='0.9' align='right' image='Scripts\Player_Hud\icons\Uptime.paa'/><br/>

    <t size='1.0'> %11 </t><img size='0.9' align='right' image='Scripts\Player_Hud\icons\Fps.paa'/><br/>

    <t size='1.0' color='#FF0000' > Restart in %12 Mins </t><br/>

    <t size='1.0'> Day Survived %13 Day(s) </t><br/>

    <t size='1.0' align='right' >~~~~~DayZ.QCLI.CA~~~~~</t><br/>",

    Blood,

    [Humanity] call BIS_fnc_numberText,

    Humanity_Icon,

    [Money] call BIS_fnc_numberText,

    [bank_Balance] call BIS_fnc_numberText,

    Hero_Kills,

    Bandit_Kills,

    Zombiekills,

    _hours,

    _minutes2,

    Fps,

    Res,

    Surv

];

    _vitals ctrlCommit 0;

    sleep 1.5;

};

 

Well i did it by myself , if any one want to use it Feel free to use , juste replace everything from your playerHud.sqf with the one i just send.

Red line are what i added in the Original Script.

So its Add Remaining Time 240 mean 240 min

and its add how much Day survived.

Share this post


Link to post
Share on other sites

 

Well i did it by myself , if any one want to use it Feel free to use , juste replace everything from your playerHud.sqf with the one i just send.

Red line are what i added in the Original Script.

So its Add Remaining Time 240 mean 240 min

and its add how much Day survived.

Sure ya did. More like, you read one of the MANY forum topics about adding that to a debug, and you followed one of the guides. but ya, go ahead and take credit for someone else's work as your own.. "I did it by myself"........right. But, if you really did, then congrats on figuring it out. :)

Share this post


Link to post
Share on other sites

Bualboot just stfu ? when i found that script i was really happy so then there was some missing thing and i decided to add it to help people , i dont want credit of anything and i dont fucking care ?

Share this post


Link to post
Share on other sites

Come to my server and ask people if i am some one right.

People do not care which way you did the script , and i sayd i used the Original Script , how you can say i was trying to take credit of the script ? and do some one can be enough stupid to post a script he ''made'' on the same post of the original one ?

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

  • Advertisement
  • Supporters
  • Discord

×
×
  • Create New...