Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (492)
Games in Android Showcase (112)
games submitted by our members
Games in WIP (556)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: 1 ... 5 6 [7] 8 9 ... 16
  ignore  |  Print  
  Minecraft  (Read 181657 times)
0 Members and 1 Guest are viewing this topic.
Offline princec

JGO Kernel


Medals: 369
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #180 - Posted 2010-08-16 15:35:59 »

What you end up doing is then basically switching on serialVersionUID to a series of private loader/saver delegate classes. This is sort of more complicated than just settling on a custom binary format in the first place in some ways but actually it's quite a good solution, just not many people appear to think about this technique.

Cas Smiley

Offline Eli Delventhal

JGO Kernel


Medals: 42
Projects: 11
Exp: 10 years


Game Engineer


« Reply #181 - Posted 2010-08-16 16:55:35 »

What you end up doing is then basically switching on serialVersionUID to a series of private loader/saver delegate classes. This is sort of more complicated than just settling on a custom binary format in the first place in some ways but actually it's quite a good solution, just not many people appear to think about this technique.

Cas Smiley
That's good to know. I never have a problem with it because Eclipse will throw a warning if you use Serializable and don't have a serialVersionUID.

See my work:
OTC Software
Offline Markus_Persson

JGO Wizard


Medals: 14
Projects: 19


Mojang Specifications


« Reply #182 - Posted 2010-08-16 23:10:32 »

What happens is that if you add stuff to a class, it will load just fine. If you remove something (not transient), it will explode. You can work around it by doing your own serialization for that class something along the lines of what princec said, but it's not a pretty solution, and it's much MUCH more complex than just designing a proper file format in the first place.

Play Minecraft!
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Eli Delventhal

JGO Kernel


Medals: 42
Projects: 11
Exp: 10 years


Game Engineer


« Reply #183 - Posted 2010-08-17 00:31:08 »

What happens is that if you add stuff to a class, it will load just fine. If you remove something (not transient), it will explode. You can work around it by doing your own serialization for that class something along the lines of what princec said, but it's not a pretty solution, and it's much MUCH more complex than just designing a proper file format in the first place.
Ah, that makes sense then. See, I've never done that. :-)

I almost always end up either:
- Saving my own text/binary file.
- Serializing a SavedEntity class for everything that constructs the proper Entity when loaded.

The latter option gives me enough control that I so far have avoided any problems, which the former obviously won't have issues. There's also Externalizable if you want to get fancy and still use Java's output streams.

See my work:
OTC Software
Offline Nate

JGO Kernel


Medals: 145
Projects: 4
Exp: 14 years


Esoteric Software


« Reply #184 - Posted 2010-08-17 01:34:38 »

Kryo! Smiley

Offline Markus_Persson

JGO Wizard


Medals: 14
Projects: 19


Mojang Specifications


« Reply #185 - Posted 2010-08-17 07:33:10 »

Or XML. Cheesy

Play Minecraft!
Offline princec

JGO Kernel


Medals: 369
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #186 - Posted 2010-08-17 08:58:18 »

XML = yuk! Custom binary format FTW!

Cas Smiley

Offline Nate

JGO Kernel


Medals: 145
Projects: 4
Exp: 14 years


Esoteric Software


« Reply #187 - Posted 2010-08-17 10:08:56 »

XML is to a developer as taking a screenshot of a text document, drag and dropping it into a word document, zipping it, and emailing it is to a PHB. Both of these really happen. Sad

Offline strategy
« Reply #188 - Posted 2010-08-17 11:32:38 »

Can I just add my kudos to all the others? Fun sandbox game, and it must be really cool to see all the positive comments on this around the place. Keep up the good work.

Offline markus.borbely

Junior Member





« Reply #189 - Posted 2010-08-28 20:05:47 »

XML = yuk! Custom binary format FTW!

Cas Smiley

A little of topic but... why binary? A simple text format can be pretty compact, not compared to binary but is that an issue?
Text is more human readable but also editable. I couldn't care less if some guy cheated to beat my game.
Am I missing something?
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline princec

JGO Kernel


Medals: 369
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #190 - Posted 2010-08-29 19:48:52 »

Easier for a machine to read and write. And therefore easier for you to code. Why deal with Integer.parseInt() when you can just read 4 bytes as an int and know it will work and not throw a NumberFormatException? and so on.

Cas Smiley

Offline Riven
« League of Dukes »

JGO Overlord


Medals: 784
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #191 - Posted 2010-08-29 19:52:45 »

Sure, but if it breaks, and you have to do debugging, binary looks like a bunch of random bits, whereas you can probably figure out what went wrong when browsing through human readable data.

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings
Offline kappa
« League of Dukes »

JGO Kernel


Medals: 77
Projects: 15


★★★★★


« Reply #192 - Posted 2010-08-30 17:24:34 »

is it just me or have the minecraft sales gone extra crazy, 4700 sales in the last 24 hour  Shocked
Offline Riven
« League of Dukes »

