Java-Gaming.org Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (727)
Games in Android Showcase (217)
games submitted by our members
Games in WIP (796)
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 1796 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: 1277
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  
 
 
You cannot reply to this message, because it is very, very old.

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

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

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

theagentd (946 views)
2017-03-24 15:32:08

Rule (955 views)
2017-03-19 12:43:22

Rule (924 views)
2017-03-19 12:42:17

Rule (925 views)
2017-03-19 12:36:21

theagentd (988 views)
2017-03-16 05:07:07

theagentd (900 views)
2017-03-15 22:37:06

theagentd (696 views)
2017-03-15 22:32:18
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!