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 - TheBlackParrot

Pages: 1 ... 6 7 8 9 10 [11] 12 13 14 15 16 ... 27
151
Modification Help / Is there any way to optimize this better?
« on: July 05, 2013, 03:07:06 PM »
Code: [Select]
function doExplosion(%position,%radius)
{

serverPlay3d(explosionSound,%position);

for(%i=0;%i<%radius;%i++)
{

InitContainerRadiusSearch(%position,%radius,$TypeMasks::FXBrickObjectType);

while((%targetObject = containerSearchNext()) !$= 0)
{

%targetPos = getWord(%targetObject.getPosition(),2);

if(!%targetObject.invincible)
{

checkMiningBlock(%targetObject.getPosition());
if(getSimTime() - %targetObject.lastOwnerTime >= 7500)
{

%targetObject.delete();

}

if(%targetObject.type $= "Dormant Bomb")
{

%targetObject.delete();

}

}

}

}

}
When %radius is under 10 it's fine, but once it's over 10 it begins lagging the server.
Is there a better way to go about doing this?

152
Code: [Select]
%player = new AIPlayer()
{

dataBlock = "ZombieHoleBot";
position = %col.getPosition();

};

I'm trying to get a hostile bot to spawn, and this is probably the closest I've got using the default Bot addon. It's just spawning a regular immobile player object, yet it's "enabled". Is there a better way to do this?

