• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

Add DEV behind name?

Newbie Spellweaver
Joined
Feb 1, 2014
Messages
41
Reaction score
6
Hey Ragezone Community!

I have a question: How can I enable the DEV tag behind the name in TAB-Menu?


I´m using the AllRightSource.
 
Custom Title Activated
Loyal Member
Joined
May 18, 2006
Messages
1,425
Reaction score
119
@Eclipse Studio

# ClientGameLogic.cpp

IMPL_PACKET_FUNC(ClientGameLogic, PKT_S2C_PlayerNameJoined)
{
r3d_assert(n.peerId < R3D_ARRAYSIZE(playerNames));
r3dscpy(playerNames[n.peerId].Gamertag, n.gamertag);
playerNames[n.peerId].plrRep = n.Reputation;
playerNames[n.peerId].isLegend = (n.flags & 1)?true:false;
playerNames[n.peerId].isPunisher = (n.flags & 2)?true:false;
playerNames[n.peerId].MeCustomerID = n.CustomerID;
playerNames[n.peerId].isDev = (n.flags & 2)?true:false; // dev tag

// dev tag
if ( playerNames[n.peerId].isLegend = true) // AccountType == 0
{
playerNames[n.peerId].isDev = false;
playerNames[n.peerId].isPunisher = false;
}
if (playerNames[n.peerId].isPunisher = true) // IsPunisher == 1
{
playerNames[n.peerId].isDev = false;
playerNames[n.peerId].isLegend = false;
}
if (playerNames[n.peerId].isDev = true) // IsDeveloper == 1
{
playerNames[n.peerId].isLegend = false;
playerNames[n.peerId].isPunisher = false;
}

}


# HUDDisplay.cpp

uint32_t flags = 0;
if(gUserProfile.ProfileData.isDevAccount)
{
flags|=2; // dev tag
}
if(gUserProfile.ProfileData.isPunisher)
{
flags|=2;
}
if(gUserProfile.ProfileData.AccountType==0)
{
flags|=1;
}
if(gUserProfile.ProfileData.AccountType==5)
{
flags|=3;
}


char tmpMsg[1024];
const char* tabNames[] = {"[PROXIMITY]", "[GLOBAL]", "[CLAN]", "[GROUP]"};
const char* tabNamesColor[] = {"#00A000", "#13bbeb", "#de13eb", "#ffa900"};
const char* userNameColor[] = {"#ffffff", "#ffa800"};

bool isUserLegend = (flags&1)?true:false;
bool isUserPunisher = (flags&2)?true:false;
bool isUserDev = (flags&2)?true:false; // dev tag

const char* userColor = userNameColor[isUserLegend?0:1];
const char* textColor = "#d0d0d0";
const char* namePrefix = "";


Server

# ServerGameLogic.cpp

PKT_S2C_PlayerNameJoined_s n;
n.peerId = (BYTE)peerId;
r3dscpy(n.gamertag, plr->userName);
n.flags = 0;
if(plr->profile_.ProfileData.AccountType == 0) // legend
n.flags |= 1;
if(plr->profile_.ProfileData.isPunisher)
n.flags |= 2;
if(plr->profile_.ProfileData.isDevAccount) // dev tag
n.flags |= 2;



