Moderator: Cartographers
Premier2k wrote:Thanks Sinc!
I'm just fixing an issue with killer neutrals and I'm going to open this up to everyone to download as Version 1 released.
A question....Is there a map that starts as non neutral that is a killer neutral? Or is every killer neutral always start as a neutral?
Premier2k
natty_dread wrote:Do ponies have sex?
(proud member of the Occasionally Wrongly Banned)Army of GOD wrote:the term heterosexual is offensive. I prefer to be called "normal"
WidowMakers wrote:I just did a test XML file and it worked well. But when i went to edit the file, the program crashed.
Premier2k wrote:Hi guys,
I'm currently working on the import function. The way I have been exporting the data has caused problems when trying to import. I'm going to have to rethink the way that I do this. I don't want to drop this as it's a major part of the application. But it could take some time to fix.
I'm thinking of using XML serialization to handle the import and export but as i'm not too familiar with this I'm gonna have to take some time to learn this part
Thanks for your continued support guys!
Premier2k
natty_dread wrote:I was wrong
gimil wrote:I don't mind doing some testing 2k if you need any more hands. I am currently running windows 7 home premium.
natty_dread wrote:Exporting a text-based file format such as xml is easier than importing one. Or at least, from what I remember of when I used to do coding, and that was several years ago... things might have changed since then...
cairnswk wrote:Since you already got capacity to export as .txt, can't you import the .txt. file also?
public Continents(string cname, int bonus, bool cbP, bool cbO, ArrayList AssignedTList)
public Territories(string tname, int sx, int sy, int lx, int ly, bool cbS, bool cbK, bool cbN, bool cbB)
: this(tname, sx, sy, lx, ly, cbS, cbK, cbN, cbB, 0, null, null)
{
}
public Territories(string tname, int sx, int sy, int lx, int ly, bool cbS, bool cbK, bool cbN, bool cbB, int neutVal)
: this(tname, sx, sy, lx, ly, cbS, cbK, cbN, cbB, neutVal, null, null)
{
}
public Territories(string tname, int sx, int sy, int lx, int ly, bool cbS, bool cbK, bool cbN, bool cbB, int neutVal, ArrayList border)
: this(tname, sx, sy, lx, ly, cbS, cbK, cbN, cbB, neutVal, border, null)
{
}
yeti_c wrote:What language are you using?
If you were using Java there are a load of XML parsers such as JDOM - which do it all for you...
I can see you're not using Java - and I assume it's C or some description...
I assume that C *must* have some standard XML factories that you could include and use?
C.
yeti_c wrote:What language are you using?
If you were using Java there are a load of XML parsers such as JDOM - which do it all for you...
I can see you're not using Java - and I assume it's C or some description...
I assume that C *must* have some standard XML factories that you could include and use?
C.
ender516 wrote:yeti_c wrote:What language are you using?
If you were using Java there are a load of XML parsers such as JDOM - which do it all for you...
I can see you're not using Java - and I assume it's C or some description...
I assume that C *must* have some standard XML factories that you could include and use?
C.
A quick Google of "XML C library" or "XML C read write" gives two sets of candidates. Toss in "free" or "C++" or "C#" as you see fit.
A quick look shows xmlsoft.org has code used for the Gnome project (desktop environment built on free and open source software) whose licensing looks pretty easy to meet (put a copyright notice in your About dialog, I think).
Users browsing this forum: No registered users