153
So upon my server reset function in the Mining mod I'm working on
Code: [Select]
function getDirts()
{

        %filename = $Mining::Root @ "dirts.txt";

        if(!isFile(%filename))
        {

                echo("You're missing the dirts database! (dirts.txt)");
                return;

        }
When it gets to this command, it thinks the file isn't there.
However when starting the server for the first time, and when doing the function manually, it says the file is there.

Code: [Select]
function resetServer()
{

        noticeMessage("Deleting" SPC getBrickCount() SPC "bricks from the host's brickgroup...");
        $Mining::Host.brickgroup.delete();
        noticeMessage("Done, resetting global variables...");
        deleteVariables("$Mining::*");
        noticeMessage("Done, running miningInit();");
        miningInit();
        noticeMessage("Server reset.");

}
is the reset function

and
Code: [Select]
function miningInit()
{

        if($Mining::HasStarted)
        {

                noticeMessage("Gamemode already initiated.");
                return;

        }
        else
        {

                $Mining::HasStarted = 1;

        }

        $Mining::Host = new ScriptObject()
        {

                isAdmin = 1;
                brickgroup = 0;
                bl_id = getNumKeyID();

        };

        %brickgroup = new SimGroup("BrickGroup_" @ getNumKeyID())
        {
                client = 0;
                bl_id = getNumKeyID();
                name = "The Host";
        };

        $Mining::Host.brickgroup = %brickgroup;

        mainBrickGroup.add($Mining::Host.brickgroup);

        noticeMessage("Starting init commands...");

        getOres();
        getDirts();
        newSpawn();
        miningGUI();
        checkBrickCount();

}
is the miningInit command.

Am I doing something wrong or is this a bug with Blockland?

154
I figured out that the Long Range Music Bricks have this capability.

Pecon was the one who unintentionally discovered it, and I pinpointed what it was.

How to do it:
Download the Long Range Music Bricks addon from RTB.
Make some stereo loops and add their entries in your musicList.cs.
Use a dedicated server. Launching a regular non-dedicated server will cause BL to delete the files.

155
Modification Help / Endless Mining 2 (r860)
« on: June 24, 2013, 08:28:18 PM »


YOU DO NOT NEED THE GUI AT ALL TO PLAY THIS GAMEMODE.
Although it's now recommended you get it.



So the original add-on Munkurious and I hosted for a bit didn't turn out as well as we had hoped it would. It started off great but it just declined after a few days up to the point of it being a near ghost town.

Since we stopped working on it, I took it upon myself to start it over, only keeping a few basic aspects from the original gamemode. This time though, I'm letting my version be public even while it's still in development.

I need some good ideas for twists on the Mining gamemode we all know about.



As for the GUI I had promised originally, the parts I intended to do the first time around are finished for this version.
They're included with the Bitbucket download below. Just extract the "Client_EndlessMining" folder into your Add-Ons folder and you're good to go for any server that happens to be hosting this.
(And no more talk of silly "encrypted client-sided save backups" as the database system we were originally using is no longer present whatsoever heheh)

Ore Database
(host only and GUI only)


Heads Up Display, will add the "group list" soon after I add the group system.



Download the latest git commit here
You'll find it here on the page, if you can't find it

In case you have no idea what you're doing: https://bitbucket.org/TheBlackParrot/blockland-endless-mining/wiki/Home

156
Music / Taking requests because idfk
« on: June 11, 2013, 06:01:48 AM »
just throw something to loop at me and I'll do my best

some stuff i've already previously done

157

For those having a little trouble understanding that:
sda1 is my package backup. Everytime I install something on my laptop, I have the package file going over to my server instead of my hard drive, and it saves 3GB of space. I can probably shrink this down to 5GB and be alright for a looong while.
sda2 is the partition in question.

sdb1 is the root partition. important system files yay
sdb2 is the boot partition where GRUB resides. It's seperate in case something goes horribly wrong and I can still at least boot.
sdb3 is the home partition where Quake 3 is the only thing of importance on it right now. (I run an empty Q3 server it's rather sad :c)
sdb4 is my file backup through ssh/sftp.

sdc1 is my jukebox partition.

sr0 is my only cd drive. I don't have a CD drive in my laptop so I just use my server's, otherwise I'd have a 4th hard drive plugged in.

My question though is wtf can I do with sda2? I can't host many games at all (Blockland included), so I'm out of ideas.
Help?

158
Creativity / TheBlackParrot's musical creations - "Autumn" released!
« on: June 04, 2013, 01:33:57 AM »
Figured I'd bring a topic back, a lot of interest came from you guys before.
I've since ended the Stuff series in April to help relieve that "oh my god I have to release something this month" feeling. It's a bad thing.

Originals in Stuff V1 - V24 are now under a CC BY Attribution 3.0 Unported license.
Everything afterwards that is an original is CC-BY-NC with the exception of YouTube monetization, or if you ask me about using them comercially.

In order from most recent to least recent but still good:
(enter 0 if you want it for free. just please keep in mind any revenue right now is going towards a new computer which would help out a TON with production. i'm on a Core 2 Duo T9300 for crying out loud)

And if you have Rush Bros, most of my recent stuff is featured in the game!

In case you want to keep up to date, you can follow me on SoundCloud, Tumblr, Twitter, or YouTube.

Oh and yes, I still rarely do mashups.
As I'm now partnered with EDM Spotlight (or... District now? what) now on YouTube, they're only available on official.fm.

159
Modification Help / commandToClient isn't working like I expect
« on: May 30, 2013, 09:27:55 PM »
client.cs:
Code: [Select]
if(!isObject(BLE_UpperCenterPrint)) { exec("./gui/BLE_UpperCenterPrint.gui"); }

//%duration needs to be in msec, e.g. 1000 = 1 second
function BLE_SetUpperCenterPrint(%msg,%duration)
{

echo("received.");

BLE_UpperCenterPrint_Text.setText("<just:center>" @ %msg);

if(%duration)
{

schedule(%duration,0,BLE_SetUpperCenterPrint,"",0);

}

}

server.cs:
Code: [Select]
function BLE_UpperCenterPrint(%client,%msg,%duration)
{
if(isObject(%client))
{

commandToClient(%client,'BLE_SetUpperCenterPrint',%msg,%duration);
echo("should've worked.");


}

}

"should've worked" is echoed, however "received" isn't. I know the client-sided command works.

Is there some syntax issue I'm oblivious to, or what.

(using BLE_UpperCenterPrint(findclientbyName("theb"),"test",5000);)

160
Games / Testing a Quake 3 server, if anyone still plays it.
« on: May 23, 2013, 12:06:56 AM »
75.137.240.14:27960 if anyone would like to join it.
It's vanilla FFA on a 5 map rotation right now, fraglimit of 50 and timelimit of 15.

I'll keep it up probably, since the computer I'm hosting it on isn't doing much of anything except sitting there.

and I can confirm people are able to join it. I've had a few randomly come and go throughout the day.

161
Help / I'm being asked for my key over and over again
« on: May 20, 2013, 07:28:54 PM »
Except this time, RTB is not running and it occurs after I restart my computer. It even happens with a clean installation.

My local IP has always been 192.168.1.100, and my regular IP is static, so nothing of that sort should be causing it.

I'm on Arch Linux with Wine 1.5.30-2, which is the latest update for us; Wine is running Blockland under XP emulation. The game runs fine and even better in certain situations (e.g. having minimal shaders present when they're not on Windows).

Quote from: ip addr show
3: wlp12s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000
    link/ether 00:1c:bf:a9:dd:c4 brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.100/24 brd 192.168.1.255 scope global wlp12s0
Do I need to keep an eye on the "link/ether 00:1c:bf:a9:dd:c4" to see if it changes? If so, would that be causing it?

(console.log given in case it's needed)

162
I'm attempting to make a Minesweeper game I can't figure out how to get either the name of a grid's square, or a variable within it when it's clicked.
I do know how I would detect variables from surrounding squares, but I need to get the one clicked first.

Code: [Select]
        for(%i=0;%i<%grid_width;%i++)
        {

                for(%j=0;%j<%grid_height;%j++)
                {

                        %pos = 1 + (%i*20) SPC 1 + (%j*20);

                        %grid = new GuiSwatchCtrl("Mine_Grid" SPC %i SPC %j)
                        {
                                profile = "GuiDefaultProfile";
                                horizSizing = "right";
                                vertSizing = "bottom";
                                position = %pos;
                                extent = "19 19";
                                minExtent = "19 19";
                                enabled = "1";
                                visible = "1";
                                clipToParent = "1";
                                color = "255 255 255 64";
                                mine = "0";
                                gridX = %i;
                                gridY = %j;
                        };
                        Mines_Area.add(%grid);

                }

        }

163
Music / Parrot's dropbox dump folder
« on: April 28, 2013, 12:55:51 AM »
https://www.dropbox.com/sh/l1ue8soz93xe6lc/UdxVPngU9B/BL%20Loops

Download whatever you'd like, request something, idk.
have fun

164
Modification Help / Detect clicking not in-game
« on: April 06, 2013, 10:09:23 PM »
I'm trying to figure out how to detect when someone left clicks without a keybind, as it would probably overwrite everyone's Activate keybind.

I know you can do that by modifying the mouseFire(); command, but that only works in-game.

I am using a GUI if that helps, but using a GuiInputCtrl seems to disable everything in the mission editor.

EDIT: Was reading through http://forum.blockland.us/index.php?topic=229128.0 out of curiousity and found an answer.

165
Modification Help / TheBlackParrot's Game Dump (New - Minesweeper!)
« on: April 06, 2013, 04:31:44 AM »
Minesweeper
Oh come on, who doesn't know about this game? Even your grandmother knows.
Keybind only.



https://bitbucket.org/TheBlackParrot/blockland-minesweeper-gui/downloads/Client_Mines.zip
Git Repo: https://bitbucket.org/TheBlackParrot/blockland-minesweeper-gui

Avoider
Essentially your average "avoid falling things" game, except it's controlled via mouse.
Keybind option is available. (Main Menu button soon be to removed)



https://bitbucket.org/TheBlackParrot/blockland-avoider-gui/downloads/Client_Avoider.zip
Git Repo: https://bitbucket.org/TheBlackParrot/blockland-avoider-gui

I'll put more here as I get things done

Pages: 1 ... 6 7 8 9 10 [11] 12 13 14 15 16 ... 27