OK, I got a server up and running, and that's all fine.
However, I can't find what is making it so when DEMOS join my server, they don't get the (DEMO) tagged onto their names. I think they should wear what they are...
I'm using dash's admin codes and Warfare's chat logger. There is also a copy of wingman's script on the TT copy.
I'm wondering if there is a different version of the admin script I should be using, or is there some code I can edit to get DEMOS to show as demos...
I'm fairly new to trying to read scripts, but any help is appreciated.
I did find a code that kicks demos automatically, but that seems overly aggressive.
DAZZLE'S UPGRADE PACK
If you haven't already done so, upgrade your game by downloading Dazzle's all-in-one upgrade pack. It comes with everything you need for today's servers. Does your blue bar freeze when joining servers? Do you lag in games? Do you get an annoying siren in Phobik's Servers? This is what you need. CLICK HERE TO DOWNLOAD.
If you haven't already done so, upgrade your game by downloading Dazzle's all-in-one upgrade pack. It comes with everything you need for today's servers. Does your blue bar freeze when joining servers? Do you lag in games? Do you get an annoying siren in Phobik's Servers? This is what you need. CLICK HERE TO DOWNLOAD.
Hosting- need help with scripts
Moderators: Warfare, Moderator, Admin
- LGM
- Site Admin
- Posts: 2102
- Joined: Fri Dec 29, 2006 12:59 pm
- Location: Very Northwest WA
- Shietzen McGrege
- Need Major Repair
- Posts: 733
- Joined: Sat Sep 06, 2008 11:01 am
Re: Hosting- need help with scripts
Well i usually find that demos will come in with a short name like dog or cat dont get the demo tagged on it as demos with longer names like iamademo will have the tag on them
Brainfart...
- LGM
- Site Admin
- Posts: 2102
- Joined: Fri Dec 29, 2006 12:59 pm
- Location: Very Northwest WA
Re: Hosting- need help with scripts
Thanks for the observation, but I was looking for someone's help with the scripts.
Anyone able to help me make sense of this?
Anyone able to help me make sense of this?
- TMG Leader
- Veteran Light
- Posts: 962
- Joined: Mon Jun 25, 2007 10:31 am
- Location: In my refrigerator....
Re: Hosting- need help with scripts
Okay I looked in dash codes and here's what I found in the GameConnection.cs
This is the only function that looks like it has anything to do with removing the tag. Then again, there is no "DEMO" at all in this function. Try deleting this function but if that messes the script up or doesn't do anything then I would ask dash about it.
This is the only function that looks like it has anything to do with removing the tag. Then again, there is no "DEMO" at all in this function. Try deleting this function but if that messes the script up or doesn't do anything then I would ask dash about it.
Code: Select all
function GameConnection::setPlayerName(%client,%name)
{
echo("MODIFIED SET PLAYER NAME FUNCTION");
%client.sendGuid = 0;
// I use | and # in log files
%name=strreplace(%name,"|","");
%name=strreplace(%name,"#","");
// Minimum length requirements
%name = stripTrailingSpaces( strToPlayerName( %name ) );
if ( strlen( %name ) < 2 )
%name = "Name2ShortTryAgain";
else if( strlen( %name ) > 16 )
{
%name = getSubStr(%name,0,10);
}
// Make sure the alias is unique, we'll hit something eventually
if (!isNameUnique(%name))
{
%isUnique = false;
for (%suffix = 1; !%isUnique; %suffix++) {
%nameTry = %name @ "." @ %suffix;
%isUnique = isNameUnique(%nameTry);
}
%name = %nameTry;
}
// Tag the name with the "smurf" color:
%client.nameBase = %name;
%client.name = addTaggedString("\cp\c8" @ %name @ "\co");
}
First to fall, last man standing.
- LGM
- Site Admin
- Posts: 2102
- Joined: Fri Dec 29, 2006 12:59 pm
- Location: Very Northwest WA
Re: Hosting- need help with scripts
I was looking at that too, TMG... but I don't see how it would effect the (DEMO) being there or not.
It appears to be making sure the name is within a certain length of characters, and something about a "smurf" color (whatever that is).
Thanks for looking. I may mess with that and see if it does anything. Anyone have other ideas?
What does this piece do?
What happens if I set it to 1?
It appears to be making sure the name is within a certain length of characters, and something about a "smurf" color (whatever that is).
Thanks for looking. I may mess with that and see if it does anything. Anyone have other ideas?
What does this piece do?
Code: Select all
%client.sendGuid = 0;
-
- Need Major Repair
- Posts: 716
- Joined: Mon Mar 19, 2007 7:47 pm
- Location: Independence, MO
Re: Hosting- need help with scripts
I believe that turns the GUI (Graphic User Interface)on and off for the people joining the game. 0=off, 1=on.
I guess not then. Oops!
I guess not then. Oops!
Last edited by Jerry on Tue Nov 18, 2008 1:40 pm, edited 1 time in total.
-
- Site Mechanic
- Posts: 283
- Joined: Wed Apr 30, 2008 2:35 pm
- Location: Toronto, CANADA
Who is online
Users browsing this forum: ClaudeBot [Bot] and 1 guest