Poll

How should it be layed out?

Name - commands they suggested
30 (76.9%)
no names, just commands
9 (23.1%)

Total Members Voted: 39

Author Topic: Console Command List  (Read 72789 times)


We haven't had one of these in a while, and now that I know more about coding, we're re-booting the Console Command List!
Now, all commands will be tested. If one of the commands here doesn't seem to work, report it and I'll fix it.
This list is to help you manage your server whilst not on it, or if you're on it!

NOTES
<> means that you enter something here. If anything is inside the brackets, that's the game's default setting.
{} means an ID. This ID can be found by pointing at the object and typing '/getID'.
If {PLAYER}, you must get a players ID. To get your player's ID, you must go into orb, look at yourself and type the command.
[] means a BLID. A BLID can be found either in the Admin menu, or by enabling BLID's in the playerlist in Options.
IMPORTANT: Make sure not to use these brackets whilst doing the commands.

Prefs
These commands are for changing server preferences through the console.
Default

$Pref::Server::AdminPassword = "<>";
$Pref::Server::SuperAdminPassword = "<>";
$Pref::Server::MaxPlayers = "<8>";
$Pref::Server::Name = "<Blockland Server>";
$Pref::Server::Password = "<>";
$Pref::Server::WelcomeMessage = "<\c2Welcome to Blockland, %1!>";
$Pref::Server::Port = "<28000>";

Add-ons
These commands are for famous add-ons.

$Pref::Server::UseRTB = "<1>"; 1 = Yes, 0 = No
$Pref::Server::FillCan_MaxBricks = <500>;
$Pref::Duplorcator::AdminOnly = <true>; True or false
$Pref::Duplorcator::MaxGhostBricks = <150>;
$Pref::Duplorcator::MaxBricks = <5000>; For admins
$Pref::Duplorcator::MaxBricksB = <500>; For users
$Pref::Duplorcator::TrustLevel = <2>;
$Pref::Duplorcator::SelectionTimeout = <0>; For admins
$Pref::Duplorcator::SelectionTimeoutB = <3>; For users
$Pref::Duplorcator::PlantTimeout = <0>; For admins
$Pref::Duplorcator::PlantTimeoutB = <3>; For users
Got any more prefs, add-ons or default?
List them below!
Outputs
These are commands that give outputs.
Usage:
echo(getnonsense());
K3k0m@n
getnonsense() - gives a random number
getTotalRAM()
getcomputername()

-Setro-
getrandom(<>,<>) - chooses a random number in-between the two numbers you enter
isfunction(<>) - enter a function in the red and the output is 1 - is a function or 0 - is not.

[GSF]Ghost
mFloor(<>) - Returns the floating point value rounded to the preceding whole number.
mCeil(<>) - Returns the floating point value rounded to the subsequent whole number.
mFloatLength(<>,<decimal>) - Returns the floating point value rounded to the
nearest value relative to the number of decimal places you specify.

findclientbyname
There's a ton of these, so I'm putting them all here.
All of these commands are put after findclientbyname("<>") which the <> is the player's name.


-Setro-
.player.addvelocity("<> <> <>");
.player.kill();
.player.instantrespawn();
.player.burnplayer(<>); - red is the amount of time burnt
.delete("<>"); - Kicks the player, and the red is what comes up when they're kicked.

The Resonte!
.player.setTransform("<> <> <>"); - Teleports the player. The <>'s are co-ordinates.


Commands
Server-sided
These are commands to be put in your server.


K3k0m@n
announce("<>"); - Anything you put in will be announced to the server in yellow text, in chat.
echo("<>"); - Anything put in will be put in the console (see title)

SWAT One
talk("<>"); - talk as 'CONSOLE' in the chat.

Tumbleweed
<1>.projectile = <2>; - This allows you to change a weapons projectile.
To change the default gun's projectile, we simply put 'gunimage' in 1.
2 is the projectile we're going to be changing to. The gun's projectile is 'gunprojectile'.
If we wanted to change it to pong, we'll do 'pongprojectile'.
Therefore, making it gunimage.projectile = pongprojectile;
You can guess the rest of the projectiles and images, but remember that there are no spaces in the names.

{1}.mountobject({2}, <>); - Allows you to make objects mount other objects.
1 is the object you want to mount, 2 is what you want to mount on 1.
the <> is a number. This is the mountspot. For players, this can range from the head, hands and feet.
{}.dismount(); - dismounts the object.

Advanced Bot
{}.setControlCameraFOV(<90>); - Set's someone's FOV, can be overridden on the client side by: PlayGui.ForceFOV = <90>;

schedule(<1>,{0},<2>,<3>);
- Delays a command. <1> is the time in milliseconds, {0} An object ID, if none, leave at 0, <2> The function which will be activated after the time and <3> are the arguments.
{}.schedule(<1>,<2>,<3>); delays a command on an object.

