Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / How to use XML files in Dark GDK?

Author
Message
Ovan35
15
Years of Service
User Offline
Joined: 25th Sep 2009
Location:
Posted: 7th Jan 2010 01:24
I was thinking about making a dating sim game with dark gdk.I was trying to figure out how to handle the no doubt huge amount of dialogue you will have that just comes along with making anything story driven.So I visited several forums and someone suggested using XML files to handle it rather than hard coding.I've looked around google to try and find a tutorial on the subject of handling XML files in dark GDK but none of the ones checked so far gave me any real info.Does anyone here know a resource I could check out.I am relatively new to Dark GDK and programming in general but I am eager to learn.

It was such a small seed... I needed to find out what was growing inside. And there was only one way to find out. So I decided to raise it.

lesPaul456
15
Years of Service
User Offline
Joined: 8th Apr 2009
Location:
Posted: 7th Jan 2010 04:17
I don't think that DarkGDK has this functionality built-in, but any third party library would work.

Here's a pretty good one: http://www.grinninglizard.com/tinyxml/.

Here's another (not as good): http://www.mindcontrol.org/~hplus/xmlscan.html
TechLord
21
Years of Service
User Offline
Joined: 19th Dec 2002
Location: TheGameDevStore.com
MACRO
21
Years of Service
User Offline
Joined: 10th Jun 2003
Location:
Posted: 17th Jan 2010 00:13
Hey,

I don't know if you already have a solution but if not take a look at LMX (http://www.codalogic.com/). They have a free version that provides really effective XML to c++ data binding by compiling XML schema files into c++ source.

I tried it out today and its awesome!!! I have been looking for something like this for ages because I am a regular XMLBeans user in Java but all the c++ solutions I found were mega expensive... Until I stumbled onto this.

MACRO

Login to post a reply

Server time is: 2024-11-19 11:00:30
Your offset time is: 2024-11-19 11:00:30