Java-Gaming.org Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (741)
Games in Android Showcase (225)
games submitted by our members
Games in WIP (823)
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  
  Something simple, like Properties, but better?  (Read 2131 times)
0 Members and 1 Guest are viewing this topic.
Offline appel

JGO Wizard


Medals: 80
Projects: 4


I always win!


« Posted 2006-04-22 21:53:58 »

Is there a package out there that's like Properties, but only better?

I can't really bother myself with all those overly bloated XML packages containing 300 classes and takes forever to learn how to use. I just want something simple, to the point, like Properties, but more advanced.

I want to define my game objects, such as units, their configuration, structures etc.

Offline Mr_Light

Senior Devvie


Medals: 1


shiny.


« Reply #1 - Posted 2006-04-22 22:18:15 »

dom4j
commons configuration

not sure about your pricise need.

It's harder to read code than to write it. - it's even harder to write readable code.

The gospel of brother Riven: "The guarantee that all bugs are in *your* code is worth gold." Amen brother a-m-e-n.
Offline appel

JGO Wizard


Medals: 80
Projects: 4


I always win!


« Reply #2 - Posted 2006-04-23 10:57:13 »

That's what I meant by a overly bloated api, and a overkill system for something simple that I want to use it for.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Mr_Light

Senior Devvie


Medals: 1


shiny.


« Reply #3 - Posted 2006-04-23 11:59:01 »

what do you need to store?

It's harder to read code than to write it. - it's even harder to write readable code.

The gospel of brother Riven: "The guarantee that all bugs are in *your* code is worth gold." Amen brother a-m-e-n.
Offline appel

JGO Wizard


Medals: 80
Projects: 4


I always win!


« Reply #4 - Posted 2006-04-23 12:25:49 »

My game is like C&C.

You have many races (2 to begin with), each race has it's own type of vehicles; air units, ground units, naval units.

Each of those units have different configuration; forward speed, reverse speed, rotational speed, shoot frequency, shoot range, shoot damage, bullet type, etc etc.

etc.

A fairly common case. No common solutions?
Offline Riven
Administrator

« JGO Overlord »


Medals: 1324
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #5 - Posted 2006-04-23 12:36:50 »

The INI format sounds perfect for your problem. Even RA1 used it to store unit-settings.



[tank]
a=x
b=y
c=z

[ship]
a=p
b=q
c=r



Trival to write an exporter + parser for it.

HTH

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

JGO Wizard


Medals: 80
Projects: 4


I always win!


« Reply #6 - Posted 2006-04-23 13:39:54 »

Thanks, I found ini4j after your suggestion. INI4J seems to be a very clever system, check it out:
http://ini4j.sourceforge.net/tutorial.html
Pages: [1]
  ignore  |  Print  
 
 

 
Ecumene (110 views)
2017-09-30 02:57:34

theagentd (147 views)
2017-09-26 18:23:31

cybrmynd (245 views)
2017-08-02 12:28:51

cybrmynd (241 views)
2017-08-02 12:19:43

cybrmynd (241 views)
2017-08-02 12:18:09

Sralse (254 views)
2017-07-25 17:13:48

Archive (874 views)
2017-04-27 17:45:51

buddyBro (1024 views)
2017-04-05 03:38:00

CopyableCougar4 (1578 views)
2017-03-24 15:39:42

theagentd (1374 views)
2017-03-24 15:32:08
List of Learning Resources
by elect
2017-03-13 14:05:44

List of Learning Resources
by elect
2017-03-13 14:04:45

SF/X Libraries
by philfrei
2017-03-02 08:45:19

SF/X Libraries
by philfrei
2017-03-02 08:44:05

SF/X Libraries
by SkyAphid
2017-03-02 06:38:56

SF/X Libraries
by SkyAphid
2017-03-02 06:38:32

SF/X Libraries
by SkyAphid
2017-03-02 06:38:05

SF/X Libraries
by SkyAphid
2017-03-02 06:37:51
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!