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.

Hosting- need help with scripts

Modding questions, answers, help.....

Moderators: Warfare, Moderator, Admin

User avatar
LGM
Site Admin
Site Admin
Posts: 2102
Joined: Fri Dec 29, 2006 12:59 pm
Location: Very Northwest WA

Hosting- need help with scripts

Post by LGM »

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.
User avatar
Shietzen McGrege
Need Major Repair
Need Major Repair
Posts: 733
Joined: Sat Sep 06, 2008 11:01 am

Re: Hosting- need help with scripts

Post by Shietzen McGrege »

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...
User avatar
LGM
Site Admin
Site Admin
Posts: 2102
Joined: Fri Dec 29, 2006 12:59 pm
Location: Very Northwest WA

Re: Hosting- need help with scripts

Post by LGM »

Thanks for the observation, but I was looking for someone's help with the scripts.

Anyone able to help me make sense of this?
User avatar
TMG Leader
Veteran Light
Veteran Light
Posts: 962
Joined: Mon Jun 25, 2007 10:31 am
Location: In my refrigerator....

Re: Hosting- need help with scripts

Post by TMG Leader »

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.

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.
User avatar
LGM
Site Admin
Site Admin
Posts: 2102
Joined: Fri Dec 29, 2006 12:59 pm
Location: Very Northwest WA

Re: Hosting- need help with scripts

Post by LGM »

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?

Code: Select all

%client.sendGuid = 0;
What happens if I set it to 1?
Jerry
Need Major Repair
Need Major Repair
Posts: 716
Joined: Mon Mar 19, 2007 7:47 pm
Location: Independence, MO

Re: Hosting- need help with scripts

Post by Jerry »

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!
Last edited by Jerry on Tue Nov 18, 2008 1:40 pm, edited 1 time in total.
Image

Good at everything!
Perfect at nothing!

as confused as a baby in a topless bar
Mr Phobik
Site Mechanic
Site Mechanic
Posts: 283
Joined: Wed Apr 30, 2008 2:35 pm
Location: Toronto, CANADA

Re: Hosting- need help with scripts

Post by Mr Phobik »

There is no GUI with dash codes.
Image

Who is online

Users browsing this forum: ClaudeBot [Bot] and 1 guest