Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (494)
Games in Android Showcase (114)
games submitted by our members
Games in WIP (563)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: 1 2 3 [4]
  ignore  |  Print  
  Preparations..  (Read 15982 times)
0 Members and 1 Guest are viewing this topic.
Offline Riven
« League of Dukes »

JGO Overlord


Medals: 793
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #90 - Posted 2010-11-23 00:15:17 »

I hate to nitpick, but you forgot to close 'out' in Streams.transfer()

Otherwise, nice clean room impl. although you took some shortcuts Smiley

You can ofcourse remove HighLevelSleep(EXEC_DELAY); because that's only meant to reduce the load on the server.

Please do remember this is not in any way like my production code Smiley

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings
Offline Markus_Persson

JGO Wizard


Medals: 15
Projects: 19


Mojang Specifications


« Reply #91 - Posted 2010-11-23 07:53:05 »

Oops, lookie at that!
And yeah, I made a bunch of assumptions, especially about concurrency, so there's a whole pile of shortcuts in there. Wink
I found that getting rid of all the sleeps resulted in some files getting a reported size of 0. I assume that's what the final 1000 ms sleep is for.

As for not being production code; it works, it performs a service people want, and you didn't waste days overdesigning it.
I haven't thought about potential security concerns (instinctively, running native code on arbitrary input feels like it SHOULD be a flaw), but that doesn't matter when you're just running it locally.

Play Minecraft!
Offline Riven
« League of Dukes »

JGO Overlord


Medals: 793
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #92 - Posted 2010-11-23 08:17:28 »

I found that getting rid of all the sleeps resulted in some files getting a reported size of 0. I assume that's what the final 1000ms sleep is for.
The sleeps are only for cosmetic / load reducing reasons, and should have no impact on results. I'll do some further testing to see whether I don't 100% reliably wait for processes to either exit or get destroyed (timeout). Running locally, you should BTW remove the process-killing code, cause it's acceptable to wait more than 2000ms for kzip.


As for not being production code; it works, it performs a service people want, and you didn't waste days overdesigning it.
I haven't thought about potential security concerns (instinctively, running native code on arbitrary input feels like it SHOULD be a flaw), but that doesn't matter when you're just running it locally.

Then there should be a security flaw in javac bitwise-or ZipOutputStream. After that all processes run on 'trusted' input (the generated jar). Or so I thought. The only real security breach is the alternative jar-upload, which I will probably unpack and repack before handling. Thanks for the heads up - previously I have been lazily 'securing' my server through obscurity persecutioncomplex




Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Markus_Persson

JGO Wizard


Medals: 15
Projects: 19


Mojang Specifications


« Reply #93 - Posted 2010-11-23 09:03:18 »

As I said, I hadn't thought things through properly. I think you're right!

Play Minecraft!
Offline zeroone
« Reply #94 - Posted 2010-11-23 14:47:50 »

Quote

Thanks.  You rock!

Quote
I found that getting rid of all the sleeps resulted in some files getting a reported size of 0.

I noticed this happens occasionally with the Compile-And-Shrink service. 

Quote
The sleeps are only for cosmetic / load reducing reasons, and should have no impact on results. I'll do some further testing to see whether I don't 100% reliably wait for processes to either exit or get destroyed (timeout). Running locally, you should BTW remove the process-killing code, cause it's acceptable to wait more than 2000ms for kzip.

That would explain it. 

Quote
as several gz-compressors are non-deterministic, it's basically anyones guess. I get differences of up to 9 bytes per run.

Can the local version have an option to run over night in an attempt to squeeze out every last byte?
Offline Markus_Persson

JGO Wizard


Medals: 15
Projects: 19


Mojang Specifications


« Reply #95 - Posted 2010-11-24 12:19:28 »

Possibly, yeah, but then if it ends up at 4097 bytes, what will you do? :/

Play Minecraft!
Offline Riven
« League of Dukes »

JGO Overlord


Medals: 793
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #96 - Posted 2010-11-24 14:05:00 »

It's way easier to make it run indefinitely, storing the (at that time) smallest files in a specified directory. You'll quickly see whether it converges to 4096 or not, and if it does, you can wait it out.

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings
Offline zeroone
« Reply #97 - Posted 2010-11-27 03:22:42 »

