Jump to content
  • 0
Thug

COIN WITH BANKING DISPLAY

Question

I installed the Zupa Coin with banking (999). There is a display in the upper right of the screen. it shows things like how much coin you have in the bank, kills, fps, uptime and more.

Is there a way I can move that to the bottom of the screen? The server admin display covers it up and you have to delete to see Zupas display.

 

display.jpg

Edited by Thug

Share this post


Link to post
Share on other sites

8 answers to this question

Recommended Posts

  • 0

There is, yes, just find the script that creates their rsctitles.
I wrote a descriptive solution, ofc all of these lines can be consolidated into a single line of code:

_right = safezoneX + safezoneW; //right part of screen
_bottom = safezoneY + safezoneH; //bottom part of screen

_moveLeft = safezoneW * 0.1; //10% of total width
_moveUp = safezoneH * 0.1; //10% of total height

_x = _right - _moveLeft;
_y = _bottom - _moveUp;

_finalPosition = [_x,_y];

 

Share this post


Link to post
Share on other sites
  • 0

Any way to have something like this at the bottom?

[health icon] 0 | [bank icon] 0 | [money] 0 [headshot icon] 0 | ... ?

Edited by bFe

Share this post


Link to post
Share on other sites
  • 0

Yes, as far as I remember they were running a structured text with new lines. I'd have to see the script again, can't remember.

But the idea is the same for positioning, work your math off of percentages to fit all screens and simply remove new lines added (most likely by <br> or newline if composeText was used)

Share this post


Link to post
Share on other sites
  • 0

There is, yes, just find the script that creates their rsctitles.
I wrote a descriptive solution, ofc all of these lines can be consolidated into a single line of code:

_right = safezoneX + safezoneW; //right part of screen
_bottom = safezoneY + safezoneH; //bottom part of screen

_moveLeft = safezoneW * 0.1; //10% of total width
_moveUp = safezoneH * 0.1; //10% of total height

_x = _right - _moveLeft;
_y = _bottom - _moveUp;

_finalPosition = [_x,_y];

 

As always, thank you for what you do for ALL OF US.

Share this post


Link to post
Share on other sites
  • 0

There is, yes, just find the script that creates their rsctitles.
I wrote a descriptive solution, ofc all of these lines can be consolidated into a single line of code:

_right = safezoneX + safezoneW; //right part of screen
_bottom = safezoneY + safezoneH; //bottom part of screen

_moveLeft = safezoneW * 0.1; //10% of total width
_moveUp = safezoneH * 0.1; //10% of total height

_x = _right - _moveLeft;
_y = _bottom - _moveUp;

_finalPosition = [_x,_y];

 

This is the only file I found that had the information you sent.

is this the only file I have to change?

 

/*
    AsReMix Player HUD File - Zupa Single Currency Edit - Lots of thanks to AsRemix.
*/

#define hud_status_idc 4900


class AsReMixhud {
    idd = -1;
    fadeout=0;
    fadein=0;
    duration = 20;
    name= "AsReMixhud";
    onLoad = "uiNamespace setVariable ['AsReMixhud', _this select 0]";
    
    class controlsBackground {

        class AsReMixhud_Status:Hw_RscText
        {
            idc = hud_status_idc;
            type = CT_STRUCTURED_TEXT;
            size = 0.040;
    x = safezoneX + (safezoneW -0.35) ;
    y = safezoneY + 0.10 * safezoneW;
            w = 0.35; h = 0.35;
            colorText[] = {1,1,1,1};
            lineSpacing = 3;
            colorBackground[] = {0,0,0,0};
            text = "";
            shadow = 2;
            class Attributes {
                align = "right";
            };
        };

    };
};

Edited by Thug

Share this post


Link to post
Share on other sites
  • 0

Yup that's the one. He uses static number for height, which means we do not work with percentages.

Explanation:

SafezoneY represents top corner of screen.
SafezoneH represents full height of the screen
Adding these together you can retrieve bottom part of screen. So safezoneY + safezoneH = bottom
Now, because width and height are both static 0.35 units, we have to work with these values for position.
X position is already there for us, so we don't care about it
We will use Y position to move the dialog down (or up)

It can be achieved several ways:
1) get the bottom part of the screen and move Y up by 0.35, which is the height of the dialog (moves up from bottom)
2) take full height of the screen minus the 0.35 for dialog and then simply add it to top part of the screen (moves down from top)

y = (safezoneY + safezoneW) - 0.35; // 1)
y = safezoneY + (safezoneW - 0.35); // 2)
y = safezoneY + safezoneW - 0.35; // 3)

//doesn't matter how your logic works, any 1 of these 3 is mathematically correct

 

Share this post


Link to post
Share on other sites
  • 0

Yup that's the one. He uses static number for height, which means we do not work with percentages.

Explanation:

