Crusty Cabbage OM NOM NOM.

8Feb/100

Tetris4k

This is my entry for the 2010 Java4k contest.

Applet: http://www.crustycabbage.com/randomProjects/files/Tetris/Tetris4k_4/Tetris4k.html

It's still not quite finished yet, but anything I would change would be minor, so I'll post it here for now.

Filed under: Java No Comments
17Jan/100

EChat Instant Messenger finished!

EChat is now fixed, and finished!

Source Code, and Jars: http://www.crustycabbage.com/randomProjects/files/EChatApp_RC/

Patch Notes:

  • Ability to change nick (max length 14).
  • Added client list to client.
  • Added text commands for several functions.
  • EChat logo added to submit button.
  • The EChat client and server will now properly exit when closed.

Note:

  • To see which local address the server is hosted on, run it with "java -jar EChat_Server.jar" from the command line. You will then be able to join the server with a client on your local network. To allow others on the internet to join your server, you must port-forward port 5556 to your server address, and give your external IP address to clients.
Filed under: Java No Comments
4Jan/100

EChat – UDP Client/Server Internet Messenger

EChat UDP Client/Server Internet Messenger

I've been very busy with Uni, Christmas, and New Year, so I haven't posted anything for a while.

I was feeling guilty about the lack of posts, so I've been working on this Java app for the past couple of days.

It's a simple UDP Internet Messenger, which uses a client/server model. It's the first time I've done a networking application (properly), so it was mainly a learning exercise.

Source Code, and Jars: http://www.crustycabbage.com/randomProjects/files/EChatApp/

New Version: http://www.crustycabbage.com/randomProjects/files/EChat_RC/

I just did a last-minute change to add a bar at the bottom to connect to a separate IP (originally hard-coded). Enter the IP address of the server you want to connect to. When the server starts, it will post it's local IP address. Entering this IP address into the client will work only on the local network.

EDIT:

Having researched a bit further, I've found out that multicasting is not really meant for internet applications, so this will only work properly on local networks. I'm working on a fixed version. Link above replaced with final working version.

Filed under: Java No Comments
16Oct/090

E2 Obfuscator

E2 Obfuscator

E2 Obfuscator (Java Applet): http://www.crustycabbage.com/java/E2Obfuscator/16-10-09/E2Obfuscator.html

Source Code: http://www.crustycabbage.com/java/E2Obfuscator/16-10-09/src/

What is an Obfuscator?

An Obfuscator turns readable, programmer-friendly code, into unreadable garbage, but, will still function correctly; doing everything it is supposed to do.

Advantages

1. Very hard for people to plagiarise your work.
2. Shorter code. (In most cases)

Disadvantages

1. Code may be slightly slower.
2. In some extreme cases, programs with lots of strings will hit the op-limit.

Features:

1. Removes comments.
2. Exchanges meaningful variable names with a character sequence.
3. Merges headers together onto single lines. (@outputs, @inputs, etc)
4. Obfuscates short strings using 'charAt()', and long strings using ASCII numbers to String. (Will use the shortest method)
5. Removes whitespace, and excess line breaks.
6. Crushes the code as much as possible, using shorthand methods where possible.
7. Displays changed variables and their counterparts.

Filed under: Garry's Mod, Java No Comments
15Sep/092

Guitar Hero inside Garry’s Mod!

...or 'Geeter Hero' as I am calling it.

Fragments of code from the project:

Main Chip: http://www.crustycabbage.com/gmod/files/exp2/guitarhero.txt

Left Screen Chip: http://www.crustycabbage.com/gmod/files/exp2/guitarheroLeft.txt

Right Screen Chip: http://www.crustycabbage.com/gmod/files/exp2/guitarheroRight.txt

Filed under: Garry's Mod 2 Comments
14Aug/090

Mandelbrot Set in Java

After recently finishing my Mandelbrot project on GMod, I decided to re-code it in Java. This way, it renders MUCH faster, and I can plot out points on the set which I can then import into GMod.

Applet: http://www.crustycabbage.com/randomProjects/files/Mandelbrot/bin/mandelbrot.html

Source: http://www.crustycabbage.com/randomProjects/files/Mandelbrot/src/

Filed under: Java No Comments
12Aug/090

The Mandelbrot Set – GMod Video

Code: http://www.crustycabbage.com/gmod/files/exp2/Mandelbrot.txt

Read about it here: http://en.wikipedia.org/wiki/Mandelbrot_set

Filed under: Garry's Mod No Comments
5Aug/090

Minesweeper finished! (…for now)

Minesweeper

Play it here, and get the source code here.

Still to add:

  • Difficulty settings
  • Upload to HighScore leaderboard
  • Different sizes of playing grid

I'll do all of these things sometime in the future, but will take a back seat for now.

Also, today I will start on a new project which will be a java particle system which I'll be using in all my other projects in the future. Things like sparks, fire, smoke, explosions should be possible to create when it's finished.

Filed under: Java No Comments
21Jul/091

Snake Vector video

The 3rd video in the series 'Contraptions' has been completed!

In this video, I show off my Exp2 chip that makes objects fly around your head, and follow your cross-hair like a snake.

I've added internal commentary for every line of code, so you can work out how it works, learn from it, and make some changes.

Filed under: Garry's Mod 1 Comment
14Jul/090

GPU PONG Video

Finished the second video in the 'Contraptions' series.

Part 2 of this series shows my GPU PONG game, which was written in Z-ASM for the GPU screen (similar to assembler, but slightly modified).

I originally planned to make it a two-player game like the original PONG, however, due to sync issues between the two players with the GPU mod, I was unable to do so.

Filed under: Garry's Mod No Comments