Poll

Will you come to my birthday party?

nope
79 (83.2%)
maybe
16 (16.8%)
sure
0 (0%)

Total Members Voted: 95

Author Topic: Escape Overlay Released [NARG]  (Read 494708 times)

More random resources instead of actual progress updates:  for this one you can input a position and it will output the brick grid position

Code: [Select]
function tmbi_snaptobrickgrid(%pos, %dtb) //hideous
{
if(!tmbi_isint(%sx = %dtb.bricksizex) || !tmbi_isint(%sz = %dtb.bricksizez))
{
echo("Bad Datablock sent:"@ %dtb);
return;
}
%x = getword(%pos, 0)*2;
%y = getword(%pos, 1)*2;
%mz = getword(%pos, 2)*5;
%dir = tmbi_getghostdirection();

if(!tmbi_isint(%x) && tmbi_isint(%y) && %sx !$= "1")
{
if(%dir $= "1")
%y -= 1;
else if(%dir $= "2" || %dir $= "3")
{
%x += 1;
%y -= 1;
}
}
%z = mceil(%mz);

if(tmbi_isint(%mz) || (!tmbi_isint(%mz) && tmbi_isint(%sz/2)))
%z++;
return mfloor(%x) SPC mfloor(%y) SPC %z;
}


and misc support code:
Code: [Select]
function tmbi_isint(%x) //I don't trust the sometimes default one
{
if(%x $= mfloor(%x)) //also makes it sure it is a string
return 1;
return 0;
}

function tmbi_getghostdirection()
{
if(isobject($tmbi_ghostbrick))
return $tmbi_ghostbrick.getangleid();
else
return tmbi_getplayerdirection();
}

function tmbi_getplayerdirection()
{
if(isObject(%p = serverconnection.getcontrolobject()))
{
%va = getword(%p.getforwardvector(),0);
%vb = getword(%p.getforwardvector(),1);

if(mabs(%va) > mabs(%vb))
{
if(%va > 0)
return 0;
else
return 2;
}
else
{
if(%vb > 0)
return 1;
else
return 3;
}
}
else
return 4;
}

Things that work the first time I test them worry me.  I thought that this would be a long and extensive project, but what do you know...

http://youtu.be/xsegWz7N7yc

well stuff, I think i should check my beta email

well stuff, I think i should check my beta email

It's not quite ready for beta yet.  Right now the system for locating the ghost brick in the first place is a huge step forward from the days of BuildBot, but still quite finicky, and I am still trying to improve the function for locating the focus point.

nice, it seems useful for being able to move and build at the same time, having keys for placing/rotating on the mouse?
also, as an idea, what about a toggle to load a ghost image of how a build would load, for build bot? just client sided

Neet, but seems rather useless. Mostly looks like a way for trolls to improve their spam.

Neet, but seems rather useless. Mostly looks like a way for trolls to improve their spam.


You can say that about just about any client mod ever made.  The ability to place a ghost brick at any distance and then drag it around quickly very much outweighs the added ability to spread spam farther.  I think its kinda like the hydra motion controller thing for Portal 2.  Seriously, ban spammers and clear their bricks.  I do not enable people to spam.  Just because it is a new outlet for potential spamming doesn't mean that it will ruin servers.  Servers aren't oppressed and helpless things that clients using my mods cruelly enslave and manipulate.  Servers have pretty much all the power in that relationship.  I just let clients do more with the pittance that they get from servers.

nice, it seems useful for being able to move and build at the same time, having keys for placing/rotating on the mouse?
also, as an idea, what about a toggle to load a ghost image of how a build would load, for build bot? just client sided

I don't think its possible to fakely render bricks in blockland without outside programs or something to manipulate the rendering memory.

Beta sent out.  Check your emails, testers

you mean i have to remember my password???

You beta testers have dissapointed me greatly

So far the only beta I have done that has been truly successful was the first one, which was Public.

I think from now on my policy will be that new mods go to beta testers only, while minor feature additions/updates can be public.

This Beta will last about four days.  I am probably going to clear out some of my inactive testers.  If you do a good job testing and reporting bugs/suggestions in the public beta, you could earn one of the opening spots from ousted testers.

Current Public Beta:  TMBI v2.0 BETA (ignore it if it tells you version mismatch)
https://dl.dropbox.com/u/20459676/Beta_TMBI.zip

Note: you will need to remove Client_TMBI from your add-ons folder
I am not going to give alot of information about the new features because I also want to test how intuitive it is.

i couldn't be active cause i was dumb enough to forget my password
:(

found the first bug:

when using a 1x1x3 (in 1x1 F measures)

it takes like 5 triggers of the brick mover thing to get it to actually get to the spot you're looking at

i'm talking 20 blocks away, nothing major.

i know you said it was inaccurate, but this is ridiculous

other brick sizes dont take that long

is the server you are in lagging badly?

Edit: it seems it has probems with resolving the position of any brick dimension that has an odd number of studs.  I literally just copied and pasted the grid snapping code out of buildbot, where accuracy only matters when relative to the rest of the build, but it seems I have some trial and error testing to do to fix up that algorithm.
« Last Edit: June 18, 2012, 03:03:19 AM by Nexus »


Code: [Select]
function tmbi_isint(%x) //I don't trust the sometimes default one
{
if(%x $= mfloor(%x)) //also makes it sure it is a string
return 1;
return 0;
}

there is no default one

Code: [Select]
if(isfile("base/client/ui/cache/calibri_18.gft"))
TMBI_Options_val1.setvalue("Calibri");
else
TMBI_Options_val1.setvalue("Palatino Linotype");

why can't you bundle it