Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Randomness

Pages: 1 ... 41 42 43 44 45 [46] 47 48 49 50 51
676
Modification Help / Re: Custom "E-Tard" Script help
« on: September 05, 2012, 03:04:02 AM »
I can simply circumvent "bad" and "eric hartman" and cover 98% of most permutations of the name.

"Hey baddy!"
"Hey, bad spot"
"hi bad"
"sup badspawt"
"yo baddibro"
"omg it's eric hartman"

I requested help: This doesn't look like helping out someone with coding problems. I have a purpose for this script is to get the message of not bothering Badspot to the noobs who -try- to bother him.

If you are not going to help or assist with coding problems, you don't need to be posting here.

677
Modification Help / Re: Custom "E-Tard" Script help
« on: September 05, 2012, 02:10:08 AM »
"Hey baddy!"
"Hey, bad spot"
"hi bad"
"sup badspawt"
"yo baddibro"
"omg it's eric hartman"
Not really, since its primary purpose is to lessen the noob crowd and speeches if Badspot actually does get onto a server.

678
Modification Help / Re: Custom "E-Tard" Script help
« on: September 04, 2012, 11:54:10 PM »
Not really, since its primary purpose is to lessen the noob crowd and speeches if Badspot actually does get onto a server. Thats the reason we all think he doesnt play anyway.

I got another problem:

Code: [Select]
    function serverCmdmessageSent(%client, %text)
{
        if($badspotishere)
        {
          if(findWordInString(%text,"Badspot"))
{
echo("Works");
}  
        }
parent::serverCmdmessageSent(%client, %text);
}

...which I believe to be the offender.

If a message is sent and does not have the offending words, it still denies the message to be sent anyways. I screwed something up and I dont know where.

679
Modification Help / Re: Texture downloading problem
« on: September 04, 2012, 06:30:06 PM »
I simply got this to work by getting Blockland to download them as 1x1 prints. Crude, but necessary. I'll look into a workaround later on.

680
Modification Help / Re: Custom "E-Tard" Script help
« on: September 04, 2012, 06:08:10 PM »
Never mind this double post: I think I found what I needed just as the topic was posted.

681
Modification Help / Re: [RESOURCE] Search for a word in a string
« on: September 04, 2012, 06:05:47 PM »
Good god I probably need this.

682
Modification Help / Custom "E-Tard" Script help
« on: September 04, 2012, 05:25:53 PM »
What is the best way to emulate a flexible custom "E-Tard" script? I am working with one Psp created which right now only supports one word at a time.

Specifically, I am asking about an easier way to handle multiple word filters at once, as well as a case for detecting both Blockland and Update in one message.

Code: [Select]
// ============================================ ||
// ANTI-ANNOY BADSPOT SCRIPT                    ||
//                                              ||
// Script by Psp, modded slightly by Randomness ||
// ============================================ ||

package AntiAnnoy
{
    function serverCmdantiannoycheck(%client)
    {
     messageClient(%client,'',"\c6Yes, this server has the Anti Annoy script.");
    }
    function gameConnection::onClientEnterGame(%client)
{
parent::onClientEnterGame(%client);
                if(%client.name $= "Randomness") // Name changed so I can test it. What are the odds of Badspot joining anyway?
                {
                        $badspotishere = true;
                        parent::onClientEnterGame(%client);
                }
                else
                {
                     parent::onClientEnterGame(%client);
                }
}
function gameConnection::onClientLeaveGame(%client)
{
parent::onClientEnterGame(%client);
                if(%client.name $= "Randomness")
                {
                        $badspotishere = false;
                        parent::onClientLeaveGame(%client);
                }
                else
                {
                     parent::onClientLeaveGame(%client);
                }
}
        
        function serverCmdmessageSent(%client, %text)
{
       if($badspotishere)
       {
               //filter
                 for(%i=0;%i<64;%i++)
                 {
                       %word = getWord(%text, %i);
                       if(%word $= "Badspot")
                       {
                               messageClient(%client, '', "\c6Badspot wishes to not be distrubed.");
                                     return;
                       }
  else if(%word $= "Update")
  {
       messageClient(%client, '', "\c6Badspot wishes to not be distrubed.");
                                     return;
  }
                 }
       }
else
{
parent::serverCmdmessageSent(%client, %text); // this part looks suspicious
}
}
};

deactivatePackage(AntiAnnoy);
activatePackage(AntiAnnoy);

I think I messed up the parenting somewhere, but I'm unsure.

683
Modification Help / Re: Texture downloading problem
« on: September 01, 2012, 11:32:12 PM »
No such files were found on the client's computer after a Teamviewer session to confirm the presence of the files manually.

This occurred with both working ground add-ons and the icon in question.

I feel like Im going in circles.

684
Modification Help / Re: Texture downloading problem
« on: September 01, 2012, 11:18:27 PM »
On their computers or mine?

I hate to be picky, but its kind of a critical question.

More specifically, if the ground image is stored on the player (non host)'s computer at all, and if so, where it is. If that was the answer, forget my question.

685
Modification Help / Re: Texture downloading problem
« on: September 01, 2012, 10:49:40 PM »
Next mystery to solve is where Blockland temporarily stores ground images for connected clients that don't have the mod.

686
Modification Help / Re: Texture downloading problem
« on: September 01, 2012, 09:34:28 PM »
As I said earlier, you can download them as ground textures. You'll have to patch it up so the game itself doesn't display it to clients as a possible ground texture on the environment gui but it should work besides that.

Since its possible to avoid them being ground textures: how do you go accomplishing this? I don't necessarily need a line for line demonstration on how to do this.

I'm not an expert on Torque - I just learn every step as I go.

687
Modification Help / Re: How to start out?
« on: September 01, 2012, 05:56:31 PM »
I think I wasnt clear on how to get a functionherelol(); to work.

Using slash commands is ok, but it didnt answer your question.

Still, you could use it for a /test command if you really wanted.

688
Modification Help / Re: How to start out?
« on: September 01, 2012, 05:54:50 PM »
Stop.

The hell am I doing wrong.


Last time I ever try to help someone with code ever again.

689
Modification Help / Re: How to start out?
« on: September 01, 2012, 05:44:13 PM »
Ok so I was screwing around and tried to do this:
Code: [Select]
function test()
{
echo("MessageBoxOK("Hello","Hello World!");
}

test();

Basically I was trying to make that text box appear when i typed test(); in the console, and it didnt work. What did I do wrong?

Try servercmdtest() instead.

Then you can try /test instead. At least as far as my knowledge goes.

690
Modification Help / Re: Texture downloading problem
« on: September 01, 2012, 05:27:05 PM »
Still doesn't fix the icon downloader problem but thanks for your input; I'll try using that.

Pages: 1 ... 41 42 43 44 45 [46] 47 48 49 50 51