This morning I ran Windows Update.  Now, Internet Explorer displays applets with a white border on the right and bottom sides.  See the image below.  I think I have JRE 1.6.0_20.  I tried up update to 1.6.0_22, but the update page claimed that my JRE was up to date.  I am using 64-bit Windows 7.  Applets display correctly in Chrome.  Anyone else experiencing this with IE?

Offline Alan_W

JGO Knight


Medals: 8
Projects: 3


Java tames rock!


« Reply #98 - Posted 2010-11-27 11:13:41 »

This morning I ran Windows Update.  Now, Internet Explorer displays applets with a white border on the right and bottom sides.  See the image below.  I think I have JRE 1.6.0_20.  I tried up update to 1.6.0_22, but the update page claimed that my JRE was up to date.  I am using 64-bit Windows 7.  Applets display correctly in Chrome.  Anyone else experiencing this with IE?

Trying checking Zoom = 100% (View->Zoom->100%) as setting this to anything else changes the applet window size.
If it's not that, then there's trouble ahead  Grin

I've decided what I'm entering now Wink

Time flies like a bird. Fruit flies like a banana.
Offline zeroone
« Reply #99 - Posted 2010-11-27 20:53:43 »

Quote
Trying checking Zoom = 100% (View->Zoom->100%) as setting this to anything else changes the applet window size.
If it's not that, then there's trouble ahead

Alan_W,

Thanks!  You were right!  In fact, if you look at my screen shot, it says it is zoomed to 105%.  Restoring the zoom back to 100% eliminated the ugly white border.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline zeroone
« Reply #100 - Posted 2010-11-30 20:51:36 »

Quote
As I said, I hadn't thought things through properly. I think you're right!

Markus, Riven,

Could you guys post the latest version of the offline Compile-And-Shrink (if there is a new version, that is)?  Ideally, can a compiled version of it be made readily available for people to download and use?  Thanks for all your help.
Offline zeroone
« Reply #101 - Posted 2010-11-30 22:20:47 »

Quote
The Java4K 2011 submission period spans from December 1st 2010 and ends February 28th 2011. Results of the competition will be displayed on this site shortly there after, hopefully no later than 2-3 weeks after the competition closes.

Concerning the entry period, which timezone?
Offline appel

JGO Wizard


Medals: 51
Projects: 4


I always win!


« Reply #102 - Posted 2010-11-30 22:26:21 »

Concerning the entry period, which timezone?

Earth timezone Smiley


GMT+0 is default I believe.

Check out the 4K competition @ www.java4k.com
Check out GAMADU (my own site) @ http://gamadu.com/
Offline Riven
« League of Dukes »

JGO Overlord


Medals: 793
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #103 - Posted 2010-12-01 00:49:30 »

Concerning the entry period, which timezone?

In the last 5 days, my signature will show hours/minutes in its countdown (to GMT+0)

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings
Offline zeroone
« Reply #104 - Posted 2010-12-04 19:23:22 »

Riven,

The online Compile-And-Shrink service does not appear to be working at the moment.  All I see is:

waiting for work queue...............................................................................

Can you and Markus possibly release an offline version?
Offline zeroone
« Reply #105 - Posted 2010-12-04 21:14:51 »

I managed to get Markus' offline version of Riven's Compile-And-Shrink service to work.  The version that Markus posted is missing a call to out.close() in Thread.run() inside of asynchronousTransfer().  I also stripped out the sleeps.  Thanks for your help guys.

Also, oddly enough, ProGuard version 4.4 compresses better than 4.5.1.  Though, it's a marginal amount. 

Riven also mentioned something about a randomize option for ProGuard, but I could not figure out how to set that up.

We really should package up all the resources and make the offline version available.  I attached the version that I got to work. 

[attachment deleted by admin]
Offline Riven
« League of Dukes »

JGO Overlord


Medals: 793
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #106 - Posted 2010-12-04 22:23:35 »

I'm kinda worried, as I unlock the waitingQueue in a finally block. It might have been one of the external processes that hang indefinitely... anyway, I unlocked the queue.

