Moderator: Cartographers
I would hope that a killer neutral would start as neutral, otherwise a player would automatically lose a territory after the drop: hardly seems fair.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"

Yes same happened for me WM.WidowMakers wrote:I just did a test XML file and it worked well. But when i went to edit the file, the program crashed.

Since you already got capacity to export as .txt, can't you import the .txt. file also?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


Top Score:2403natty_dread wrote:I was wrong
I may take you up on that offer Gimil as I haven't yet set up a Windows 7 platform to test on, there will a short delay on this for a while though. My current project at work is drawing to a close and so there's a lot of work to be done.gimil wrote:I don't mind doing some testing 2k if you need any more hands. I am currently running windows 7 home premium.
Yes exporting is no problem, I handle exporting the data in any way I wish. However importing is much harder as I have to include some data verification to ensuring that the data is being imported is valid, and that's assuming that I know the structure of how the data is written to the file, otherwise this can cause some pretty nasty defects(bugs).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...
I can, but it's not the file format that is causing issues it's the way that I import the data that needs to be handled correctly, I can export in any way I wish - be it .txt, .exp, .rtf, .xml - etc etc... I need to ensure I have correct data validation so that the data is imported correctly from the file. For example, I don't want to be populating a Territories arraylist item with the contents of a Continents arraylist item. I need to make sure that I'm importing the correct item to the correct arraylist.cairnswk wrote:Since you already got capacity to export as .txt, can't you import the .txt. file also?
Code: Select all
public Continents(string cname, int bonus, bool cbP, bool cbO, ArrayList AssignedTList)Code: Select all
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)
{
}
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.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.
I'm using C# and looking into xml serialization, I think I may be onto something...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.
I'm also looking at xmlsoft.org, this looks like something I could use!ender516 wrote: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.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 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).