New feature: applets?

it doesn’t work, because it only accepts files in your own ‘directory’

e.g. http://user-generated-content.java-gaming.org/members/YOUR_MEMBER_ID/your.jar

I (think I) have to do it this way to get the CODEBASE right (lwjgl jars are also on http://user-generated-content.java-gaming.org/)

Great stuff Riven.

The java loading logo came up and it was looking really good.

Unfortunately it failed for me with a message along the lines of:

loadlibrary failed with error 998: invalid memory access violation

But that seems to be a bug in lwjgl or my drivers since their main applet page threw the same errors:
http://lwjgl.org/applet/

This is such a good feature idea

LWJGL Applets need a bit more magic to work, since they deploy stuff like native files. Riven’s tag handles all that for you in the background, so you just need to worry about your game/app jars.

testing again:

[lwjgl archive=ball.jar class=org.bossattack.boing.BallApplet width=640 height=480]

nice, it works for me now :slight_smile:

Sorry to see it fail, but I doubt I can help :emo:

[quote=“CommanderKeith,post:42,topic:36082”]
Oh yeah 8)

Added it under [My Files] in the forum-header. :point:

Added buttons for [ spoiler ], [ qr ], [ countdown ], [ applet ], [ lwjgl ] on the post/reply/modify screens.

Pixel artists are welcome. :slight_smile:

Hey it works. however I can’t use my mouse scroll right after the applet loaded. Great feature! :smiley:

Applet grabs focus (see line #135 in previous post).

Oh yeah you right. It’s not matter though, since can still use scroll bar ;D

The buttons don’t work for me (They don’t do anything when I click them)
EDIT: It worked this time :slight_smile:

Ah thanks. The problem is/was that the buttons do not work if the page is loaded through ajax (the autoloader feature). Fixed now.

How about an “approval” system for uploading stuff to your “directory”(if it isn’t a .jar file), that way you can upload whatever you want but it has to be checked first (and will be deleted if it isnt appropriate/part of your game + you will get a warning or something). 10mb + only jar files is fine for small games I guess but … if you want a php script for high scores or custom levels that can be saved? or if you don’t want to put everything in the jar file?

JGO is not meant to be a host for any (small or big) games. It’s a place to demo/share your WIP. 10MB might not sound like a lot, but remember JGO runs on a VPS where harddisk space is limited, just like datatraffic. If it would turn out to be necessary, we’ll eventually move to a situation where old data is purged automatically.

Regarding your highscore-PHP-script (which would mean running untrusted code on the server…), no, nothing like that will ever happen :slight_smile:

The problem with ‘approval by moderators’ is that it is an excellent attack vector to infect our moderators. :clue:

how about a PHP checker? ;D
You could restrict it to only certain keywords and specific directories.
Anyway I guess it doesn’t matter, people can run my applet off my website anyway.


<?php
	$name = $_REQUEST['name'];
	$key = $_REQUEST['key'];
	
	$fp = fopen("data/user/" . $name . ".txt", "w"); 
	fwrite($fp, $key);
	fclose($fp);
?>

Code like that makes me cringe. If I were to use that code, JGO would be hacked in minutes.

oh :cranky:

Off topic: your featured game picture links to http://www.java-gaming.org/ads.php?id=11

This is intentional.

Oh. Adblock plus blocked it 8)