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.


Messages - TheGermanKid

Pages: [1] 2 3
1
Off Topic / Re: Ctrl + V game.
« on: June 26, 2009, 11:27:53 PM »
Code: [Select]
<?
session_start();

function encrypt($text, $seed) { 
  $encText = ""; 
  $pwLength = strlen($seed); 
  $i=6; 
  for ($x=0; $x < strlen($text); $x++) { 
  $i = ($i%$pwLength)+1; 
  $a = ord(substr($text, $x, 1)); 
$b = ord(substr($seed, $i-1, 1)); 
    $encText .= ($a ^ $b); 
    $encText .= ","; 
 
  return $encText; 
  }

/* function decrypt($text, $seed){
if(!$text == ""){
if (strlen($text) == 1)
return "999999";
$pwLength = strlen($seed);
$strText = "";
$hold;
$i = 6;
$crypt = explode("," ,$text);
for ($x = 0; $x < sizeof($crypt) - 1; $x++) {
if (strlen($crypt[$x])>2) {
$test=0;
$test = (int) $crypt[$x];
if ($test == 0) $crypt[$x] = substr($crypt[$x], 1,1);
}
$i = ($i % $pwLength) + 1;
$a = (int)($crypt[$x]);
$b = ord(substr($seed, $i-1, 1));
$hold = chr($a ^ $b);
$strText .= $hold;
}
return trim($strText);
}else{
return "";
}
} */
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>MicroMsg - Send Item</title>
</head>
<body style="font-family:Verdana, Arial, Helvetica, sans-serif">
<?
$numFiles = 0;
if ($handle = opendir("Users/" . $_POST['rec'] . "/Messages")) {
  while (false !== ($file = readdir($handle))) {
if ($file != "." && $file != ".." && $file != ".DS_Store" && $file != ".htaccess") {
        $numFiles++;
        }
    }
    closedir($handle);
}

if ($_POST['message'] != "") {
$message = str_replace("\n", "<br />", $_POST['message']);

if ($_POST['enc'] == "Encrypted") {
$message = encrypt($message, $_POST['rec']);
}

$xmlData =  "<data>\n";
$xmlData .= "\t<flag>" . $_POST['flag'] . "</flag>\n";
$xmlData .= "\t<enc>" . $_POST['enc'] . "</enc>\n";
$xmlData .= "\t<sender>" . $_SESSION['username'] . "</sender>\n";
$xmlData .= "\t<subject>" . $_POST['subject'] . "</subject>\n";
$xmlData .= "\t<message>" . $message . "</message>\n";
$xmlData .= "</data>";

fwrite(fopen("Users/" . $_POST['rec'] . "/Messages/" . ($numFiles) . ".msg" , 'w'), $xmlData);
echo "Message Sent";
}else{
echo "Could not send message, it is empty";
}
?>
</body>
</html>
PHP Anyone?

2
Gallery / Re: My iPod Touch - Model
« on: June 21, 2009, 04:55:06 PM »
It either really stinks, or you took really bad pictures.
It's kinda hard to make curves.
And, yeah, bad photos.

3
Gallery / My iPod Touch - Model
« on: June 21, 2009, 04:48:23 PM »
A while ago (around thanksgiving '08), I made a model of my MacBook.
Now I have made a model of my iPod Touch.

Pics - I am too lazy to crop the screenshots...



Here is my reference picture.


What do you think?
Suggestions?

4
Suggestions & Requests / Re: In-Game Programming Language
« on: June 03, 2009, 11:29:10 AM »
The majority of blockland users are kids - kids don't want to have to learn some weird language to make a brick that explodes when you click it. Furthermore, why would we need to declare variables before using them? That is only necessary when reserving memory - and this won't interact with memory directly.

The methods you've proposed for creating bricks on-the-fly will also not work without overhauling the brick networking and convincing them not to require datablocks. I am convinced Badspot will not be willing to devote the time required to make something like this when the vast majority of users would not take the time to use it or try to understand it. Getting people to understand events was hard enough - kids will not be able to learn this.
This would not REPLACE wrench events, it would be in addition to wrench events
And it is not necessary to declare variables before using them, I did that to show a bit more of the language.

5
Suggestions & Requests / Re: In-Game Programming Language
« on: June 03, 2009, 02:09:19 AM »
Most people that would use it will never learn another scripting language and if they do they learn better ways of script and away from the bad habits.
True

6
Modification Help / Re: particle editor MAC
« on: June 03, 2009, 02:08:48 AM »
All I think you need is an image editing program like Paint.NET
That's not Mac, I use a Mac.

Use GIMP, it's free.

7
Suggestions & Requests / Re: In-Game Programming Language
« on: June 03, 2009, 02:05:13 AM »
Well if it was easy it opens it up to having alot of people of all ages to make there own games.
I see what you mean, but simple languages teach bad programming habits (originating out of Visual BASIC, I know)

8
Suggestions & Requests / Re: In-Game Programming Language
« on: June 03, 2009, 02:01:37 AM »
Yeah he was going to make a clientside based game in a gui where you could play a game like "tic tac toe" while playing blockland.  It was going to use a custom made scripting language that even a monkey could learn.
Interesting,
I think that the language should not be really easy to learn, because then you get stuff like Applescript.

9
Suggestions & Requests / Re: In-Game Programming Language
« on: June 03, 2009, 01:58:32 AM »
Truce was planning on doing something like this back in the day.
Really?

10
Suggestions & Requests / Re: In-Game Programming Language
« on: June 03, 2009, 01:52:22 AM »
Let's say you wanted to run some code only if a specific condition is true, or maybe create a line of bricks.
Here is the code...
Code: [Select]
/* Run if condition is true... */
Brick *brick;
NSString *name;
name = @"brickName";

brick = [[Brick alloc] initWithExistingBrick:name];

if (brick.printChar == "A") {
   /* Some Code... */
}
...Or to create a line of bricks...
Code: [Select]
Brick *brick;
BrickShape *shape;
NSString *name;
NSColor *color;
NSInteger count;

name = @"brickName";
color = [NSColor colorWithCalibratedRed:1.0f green:1.0f blue:1.0f alpha:1.0f]; /* White BTW */
[shape setStyle:@"cube"]; /* Style can be "cube", "flat", "special", etc. */
[shape setWidth:20]; /* 20 units wide */
[shape setHeight:20];
[shape setLength:20];
[shape setPrint:NO]; /* Set whether or not the brick is a print brick */

while (count < 5) {
   [shape setXCoord:count yCoord:0 zCoord:0];
   brick = [[Brick alloc] initWithName:name shape:shape color:color];
}

11
Suggestions & Requests / In-Game Programming Language
« on: June 03, 2009, 01:51:11 AM »
This has been killing me since I got the game (about a year ago).
Why doesn't Blockland have an IN-GAME programming language, this would add a whole new level of creativity that wrench events cannot offer.

I have thought about it and I have determined that the language should be BASIC, JavaScript, or Objective-C based.
I believe that Objective-C style would be best, it's fairly easy to learn.

Example
Code: [Select]
/* Finds brick with given name and sets it's color to red */
Brick *brick;
NSString *name;

name = @"brickName";
brick = [[Brick alloc] initWithExistingBrick:name];
[brick setColor: [NSColor colorWithCalibratedRed:1.0f green:0.0f blue:0.0f alpha:1.0f]];
[brick commitChanges:nil];
...Or...
Code: [Select]
/* Creates new brick */
Brick *brick;
BrickShape *shape;
NSString *name;
NSColor *color;

name = @"brickName";
color = [NSColor colorWithCalibratedRed:1.0f green:1.0f blue:1.0f alpha:1.0f]; /* White BTW */
[shape setStyle:@"cube"]; /* Style can be "cube", "flat", "special", etc. */
[shape setWidth:20]; /* 20 units wide */
[shape setHeight:20];
[shape setLength:20];
[shape setPrint:NO]; /* Set whether or not the brick is a print brick */
[shape setXCoord:0 yCoord:0 zCoord:0];

brick = [[Brick alloc] initWithName:name shape:shape color:color];
The code could be assigned to a specific brick, like wrench events.


This would add a whole new level of functionality.
Thanks.

12
Off Topic / This dude is smart!
« on: March 14, 2009, 04:33:48 PM »
This dude is really loving smart!
http://en.akinator.com/

13
Off Topic / Re: Ctrl + V game.
« on: February 14, 2009, 10:23:57 PM »
#include <stdio.h>

int main (int argc, const char * argv[]) {
   int loop = 7;
   while (loop == 7) {
      
   int a, b, count, answer;
   char op;
   
   //print prompt
   printf("Enter an expression: ");
   
   //get expression
   count = scanf("%d %c %d", &a, &op, &b);
   if (count !=3) {
      printf("Bad expression!\n");
      break;
   }else{
   
   //calculate
   answer = calculate(a, b, op);
   printf("%d %c %d = %d\n", a, op, b, answer);
   }
}
   return 0;
}

C Code

14
Off Topic / Re: TeamViewer Me!
« on: February 14, 2009, 12:07:35 AM »
yes, and this seems like you are just begging to be hacked
I still have loving control, all folders I do not want deleted or modified, cannot be.

15
Off Topic / Re: TeamViewer Me!
« on: February 14, 2009, 12:06:26 AM »
already done

posted on forums for him
RAAAAGGGEEEE

Pages: [1] 2 3