lfnetwork.com mark read register faq members calendar

Thread: ^8 & ^9
Thread Tools Display Modes
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Old 11-07-2006, 01:32 PM   #1
Dom_152
Rookie
 
Dom_152's Avatar
 
Join Date: Jan 2006
Location: England
Posts: 150
^8 & ^9

Q_CleanStr and SanatizeString(2) do not seem to remove the ^8 and ^9 colour codes from names for some reason. How can I either alter those functions so it will remove those colour codes or do it maunally? I don't really consider those two proper colours, they are just duplicates and I would like to get rid of them.


-----------------------------------------------------
MultiPlayer Xtra
Jedi Academy MP Mod
(Released! Source Code and all!)

Jedi Academy - Xtra
Coming Soon...

-----------------------------------------------------
Dom_152 is offline   you may: quote & reply,
Old 11-08-2006, 04:22 AM   #2
-=*Raz0r*=-
Rookie
 
-=*Raz0r*=-'s Avatar
 
Join Date: Oct 2006
Location: Australia
Posts: 243
g_client.c
Line 1368 through to Line 1372

That segment disables black names...see if you can work your way around that code to disable ^8 and ^9 in names/text

Good luck...i'm a noob coder, so i cant really show you how..
-=*Raz0r*=- is offline   you may: quote & reply,
Old 11-08-2006, 10:41 AM   #3
Dom_152
Rookie
 
Dom_152's Avatar
 
Join Date: Jan 2006
Location: England
Posts: 150
I've tried that. All it does is skip the colour code so it's not actually used as a colour but the code is still there. I want to actually get rid of the characters so it's just a plain name with no colour codes at all.


-----------------------------------------------------
MultiPlayer Xtra
Jedi Academy MP Mod
(Released! Source Code and all!)

Jedi Academy - Xtra
Coming Soon...

-----------------------------------------------------
Dom_152 is offline   you may: quote & reply,
Old 11-08-2006, 03:15 PM   #4
ensiform
The Stig
 
ensiform's Avatar
 
Join Date: Nov 2004
Location: Sawtooth Cauldron
Posts: 1,241
Current Game: Borderlands 2
Well I know the xMod src has a new version of cleanclientname which removes ^8 and ^9, but it has a bug in the src in the version that is avail. on sourceforge.


iojamp project lead / coder
ensiform is offline   you may: quote & reply,
Old 11-08-2006, 03:32 PM   #5
Dom_152
Rookie
 
Dom_152's Avatar
 
Join Date: Jan 2006
Location: England
Posts: 150
What i don't get is why SanatizeString/Q_CleanStr doesn't get rid of them. SanatizeString2() definatly seems to go up to 9 in the colour index so i dont see why not.


-----------------------------------------------------
MultiPlayer Xtra
Jedi Academy MP Mod
(Released! Source Code and all!)

Jedi Academy - Xtra
Coming Soon...

-----------------------------------------------------
Dom_152 is offline   you may: quote & reply,
Old 11-08-2006, 04:00 PM   #6
ensiform
The Stig
 
ensiform's Avatar
 
Join Date: Nov 2004
Location: Sawtooth Cauldron
Posts: 1,241
Current Game: Borderlands 2
No, because they are not actually color codes. Hence why the game doesn't show them as color in text boxes or console. 0-7 are the only valid colors. I honestly see no purpose of using SanatizeString(2) as they seem to strip out the carrot of names such as ^ensiform, the only logical reason would be to use it so that non-standard ascii characters are not stripped but one could write a better function to strip colors without harming the non-ascii characters instead of using SanatizeString(2). If you are not worried about the ascii chars, then use Q_CleanStr after you've already removed 8 and 9 from the string.


iojamp project lead / coder
ensiform is offline   you may: quote & reply,
Old 11-08-2006, 04:06 PM   #7
bzug0
Rookie
 
bzug0's Avatar
 
Join Date: Apr 2006
Posts: 52
what is the link for xMod src I only have the source for 2.0 :|
bzug0 is offline   you may: quote & reply,
Old 11-08-2006, 04:35 PM   #8
ensiform
The Stig
 
ensiform's Avatar
 
Join Date: Nov 2004
Location: Sawtooth Cauldron
Posts: 1,241
Current Game: Borderlands 2
That is all that there is.


iojamp project lead / coder
ensiform is offline   you may: quote & reply,
Old 11-09-2006, 11:11 AM   #9
Dom_152
Rookie
 
Dom_152's Avatar
 
Join Date: Jan 2006
Location: England
Posts: 150
Thanks. The xMod version seems to work well.


-----------------------------------------------------
MultiPlayer Xtra
Jedi Academy MP Mod
(Released! Source Code and all!)

Jedi Academy - Xtra
Coming Soon...

-----------------------------------------------------
Dom_152 is offline   you may: quote & reply,
Old 11-09-2006, 11:23 AM   #10
Dom_152
Rookie
 
Dom_152's Avatar
 
Join Date: Jan 2006
Location: England
Posts: 150
On a completely unrelated topic how can I make text centre print on the screen for a certain time without editing the client side. Is that even possible?


-----------------------------------------------------
MultiPlayer Xtra
Jedi Academy MP Mod
(Released! Source Code and all!)

Jedi Academy - Xtra
Coming Soon...

-----------------------------------------------------

Last edited by Dom_152; 11-09-2006 at 11:33 AM.
Dom_152 is offline   you may: quote & reply,
Old 11-09-2006, 02:47 PM   #11
ensiform
The Stig
 
ensiform's Avatar
 
Join Date: Nov 2004
Location: Sawtooth Cauldron
Posts: 1,241
Current Game: Borderlands 2
The xMod version of that function has a bug as i mentioned. The only way to have it stay on screen longer is to spam cp commands to the clients as many times as needed. Note: the way seen in xMod 2.0 is not the greatest, but if it is modified a bit, can work nicely. If you chose to do that, just stick it in the existing ClientTimerActions instead of making a new one otherwise you will end up with some serious bugz (timer being knocked down for -2 sec each time)


iojamp project lead / coder
ensiform is offline   you may: quote & reply,
Old 11-09-2006, 03:31 PM   #12
Dom_152
Rookie
 
Dom_152's Avatar
 
Join Date: Jan 2006
Location: England
Posts: 150
Ok, thanks man.


-----------------------------------------------------
MultiPlayer Xtra
Jedi Academy MP Mod
(Released! Source Code and all!)

Jedi Academy - Xtra
Coming Soon...

-----------------------------------------------------
Dom_152 is offline   you may: quote & reply,
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Go Back   LucasForums > Network > JediKnight Series > Editing Central > JA Coding > ^8 & ^9

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 11:57 AM.

LFNetwork, LLC ©2002-2011 - All rights reserved.
Powered by vBulletin®
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.