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.


Topics - Bauklotz

Pages: 1 2 3 4 [5] 6
61
Modification Help / A few questions
« on: June 11, 2010, 12:46:47 AM »
A) - Most important > What is the name of the Cursor (Mouse Pointer) in-game? I need this for getting the position of the cursor.

B) - $mvYawLeftSpeed, what is this value? Is it how many degrees out of 360 per millisecond?

C) - A playertype's 'running speed'. Again, is this something about Torque Units per millisecond/second?

62
Modification Help / Script Talk
« on: April 18, 2010, 02:21:42 AM »
So one of my friends has just kept asking for that I helped him a bit with scripting, and so I did. A small conversation going through a little script I made which has some few of BlockBot's features in-game. I thought that this might help some people alot, so here the conversation is:

Quote
Bauklotz says:
 We start defining package.
Bauklotz says:
 with the keyword package followed by the package name.
Bauklotz says:
 Now, we have a starting bracket. Here the package begins. A starting bracket must always have a ending bracket.
Haskar says:
 That I definatly know 
Bauklotz says:
 Okay.
Bauklotz says:
 To create functions, we use the 'function' keyword.
Haskar says:
 You can skip {} lines if you want
Bauklotz says:
 The syntax for function is the following:
Bauklotz says:
 function function_name(argument_list)
Bauklotz says:
 function_name is the name of the function.
Example: function lol would be called as lol(arguments)
Bauklotz says:
 argument_list is a list of all th earguments the function takes.
Bauklotz says:
 These must use % (local variables that are deleted at the end of the function)
Bauklotz says:
 The syntax for those is: %argument_name_1,%argument_name_bla,%argument_name_lol and so on
Bauklotz says:
 Example if a function takes 2 arguments that are passed into %abc and %xyz:
function function_name(%abc,%xyz)
Haskar says:
 kk
Bauklotz says:
 Now we just have a command.
Bauklotz says:
 The built-in engine function commandToServer() tells the server to execute the command.
Bauklotz says:
 Example: If the server had serverCmdExplode, commandToServer('Explode'); would call the following on the host console: serverCmdExplode(client_id);
Haskar says:
 ok
Bauklotz says:
 serverCmdMessageSent is the server command for when someone speaks.
Bauklotz says:
 So this triggers serverCmdMessageSent(client_id,"BlockBot: "@argument %msg passed);
Bauklotz says:
 " is the basic marker for all normal strings.
Haskar says:
 so serverCmdxxx, from what I know are stuff that can be executed with a /xxx in the server and you can use them in commandToServer(xxx) cmds?
Bauklotz says:
 ' is a marker for networked strings. commandToServer's first argument, the command, must use '
Bauklotz says:
 yeah true
Bauklotz says:
 The following things work the same way:
Bauklotz says:
 /light
commandToServer('Light');
Bauklotz says:
 Now we begin declaring clientCmdChatMessage which is a function triggered by the SERVER.
Haskar says:
 So what /light actually does is commandToServer('Light'); but it's easier for a client than using the console?
Bauklotz says:
 Yes.
Bauklotz says:
 NMH_Type.send is the / command handler.
Bauklotz says:
 A server can issue commandToClient(client_id,'command',argument_list); to trigger the following on the client:
clientCmdCommand(argument_list);
Haskar says:
 NMH_Type.send?
Bauklotz says:
 Yes.
Bauklotz says:
 NMH_Type is the object which displays SAY: or TEAM: followed by user input.
Haskar says:
 oh
Bauklotz says:
 Send is a function inherited by it.
Bauklotz says:
 There is also NMH_Type.type which is every time the user input changes.
Bauklotz says:
 This can for example to be used to avoid the blue name appearing above chat showing (typing ):
Bauklotz says:
 package noBlue
{
    function NMH_Type::type(%this)
    {
        Parent::type(%this);
        commandToServer('StopTalking');
    }
};
activatePackage(noBlue);
Bauklotz says:
 There we go.
Haskar says:
 So basicly, what that does, is send a command StopTalking to server when you are typing?
Bauklotz says:
 Example:
Bauklotz says:
 Press T
Bauklotz says:
 Type h
Bauklotz says:
 stopTalking
Bauklotz says:
 Press backspace
Bauklotz says:
 stopTalking
Bauklotz says:
 Press enter
Bauklotz says:
 NMH_Type.send
Bauklotz says:
 It checks if the message it is sending is empty, and if it is, then return;'s
