Author Topic: Beggar  (Read 58766 times)

valianjuan

  • Newcomer
  • Posts: 27
  • Karma: +0/-0
    • View Profile
    • Beggar
Re: Beggar
« Reply #15 on: October 15, 2007, 05:25:09 AM »
I'm not sure I understood what you just said.  :-\
Anyway, as an update, I've got the parser running using JDOM.  ;D Now i just have to link the parser with the game... ??? not so easy as my xml is more robust than my engine... :P well... hopefully by the end of the week. :-*

Anvilfolk

  • Rogueliker
  • ***
  • Posts: 374
  • Karma: +0/-0
    • View Profile
Re: Beggar
« Reply #16 on: October 15, 2007, 09:22:41 AM »
I believe what he said, and what I sort of suggested, is that you don't link to the parser directly. A tree isn't really the best way to have all the information about your game. There are more efficient ways of accessing information.

Also, making your engine depend on JDOM primitives might not be a good idea. If some day you want to change JDOM to something else, all you need to do is rewrite the one function that gets all the data from the XML tree, and puts it in the according datastructures, within your classes.

If you have JDOM primitives (nodes, I'm assuming) scattered all over your classes, it'll be a pain.

So, I guess the suggestion is: use JDOM as an interface to get all the hard data out of the XML. Copy that data over to your classes, and dump the JDOM XML tree.
"Get it hot! Hit it harder!!!"
 - The tutor warcry

One of They Who Are Too Busy

valianjuan

  • Newcomer
  • Posts: 27
  • Karma: +0/-0
    • View Profile
    • Beggar
Re: Beggar
« Reply #17 on: October 15, 2007, 02:51:09 PM »
Ah! I see what you're saying. :)

I preloaded everything... meaning I parse the file, translate it to a game class that acts like a database for me.
So, I believe I got it!  ;D

Slash

  • Creator of Roguetemple
  • Administrator
  • Rogueliker
  • *****
  • Posts: 1203
  • Karma: +4/-1
    • View Profile
    • Slashie.net
    • Email
Re: Beggar
« Reply #18 on: October 15, 2007, 10:38:37 PM »
Well, that's not quite what I meant, though that's true too :P

I mean, when you get to the point of assigning meaningful (and balanced) stats to your items and monsters, you will have a better time if you process the data in a spreadsheet instead of having a flat text file as in XML, as you can apply functions to each entity stats, and get to compare each one stats in-between.

valianjuan

  • Newcomer
  • Posts: 27
  • Karma: +0/-0
    • View Profile
    • Beggar
Re: Beggar
« Reply #19 on: October 16, 2007, 02:56:16 AM »
That is a good point!  :D
It would be a great deal easier to do it in a spreadsheet from the client side. Hmmm...
I'll have to ponder on that one a bit.

Here's a question for you though,
If you were write a game where the game files are easily manipulated (as in where monster stats are kept in a spreadsheet or XML) would you give up some of the fun parts of say, maintaining a high score list?  Does it matter and will people get around it regardless?

corremn

  • Rogueliker
  • ***
  • Posts: 700
  • Karma: +0/-0
  • SewerJack Extraordinaire
    • View Profile
    • Demise RogueLike Games
Re: Beggar
« Reply #20 on: October 16, 2007, 03:56:07 AM »
Highscores wont be compatable with anyone elses but the important part is that the player can see improvement, and judge success by the final result.  I doubt it that most people will modify the data files regularly that much anyway.
corremn's Roguelikes. To admit defeat is to blaspheme against the Emperor.  Warhammer 40000 the Roguelike

valianjuan

  • Newcomer
  • Posts: 27
  • Karma: +0/-0
    • View Profile
    • Beggar
Re: Beggar
« Reply #21 on: October 17, 2007, 03:49:24 AM »
Finally stable enough to put up an update!   :P  (www.sf.net/projects/beggar)
Check out the xml and cvs inputs (Thanks slash :D and everyone else)
The next order of business is to allow switching between maps... (coming soon!)

Slash

  • Creator of Roguetemple
  • Administrator
  • Rogueliker
  • *****
  • Posts: 1203
  • Karma: +4/-1
    • View Profile
    • Slashie.net
    • Email
Re: Beggar
« Reply #22 on: October 18, 2007, 05:06:49 AM »
Here's a question for you though,
If you were write a game where the game files are easily manipulated (as in where monster stats are kept in a spreadsheet or XML) would you give up some of the fun parts of say, maintaining a high score list?  Does it matter and will people get around it regardless?
Well, my high score lists are plain text files up to now :), I regard trying to protect it as something unneeded

On the other hand, I use encrypted XML for data files

valianjuan

  • Newcomer
  • Posts: 27
  • Karma: +0/-0
    • View Profile
    • Beggar
Re: Beggar
« Reply #23 on: October 18, 2007, 09:45:13 PM »
 :D Version 0.5.0!
The xml inputs are working pretty well with my initial tests.  We'll see what comes up after a start trying to flex the parser muscles.  Also added resting blah blah ... etc etc
I think the slime game I made for testing might become a game in it's own right.  Or at least a minigame. ;D

www.sf.net/projects/beggar

valianjuan

  • Newcomer
  • Posts: 27
  • Karma: +0/-0
    • View Profile
    • Beggar
Re: Beggar
« Reply #24 on: October 21, 2007, 05:28:40 AM »
 :D Expanded the slime game for fun!  (v. 0.5.1)  ;D
With it came some of the features I've been meaning to put in, but didn't have the motivation until now.

valianjuan

  • Newcomer
  • Posts: 27
  • Karma: +0/-0
    • View Profile
    • Beggar
Re: Beggar
« Reply #25 on: October 28, 2007, 03:17:09 AM »
Guess I hadn't posted in a while.  ::)
Has anyone here tried the game recently?
Any suggestions?
Thanks!