JGO Overlord


Medals: 784
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #193 - Posted 2010-08-30 17:27:09 »

is it just me or have the minecraft sales gone extra crazy, 4700 sales in the last 24 hour  Shocked

The server was down for quite some time, maybe people are catching up?

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings
Offline kappa
« League of Dukes »

JGO Kernel


Medals: 77
Projects: 15


★★★★★


« Reply #194 - Posted 2010-08-30 17:28:50 »

ah good point, or could be the recent stories like this

http://games.on.net/article/10042/Minecraft_Creator_Locked_in_Secret_Talks_With_Valve
Offline teletubo
« League of Dukes »

JGO Ninja


Medals: 48
Projects: 4
Exp: 8 years



« Reply #195 - Posted 2010-08-30 17:43:18 »

Quote
The eccentric Swedish developer will be touching down in Washington state tomorrow,

I wonder what they meant by 'eccentric' ...

Offline Eli Delventhal

JGO Kernel


Medals: 42
Projects: 11
Exp: 10 years


Game Engineer


« Reply #196 - Posted 2010-08-30 21:47:13 »

I wonder what they meant by 'eccentric' ...
I'm guessing they just put it because it's a cliché. If you've got one guy working by himself on something, call him eccentric!

See my work:
OTC Software
Offline dishmoth
« Reply #197 - Posted 2010-08-31 07:25:29 »

I wonder what they meant by 'eccentric' ...
His use of Java...?

Offline appel

JGO Wizard


Medals: 50
Projects: 4


I always win!


« Reply #198 - Posted 2010-09-01 11:04:52 »


Looks like Markus has decided what he wants to do with his success, build on it. Probably a natural progression IMO.

Good luck with it Markus, although I'm sure you'll do just fine Smiley

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

JGO Kernel


Medals: 42
Projects: 11
Exp: 10 years


Game Engineer


« Reply #199 - Posted 2010-09-03 00:12:50 »

Congratulations on hitting 1 million sales, Markus, we're all really proud of you. Smiley

See my work:
OTC Software
Offline Riven
« League of Dukes »

JGO Overlord


Medals: 784
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #200 - Posted 2010-09-03 05:51:00 »

Congratulations on hitting 1 million sales, Markus, we're all really proud of you. Smiley

100.000 sales! (Or does 'sales' also mean '1 million worth of sales' ?)

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

JGO Kernel


Medals: 42
Projects: 11
Exp: 10 years


Game Engineer


« Reply #201 - Posted 2010-09-03 14:23:36 »

100.000 sales! (Or does 'sales' also mean '1 million worth of sales' ?)
Whoops, that's what I meant. 1 million euros, 100.000 in sales. Smiley

See my work:
OTC Software
Offline h3ckboy

JGO Coder


Medals: 5



« Reply #202 - Posted 2010-09-04 10:20:40 »

wow, thats awesome Cheesy, Im with eli, we're all proud of u Cheesy
Offline zammbi

JGO Coder


Medals: 4



« Reply #203 - Posted 2010-09-04 11:17:14 »

Great stuff. Can't wait to see what is in store for Minecraft.

Current project - Rename and Sort
Offline Riven
« League of Dukes »

JGO Overlord


Medals: 784
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #204 - Posted 2010-09-04 12:53:46 »

Great stuff. Can't wait to see when Minecraft is in stores.

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

Junior Member





« Reply #205 - Posted 2010-09-04 14:09:21 »

Great stuff. Can't wait to see when stores are in Minecraft.
Offline h3ckboy

JGO Coder


Medals: 5



« Reply #206 - Posted 2010-09-04 14:40:33 »

Great stuff. Can't wait to see when you run out of places to store the money because of minecraft Wink
Offline appel

JGO Wizard


Medals: 50
Projects: 4


I always win!


« Reply #207 - Posted 2010-09-04 18:33:36 »

Doesn't the government of Sweden take at least half of that?  Grin

Congrats btw.

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

JGO Knight


Medals: 19
Projects: 1


I'm gonna wring your pants!


« Reply #208 - Posted 2010-09-04 19:07:54 »

depends on the construction of the company. ~25% in company tax. if he pays money out to himself, he will have to pay ~45% in personal income tax.

Offline h3ckboy

JGO Coder


Medals: 5



« Reply #209 - Posted 2010-09-04 19:18:34 »

depends on the construction of the company. ~25% in company tax. if he pays money out to himself, he will have to pay ~45% in personal income tax.

oh snap!!! thats ridiculous!!!!!
Pages: 1 ... 5 6 [7] 8 9 ... 16
  ignore  |  Print  
 
 

 

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

The first screenshot will be displayed as a thumbnail.

Nickropheliac (16 views)
2014-08-31 22:59:12

TehJavaDev (23 views)
2014-08-28 18:26:30

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

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

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

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

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

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

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

BurntPizza (49 views)
2014-08-09 21:09:32
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!