Bauklotz says:
 Small thing:
Bauklotz says:
 Parent is used for calling the original function content.
Bauklotz says:
 example
Bauklotz says:
 lol content is echo("lol!");
Bauklotz says:
 (package)
function lol()
{
    Parent::lol();
    echo("Another LOL!");
}
Bauklotz says:
 When executed if the package is active, it will echo lol!, then Another LOL!
Haskar says:
 So if I wanted to completly override the lol function, I could remove Parent::lol();?
Bauklotz says:
 Yes.
Haskar says:
 oooh, finnaly I got what that does
Bauklotz says:
 brb, 5 min.
Haskar says:
 Damn.
Haskar says:
 nudge me when back
Bauklotz says:
 back
 
You have just sent a nudge.
 
Haskar says:
 kk
Bauklotz says:
 Did you try the noBlue thingy?
Haskar says:
 I can understand it
Bauklotz says:
 Okay.
Bauklotz says:
 serverCmdStopTalking commands to all clients that they should HIDE that name.
Bauklotz says:
 serverCmdStartTalking the same just UNHIDE.
Haskar says:
 ok
Haskar says:
 So I could make some flashing stuff if I did a loop of that?
Bauklotz says:
 Yeah.
Bauklotz says:
 I did that once.
Haskar says:
 Wait, it's client-side?
Bauklotz says:
 What.
Bauklotz says:
 What is client-side?
Haskar says:
 noBlue?
Bauklotz says:
 Yes.
Bauklotz says:
 Server-side GUI != possible
Bauklotz says:
 Client-Side GUI + commandToClient controls $= possible
Bauklotz says:
 k?
Haskar says:
 Kk
Bauklotz says:
 back on subject
Bauklotz says:
 start overwriting clientCmdChatMessage
Haskar says:
 (%client,%b,%c,%taggedString,%preTag,%name,%postTag,%message,%x) what are those args?
Bauklotz says:
 telling
Bauklotz says:
 %client is the id on the player list
Bauklotz says:
 0 = first player
Haskar says:
 ok
Haskar says:
 What about stuff like %b?
Bauklotz says:
 %b and %c are empty.
Bauklotz says:
 IDK what they are for.
Bauklotz says:
 But %taggedString is useful.
Bauklotz says:
 Example if LOLHEAD says Pie. taggedString would be this:
Bauklotz says:
 something i dont remember{TAB}LOLHEAD: Pie.
Bauklotz says:
 So you could change taggedString so it would use your own format
Bauklotz says:
 My chat appears like <Name> Message.
Bauklotz says:
 Okay?
Haskar says:
 Ok
Bauklotz says:
 %preTag is clan prefix
Bauklotz says:
 %postTag is clan suffix
Bauklotz says:
 %name is name of sender
Bauklotz says:
 %message is self-saying
Bauklotz says:
 %x is unknown
Bauklotz says:
 I'm going to give example arguments
Bauklotz says:
 Name: Bauklotz
Bauklotz says:
 Message: lol
Bauklotz says:
 Clan prefix: a
Bauklotz says:
 Clan suffix: b
Bauklotz says:
 first player on server
Bauklotz says:
 clientCmdChatMessage(0,"","","something" TAB "aBauklotzb: lol","a","Bauklotz","b","lol","")
Haskar says:
 okay, got it
Bauklotz says:
 Next we just Parent.
Bauklotz says:
 Then, we use the if keyword.
Bauklotz says:
 if keyword syntax:
if(expression) { if expression true do this }
Haskar says:
 Okay, seems easy
Bauklotz says:
 Now here's some basic expression stuff.
Haskar says:
 $= is for strings?
Bauklotz says:
 If there is a exclamation mark (!) in front of the expression, it is true if this is NOT true.
Bauklotz says:
 exclamation mark = NOT
Haskar says:
 kk
Bauklotz says:
 Then, we have what we want to check
Haskar says:
 I know pretty much everything as I know C++
Bauklotz says:
 This could be anything. A variable, a string
Bauklotz says:
 Example:
Bauklotz says:
 if(1 == 0) { echo("TorqueScript engine fail!"); }
Bauklotz says:
 So
Bauklotz says:
 Here's a example ( [ and ] means you CAN put it. ):
Bauklotz says:
 if([!][$][%]is_this_name [!]check_operator is_first_statement_this_name)
Bauklotz says:
 If you were to check if global variable lol was NOT 1 you could do this