Besides that, I have fixed quite a few serious bugs in the online version. The offline version greated by Markus doesn't have those fixes yet. I think I'm going to add a servlet that basically dumps the sourcecode of the shrinker-servlet.

I do not intend to maintain an offline version though. I think it's pretty generous to have it open sourced like this, and put in the public domain, and I do not intend of putting a whole lot of effort into getting rid of all the dependencies.

Further, we have like 86 days remaining, so I don't think anybody should freak out if my steaming pile of code is b0rked every once in a while.

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings
Offline zeroone
« Reply #107 - Posted 2010-12-04 22:31:11 »

Thanks.

Quote
I have fixed quite a few serious bugs in the online version.

You wouldn't happen to have a history of the changes, would you?   Grin
Offline zeroone
« Reply #108 - Posted 2010-12-08 15:34:00 »

SquashMonster writes:

Quote
For main website suggestions, there are a few things I would like to see.  Describing exactly what Java4k is about should be right front and center, of course.  I also think the link to the discussion forum should always be prominent, instead of hiding in the FAQ and news posts.  News could be moved lower down to make room, as well: the people who want news are people who already care about the website, we'll all scroll down for it.  The top should be the explanation of what we do and everybody's shiny games.  As for the shiny games themselves, I think the system for picking which games are shown on the front page needs to be rethought.  It would be nice to primarily show the games that have had the least views, for fairness sake.  Though that might run contrary to trying to promote the contest, since you want something really flashy to draw people in, so I'm unsure.  There are a lot of ways you could do it, and a lot to be said about each of those ways; all I ask is that you give it some extra thought

+1

The forum link under Get Started is currently pointing to last year's forum.
Offline Eli Delventhal

JGO Kernel


Medals: 42
Projects: 11
Exp: 10 years


Game Engineer


« Reply #109 - Posted 2010-12-08 21:41:53 »

And is there any way to see reviews/scores from previous years?

See my work:
OTC Software
Offline appel

JGO Wizard


Medals: 51
Projects: 4


I always win!


« Reply #110 - Posted 2010-12-08 21:56:44 »

SquashMonster writes:

+1

The forum link under Get Started is currently pointing to last year's forum.

Fixed.


Quote
And is there any way to see reviews/scores from previous years?
Yes, under the news section on the main page. I'll make a separate page for this though.


Hopefully I'll find time in the coming days to update some of the pages on the site, they are a bit dusty due to neglect :\


Check out the 4K competition @ www.java4k.com
Check out GAMADU (my own site) @ http://gamadu.com/
Offline pjt33
« Reply #111 - Posted 2010-12-08 22:42:04 »

And is there any way to see reviews/scores from previous years?
They're nicely linked from the Wikipedia page. http://en.wikipedia.org/wiki/Java_4K_Game_Programming_Contest
Offline zeroone
« Reply #112 - Posted 2010-12-08 23:22:56 »

Quote
They're nicely linked from the Wikipedia page. http://en.wikipedia.org/wiki/Java_4K_Game_Programming_Contest

Thanks to those who updated the wiki.  Also, today I learned what a kibibyte (http://en.wikipedia.org/wiki/Kibibyte) is.
Offline Riven
« League of Dukes »

JGO Overlord


Medals: 793
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #113 - Posted 2011-01-18 19:25:35 »

Due to having lost a lot of on the server and restoring will take maybe a few more days, compile-and-shrink will the online at the end of this week, I think.

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings
Pages: 1 2 3 [4]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

Dwinin (22 views)
2014-09-12 09:08:26

Norakomi (55 views)
2014-09-10 13:57:51

TehJavaDev (66 views)
2014-09-10 06:39:09

Tekkerue (33 views)
2014-09-09 02:24:56

mitcheeb (55 views)
2014-09-08 06:06:29

BurntPizza (38 views)
2014-09-07 01:13:42

Longarmx (24 views)
2014-09-07 01:12:14

Longarmx (30 views)
2014-09-07 01:11:22

Longarmx (29 views)
2014-09-07 01:10:19

mitcheeb (37 views)
2014-09-04 23:08:59
List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!