Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (482)
Games in Android Showcase (110)
games submitted by our members
Games in WIP (550)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Source code problem in Java4k site  (Read 1891 times)
0 Members and 1 Guest are viewing this topic.
Offline luisoft

JGO Coder


Projects: 6


Java games rock!


« Posted 2013-03-03 21:01:50 »

Hi appel,

I've noticed that some games have the link "source code available" but when clicking it no source code is displayed. An example is http://java4k.com/index.php?action=games&method=view&gid=406#source

I think some other games have this problem. Do you know if the authors really submitted their code?
Offline sixtyten

Junior Member


Projects: 1



« Reply #1 - Posted 2013-03-03 21:55:48 »

Also another thing to mention is that string escape characters are not displayed properly e.g. '\u007F\u2252' becomes 'u007Fu2252'
Offline ctomni231

JGO Wizard


Medals: 99
Projects: 1
Exp: 7 years


Not a glitch. Just have a lil' pixelexia...


« Reply #2 - Posted 2013-03-03 23:54:38 »

I think some other games have this problem. Do you know if the authors really submitted their code?

I think I can actually shed some light on that for this year. In the game submission, you have the option to show the source code after the competition is finished. If you select this option, it shows the "show source code" link on the main page, but it doesn't show the code.

I can't speak for the earlier years, but I believe that all the code will be available to look at after the voting process is finished.

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline ReBirth
« Reply #3 - Posted 2013-03-04 02:35:12 »

Yes there is that option. You may want world to see it but after the compo ends to prevent plagiarism.

Offline appel

JGO Wizard


Medals: 50
Projects: 4


I always win!


« Reply #4 - Posted 2013-03-04 03:38:44 »

Interesting. Will fix tomorrow.

Check out the 4K competition @ www.java4k.com
Check out GAMADU (my own site) @ http://gamadu.com/
Offline appel

JGO Wizard


Medals: 50
Projects: 4


I always win!


« Reply #5 - Posted 2013-03-04 22:14:59 »

I fixed that issue, but I'm still trying to solve backslash-stripping issue with \u chars.   Oh the wonders of php. Roll Eyes

Check out the 4K competition @ www.java4k.com
Check out GAMADU (my own site) @ http://gamadu.com/
Offline Oskuro

JGO Knight


Medals: 39
Exp: 6 years


Coding in Style


« Reply #6 - Posted 2013-03-05 09:40:36 »

Wouldn't it be better to have the source code link to a plain UTF-8 encoded text file, instead of (or in addition to) displaying it on the page itself? That'd get rid of encoding issues and would preserve formatting, not to mention it'd make it easier to download.

Offline forthx

Junior Member


Medals: 1
Projects: 1



« Reply #7 - Posted 2013-03-05 13:20:52 »


You mean a *.java file?  Grin

Could be a good idea !
Offline Oskuro

JGO Knight


Medals: 39
Exp: 6 years


Coding in Style


« Reply #8 - Posted 2013-03-05 18:44:01 »

Not sure how the browser will take it if a *.java file is linked, but a plain *.txt file can be both rendered by the browser and downloaded.

Pages: [1]
  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.

CopyableCougar4 (14 views)
2014-08-22 19:31:30

atombrot (28 views)
2014-08-19 09:29:53

Tekkerue (25 views)
2014-08-16 06:45:27

Tekkerue (23 views)
2014-08-16 06:22:17

Tekkerue (15 views)
2014-08-16 06:20:21

Tekkerue (22 views)
2014-08-16 06:12:11

Rayexar (61 views)
2014-08-11 02:49:23

BurntPizza (39 views)
2014-08-09 21:09:32

BurntPizza (31 views)
2014-08-08 02:01:56

Norakomi (37 views)
2014-08-06 19:49:38
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!