Bauklotz says:
 if(!$lol $= 1)
Bauklotz says:
 if($lol !$= 1)
Bauklotz says:
 if($lol != 1)
Bauklotz says:
 But if you do not specify a check operator and what is should be, it checks for 1 or 0
Bauklotz says:
 You could also use
Bauklotz says:
 if(!$lol) { if $lol is not 1 )
Haskar says:
 So if I did if(!$lol != 1) it would be NOT NOT meaning YES?
Bauklotz says:
 Yes.
Haskar says:
 ok
Haskar says:
 Got everything so far
Bauklotz says:
 So the script checks if the senders name is me.
Bauklotz says:
 "Bauklotz"
Bauklotz says:
 If it is, it uses the RETURN keyword.
Bauklotz says:
 This is used for giving back strings.
Bauklotz says:
 Example:
Haskar says:
 May I make an example 
Bauklotz says:
 function get()
{
    return "Rocketlauncher pie";
}
echo(get());

Output: echos to console: Rocketlauncher pie
Bauklotz says:
 Make a example.
Bauklotz says:
 NOTICE: If you RETURN a string, this will end the function.
Haskar says:
 function  (%msg)
{
%msg="string";
return %msg;
}

function lol(%client)
{
echo  ("do I need to put args here or not?");
}
Bauklotz says:
 wrong
Haskar says:
 xD got removed.
Bauklotz says:
 not echo  (args);
Bauklotz says:
 echo(function(args));
Haskar says:
 ok
Bauklotz says:
 But haskar
Bauklotz says:
 If you are going to use a variable you dont need to have it on argument list
Bauklotz says:
 The following example is valid:
Bauklotz says:
 function nothing()
{
    %string = "pie";
}
Haskar says:
 ok
Bauklotz says:
 And if you use return, it ends the function.
Bauklotz says:
 Example:
Bauklotz says:
 echo("Bai!");
return;
echo("wtf?");
Bauklotz says:
 It will NOT echo wtf? because it ends when return is used.
Haskar says:
 right
Bauklotz says:
 Okay.
Bauklotz says:
 Now we check if the global variable LastMessage[%name] is the message.
Bauklotz says:
 TorqueScript sadly doesn't have arrays.
Bauklotz says:
 But it has something that can be used for it.
Bauklotz says:
 $MyVar[1] = pie;
Bauklotz says:
 $MyVar[0] = non;
Bauklotz says:
 echo($MyVar[1]); will echo pie
Bauklotz says:
 echo($MyVar[0]); will echo non
Bauklotz says:
 very useful
Bauklotz says:
 It can have multiple dimensions
Haskar says:
 So basicly, they are not arrays, but they are normal vars that look like arrays?
Bauklotz says:
 $MyVar[1,"pie"] = nothing;
Bauklotz says:
 $MyVar[1,"non"] = wtf;
Bauklotz says:
 Yeah, sorta. $MyVar[1] can be accessed as $MyVar1 too.
Haskar says:
 So we could make $MyVar( a string, then by user input 1 or 0 and then ) as a string and it would work?
Bauklotz says:
 It doesn't have to be 0 or 1.
Bauklotz says:
 And a goody thing about TorqueScript is that it will not return a error if the string doesn't exist, it will just return NULL
Bauklotz says:
 (a blank string)
Bauklotz says:
 Yeah hask, but it's $MyVar[stuff], not $MyVar(stuff)
Haskar says:
 ok
Haskar says:
 [], not ()
Haskar says:
 ok
Bauklotz says:
 now
Haskar says:
 So
Bauklotz says:
 if global var LastMessage's variable for that persons name is the SAME as what it said
Haskar says:
 $LastMessage stores the last messages of everyone on the server?
Bauklotz says:
 that means that this message is the same as the previous from that name
Bauklotz says:
 yes hask
Haskar says:
 And you can use it as $LastMessage[%name]
Haskar says:
 to retrieve the last message of %name
Bauklotz says:
 So the script sees if the same message was said twice in 2 diffirent messages
Bauklotz says:
 yes
Haskar says:
 Seems simple after explaining 
Bauklotz says:
 then it triggers BBotSay("Don't spam, "@%name);
Bauklotz says:
 And that appears in chat as BlockBot: Don't spam, personthatsaidit.
Haskar says:
 So if the last message is equal to the "current message" it says that
Bauklotz says:
 yes
Haskar says:
 ok