SafezoneY represents top corner of screen.
SafezoneH represents full height of the screen
Adding these together you can retrieve bottom part of screen. So safezoneY + safezoneH = bottom
Now, because width and height are both static 0.35 units, we have to work with these values for position.
X position is already there for us, so we don't care about it
We will use Y position to move the dialog down (or up)

It can be achieved several ways:
1) get the bottom part of the screen and move Y up by 0.35, which is the height of the dialog (moves up from bottom)
2) take full height of the screen minus the 0.35 for dialog and then simply add it to top part of the screen (moves down from top)

y = (safezoneY + safezoneW) - 0.35; // 1)
y = safezoneY + (safezoneW - 0.35); // 2)
y = safezoneY + safezoneW - 0.35; // 3)

//doesn't matter how your logic works, any 1 of these 3 is mathematically correct

 

I shall call you Professor RayMix from now on.... thanks this really cleared it up for me. I would have pulled all my hair out before i got that. 

Share this post


Link to post
Share on other sites
  • 0

I shall call you Professor RayMix from now on.... thanks this really cleared it up for me. I would have pulled all my hair out before i got that. 

Thanks for the beer, btw :)

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 Gabriel12237
      Hello Community i need help .

      Sorry for my bad english. Im from germany and i need help.

      I Have Advanced trading and Single currency 3.0 (without global banking) from zupa, and when i sell or buy in the normal trading menu , the trader dont use coins from me. With advanced trading menu the trader use coins for the item.

      Pls help me.

      Thx
    • By DY357LX
      I'm going to have a look at getting Single Currency Banking on 1.0.6, but I'm looking at the server files on github
      ( https://github.com/EpochSC/SingleCurrencyBanking/tree/master/999_Hive_Version/Version 1.1/PBOs/dayz_server )
      and it seems like it's all of the 1.0.5.1 files but with stuff added for handling the banks. Merging/checking every single file
      would take too long. I can't copy + paste then replace the old files because they're 1.0.5.1 files and too different to 1.0.6.
      (Merging the mission files is do-able.)
      Anyone got any ideas/hints?
      (Sidenote: where I see "headShots" in the code, I need to replace that with "Coins", right? The new database layout has
      the extra column named "Coins", so we no longer need to read from the headShots value?)
      Thanks.
    • By Zyxed1
      In debug on my server, ServerUpTime is not showing at all. Would like to know what is the reason for that.
      Here is my playerhud.sqf
      disableSerialization; // player setVariable["AsReMixhud", true];//Variable Show/Hide HUD Support for control player hud AsReMixhud_Control = true; // player getVariable["AsReMixhud",true]; while {true} do { 1000 cutRsc ["AsReMixhud","PLAIN"]; _wpui = uiNameSpace getVariable "AsReMixhud"; _vitals = _wpui displayCtrl 4900; _thePlayer = player; AsReMixhud_zombieKills = _thePlayer getVariable["zombieKills",0]; AsReMixhud_headshots = _thePlayer getVariable["headShots",0]; AsReMixhud_killsH = _thePlayer getVariable["humanKills",0]; Zupa_bank = _thePlayer getVariable["bank",0]; AsReMixhud_killsB = _thePlayer getVariable["banditKills",0]; AsReMixhud_humanity = _thePlayer getVariable["humanity",0]; AsReMixhud_zombies = ""; AsReMixhud_zombiesAlive = ""; AsReMixhud_blood = _thePlayer getVariable["USEC_BloodQty",12000]; AsReMixhud_pid = ""; AsReMixhud_puid = ""; AsReMixhud_hmnicon = ""; AsReMixhud_fps = (round diag_fps); AsReMixhud_svrname = "Amnesia"; _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(AsReMixhud_humanity >= 5000) then { AsReMixhud_hmnicon = "<img size='0.8' image='addons\playerhud\icons\As_hmhero.paa'/>"; }; //if((AsReMixhud_humanity >= 200) && (AsReMixhud_humanity <= 4999)) then { AsReMixhud_hmnicon = "<img size='0.8' image='addons\playerhud\icons\As_hmcivil.paa'/>"; }; // if(AsReMixhud_humanity <= 199) then { AsReMixhud_hmnicon = "<img size='0.8' image='addons\playerhud\icons\As_hmbandit.paa'/>"; }; _vitals ctrlSetStructuredText parseText format [" <t size='0.8' align='right'>Zupa - AsRemix</t><br/> <t size='0.9'> %1 </t><img size='0.8' align='right' image='addons\playerhud\icons\As_health.paa'/> <br/> <t size='0.9'> %2 %5 </t><img size='0.8' align='right' image='addons\playerhud\icons\As_humanity.paa'/> <br/> <t size='0.9'> %3 </t><img size='0.8' align='right' image='addons\playerhud\icons\dollars.paa'/> <br/> <t size='0.9'> %14 </t><img size='0.8' align='right' image='addons\playerhud\icons\equip_safe_CA.paa'/> <br/> <t size='0.9'> %10 </t><img size='0.8' align='right' image='addons\playerhud\icons\As_killh.paa'/> <br/> <t size='0.9'> %9 </t><img size='0.8' align='right' image='addons\playerhud\icons\As_killb.paa'/> <br/> <t size='0.9'> %4 </t><img size='0.8' align='right' image='addons\playerhud\icons\As_zkill.paa'/> <br/> <t size='0.8' align='right'>%13 FPS</t><br/> <t size='0.8' align='right'>%11h %12min UPTIME</t><br/>", AsReMixhud_blood, //1 AsReMixhud_humanity,//2 AsReMixhud_headshots,//3 AsReMixhud_zombiekills,//4 AsReMixhud_hmnicon,//5 name player,//6 AsReMixhud_zombiesAlive,//7 AsReMixhud_zombies,//8 AsReMixhud_killsB,//9 AsReMixhud_killsH,//10 _hours,//11 _minutes2,//12 AsReMixhud_fps,//13 Zupa_bank,//14 AsReMixhud_svrname//15 ]; _vitals ctrlCommit 0; sleep 2; };  
    • By Zyxed1
      I have a problem getting blood work in zupa - asremix debug monitor. Debug ingame
      For somereason it shows humanity on blood.
      Here is my playerhud.sqf
      disableSerialization; // player setVariable["AsReMixhud", true];//Variable Show/Hide HUD Support for control player hud AsReMixhud_Control = true; // player getVariable["AsReMixhud",true]; while {true} do { 1000 cutRsc ["AsReMixhud","PLAIN"]; _wpui = uiNameSpace getVariable "AsReMixhud"; _vitals = _wpui displayCtrl 4900; _thePlayer = player; AsReMixhud_zombieKills = _thePlayer getVariable["zombieKills",0]; AsReMixhud_headshots = _thePlayer getVariable["headShots",0]; AsReMixhud_killsH = _thePlayer getVariable["humanKills",0]; Zupa_bank = _thePlayer getVariable["bank",0]; AsReMixhud_killsB = _thePlayer getVariable["banditKills",0]; AsReMixhud_humanity = _thePlayer getVariable["humanity",0]; AsReMixhud_zombies = ""; AsReMixhud_zombiesAlive = ""; AsReMixhud_blood = _thePlayer getVariable["USEC_BloodQty",12000]; AsReMixhud_pid = ""; AsReMixhud_puid = ""; AsReMixhud_hmnicon = ""; AsReMixhud_fps = (round diag_fps); AsReMixhud_svrname = "Amnesia"; _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(AsReMixhud_humanity >= 5000) then { AsReMixhud_hmnicon = "<img size='0.8' image='addons\playerhud\icons\As_hmhero.paa'/>"; }; //if((AsReMixhud_humanity >= 200) && (AsReMixhud_humanity <= 4999)) then { AsReMixhud_hmnicon = "<img size='0.8' image='addons\playerhud\icons\As_hmcivil.paa'/>"; }; // if(AsReMixhud_humanity <= 199) then { AsReMixhud_hmnicon = "<img size='0.8' image='addons\playerhud\icons\As_hmbandit.paa'/>"; }; _vitals ctrlSetStructuredText parseText format [" <t size='0.8' align='right'>Zupa - AsRemix</t><br/> <t size='0.9'> %2 </t><img size='0.8' align='right' image='addons\playerhud\icons\As_health.paa'/> <br/> <t size='0.9'> %2 %5 </t><img size='0.8' align='right' image='addons\playerhud\icons\As_humanity.paa'/> <br/> <t size='0.9'> %3 </t><img size='0.8' align='right' image='addons\playerhud\icons\dollars.paa'/> <br/> <t size='0.9'> %14 </t><img size='0.8' align='right' image='addons\playerhud\icons\equip_safe_CA.paa'/> <br/> <t size='0.9'> %10 </t><img size='0.8' align='right' image='addons\playerhud\icons\As_killh.paa'/> <br/> <t size='0.9'> %9 </t><img size='0.8' align='right' image='addons\playerhud\icons\As_killb.paa'/> <br/> <t size='0.9'> %4 </t><img size='0.8' align='right' image='addons\playerhud\icons\As_zkill.paa'/> <br/> <t size='0.8' align='right'>%13 FPS</t><br/> <t size='0.8' align='right'>%11h %12min UPTIME</t><br/>", AsReMixhud_blood, //1 AsReMixhud_humanity,//2 AsReMixhud_headshots,//3 AsReMixhud_zombiekills,//4 AsReMixhud_hmnicon,//5 name player,//6 AsReMixhud_zombiesAlive,//7 AsReMixhud_zombies,//8 AsReMixhud_killsB,//9 AsReMixhud_killsH,//10 _hours,//11 _minutes2,//12 AsReMixhud_fps,//13 Zupa_bank,//14 AsReMixhud_svrname//15 ]; _vitals ctrlCommit 0; sleep 2; }; Help me I have no idea :D
  • Advertisement
  • Advertisement
  • Supporters
  • Advertisement
  • Discord

×