Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Using XML with RGSS?

Is it possible to use XML in RGSS?

Like if I wanted to do a map system(not that i would, XP's is fine), can i build the map from XML, and use it with RMXP?
 

Zeriab

Sponsor

Yes, definitely.
How to represent it is up to you.

XML is simply a way of storing data.
The bonus of it is that it's fairly human readable. At least much more than marshalled ruby objects.

Why do you want to store something in XML?
What are you trying to achieve?
Do you want to conform to some standards? Want to use XML Schemas to define the structures of your XML documents?

You shouldn't use XML just for the hell of it. I want to know what you are trying to archive so I can help you better.

*hugs*
 
I was kinda thinking I could use XML for any number of things. My first goal is to create the parser, of course. I could make a way to load custom maps from XML files, I could use XML to store configuration data for a game(i'd use a marshalled *.rxdata file, but it wouldn't be customizable outside the game), I could use XML to keep a list of add-ons and mods if i ever made a game capable of handling them... there's many possibilities.

I think I'll try making a map loader after I make the Parser, as more of a test of what I can do.

Oh, and on the subject of marshalled ruby objects, have you ever looked at the text-equivalent of one? It looks amazingly ccomplex, but if you think about the way it was saved, it's basically just "this variable is equal to this value".
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top