if(peers_.status_ >= PEER_PLAYING && peers_.player) {
PKT_S2C_PlayerNameJoined_s n;
n.peerId = i;
r3dscpy(n.gamertag, peers_.player->userName);
n.flags = 0;
if(peers_.player->profile_.ProfileData.AccountType == 0) // legend
n.flags |= 1;
if(peers_.player->profile_.ProfileData.isPunisher)
n.flags |= 2;
if(peers_.player->profile_.ProfileData.isDevAccount) // dev tag
n.flags |= 2;
 
Upvote 0
Experienced Elementalist
Joined
Nov 6, 2013
Messages
251
Reaction score
20
@Eclipse Studio

# ClientGameLogic.cpp

IMPL_PACKET_FUNC(ClientGameLogic, PKT_S2C_PlayerNameJoined)
{
r3d_assert(n.peerId < R3D_ARRAYSIZE(playerNames));
r3dscpy(playerNames[n.peerId].Gamertag, n.gamertag);
playerNames[n.peerId].plrRep = n.Reputation;
playerNames[n.peerId].isLegend = (n.flags & 1)?true:false;
playerNames[n.peerId].isPunisher = (n.flags & 2)?true:false;
playerNames[n.peerId].MeCustomerID = n.CustomerID;
playerNames[n.peerId].isDev = (n.flags & 2)?true:false; // dev tag

// dev tag
if ( playerNames[n.peerId].isLegend = true) // AccountType == 0
{
playerNames[n.peerId].isDev = false;
playerNames[n.peerId].isPunisher = false;
}
if (playerNames[n.peerId].isPunisher = true) // IsPunisher == 1
{
playerNames[n.peerId].isDev = false;
playerNames[n.peerId].isLegend = false;
}
if (playerNames[n.peerId].isDev = true) // IsDeveloper == 1
{
playerNames[n.peerId].isLegend = false;
playerNames[n.peerId].isPunisher = false;
}

}


# HUDDisplay.cpp

uint32_t flags = 0;
if(gUserProfile.ProfileData.isDevAccount)
{
flags|=2; // dev tag
}
if(gUserProfile.ProfileData.isPunisher)
{
flags|=2;
}
if(gUserProfile.ProfileData.AccountType==0)
{
flags|=1;
}
if(gUserProfile.ProfileData.AccountType==5)
{
flags|=3;
}


char tmpMsg[1024];
const char* tabNames[] = {"[PROXIMITY]", "[GLOBAL]", "[CLAN]", "[GROUP]"};
const char* tabNamesColor[] = {"#00A000", "#13bbeb", "#de13eb", "#ffa900"};
const char* userNameColor[] = {"#ffffff", "#ffa800"};

bool isUserLegend = (flags&1)?true:false;
bool isUserPunisher = (flags&2)?true:false;
bool isUserDev = (flags&2)?true:false; // dev tag

const char* userColor = userNameColor[isUserLegend?0:1];
const char* textColor = "#d0d0d0";
const char* namePrefix = "";



@Server

# ServerGameLogic.cpp

PKT_S2C_PlayerNameJoined_s n;
n.peerId = (BYTE)peerId;
r3dscpy(n.gamertag, plr->userName);
n.flags = 0;
if(plr->profile_.ProfileData.AccountType == 0) // legend
n.flags |= 1;
if(plr->profile_.ProfileData.isPunisher)
n.flags |= 2;
if(plr->profile_.ProfileData.isDevAccount) // dev tag
n.flags |= 2;



if(peers_.status_ >= PEER_PLAYING && peers_.player) {
PKT_S2C_PlayerNameJoined_s n;
n.peerId = i;
r3dscpy(n.gamertag, peers_.player->userName);
n.flags = 0;
if(peers_.player->profile_.ProfileData.AccountType == 0) // legend
n.flags |= 1;
if(peers_.player->profile_.ProfileData.isPunisher)
n.flags |= 2;
if(peers_.player->profile_.ProfileData.isDevAccount) // dev tag
n.flags |= 2;



Work ?
 
Upvote 0
Custom Title Activated
Loyal Member
Joined
May 18, 2006
Messages
1,425
Reaction score
119
last pic

vSimpleDie - Add DEV behind name? - RaGEZONE Forums
 
Upvote 0
Newbie Spellweaver
Joined
Feb 1, 2014
Messages
41
Reaction score
6
bumpppp how to fix....



what is solution ?

I have a easy fix...

As first go to C:/WarZ/Bin/Data/Menu than open the WarZ_Hud.swf with "Sothink SWF Decompiler".
Than expand it. It should look so:
vSimpleDie - Add DEV behind name? - RaGEZONE Forums


Save that
vSimpleDie - Add DEV behind name? - RaGEZONE Forums
.
Than expand "picture" and rightclick on "image 90" -> edit -> and choose the one which you downloaded. Click on open.
It should look than so:

vSimpleDie - Add DEV behind name? - RaGEZONE Forums


Save the file and build the update, join the server than you should see that:

vSimpleDie - Add DEV behind name? - RaGEZONE Forums
 
Upvote 0
Custom Title Activated
Loyal Member
Joined
May 18, 2006
Messages
1,425
Reaction score
119
what is the flags|=1, flags|=2 or flags|=3 ?

and the gold star = Punisher Account ?
 
Upvote 0
Experienced Elementalist
Joined
Nov 6, 2013
Messages
251
Reaction score
20
I have a easy fix...

As first go to C:/WarZ/Bin/Data/Menu than open the WarZ_Hud.swf with "Sothink SWF Decompiler".
Than expand it. It should look so:
vSimpleDie - Add DEV behind name? - RaGEZONE Forums


Save that
vSimpleDie - Add DEV behind name? - RaGEZONE Forums
.
Than expand "picture" and rightclick on "image 90" -> edit -> and choose the one which you downloaded. Click on open.
It should look than so:

vSimpleDie - Add DEV behind name? - RaGEZONE Forums


Save the file and build the update, join the server than you should see that:

vSimpleDie - Add DEV behind name? - RaGEZONE Forums


Thanks work fine :)
 
Upvote 0
Custom Title Activated
Loyal Member
Joined
May 18, 2006
Messages
1,425
Reaction score
119
new trick

HUDDisplay.cpp

find

if(isUserDev)
{
userColor = "#ffff00";
textColor = "#ffff00";
namePrefix = "<DEV>";
}

and uncomment



and comment this code

Code:
	if ( playerNames[n.peerId].isLegend = true) // AccountType == 0
	{
		playerNames[n.peerId].isDev = false;
		playerNames[n.peerId].isPunisher = false;
	}
	if (playerNames[n.peerId].isPunisher = true) // IsPunisher == 1
	{
		playerNames[n.peerId].isDev = false;
		playerNames[n.peerId].isLegend = false;
	}
	if (playerNames[n.peerId].isDev = true) // IsDeveloper == 1
	{
		playerNames[n.peerId].isLegend = false;
		playerNames[n.peerId].isPunisher = false;
	}



vSimpleDie - Add DEV behind name? - RaGEZONE Forums


what is flags
flags |= 2 >> Blue
flags |= 1 >> yellow
flags |= 3 >> Pink
 
Upvote 0
Back
Top