Haskar says:
 That cleared me up 
Bauklotz says:
 then after the check it updates the variable.
Bauklotz says:
 $LastMessage[%name] = %message;
Haskar says:
 Oh
Bauklotz says:
 If it updated before, it would always be true
Haskar says:
 So $LastMessage is made by Blockbot
Bauklotz says:
 Yes.
Haskar says:
 ok
Bauklotz says:
 Now heres a little advanced thing
Bauklotz says:
 striPos(hay,needle) returns the first found case insensitive needle in hay.
Bauklotz says:
 If "needle" isn't inside "hay", it returns -1
Bauklotz says:
 So we check if the thing it gives back is zero or higher (not negative)
Haskar says:
 ok
Bauklotz says:
 That means that if it is positive, needle is in hay
Haskar says:
 So we are checking for SLAP in a %message?
Bauklotz says:
 That IF check just checks if "slap" and "blockbot" is the message.
Haskar says:
 And Blockbot too, right 
Haskar says:
 Or else infininity loop
Bauklotz says:
 And no spaces are needed. meslapblockbot would work.
Bauklotz says:
 As you see above, it cancels the function if it was sent by me
Bauklotz says:
 To avoid loops
Bauklotz says:
 Now it says the thing that you get on IRC if you slap blockbot.
Haskar says:
 Then just the usual BBotSay
Bauklotz says:
 * Name slaps victim around with a whale bone!
Bauklotz says:
 That's it.
Haskar says:
 Okay 
Bauklotz says:
 Now we activate the functions in the package.
Bauklotz says:
 DONE
Haskar says:
 Also, just 1 question, will $varnamehere work for a server-side thingy for the entire server time, AKA when I bring it up till I bring it down?
Bauklotz says:
 Well.
Bauklotz says:
 If you set a variable, that variable will exist until you manually remove it, or the game ends.
Bauklotz says:
 game ends = blockland quit();
Haskar says:
 If I set a $ var, not %?
Haskar says:
 Or both
Bauklotz says:
 Well.
Bauklotz says:
 $ vars exist everywhere.
Bauklotz says:
 % vars are removed when the function ends.
Bauklotz says:
 Example:
Bauklotz says:
 function do_this()
{
   %cake = "exists";
}
Bauklotz says:
 do_this();
 Then type:
 echo(%cake);
Bauklotz says:
 Output: Blank string echoed (variable doesnt exist)
Bauklotz says:
 get it?
Haskar says:
 ok
Bauklotz says:
 Just a small thing:
Haskar says:
 Yes, I can understand the concept of local and global variables 
Bauklotz says:
 the ELSE keyword has the same syntax as IF, but does not have (expression)
Bauklotz says:
 The ELSE keyword is just used below a IF statement used as a alternate thing if the latest IF check was FALSE.
Bauklotz says:
 Okay?
Haskar says:
 Yes, I know that from C++
Bauklotz says:
 Okay.
Bauklotz says:
 The following example echos (^ will be used here as new line):
0^1^2^3^4
Bauklotz says:
 for( %i=0; %i<5; %i++ )
{
    echo(%i);
}

63
Modification Help / Dynamic GUI properties
« on: April 14, 2010, 11:50:23 AM »
In the GUI Editor, you would always have to press Apply to change the properties, and this is causing problems with my script. I have a GuiBitmapCtrl named GSC_InitProgress and I'd like to change the extent by script. I've tried redrawing the canvas and other stuff, but nothing works.

Anyone knows how?

64
Games / <*> Official Need For Speed: World Online User List <*>
« on: April 08, 2010, 10:29:17 AM »
NOTICE: If you aren't in the NFS: WO beta, get out!

Please post in this format:

Quote
BL Name: <input>
WO Name: <input>

List:

Bauklotz >>
     Bauklotz
     ElectronicArts
     Accelerate (Most active) (I see the grammatical error, but its supposed to be like that)

Antares >>
     Antares

65
Off Topic / Improved spam
« on: April 03, 2010, 10:05:26 AM »
So, most spam is just things like "Click here or reply to this message to recieve our stuffty newspaper.", but this one is different. I find this one quite funny, though I will not reply since then they would know there is a actual person behind that address.

Here's the content:
Quote
You are convicted.
And are now targeted by our agents.
Please be aware, that you will soon be killed in a random
and very different way.

This list includes ~
Gas
Shot to death
Death by sleep
Torture pit
Spikes
Sky dive death
And finally
Mutation

