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
46
Modification Help / Syntax error ("CityRPG_getRandomMailbox(##)##;")
« on: October 12, 2010, 04:33:47 AM »
Code: [Select]
function requestMailSend(%to,%from,%str)
{
   if(getSubStr(%to,0,4) $= "SYS:")
   {
      %sys=getSubStr(%to,4,strLen(%to));
      %obj=nametoid("CityRPG_GAME_SYS_" @ %sys);
      if(!isObject(%obj))
         return;
      %to=%obj;
   }
   else
   {
      %obj=findclientbyname(%to);
      if(!isObject(%obj))
         return;
      %to=%obj;
   }
   if(getSubStr(%from,0,4) $= "SYS:")
   {
      %sys=getSubStr(%from,4,strLen(%from));
      %obj=nametoid("CityRPG_GAME_SYS_" @ %sys);
      if(!isObject(%obj))
         return;
      %from=%obj;
   }
   else
   {
      %obj=findclientbyname(%from);
      if(!isObject(%obj))
         return;
      %from=%obj;
   }
   if(%from.getClassName() $= GameConnection)
   {
      if(isObject(%from.player))
         %mailbox=CityRPG_findClosestMailbox(%from.player.getPosition();
      else
         %mailbox=CityRPG_findRandomMailbox();
   }
   else
   {
      if(strLen(%from.scriptPos) > 0)
         %mailbox=CityRPG_findClosestMailbox(%from.scriptPos);
      else
         %mailbox=CityRPG_findRandomMailbox();
   }
   if(!isObject(%mailbox))
      return;
   %mailbox.addMail(%from,%to,%msg);
}

Syntax error report:
Code: [Select]
   }
   if(%from.getClassName() $= GameConnection)
   {
      if(isObject(%from.player))
         %mailbox=CityRPG_findClosestMailbox(%from.player.getPosition();
      else
         %mailbox=CityRPG_findRandomMailbox(##)##;
   }
   else
   {

47
Off Topic / i made a story.
« on: October 07, 2010, 01:01:22 PM »
Once,
sure
was angry
at the baby
and
sucked
its nose
whilst
masturbating it
and
the baby
sucked
badspots
life
because
it already
( WTFBREAK )
what
is that
thing
a gay
panda
sucking
babies'
rocket launcher
which fired
a white
man
and then
fired
a printer
who then
fired the employee
who shot a girl
in the wrench
and she got hurt
and then
she cried
and sucked
obama's richard
whilst
sucking obama's richard
and printing
baseplates
with a
carrot
and youtubing
her sucking obamas richard
and opened a new tab with
researchhub.com
and forgot to open incognito window
so she died
of brain cancer
and lung degeneration
and gay people
that sucked
her finger
and raped
her finger
and violating
her dog
that sucked her cat's
richard
and forgot that the cat was female
so they died
of hormones
and watching trolololol too much
and Fred
which was masturbating
to megan fox
and badspot
having love on the beach
with a whore
and couldnt pay
so he died

THE END

48
Modification Help / HTTPObject PHP parameters
« on: October 02, 2010, 07:16:43 AM »
Okay, from the beginning. I am locally hosting a website and I have a PHP script which contains this:
Code: (PHP) [Select]
<?php
    file_put_contents
("./stuff.txt",$_GET["variable"]);
?>


And then in TS, I do this:
Code: (TorqueScript) [Select]
new HTTPObject(Intrastuff);
Intrastuff.get("localhost:80","/filename.php?variable=nothing");

Okay, on the server, before running the TS code, there is no file except filename.php
Now I run the TS code, and a file called stuff.txt is created. I open it, and the contents are just blank, "".
I tried making it echo the $_GET["variable"], but its still just "". I'm guessing this is a problem with TS.

How would I properly send a request of the PHP script, but passing arguments?

49
Gallery / Tractor
« on: October 01, 2010, 10:07:20 AM »
TRACTOR

ITS A TRACTOR

SERIOUSNESS


50
Help / Local client disconnects when connected
« on: October 01, 2010, 03:13:02 AM »
So, whenever I try hosting a server now, the loading progress gets stuck at 0% LOADING MISSION.

If I look in console, I see this:
Quote
Sending mission load to client: (path to Skylands map here)...
CDROP: 6762 local

CDROP meaning 'Connection Drop'. I'm not pressing Escape in the loading GUI or anything, it just disconnects.

51
Off Topic / Member Search
« on: October 01, 2010, 02:57:39 AM »
Gogogo, find people.

Member Search

52
Modification Help / Left Mouse Button for GUI ".accelerator"
« on: September 29, 2010, 06:32:48 AM »
So, I have this GUI where I click at any time somewhere on the GUI while it is open, and a action happens.
I've tried setting .accelerator for a control to 'mouse0' and other stuff, but nuthin' works.

What is the correct 'key name' for LMB?

53
Modification Help / ItemData::onUnUse
« on: September 28, 2010, 09:59:46 AM »
Is there a way to register when a client has kind of 'unselected' a item?

54
I have this thing where I do infoNotice("Hello world"); and it should display a box with 'Hello world' in it. But it should have a background object that should resize according to the text, how would I do that? Like
+-----------+
| Hello world |
+-----------+
and
+---------------------------------+
| This automatically resizes the box |
+---------------------------------+

55
Creativity / Team Blockland 2 [Complete TF2 Remake for BL]
« on: August 21, 2010, 11:41:54 PM »
Team Fortress 2, finally coming to Blockland.

Idea
To remake all weapons, class properties, GUIs, gamemodes and other stuff that is in Team Fortress 2, into Blockland.

Progress
Join Team GUI done. Join Class GUI done. Scattergun, shotgun and SMG found. A bit of progress on revamped TDM. Engineer wrench ready, no content in .onHitObject yet though.

Misc
I've been testing messing around with the GUI editor for this. I just want your opinion on these GUI/HUD ideas, x/10? (attached)

56
Modification Help / Questions regarding the RTB GUI Downloading system
« on: August 21, 2010, 09:50:32 AM »
I am wanting to create a GUI which should be transfered using RTB during client mission load.

So, currently I just have this:
Code: [Select]
RTB_registerGUI("path/to/gui/here.gui");

But, if I want to update a field in the GUI, lets say for example I have a GuiTextCtrl called ThisWeirdField, and I want to change it's value to "Free cookies" from the server, how would I do that?

57
Add-Ons / Advanced Zoom v1.2
« on: August 18, 2010, 11:05:16 AM »
Advanced Zoom v1.2
The 'F' key not good enough?

Description
Advanced Zoom lets you zoom even longer than the default F, it lets you zoom x18. And it has much more 'right-at-the-hand' controls so you dont have to find a key on the keyboard.

Usage
Pressing your Middle Mouse Button will toggle Advanced Zoom on/off.
Rolling the mousewheel up/down will zoom out/in.

Installation
Put Script_ClientZoom.zip in your Add-Ons folder and restart Blockland if it is currently running.

Download
Download Script_ClientZoom.zip from Bauklotz's server.

58
Off Topic / Hot Trees
« on: July 27, 2010, 07:30:03 AM »
Someone needs to make a Hot Trees thread  :cookieMonster:

Proceed

Quote from: "Hot Girls" OP, modified
I have noticed we are in an extreme lack of pictures of hot trees.

We must fix this.

(Please though, no nudity.)

59
1:Which function can I package to detect when a player was ghosted?

2: Which function can I package to detect when a player was "un"-ghosted, aka. removed from the simulation?
>> simObject::onRemove?

I'm trying to make a kinda thing "List of players alive/dead" sorta-thing and I'd like some answers.

60
Drama / Holy stuffbags.
« on: June 29, 2010, 01:22:32 AM »
What the hell is going on @irc? I hope Ephialtes gets out of his AFK cave and "No bots.".


Pages: 1 2 3 [4] 5 6