jk2ffa.freeforums.org

JKII 1.02 FFA Community
It is currently Wed May 24, 2017 5:58 am

All times are UTC + 1 hour [ DST ]


Welcome
Welcome to jk2ffa

You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content, and access many other special features. In addition, registered members also see less advertisements. Registration is fast, simple, and absolutely free, so please, join our community today!



Post new topic Reply to topic  [ 11 posts ] 
Author Message
 Post subject: Serverside for black names?
PostPosted: Wed Mar 12, 2014 9:33 pm 
Offline
User avatar

Joined: Sun Dec 09, 2012 12:07 pm
Posts: 117
Does a server needs a mod to avoid people to use black names, if yeah please gimme :) By the wau don't want NT ^^

_________________
Cheers, Okiba


Top
 Profile  
 
 
 Post subject: Re: Serverside for black names?
PostPosted: Wed Mar 12, 2014 10:50 pm 
Offline

Joined: Thu Apr 11, 2013 6:32 pm
Posts: 127
A server does not need a mod to "avoid" black names, but it will need to be modded to accept the use of black in names :)


Top
 Profile  
 
 Post subject: Re: Serverside for black names?
PostPosted: Thu Mar 13, 2014 10:03 am 
Offline
User avatar

Joined: Sun Dec 09, 2012 12:07 pm
Posts: 117
Anyways, is there any hoster who could share that modding stuff ?

_________________
Cheers, Okiba


Top
 Profile  
 
 Post subject: Re: Serverside for black names?
PostPosted: Thu Mar 13, 2014 12:40 pm 
Offline

Joined: Sat Apr 06, 2013 3:54 pm
Posts: 220
you could make a mod which checks for ^0 in names on the server side, and then replaces it with another color code or whatever. EZ!


Top
 Profile  
 
 Post subject: Re: Serverside for black names?
PostPosted: Thu Mar 13, 2014 1:01 pm 
Offline
User avatar

Joined: Sun Dec 09, 2012 12:07 pm
Posts: 117
Hehe EZ maybe, but I dont code ^^

_________________
Cheers, Okiba


Top
 Profile  
 
 Post subject: Re: Serverside for black names?
PostPosted: Thu Mar 13, 2014 2:00 pm 
Offline

Joined: Sat Apr 06, 2013 3:54 pm
Posts: 220
noob xD


Top
 Profile  
 
 Post subject: Re: Serverside for black names?
PostPosted: Thu Mar 13, 2014 2:11 pm 
Offline

Joined: Thu Apr 11, 2013 6:32 pm
Posts: 127
Adding support for black names are just a few lines of code :)

In the file g_client.c you find this function:
Code:
static void ClientCleanName( const char *in, char *out, int outSize )


In there you will find an if statement that says:
Code:
if( ch == Q_COLOR_ESCAPE ) {


The second statement inside of that should be this. Comment it out:
Code:
if( ColorIndex(*in) == 0 ) {
   in++;
   continue;
}


That should allow the black names ^^

Then you just compile the qvm and use it on your server :)


Last edited by Kameleon on Thu Mar 13, 2014 8:19 pm, edited 2 times in total.

Top
 Profile  
 
 Post subject: Re: Serverside for black names?
PostPosted: Thu Mar 13, 2014 2:58 pm 
Offline
User avatar

Joined: Sun Dec 09, 2012 12:07 pm
Posts: 117
Hm ty, I will try!

_________________
Cheers, Okiba


Top
 Profile  
 
 Post subject: Re: Serverside for black names?
PostPosted: Fri Mar 14, 2014 12:00 am 
Offline
Site Admin
User avatar

Joined: Sat Sep 17, 2011 3:14 am
Posts: 1113
Why don't you use jk2-mod-builder-by-nerevar-and-scharp-t10.html for that?

_________________
Spoiler:
ImageImageImage
Like my Father Before Me, I am An Assassin. http://youtu.be/JbldtyLgkEA
ImageImageImage


Top
 Profile  
 
 Post subject: Re: Serverside for black names?
PostPosted: Fri Mar 14, 2014 3:41 pm 
Offline

Joined: Thu Apr 11, 2013 6:32 pm
Posts: 127
I already send him a version of basejk with the black names fixed, but yes - the mod builder could have been another alternative for this matter :)


Top
 Profile  
 
 Post subject: Re: Serverside for black names?
PostPosted: Fri May 30, 2014 3:08 pm 
Offline
User avatar

Joined: Mon Jul 30, 2012 2:20 pm
Posts: 60
Hmm...I always wondered why the black names in some servers dont work...!!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 11 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Donate Now
Donate Now


Hosted by © 2017 FreeForums.org | Create a free forum | Powered by phpBB
About FreeForums | Legal | Advertise Here | Investors | Contact FreeForums.org
Report Violation
suspicion-preferred