Please send back.
We would like to know, if you do not send.
We shall choose.

Have a nice day.

Proof attached.

66
Drama / Hello.
« on: March 31, 2010, 09:57:14 AM »
Yes. I know this is Bauklotz account (obviously) but he let me use it to make this post. I'm not going to wait for Badspot to rat me out so, I'm Poiuyt/Deuce. I just wanted to make this post to as people would say "right my wrongs"
I know what I did was wrong and I'd appreciate if you guys could forgive me.

67
Modification Help / Random ID
« on: March 27, 2010, 11:51:03 AM »
I was bored, so I just fastly made a weird little ID. The output was attached.
Total time: 1 minute.

The SMF Forum quality is bad when it isn't in full size. Click the image to view full quality.

68
Drama / Silly fake users, again.
« on: March 27, 2010, 12:27:06 AM »
So, some times we get fakers on IRC. It's very often. And today, I just found out that Gadgethm and --[Kashik]-- aka. Kashik fail. On #rtb today, 2 people was to see: Badspot and Blockbot.

First thing, Badspot never uses #rtb.
Second thing, it's BlockBot, not Blockbot. And that user didn't even have op.

Silly silly.

Also, on another note, I'm glad that NickServ exists. Spared me a lot of stress.

69
Modification Help / Radar Concept
« on: March 13, 2010, 11:16:47 AM »
NOTICE: This is purely for testing purposes.

So, I've seen the "Radar" topic. It's completely possible with engine changes, but it might also be possible without it. The attached picture has not been photoshopped at all. This is purely HUD screenshot.

70
Modification Help / ConfigScripting File List Error
« on: March 13, 2010, 07:23:46 AM »
So, just to test, I'm making a script that picks up files from config/script/ and executes them. But I keep getting a error.

Code: (TorqueScript) [Select]
function updateConfigScripting()
{
echo("Updating ConfigScripting files...");
echo(" ");
$scripts = 0;
for(%file = findFirstFile("config/script/*.cs"); %file !$= ""; %file = findNextFile("config/script/*.cs"))
{
$scripts++;
echo("Script #"@$scripts@": "@%file);
exec(%file);
}
echo(" ");
echo("Successfully executed "@$scripts@" script(s)!");
}
updateConfigScripting();
Anyone got any ideas?

Also, the error is:
exec: invalid script file config/script/*.cs.

EDIT: No answers?

71
Creativity / Creep Mod, gififfied
« on: March 10, 2010, 10:43:05 AM »
So I found some (weird) thing on the Internet called Easytoon, and made some stuff.
This is my first attempt, and it is basically what Creep Mod is all about.


72
Gallery / Afghanistan Deathmatch Render
« on: March 10, 2010, 10:07:15 AM »
Afghanistan DM Render
Thanks to BLS2OBJ.exe

Description
I've been browsing Destiny/Zack0Wack0's site, and found a handy tool, BLS2OBJ.exe. It allows you to simply drag a .BLS (Blockland Save File) onto the application, and it will generate a .OBJ file. I've then used Kerkythea to render it.

My Comments
I know the camera view is bad, but I'm not familiar with the controls in Kerkythea. I though got some nice results from anti-aliasing and shadow effects.

Credits
  • Bauklotz
  • Destiny/Zack0Wack0
  • Kerkythea 2008 Echo Edition

EDIT: No replies? I'd like some constructive criticism.

The image has been attached. Click it for full resolution and better detail.

73
Drama / TSSHayden
« on: March 03, 2010, 09:51:53 PM »
Just a small notice.

TSSHayden, I don't use Bluehost or live in the US, do you even know what the word 'proxy' means?

74
Drama / Account Hijack
« on: February 28, 2010, 01:41:54 AM »
Yes, it was me. I have though several points to say.

  • Big Brother's password was very close to actually being "Big Brother", so one day it just had to happen.
  • If Poiuyt discovered the password, and I asked him for it, he could aswell just not have handed it out.
  • It was incredibly stupid to do, I'm sorry for any damage this might have had to Big Brother, or everyone else.


Go on, flame me, and Badspot, feel free to ban me.

75
Modification Help / Server_Keybinds
« on: February 16, 2010, 05:16:43 AM »
Server_Keybinds
Abandoned.

Description
This mod went fail, don't know what went wrong, just doesn't work. Please delete this post.

Pages: 1 2 3 4 [5] 6