(Link to AcmlmWiki) Offline: thank ||bass
Register | Login
Views: 13,040,846
Main | Memberlist | Active users | Calendar | Chat | Online users
Ranks | FAQ | ACS | Stats | Color Chart | Search | Photo album
04-24-23 07:52 AM
Acmlm's Board - I3 Archive - - Posts by Squash Monster
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
User Post
Squash Monster

Bouncy


 





Since: 11-18-05
From: Right next to myself.

Last post: 5916 days
Last view: 5909 days
Posted on 01-16-06 07:44 PM, in Aliens Exist Link
Originally posted by spel werdz rite
If aliens did exist, (which I hope they do) I would want them to be just about the same intelligence as us. It'd be nice to take vacatios to other planets.

Also, astrologists have discovered that small bacterial life forms exist in Mars. So, in a couple billion years if the Sun doesn't explode, we may have intelligent life on another planet!

As for religious details, I know there will be missionaries who will stop at nothing to "spread the word of God" to outside lifeforms, that could be a problem to beliefs they may or may not have.
Emphasis mine.

Never trust somebody who can't tell the difference between astronomers and astrologers.

And no: they discovered evidence that there may have been bacterial life on Mars in the past. The evidence was inconclusive (maybe was discarded, I don't keep too up-to-date), and it was fossilized, not living. Life as we know it cannot live on present-day Mars.



Back on topic: I'm still holding out for fish on one of Jupiter's moons.


(edited by Squash Monster on 01-16-06 06:45 PM)
Squash Monster

Bouncy


 





Since: 11-18-05
From: Right next to myself.

Last post: 5916 days
Last view: 5909 days
Posted on 01-17-06 08:05 PM, in Envelope Opening Link
Two tallish chairs, placed next to eachother.

Envelope suspended between them.

Go back to my room, grab my sword, sharpen a while.

Realize that I have a cavalry sword.

Head over to friend's house, borrow friend's horse.

Charge the envelope, slice as passing.

Hope nothing valuable was in the envelope.


...Does that mean I vote "other"?


(edited by Squash Monster on 01-17-06 07:05 PM)
Squash Monster

Bouncy


 





Since: 11-18-05
From: Right next to myself.

Last post: 5916 days
Last view: 5909 days
Posted on 01-25-06 06:40 PM, in The letter i Link
I dot every i twice -- once on the approach and once on the exit.

This gives me the nice bonus of having lots of umlauts.
Squash Monster

Bouncy


 





Since: 11-18-05
From: Right next to myself.

Last post: 5916 days
Last view: 5909 days
Posted on 01-25-06 06:59 PM, in How not to make a crappy game. Link
If you do the following "rules" in order, your game will rock.

My idea of quality in game crafting is extraordinarilly demanding though, so if you're going to cop out, do the ones in bold, at least.

For the sake of the children.


Rule 1: Finish your game.

Rule 2: After you're done, pack up the file, back it up in a dozen places, and don't touch it for a week.

Rule 3: After you've neglected your finished game for a week, bother to play your own game

Rule 4: If you get bored partway through the game, fix it. If anything else is wrong, fix it. If you can think of anything that'd improve the game that you haven't done yet, that's a problem -- fix it.

Rule 5: Repeat steps 2 through 4 until you don't find anything to fix.

Rule 6: You're wrong. Repeat steps 2 through 4 one more time.

Rule 7: Give your game to one completely normal gamer, one Metroid sequence-breaker or similar game-breaking bastard, and, if you can find one, someone who has easy to read emotional responses to just about everything*. Have the first two take notes. Hang out with the last one while the game's being played and take notes yourself.

Rule 8: Change everything you see fit to change.

Rule 9: Repeat steps 2 through 4 again.

Rule 10: Don't release your game until it's polished!


*I know this girl who makes panicked squeeks or other odd noises at the drop of a hat. She's the best beta tester ever.
Squash Monster

Bouncy


 





Since: 11-18-05
From: Right next to myself.

Last post: 5916 days
Last view: 5909 days
Posted on 01-29-06 07:26 PM, in Java Sockets. Link
A friend and I are trying to learn how to connect to eachother's computers via Java sockets, and aren't having very much luck.

Every time we try to run, the client side says it timed out, and the server side claims its IP is 0.0.0.0.

Anyone have any ideas what could be going wrong?

(Code follows. Sorry it's all double-spaced -- blame the pre tag. Anyone have a solution for that?)


import java.net.Socket;
import javax.swing.JOptionPane;
import java.net.InetAddress;
import javax.swing.JFrame;
import java.net.UnknownHostException;
import java.io.IOException;

class Client
{
public static void main(String[] args)
{
Socket socket = null;

String input = JOptionPane.showInputDialog("IP Address to connect to?");
try
{
socket = new Socket(input, LearnNetwork.PORT_NUM);
}
catch(UnknownHostException e)
{
System.out.println("Do not know of host: " + e.getMessage());
System.exit(-1);
}
catch(IOException e)
{
System.out.println("IO Exception connecting to host: " + e.getMessage());
System.exit(-1);
}

JFrame appFrame = new JFrame();
LearnNetwork ln = new LearnNetwork(socket);
appFrame.setContentPane(ln);
appFrame.pack();
appFrame.show();
}
}



import java.net.Socket;
import java.net.ServerSocket;
import javax.swing.JFrame;
import java.io.IOException;
import java.net.InetAddress;
import javax.swing.JOptionPane;

class Server
{
public static void main(String[] args)
{
Socket socket = null;

try
{
ServerSocket serverSocket = new ServerSocket(LearnNetwork.PORT_NUM);
System.out.println("Address is: ");
byte[] address = serverSocket.getInetAddress().getAddress();
for(int i = 0; i < address.length; i++)
System.out.print(address + ".");

socket = serverSocket.accept();
}
catch(IOException e)
{
System.out.println("Error connecting to client: " + e.getMessage());
System.exit(-1);
}

JFrame appFrame = new JFrame();
LearnNetwork ln = new LearnNetwork(socket);
appFrame.setContentPane(ln);
appFrame.pack();
appFrame.show();
}
}



import java.awt.event.KeyListener;
import java.awt.event.KeyEvent;
import java.awt.Graphics;

class Avatar implements KeyListener
{
private int x;
private int y;
private int xs = 0;
private int ys = 0;

public Avatar(int _x, int _y)
{
x = _x;
y = _y;
}

public void doStep()
{
x += xs;
y += ys;
}

public String getUpdate()
{
return intToString(x) + intToString(y) + intToString(xs) + intToString(ys);
}

public void setUpdate(String update)
{
x = stringToInt(update.substring(0,4));
y = stringToInt(update.substring(4,8));
xs = stringToInt(update.substring(8,12));
ys = stringToInt(update.substring(12,16));
}

private static String intToString(int num)
{
String result = "" + num;
while(result.length() < 4)
{
result = " " + result;
}
return result;
}

private static int stringToInt(String str)
{
while(str.substring(0,1).equals(" "))
{
str = str.substring(1);
}
return Integer.parseInt(str);
}

public void draw(Graphics g)
{
g.fillRect(x, y, 4, 4);
}

public void keyPressed(KeyEvent e)
{
switch(e.getKeyCode())
{
case KeyEvent.VK_RIGHT: xs = 1; break;
case KeyEvent.VK_UP: ys = -1; break;
case KeyEvent.VK_LEFT: xs = -1; break;
case KeyEvent.VK_DOWN: ys = 1; break;
}
}

public void keyReleased(KeyEvent e)
{
switch(e.getKeyCode())
{
case KeyEvent.VK_RIGHT: if (xs > 0) xs = 0; break;
case KeyEvent.VK_UP: if (ys < 0) ys = 0; break;
case KeyEvent.VK_LEFT: if (xs < 0) xs = 0; break;
case KeyEvent.VK_DOWN: if (ys > 0) ys = 0; break;
}
}

public void keyTyped(KeyEvent e) {}

public static void main(String[] args)
{
//Test run, just tests update logic
String temp = intToString(1) + intToString(-1);
System.out.println(temp);
System.out.println(stringToInt(temp.substring(0,4)));
System.out.println(stringToInt(temp.substring(4,8)));
}
}



import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.net.Socket;
import java.io.PrintWriter;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import javax.swing.JPanel;
import javax.swing.Timer;
import java.awt.Graphics;
import java.awt.Dimension;
import java.io.IOException;

class LearnNetwork extends JPanel implements ActionListener
{
public static final int PORT_NUM = 6112;

private Socket socket;
private PrintWriter out;
private BufferedReader in;

private Avatar us = new Avatar(0, 0);
private Avatar them = new Avatar(0, 0);
private Timer t = new Timer(15, this);
private boolean updaterStarted = false;

public LearnNetwork(Socket _socket)
{
socket = _socket;
try
{
out = new PrintWriter(socket.getOutputStream(), true);
in = new BufferedReader(new InputStreamReader(socket.getInputStream()));
}
catch(IOException e)
{
System.out.println("Error connecting: " + e.getMessage());
System.exit(-1);
}

setPreferredSize(new Dimension(512, 512));
setFocusable(true);
addKeyListener(us);
t.start();
}

public void actionPerformed(ActionEvent eve)
{
us.doStep();
them.doStep();
out.println(us.getUpdate());
repaint();

//Abuse a boolean and the automatic threading of timers to get this fork
if(!updaterStarted)
{
updaterStarted = true;
while(updaterStarted)
{
//Closed from outside by setting updaterStarted back to false
try
{
them.setUpdate(in.readLine());
}
catch(IOException e)
{
System.out.println("Error reading data from connection: " +
e.getMessage());
System.exit(-1);
}
}
}
}

public void paintComponent(Graphics g)
{
super.paintComponent(g);
us.draw(g);
them.draw(g);
}
//TODO -- close all input and output streams, close connections
}



(edited by Squash Monster on 01-29-06 06:30 PM)
Squash Monster

Bouncy


 





Since: 11-18-05
From: Right next to myself.

Last post: 5916 days
Last view: 5909 days
Posted on 01-30-06 10:48 AM, in Java Sockets. Link
We're not on the same network, and we were using IP addresses.

The socket tutorial makes too many assumptions and doesn't work all that well. But yes, I did check my code against it. They're quite similar.

How exactly would you recomend setting it up so they're not listening and connecting the same port number? Would you connect twice, and have each computer use one port to send and the other to receive?
Squash Monster

Bouncy


 





Since: 11-18-05
From: Right next to myself.

Last post: 5916 days
Last view: 5909 days
Posted on 02-11-06 11:05 AM, in Java Sockets. Link
Sorry it took so long to get back to this thread.

Eventually we found the problem -- my friend typoed when he set up port forwarding so his router sent requests to connect to the game through the wrong computer .


A new question arises:

Currently, as you may have noticed, we're sending updates as strings and using number formatting functions to get them back together and stuff.

I'm trying to come up with a better way to go about that.

What would be the best way to format data? Make an Update class and send objects of it across through serialization?
Squash Monster

Bouncy


 





Since: 11-18-05
From: Right next to myself.

Last post: 5916 days
Last view: 5909 days
Posted on 02-11-06 11:21 AM, in Subliminal Messages Link
Subliminal messaging doesn't work. You'll get much more result out of simply choosing music, sound effects, and specific words that have an effect on the reader's psyche. Rhetoric, I mean. You can say a few things everyone agrees with while using parallel structure, and then say something more controversial using the same sentence structure, and get a good chunk more people to think you're right. There's no need to be sneaky and backhanded about it, you just need to pay attention to some old Greek guys.
Squash Monster

Bouncy


 





Since: 11-18-05
From: Right next to myself.

Last post: 5916 days
Last view: 5909 days
Posted on 02-12-06 11:35 PM, in Problem with Eggvine Link
That'll probably just be the first of a metric crapload of files that it wants.

I'd recomend attempting to find the entire set of VB runtime files. Still a Google job though.
Squash Monster

Bouncy


 





Since: 11-18-05
From: Right next to myself.

Last post: 5916 days
Last view: 5909 days
Posted on 02-21-06 09:29 PM, in What beats what. Link
Say "I'm a ___" and explain how your "___" beats your oponent's "___".

Example:

Person one: "I'm a mouse!"
Person two: "I'm a cat, I eat the mouse!"
Person three: "I'm a bear, I eat the cat!"
Person four: "I'm a bear trap, I catch the bear!"

With me?

Good. Try to make your versions of the responses more complicated, as it's funnier that way. Just don't get stupid.


I'm a pigeon!


(edited by Squash Monster on 02-21-06 08:37 PM)
Squash Monster

Bouncy


 





Since: 11-18-05
From: Right next to myself.

Last post: 5916 days
Last view: 5909 days
Posted on 03-01-06 07:00 PM, in JAMH: New Enemies? [SS] Link
This is good stuff. I approve.

Originally posted by Koneko
I get the feeling that changing the bob-ombs into exploding donuts would be hilarious.

These look really great so far. I'm so happy to see that you're making progress. Though, the tomato doesn't look right when it's flipped over, being supported by its stem somehow.

But yeah, this is getting closer and closer to liquid awesome.
Exploding donuts don't really fit the healthy foods theme (which is awesome and just plain works, no matter what any stodgy malcontent tells you), though. I recomend the pomegranate. Why, do you ask? Because in Spanish and French, the word for pomegranate is the same as the one for "grenade". Come on, you don't need better reason than that.

Originally posted by andres
The eyes of those enemies, except the killer pea, make that they look tired .
Reading comprehension FTW!
Squash Monster

Bouncy


 





Since: 11-18-05
From: Right next to myself.

Last post: 5916 days
Last view: 5909 days
Posted on 03-01-06 07:46 PM, in Back on work + Seens of new started hack Link
Originally posted by golden goomba


You fail at life, the universe, and everything.

But hey, at least you earned this:

Squash Monster

Bouncy


 





Since: 11-18-05
From: Right next to myself.

Last post: 5916 days
Last view: 5909 days
Posted on 03-01-06 07:49 PM, in The Page of Things (Last Updated: 03-04-06) Link
Originally posted by asdf
Wow, the situation there is total anarchy at the moment. It's just...out of control. Order needs to be enforced before this will become useful.
Who on earth needs order?

And how on earth would this be useful in the first place?

It's Acmlm's. I'd say fun is more of a thing than usefulness.
Squash Monster

Bouncy


 





Since: 11-18-05
From: Right next to myself.

Last post: 5916 days
Last view: 5909 days
Posted on 03-01-06 07:59 PM, in Candy Crisis. Link
Puyo is the best game ever.

Candy Crisis is the best implementation of Puyo ever.

Candy Crisis is also the only game with a name ending in "Crisis" that doesn't suck.


Also, it's open source, runs on PC and Mac, and is suddenly and randomly free.

So go get the thing already.

(Note, the game remembers the days when it wasn't free, and asks you to register. If you follow the registration link, however, it'll just tell you that it's free now, and give you the public username/activation code. I have painstakingly reproduced these for you here: User Name: Everybody, Code: WPTV-CRHV. Enter them the first time you play and forget about it.)


So, can anyone get to the end of single player mode? At level 11, the pieces were going too fast for me to see, so understandably, I lost at level 12 (which I think is the last level).
Squash Monster

Bouncy


 





Since: 11-18-05
From: Right next to myself.

Last post: 5916 days
Last view: 5909 days
Posted on 03-01-06 08:02 PM, in For all da Catholics! Link
I gave up Lent for Lent.

(I'm actually just giving up lurking, which is silly, but okay because I'm not really Catholic. Best of luck to the real Catholics, though!)
Squash Monster

Bouncy


 





Since: 11-18-05
From: Right next to myself.

Last post: 5916 days
Last view: 5909 days
Posted on 03-01-06 08:05 PM, in The Page of Things (Last Updated: 03-04-06) Link
That's just plain silly. The point of all the WIkiMedia projects is to provide information, but that doesn't mean all wikis have to be spoilsports.

I'll clean up the main page for you, Xk.


Edit: Darn the speedy dastard who got to it before me. Darn him like a sock!
Edit Edit: Screw that, I'm cleaning it up anyway.


(edited by Squash Monster on 03-01-06 07:06 PM)
(edited by Squash Monster on 03-01-06 07:09 PM)
Squash Monster

Bouncy


 





Since: 11-18-05
From: Right next to myself.

Last post: 5916 days
Last view: 5909 days
Posted on 03-01-06 08:10 PM, in The Page of Things (Last Updated: 03-04-06) Link
That's what I was going to do, except I was going to make it very visable that the place had been cleaned up.

I changed my mind and did that anyway, though.
Squash Monster

Bouncy


 





Since: 11-18-05
From: Right next to myself.

Last post: 5916 days
Last view: 5909 days
Posted on 03-01-06 08:28 PM, in The Interactive Showdown Of Ultimate Destiny. Link
So one day my friend happydud and I were hanging out, and I said: "Hey, I've this awesome idea for a game, no, really this time!." He was skeptical, but let me keep talking. So I did. "Alright, so everyone signs on, and the server assigns everyone random characters from The Ultimate Showdown of Ultimate Destiny. Then it plops them down on a randomly generated map of Tokyo and they all start beating the crap out of eachother. Birds-eye-view, rotate and attack, four moves per character, cheap graphics, lots of chaos. Two minutes in, a computer-controlled Chuck Norris shows up and everyone has to gang up on him or they'll all die 'cause Chuck's Chuck. If nobody has won in five minutes, Mr. Rogers shows up and beats the crap out of everyone because you've been taking too long. Last player standing wins, unless it's a computer, in which case nobody wins."

He thought that was pretty cool, so he helped set up a server, and I started coding. A flurry of activity later, we had successfully made a program that let an arbitrary number of players connect to a server and fire projectiles at eachother.


So far this is what we have:
--A brilliant Tokyo-generating algorithm.
--A mostly final version of the server code.
--Working generic place-holder characters.
--Working network code (well, it was working. It will be again as soon as I finish the new client: we switched from TCP to UDP, you see.)
--Awesome movelists for all 41 characters when they stop being generic place-holders.
--Lemon Demon's approval.
--A graphics format.


That last one is why I'm bringing this up here. We're looking for people who are willing to help us draw sprites for some of the characters. The graphics are straight top-down, 16x16, with a number of different frames, and a very large leeway room outside the 16x16 area so characters can actually do things like kicking without getting horribly ugly and cramped.

I'll give the details to anyone who's interested in helping draw for us.

Is that anyone?
Squash Monster

Bouncy


 





Since: 11-18-05
From: Right next to myself.

Last post: 5916 days
Last view: 5909 days
Posted on 03-01-06 08:33 PM, in The Page of Things (Last Updated: 03-04-06) Link
Whoah, Blocktool?

You're going to hack into the banned user's source and mess with the code behind their blocks?

That's hardcore, man.
Squash Monster

Bouncy


 





Since: 11-18-05
From: Right next to myself.

Last post: 5916 days
Last view: 5909 days
Posted on 03-01-06 08:36 PM, in The Page of Things (Last Updated: 03-04-06) Link
Can't he just IP ban some folk?

I mean, sure, it doesn't work on competant people. But have you seen what type of cruft we ban around here?


(edited by Squash Monster on 03-01-06 07:37 PM)
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Acmlm's Board - I3 Archive - - Posts by Squash Monster


ABII

Acmlmboard 1.92.999, 9/17/2006
©2000-2006 Acmlm, Emuz, Blades, Xkeeper

Page rendered in 0.219 seconds; used 453.57 kB (max 591.71 kB)