<>.numMountPoints = <>; - Changes the amount of mountpoints on a vehicle.
-Setro-
serverplay2d(<>); - plays a sound (uses datablock name)

Darksaber2213
{}.setScale("<>") sets the scale of {} to <>
serverCmdMessageSent(findClientByName("<1>"),"<2>"); lets you talk as <1>, sending the message of <2>
findClientByName("<1>").player.hideNode("<2>"); hides node <2> of player <1>
{}.delete(); deletes {}


Client-sided
These are commands to be put in your blockland. These can also work on other servers.


mario0126
clientcmdshowbricks(1); - Allows you to see invisble bricks, the same as if you held out a tool.
clientcmdshowbricks(0); - Turns them off

Dannu
flushTextureCache(); - Fixes Graphical errors.

Redconer
serverconnection.chasecam(<0>); - delays the camera in third person. Putting a very high value will freeze the camera for a few minutes.

plad101
setFOV(<90>); - Changes your Field of View.

Redconer
clientcmdsetpaintingdisabled(<>); - disables the paint can, 1=disabled 0=enabled

Darksaber2213
mousefire(<>); equivalent to holding down left click
jet(<>); equivalent to holding down the jet button
jump(<>); equivalent to holding down the jump button
turnleft(<>); self-explanatory
turnright(<>); self-explanatory
crouch(<>]); equivalent to holding down the crouch button
All above commands are 1=on 0=off
resetlighting(); resets your screen if it's completely black
quit(); quits blockland
buildwall(); builds a wall
buildconfetti(); builds spam confetti
buildstairs(); builds stairs

Hawt
gotoWebPage("<>"); - Opens your web browser and goes to the link you filled in

Advanced Bot
getColorF(<vector 4f>); - Returns a 4 word color of 0-255 to 0-1
getColorI(<vector 4f>); - Returns a 4 word color of 0-1 to 0-255

[GSF]Ghost
Tree(); - Opens a tree view of all groups, sets and objects associated with the client (or, server)
Trace(<>); Turns on trace, showing all functions that are happening. Enter 1 in the <> for on, 0 for off. (this command can lag your game if a lot is going off)
Backtrace(<>); - Echos the order of functions associated with the backtrace (when executed in the console, echos ConsoleEntry::eval)
Error(<>); - Echos red text
Warn(<>); - Echos silver text
Metrics(fps); - Shows the client's current FPS (metrics(); to disable (which returns a warning))
{}.Save(<>); - Saves the datablock with all related fields to the file path and format you specify.
{}.Dump(); - Echos all member fields, tagged/dynamic fields and methods associated with the object in the console window.

Misc
Other information.


Color Codes
These are codes that make different colored text when making messages. Here's the full list:
Console: \c1= \c2= \c3= \c4= \c5=
Chat: \c0=Red \c1=Blue \c3=Green \c4=Cyan \c5=Pink \c6=White \c7=Grey \c8=Black

We need your commands! However, your command wont be approved if:

It doesn't work
It does something different then your explanation.
If it can lag the server
If it's just abusable.

Please suggest commands that would be helpful. Useless ones may be added, depending on what they do.
Shortening other commands is also allowed, and they will be updated.
« Last Edit: May 27, 2015, 11:36:55 AM by K3k0m@n »

commandtoserver('messagesent',"[text]."); In-game: Yourname: [text].

It's practically a extended version of talk... Or the same thing as pressing T and talking.

Ok, Thanks! and that was quick.

Isn't there a thread like this?

Yes, BobSevenSevens has, but hes stopped his now, and let me make another list, if you look at the replys in that topic.
I PMed him i want to make it, and he let me, but he dosent know its made, because i PMed him again when he was offline
« Last Edit: December 30, 2010, 06:05:00 PM by K3k0m@n »

Yes, I let him take my topic and continue it. Copy-paste the whole list I made if you want.

OFFICIAL PERMISSION GRANTED

I know this isnt clan discussion but, if you are going to post something like this, can you do a better layout?
Also, add the command:
shutdown(); -Forces everyone in the server to disconnect except host
« Last Edit: December 30, 2010, 06:21:47 PM by Tyler66 »

Copy-paste the whole list I made if you want.
Nah, id rather start from scratch, everyone else, you can get commands from BobSevenSevens list if you want, idc.  (idc = i dont care)

I know this isnt clan discussion but, if you are going to post something like this, can you do a better layout?
Ive copyed the layout from BobSevenSevens' list.


Did it, Thanks for the command!

I just noticed, but theres a spelling error, "expect" was meant to be "except"

theres a spelling error, "expect" was meant to be "except"
What, Where?
nvm i found it, fixed.

Wait, i copyed your meaning, ah well

Tyler66:
shutdown(); - Forces everyone to disconnect expect host

If I can make a suggestion:

1: I hated the original format, just make it Donations and put your name in there.

2: Try to seperate the list into client and server-sided (have people put it in their post which one it is) and make two seperate lists.