# Alpha Blockland Archive

## Preserving 0002 content since 2006

Don't like the default menu? That's okay, as there is an OSX menu theme included with RTB. To install it,

1. Go to common\ui.

2. Look for files with 'osx' at the beginning. Take those 5, and Copy them (crtl c)

3. Move them to rtb/client/ui. Rename the beginning rtb instead of osx. Delete the ones that are what you want to name the osx ones.

### Server Data Ripper

Ever wanted to see who was in a server before joining it? Ok, so this doesn't tell you if a person is online in a huge gigantic list, but it tells you who is in a server when you select it! Version 2.0 also adds lots of more useful information.

Last Updated for v3.4.

Installation takes a bit of code editing though, but not too much.

1. Add an execute line to any client script. Do this by adding the line

exec("rtb/client/scripts/DataRipper.cs");

to the very beginning of any .cs file in rtb/client/scripts.

If you cannot host a server, skip the rest, and just download the files.

2. Open server/scripts/game.cs.

3. Next, find (Ctrl + F) "client of all the other clients".

4. Change...

// Inform the client of all the other clients
%count = ClientGroup.getCount();

To...

if(strstr(%name,"DataRipper" == -1){
// Inform the client of all the other clients
%count = ClientGroup.getCount();

5. Last, find "has connected to the server".

6. Change...

messageAllExcept(%client, -1, 'MsgClientJoin', '\c4%1 has connected to the server.',
%client.name,
%client,
%client.sendGuid,
%client.score,
%client.isAiControlled(),

To...

messageAllExcept(%client, -1, 'MsgClientJoin', '\c4%1 has connected to the server.',
%client.name,
%client,
%client.sendGuid,
%client.score,
%client.isAiControlled(),
}
else
%client.isDR = 1;

6. This completes the installation for servers. Download and install the client side files, and you're in good shape.

Help! It doesn't work!

### Brick Scrolling

This allows you to hold down a shifting key, and the brick will continuously shift in that direction.  To stop, just release the key.  This acts as a repeat rate simulator.  These now work with custom shifting.

NOTE:  This WILL crash your game if you shift a brick without setting the prefs.  Open the custom shifting gui with numpad-delete, and click advanced.  Change the intervals/rate.  Recommended settings are 650ms for delay, and 100ms for rate.

Help! It won't work!

### Custom Shifting

*note* You do not need this if you have Bac's Pack. It's already included.

Ever wanted to do everything that the editor wand can do, but without the editor wand? Sure, you can't create temp bricks without it, but you can rotate, move, and scale like it!

To Scale...
Hold Ctrl, Ctrl+Alt, or Alt, and push _, or +.

To Rotate...

Hold Ctrl, Ctrl+Alt, or Alt, and push 7, or 9.

To Move...
Hold Ctrl, and push 1, 2, 3, 4, 5, 6, 8, or +.

To Change Options...
Push (del). (The one on the numpad.)

To Cycle Favorites...
Hold Ctrl for shifting, Alt for rotation, or Ctrl+Alt for scaling, and push Home, or End.

### Batch File Window Hider

When you run RTB, it opens a useless console window which takes up a slot in the task bar, so i looked for a way to disable it. Here's how:

1: Create a hidebatch.bat file
Open up notepad and copy/paste this:

@echo off
if {%1}=={} @echo Syntax: HideBatch BatchFile [Param1 Param2 ... ParamN]&goto :EOF
setlocal
set VBS="%TEMP%\HideBatch.vbs"
if exist %VBS% goto Runit
@echo dim obj, obj1, obj2, objArgument>%VBS%
@echo Set WshShell = WScript.CreateObject("WScript.Shell")>>%VBS%
@echo Set objArgument = Wscript.Arguments>>%VBS%
@echo obj1=objArgument(0)>>%VBS%
@echo obj2=Replace(obj1, "", """")>>%VBS%
@echo obj = WshShell.Run(obj2, 0)>>%VBS%
@echo set WshShell = Nothing>>%VBS%
:Runit
set param=%*
set param="%param:"=%"
cscript //nologo %VBS% %param%
endlocal

Save the file as hidebatch.bat in your blockland directory.

2: Create a shortcut
Create a new shortcut, and put this as its command:

"C:\path\to\blockland0002\hidebatch.bat" "C:\path\to\blockland0002\Play RTB.bat"

Don't forget to change the path to the actual path of your blockland folder.

I hope this helped someone, have fun with it.
I got the hidebatch code from http://www.jsifaq.com/SF/Tips/Tip.aspx?id=9242.

### Player Shape Name Color Changer

Have you ever wanted to change the color of a player's shape name?  That text that sits above the player.  Maybe you wanted to get rid of it?  Well, now you can! Just follow these steps:

1. Open rtb/client/ui/playGui.gui.
2. Go to line 24 (Ctrl + G).
3. Change the value to the color you want.

1 0 0 1 is red
0 1 0 1 is green
0 0 1 1 is blue
1 1 1 1 is white
1 1 0.909 1 is default
0 0 0 1 is invisible

These codes are in RGB format.

### Zoom

This mod implements zoom into your game, so you can press x to zoom in, and use the mouse wheel to zoom farther in, or farther out.  As an added bonus, you can push c to slow down your running, to a walking speed.

WARNING:  This overwrites ALL of your keybindings.  You will have to rebind all of them.

Help! It won't work!

### Bleh's RTB Starter

This is my RtB starter.  It deletes .dso files on exit, so its coder friendly!  If you want to edit it, you can at your free will.

Save in your Main Blockland Directory.

### Version Hack - Get rid of the 'Update' message

This gets rid of that annoying popup that tells you you need to update.  If you don't want to update, or have updated, but it won't stop coming up, this'll get rid of the message.  Fitted for v1.045 patch + RTB Server Change + RTB Folder Name Change.

This will allow you to monitor the latest releases on BlockheadBleh with a cumulative updater, somewhat like RtB's.  When you run it for the first time, you may recieve a notification, which says there are new releases.  Click acknowledge, and this will clear.  This DOES disable your RtB Update Dialog, because it seems that it poses no use.  Please do not rely on this to notify you of updates, as it may not work at some points in time, or I may forget to update it.     Install this after the version hack, if you would like to have that installed too.

Help! It doesn't work!

### JoinServerGui Accelerator

This is an accelerator that accelerates the speed that you load your server list at.  Now, the query has been made better, and more friendly.  Don't use any of the filters except the RtB Only filter.

This mod goes very well with the Server Data Ripper.

Help! It won't work!

### Auto Message

This mod adds automessaging when you enter a server.  Don't abuse it, and advertise extensively with it.  Also, it requires the JoinServerGui Accelerator.

If you wish to install the JoinServerGui Accelerator and Automessaging, install JoinServerGui Accelerator first, then Automessaging.

Gives more details on the stuff that you're getting from the server.  This does not interfere with the Chat While Loading feature in Automessaging.  It does not include it either.

Help! It won't work!

### Background Modifier

This mod makes your background blurry when you're at any gui other than the main menu.  Credit goes to Djy1991 for making the blurry background.

### Spiderninja's Chat Mods

+*+*+*+Chat Styles+*+*+*+

The current chat mod that I use is really qwertyuiopas'.

If you do not want random colors, yet want to change your message decoration in-game, this is my version. (Slash [/] Commands allowable)

Usage is simple: put the file in rtb/client/scripts OR rtb/client/PTTA if you have BAC's Pack.

Customization is a bit more tricky: Start your RTB game. (No need to join server) Press the tilde button (~) and type in the following:

$Pref::ChatStyle = "%textdecoration"; AND$Pref::ChatStyle2 = "%textdecoration";

Do not copy that exactly, in place of %textdecoration put whatever you wish to go before and after your message, respectively as it is here.

### Spiderninja's Status Help

+*+*+*+Status Tutorials+*+*+*+

Sure, most people know that commandtoserver('setstatus', "%status"); will give you a status of your choice, but what if you want a status that you can change in-game AND select from the Appearance menu?

The answer is simple, you need to understand one thing: $PREFs are you friends. Wherever there is a value that you wish to change in-game, use a$Pref.

For this particular part I will use the Status as a medium.

Open rtb/client/scripts/PrintSelect.cs and search for "Status"

You should see this:

%statusTotal = 0;
StatusSelect.clear();

If you want to add a status that you can change in-game, and still be able to select it from the Player Menu, all you have to do is add this right below the "None" status:

StatusSelect.add($Pref::Status, %StatusTotal++); Now you can open the RTB console (Tilde [~] button in-game) and type:$Pref::Status = "%status"; (And press enter!)

In which %status is the status you want. Now you can select the status from Ctrl+S>Appearance. If your RTB closes properly you can choose this status next time you play as well.

Now that you know how to have a status set to a pref, let's make it so that whenever you connect to a server, it auto-sets your $Pref status. Open rtb/client/scripts/LoadingGui.cs OR rtb/client/PTTA/LoadingGui.cs if you have BAC's Pack. Right at the top of the script, you should see this (If you don't have chat while loading, add this near the top anyways): function LoadingGui::onWake(%this) { // Play sound... CloseMessagePopup(); Canvas.pushDialog( MainChatHud ); chatHud.attach(HudMessageVector); moveMap.push(); } Replace the whole function with this: function LoadingGui::onWake(%this) { // Play sound... CloseMessagePopup(); Canvas.pushDialog( MainChatHud ); chatHud.attach(HudMessageVector); moveMap.push(); commandtoserver('setstatus',$Pref::Status);

}

Save the file and you're done. Now your status will auto-set upon connecting to a server!

### Spiderninja's Multiple Automessages

+*+*+*+Multi-Auto+*+*+*+

Many people are wondering, how can I myself make multiple automessages that I can change in-game? Well, it's very simple. (NOTE: I haven't actually looked at MrX's multiple auto system, so I am unaware if this is what he uses.)

Near the top (If you have an automessage already) it should look like this:

{
// Play sound...
CloseMessagePopup();

Canvas.pushDialog( MainChatHud );
chatHud.attach(HudMessageVector);
moveMap.push();
commandtoserver('messagesent',$pref::player::automessage); } Simply add another commandtoserver('messagesent'$Pref::Automessage); so it looks somewhat like this:

{
// Play sound...
CloseMessagePopup();

Canvas.pushDialog( MainChatHud );
chatHud.attach(HudMessageVector);
moveMap.push();
commandtoserver('messagesent', $Pref::::automessage); commandtoserver('messagesent',$Pref::::automessage2);

commandtoserver('messagesent', $Pref::::automessage3); } Now, we'll learn how to make a spawn message. Open rtb/client/scripts/MissionDownload.cs OR rtb/client/PTTA/MissionDownload.cs if you STILL have BAC's at this point... Now once it's open, Find (CTRL+ F) Phase2 You should see this: function onMissionDownloadPhase2() { // Reset the loading progress controls: LoadingProgress.setValue(0); LoadingProgressTxt.setValue("Loading Objects..."); Canvas.repaint(); } function onPhase2Progress(%progress) { LoadingProgress.setValue(%progress); Canvas.repaint(); } function onPhase2Complete() } function onFileChunkReceived(%fileName, %ofs, %size) { LoadingProgress.setValue(%ofs / %size); LoadingProgressTxt.setValue("Downloading " @ %fileName @ "..."); } Now, right on the "function onPhase2Complete() add this line: commandtoserver('messagesent',$Pref::SpawnAuto);

So it looks like this:

{
Canvas.repaint();
}

function onPhase2Progress(%progress)
{
Canvas.repaint();
}

function onPhase2Complete()
{
commandtoserver('messagesent', $Pref::SpawnAuto); } function onFileChunkReceived(%fileName, %ofs, %size) { LoadingProgress.setValue(%ofs / %size); LoadingProgressTxt.setValue("Downloading " @ %fileName @ "..."); } Note that you will need to set all of these prefs, whether in prefs.cs, or in-game. (In-game is easier.) In case you weren't paying close attention to the prefs you just adjusted in the files, I will list them here.$Pref::Automessage

$Pref::Automessage1$Pref::Automessage2

\$Pref::SpawnAuto

+*+*+*+SpiderNinja's Printselect.cs+*+*+*+

This just adds ALL visors/horns/etc to ANY hat, from the drop-down menu in Ctrl S>Appearance.

Pretty simple enough, but a few people asked me for it.

This goes in rtb/client/scripts (EVEN if you have BAC's.)

### Spawn Message

Find:

In that function, beneath the { add:

Alter the message to what you want.

### XMusic Player

Just a fair warning, the game only supports .Wav for music files. They have shit quality.

Extract into your rtb as you would with any mod.

Open the game and run this command in the console:

exec("rtb/client/x/xmusic.cs");

A message should appear informing you that instalation has completed.

Close RTB and copy any music you wish to play into 'rtb/music' > Music files can only be .WAV

Other file types can not be added, as far as I can see this would require engine modification.

To play the music, you must have the game sound enabled in the options (Ctrl O > Audio)

Use F6 when spawned to open the gui or:

Enter the following in the console:

toggleXMusicGui(1);

### XNight Vision

XNightVision.zip

Extract into your rtb as you would with any mod.

Open the game and run this command in the console:

exec("rtb/client/xnvision.cs");

^No need to restart, use 'alt v' to activate.

^Based on the tutorial by Pielikey.