Poll

What should be improved in the next version?

Different icon pack. That way, you can make the icons larger without blurring them.
Change the "template" image. Make it have round corners and a better background color.
Display a 128x128 or 64x64 thumbnail from http://blockland.us/browse.php.
Add a counter which displays the number of page loads.
This tool is so amazing that it cannot be improved.
Change the fonts, font sizes, and font colors.

Author Topic: Server status image generator | New poll  (Read 2180 times)

Today, I got bored and decided to take a break from coding HammerHost. So I thought that it would be a nice idea to program something that dynamically generates an image, which displays the status of a Blockland server.
I ended up using a Java program to draw and rasterize the images, which communicates with the existing Node.js web server at my site.

How to use:

The URL to the generation script is this:
http://www.hammereditor.net/servStatusImg?ipAddr={IP address here}&port={Port here}

You basically replace the IP address (red) and the port (green) with the IP and port of the desired Blockland server. Easy, isn't it?

Example:
http://www.hammereditor.net/servStatusImg?ipAddr=23.229.71.172&port=30400
...results in:


Edit: Wow, I have 354 total page loads already.
Edit: At 3/2/14 9:52:35 PM forum time, 1026 images total have been served.
« Last Edit: March 02, 2014, 10:54:58 PM by Hammereditor5 »


nice
By the way, sorry about the blurry icons.
Also, I made the program count the number of page loads. If this becomes popular enough, I'll also add other stats, such as the gamemode, uptime, and average player count.

Also, I made the program count the number of page loads. If this becomes popular enough, I'll also add other stats, such as the gamemode, uptime, and average player count.

why not just do that in the first place?


why not just do that in the first place?
I didn't think those were necessary.
But tomorrow I may add the number of page loads to the images.


By the way, sorry about the blurry icons.
Also, I made the program count the number of page loads. If this becomes popular enough, I'll also add other stats, such as the gamemode, uptime, and average player count.
You should make those optional, like this:
http://www.hammereditor.net/servStatusImg?ipAddr=blah&port=bleh&show=11101

Where you can then turn specific stats on and off, every letter standing for a specific feature, 0 meaning not shown and 1 meaning shown.

Then you could for example disable dedicated and passworded stats as they're pointless for long time dedicated servers, and instead show average player count which is pointless for short time servers, etc.

Then you could for example disable dedicated and passworded stats as they're pointless for long time dedicated servers, and instead show average player count which is pointless for short time servers, etc.
Okay, sounds like a good idea. I'll implement it in a few days.

If you ever want to see the total number of uses, you can go here.

This is great! I was waiting for someone to make this. I'm going to bookmark this thread just in case.

I really want to know how you do these. This is cool.

Is there anyway you could make a version with rounded edges? Other then then it's very good friend

I really want to know how you do these. This is cool.
You basically take a pre-made image, and write a program to draw text over the image and then rasterize it. The data comes from master2.blockland.us.

Is there anyway you could make a version with rounded edges? Other then then it's very good friend
I'll think about adding this in when I make the next version in a few days. I'll probably use a new template, made from scratch.

Not sure how I would improve it, but I really dislike its aesthetics. Maybe round it out or use the empty space in a better way? A better background color might work, too. Sorry if I come off as dismissive.