Jump to content

  • Log In with Google      Sign In   
  • Create Account

We need your help!

We need 7 developers from Canada and 18 more from Australia to help us complete a research survey.

Support our site by taking a quick sponsored survey and win a chance at a $50 Amazon gift card. Click here to get started!


Member Since 30 Jul 2012
Offline Last Active Jan 28 2015 11:03 AM

Topics I've Started

New visual console for java - Graphsole

11 February 2013 - 05:55 AM

Hello my fellow game developers!


I just wanted to announce I have recently released an console library for java called Graphsole. It is released using GPL but if you want it with some other license just ask me by my e-mail. It is made with swing and works like an glove.


Note: only runs on JDK(1.7+)


Feel free to try out :)

Code only works on desktop

25 December 2012 - 11:32 AM

package com.philipborg.aol;

import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.util.Properties;

import com.badlogic.gdx.Gdx;

public class Settings {
	public static boolean soundEnabled = true;
	public final static String file = "AOL/settings.txt";
	static Properties prop = new Properties();

	public static void load() {
		BufferedReader in = null;
		try {
			in = new BufferedReader(new InputStreamReader(Gdx.files.external(
			soundEnabled = Boolean.parseBoolean(prop.getProperty(
					"soundEnabled", "true"));
			Gdx.app.log("Settings - load", "Loaded settings");

		} catch (Throwable e) {
			// Switches to default
			Gdx.app.log("Settings - load", "Could not load settings");
		} finally {
			try {
				if (in != null)
			} catch (IOException e) {


	public static void save() {
		BufferedWriter out = null;
		try {
			out = new BufferedWriter(new OutputStreamWriter(Gdx.files.external(
			prop.setProperty("soundEnabled", Boolean.toString(soundEnabled));
			prop.store(out, "AOL SETTINGS");
		} catch (Throwable e) {
		} finally {
			try {
				if (out != null)
			} catch (IOException e) {


This LibGDX code somehow only works on desktop. I want it to work on Android as well since I do not really care about HTML support.This code is my full settings class and is in it's native form. What do I need to do to make it work on Android?

[LIBGDX] Using the LZMA decompress class

07 November 2012 - 02:09 PM

Hello everyone!
I am using libgdx for a project and I want to use an LZMA compression to store some sound files (around 500 probably). I found that my library LIBGDX has a built in class for handling it found here but there are no examples how to use it to import sound for example or anything from an internal LZMA file. I would highly enjoy an example or an description on how to use for me and everyone else that find them self in the need of it.

Bad php code

07 September 2012 - 10:38 AM


I am very new to PHP development and I am currently learning java and php at the same time with integration and I therefor mix them together with the syntax and so. This current code is meant to use an passed in arguments using $_GET and then process them. The current solution is just for temporal development focusing on the client java side. The problem is that not even my temporary solution is working and my IDE does not tell me any errors. I think I messed up with the scope but I am not sure.

[source lang="php"]//Set mode$error = NULL;$output = NULL;try{ $mode = $_GET["mode"];}catch(exception $exc){ $error = "No mode";} //set error to null, results in message to error if set to true//Check to make sure it is an valid userif ($mode == "userVerify"){ if (username == "open"){ $output = "valid"; }else{ try{ $username = $_GET["username"]; $password = $_GET["password"]; }catch(exception $exc){ $error = "No username or password given"; } $output = "valid"; }}//Connection checking, allways returns true if executedelseif ($mode == "connectionCheck"){ $output = "true";}//Check prestige levelelseif ($mode == "userPrestigeLevel"){ $username = $_GET["username"]; if (username == "open"){ $output = "0"; }else{ //Executed if it is not an open user $output = "0"; }}else{$error = "Unvalid mode" . $mode;}if ($output == NULL){ $error = "No output";}if ($error != NULL){ $output = "ERROR: " . $error;}echo $output;[/source]

I pass in arguments using the sytem localhost/file.php?mode=userVerify?username=test?password=test and all I receive back is "ERROR: No output". I know this code is anything but pretty, but for know all i want is some basic functionality.

Matchmaking using Apache Webserver

02 August 2012 - 02:16 AM

Is it possible with an unmodified version of Apache HTTP web server to make an complete matchmaking system or do I have to have an actual root access server which I can install my custom software onto? The matchmaker I want to make bases itself that a client connects and signs up to the matchmaker and then the server loops through the list checking for matches and updating information. Once the a match is made the server tells the clients to connect to each other. I am rather new to network programming so my bad if this is an obvious question.