[Online] Map XML Wizard

How to make a map. Official Handbook, Guides, Tutorials and more...

Moderators: Cartographers, Global Moderators

Forum rules
Please read the Community Guidelines before posting.

Re: NEW Map XML Wizard

Postby natty dread on Mon Jan 25, 2010 7:24 pm

the.killing.44 wrote:
natty_dread wrote:Oh, and another small thing: when territory or continent names have non-standard characters, like ä, ö and such, that require to be coded with &-codes in the XML, they are not however... They appear in the XML as they are. Could it be made so that they automatically get encoded into those &xxx codes?

(also when you load an XML file, and it has special characters, they show up as those weird blocks with hex numbers in the XML wizard).

They don't need to be &xxx codes.


Really? Didn't they used to need to be, though?

If that's the case however, then disregard this suggestion - except the part that when reloading an XML file the characters are shown wrong in the wizard.
Image
User avatar
Sergeant 1st Class natty dread
 
Posts: 13254
Joined: Fri Feb 08, 2008 8:58 pm
Location: fucked off
Medals: 49
Standard Achievement (2) Doubles Achievement (2) Triples Achievement (1) Quadruples Achievement (1) Terminator Achievement (2)
Manual Troops Achievement (1) Nuclear Spoils Achievement (1) Fog of War Achievement (1) Teammate Achievement (1) Cross-Map Achievement (3)
Ratings Achievement (3) General Achievement (12) Map Contribution (12) General Contribution (7)

Re: NEW Map XML Wizard

Postby the.killing.44 on Mon Jan 25, 2010 7:45 pm

natty_dread wrote:
the.killing.44 wrote:
natty_dread wrote:Oh, and another small thing: when territory or continent names have non-standard characters, like ä, ö and such, that require to be coded with &-codes in the XML, they are not however... They appear in the XML as they are. Could it be made so that they automatically get encoded into those &xxx codes?

(also when you load an XML file, and it has special characters, they show up as those weird blocks with hex numbers in the XML wizard).

They don't need to be &xxx codes.


Really? Didn't they used to need to be, though?

If that's the case however, then disregard this suggestion - except the part that when reloading an XML file the characters are shown wrong in the wizard.

Nah, going back to Berlin 1961 and Iceland, the XML's show ø, ü, ß, etc.
User avatar
Major the.killing.44
 
Posts: 4737
Joined: Thu Oct 23, 2008 7:43 pm
Location: now tell me what got two gums and knows how to spit rhymes
Medals: 47
Standard Achievement (3) Doubles Achievement (3) Triples Achievement (2) Quadruples Achievement (2) Terminator Achievement (1)
Assassin Achievement (2) Manual Troops Achievement (2) Freestyle Achievement (3) Nuclear Spoils Achievement (1) Fog of War Achievement (2)
Speed Achievement (3) Cross-Map Achievement (3) Ratings Achievement (3) Tournament Achievement (3) General Achievement (3)
Clan Achievement (3) Map Contribution (2) Tournament Contribution (2) General Contribution (4)

Re: NEW Map XML Wizard

Postby chipv on Tue Jan 26, 2010 3:22 am

cairnswk wrote:I haven't read the thread, so please forgive.

Would it be possible to use the bottom frame of the page to generate the xml, so that we can see each step as we add it, to know what we have done is correct.
For me, without this is, it's like writing in the dark. i like to be able to see what is being generated automatically.
Also, for the text that is generated, there are no indents. Is this possible to add?



Not much room to play with on big maps but I do have a solution for you, maybe do it this evening.
User avatar
Colonel chipv
 
Posts: 2758
Joined: Mon Apr 28, 2008 5:30 pm
Medals: 44
Standard Achievement (2) Doubles Achievement (2) Triples Achievement (2) Quadruples Achievement (2) Terminator Achievement (2)
Manual Troops Achievement (1) Freestyle Achievement (1) Nuclear Spoils Achievement (2) Fog of War Achievement (2) Cross-Map Achievement (3)
Ratings Achievement (2) Tournament Achievement (5) General Achievement (2) Clan Achievement (5) Map Contribution (1)
General Contribution (10)

Re: NEW Map XML Wizard

Postby natty dread on Tue Jan 26, 2010 4:55 am

the.killing.44 wrote:Nah, going back to Berlin 1961 and Iceland, the XML's show ø, ü, ß, etc.


Doesn't work on my xml.
Image
User avatar
Sergeant 1st Class natty dread
 
Posts: 13254
Joined: Fri Feb 08, 2008 8:58 pm
Location: fucked off
Medals: 49
Standard Achievement (2) Doubles Achievement (2) Triples Achievement (1) Quadruples Achievement (1) Terminator Achievement (2)
Manual Troops Achievement (1) Nuclear Spoils Achievement (1) Fog of War Achievement (1) Teammate Achievement (1) Cross-Map Achievement (3)
Ratings Achievement (3) General Achievement (12) Map Contribution (12) General Contribution (7)

Re: NEW Map XML Wizard

Postby ender516 on Tue Jan 26, 2010 9:08 am

natty_dread wrote:
the.killing.44 wrote:Nah, going back to Berlin 1961 and Iceland, the XML's show ø, ü, ß, etc.


Doesn't work on my xml.

I wonder if adding the encoding="UTF-8" information to the first line of the XML would help things? It's used by the Greenland XML, which doesn't use the & codes, and not used by the Wales XML, which does. Since the site has gone to this encoding, it seems like a good standard to apply.
User avatar
Sergeant 1st Class ender516
Tech Contributor
Tech Contributor
 
Posts: 4451
Joined: Wed Dec 17, 2008 6:07 pm
Location: Waterloo, Ontario
Medals: 37
Standard Achievement (2) Doubles Achievement (1) Triples Achievement (1) Quadruples Achievement (1) Freestyle Achievement (1)
Fog of War Achievement (1) Teammate Achievement (1) Cross-Map Achievement (1) Ratings Achievement (3) General Achievement (9)
Map Contribution (5) General Contribution (11)

Re: NEW Map XML Wizard

Postby yeti_c on Tue Jan 26, 2010 2:14 pm

the.killing.44 wrote:Nah, going back to Berlin 1961 and Iceland, the XML's show ø, ü, ß, etc.


You need to load your XML in a text editor - and not a browser?!

C.
Image
Highest score : 2297
User avatar
Lieutenant yeti_c
 
Posts: 9670
Joined: Thu Jan 04, 2007 9:02 am
Medals: 46
Standard Achievement (2) Doubles Achievement (2) Triples Achievement (2) Quadruples Achievement (3) Terminator Achievement (1)
Assassin Achievement (1) Freestyle Achievement (1) Fog of War Achievement (3) Cross-Map Achievement (3) Ratings Achievement (3)
General Achievement (1) Map Contribution (13) Tournament Contribution (1) General Contribution (10)

Re: NEW Map XML Wizard

Postby the.killing.44 on Tue Jan 26, 2010 4:34 pm

yeti_c wrote:
the.killing.44 wrote:Nah, going back to Berlin 1961 and Iceland, the XML's show ø, ü, ß, etc.


You need to load your XML in a text editor - and not a browser?!

C.

Well I wrote the thing using ø's, soooo…

ender has a very good point—I think that's the source of it. UTF-8 is the thing that recognizes special characters.
User avatar
Major the.killing.44
 
Posts: 4737
Joined: Thu Oct 23, 2008 7:43 pm
Location: now tell me what got two gums and knows how to spit rhymes
Medals: 47
Standard Achievement (3) Doubles Achievement (3) Triples Achievement (2) Quadruples Achievement (2) Terminator Achievement (1)
Assassin Achievement (2) Manual Troops Achievement (2) Freestyle Achievement (3) Nuclear Spoils Achievement (1) Fog of War Achievement (2)
Speed Achievement (3) Cross-Map Achievement (3) Ratings Achievement (3) Tournament Achievement (3) General Achievement (3)
Clan Achievement (3) Map Contribution (2) Tournament Contribution (2) General Contribution (4)

Re: NEW Map XML Wizard

Postby chipv on Tue Jan 26, 2010 5:07 pm

natty_dread wrote:
the.killing.44 wrote:Nah, going back to Berlin 1961 and Iceland, the XML's show ø, ü, ß, etc.


Doesn't work on my xml.


I have corrected your xml and uploaded it for you

http://www.fileden.com/files/2008/5/8/1902058/natty.xml

The old system used HTML special & characters but much easier is the current method.

You have to do 2 things:

1. Specify UTF-8 character set (see your XML source) but this is not enough
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>

2. You actually have to SAVE your XML as UTF-8 (you can do this in notepad by using Save As) otherwise it's in the wrong format.

If you view your XML, and it has the right encoding, but garbage characters then it's probably saved in the wrong format.

The Wizard shows Greenland, Iceland, your new XML whatever correctly.
User avatar
Colonel chipv
 
Posts: 2758
Joined: Mon Apr 28, 2008 5:30 pm
Medals: 44
Standard Achievement (2) Doubles Achievement (2) Triples Achievement (2) Quadruples Achievement (2) Terminator Achievement (2)
Manual Troops Achievement (1) Freestyle Achievement (1) Nuclear Spoils Achievement (2) Fog of War Achievement (2) Cross-Map Achievement (3)
Ratings Achievement (2) Tournament Achievement (5) General Achievement (2) Clan Achievement (5) Map Contribution (1)
General Contribution (10)

Re: NEW Map XML Wizard

Postby ender516 on Tue Jan 26, 2010 7:00 pm

Would it make sense for the Wizard to put in the encoding="UTF-8" on new XML it creates? Right now, I think it does not. (Maybe there should be a button, or a place to type in the encoding you want to use.)
User avatar
Sergeant 1st Class ender516
Tech Contributor
Tech Contributor
 
Posts: 4451
Joined: Wed Dec 17, 2008 6:07 pm
Location: Waterloo, Ontario
Medals: 37
Standard Achievement (2) Doubles Achievement (1) Triples Achievement (1) Quadruples Achievement (1) Freestyle Achievement (1)
Fog of War Achievement (1) Teammate Achievement (1) Cross-Map Achievement (1) Ratings Achievement (3) General Achievement (9)
Map Contribution (5) General Contribution (11)

Re: NEW Map XML Wizard

Postby chipv on Tue Jan 26, 2010 7:05 pm

ender516 wrote:Would it make sense for the Wizard to put in the encoding="UTF-8" on new XML it creates? Right now, I think it does not. (Maybe there should be a button, or a place to type in the encoding you want to use.)


Yes, I am doing that , but people have to save it in the right format for it to display correctly after load as described above.

I suspect lack goes ahead and does this step anyway, I'll ask him.
User avatar
Colonel chipv
 
Posts: 2758
Joined: Mon Apr 28, 2008 5:30 pm
Medals: 44
Standard Achievement (2) Doubles Achievement (2) Triples Achievement (2) Quadruples Achievement (2) Terminator Achievement (2)
Manual Troops Achievement (1) Freestyle Achievement (1) Nuclear Spoils Achievement (2) Fog of War Achievement (2) Cross-Map Achievement (3)
Ratings Achievement (2) Tournament Achievement (5) General Achievement (2) Clan Achievement (5) Map Contribution (1)
General Contribution (10)

Re: NEW Map XML Wizard

Postby chipv on Tue Jan 26, 2010 7:45 pm

cairnswk wrote:You have the window divided into two sections now....left fo map and right for input.

Would it be possible to use the bottom frame of the page to generate the xml, so that we can see each step as we add it, to know what we have done is correct.
For me, without this is, it's like writing in the dark. i like to be able to see what is being generated automatically.
Also, for the text that is generated, there are no indents. Is this possible to add?



Text indents will definitely be added.
You can click on Show XML button anytime to see what you've done.
Problem with always displaying the xml is that it would have to be recalculated on any user event on the screen
which will probably slow everything down somewhat. I was considering adding a tab but then thought maybe clicking on
Show XML is ok since it can be clicked anytime?

If not, I will have to see how the recalcs slow events down.
User avatar
Colonel chipv
 
Posts: 2758
Joined: Mon Apr 28, 2008 5:30 pm
Medals: 44
Standard Achievement (2) Doubles Achievement (2) Triples Achievement (2) Quadruples Achievement (2) Terminator Achievement (2)
Manual Troops Achievement (1) Freestyle Achievement (1) Nuclear Spoils Achievement (2) Fog of War Achievement (2) Cross-Map Achievement (3)
Ratings Achievement (2) Tournament Achievement (5) General Achievement (2) Clan Achievement (5) Map Contribution (1)
General Contribution (10)

Re: NEW Map XML Wizard

Postby chipv on Thu Jan 28, 2010 4:43 pm

XML is now indented. Also empty tags are automatically stripped (as it will fail the XML check)
User avatar
Colonel chipv
 
Posts: 2758
Joined: Mon Apr 28, 2008 5:30 pm
Medals: 44
Standard Achievement (2) Doubles Achievement (2) Triples Achievement (2) Quadruples Achievement (2) Terminator Achievement (2)
Manual Troops Achievement (1) Freestyle Achievement (1) Nuclear Spoils Achievement (2) Fog of War Achievement (2) Cross-Map Achievement (3)
Ratings Achievement (2) Tournament Achievement (5) General Achievement (2) Clan Achievement (5) Map Contribution (1)
General Contribution (10)

Re: NEW Map XML Wizard

Postby chipv on Tue Feb 02, 2010 4:22 pm

Two useful additions:

Official CC schema check added

Validation is exactly the same as the CC validation. If your XML passes this check, it will pass the Final Forge check.

Local Files

You can load local files now. Same validation is done and the XML is auto loaded.
User avatar
Colonel chipv
 
Posts: 2758
Joined: Mon Apr 28, 2008 5:30 pm
Medals: 44
Standard Achievement (2) Doubles Achievement (2) Triples Achievement (2) Quadruples Achievement (2) Terminator Achievement (2)
Manual Troops Achievement (1) Freestyle Achievement (1) Nuclear Spoils Achievement (2) Fog of War Achievement (2) Cross-Map Achievement (3)
Ratings Achievement (2) Tournament Achievement (5) General Achievement (2) Clan Achievement (5) Map Contribution (1)
General Contribution (10)

Re: NEW Map XML Wizard

Postby natty dread on Tue Feb 02, 2010 5:07 pm

chipv wrote:Local Files

You can load local files now. Same validation is done and the XML is auto loaded.


That's great. It would go well with an option of downloading the XML straight to your harddrive. It would save the trouble of copying the XML to a text editor and saving it...
Image
User avatar
Sergeant 1st Class natty dread
 
Posts: 13254
Joined: Fri Feb 08, 2008 8:58 pm
Location: fucked off
Medals: 49
Standard Achievement (2) Doubles Achievement (2) Triples Achievement (1) Quadruples Achievement (1) Terminator Achievement (2)
Manual Troops Achievement (1) Nuclear Spoils Achievement (1) Fog of War Achievement (1) Teammate Achievement (1) Cross-Map Achievement (3)
Ratings Achievement (3) General Achievement (12) Map Contribution (12) General Contribution (7)

Re: UPDATED Map XML Wizard

Postby chipv on Fri Feb 05, 2010 8:18 pm

Just fixed a problem in IE, but also makes other browsers smoother for local file load.
User avatar
Colonel chipv
 
Posts: 2758
Joined: Mon Apr 28, 2008 5:30 pm
Medals: 44
Standard Achievement (2) Doubles Achievement (2) Triples Achievement (2) Quadruples Achievement (2) Terminator Achievement (2)
Manual Troops Achievement (1) Freestyle Achievement (1) Nuclear Spoils Achievement (2) Fog of War Achievement (2) Cross-Map Achievement (3)
Ratings Achievement (2) Tournament Achievement (5) General Achievement (2) Clan Achievement (5) Map Contribution (1)
General Contribution (10)

PreviousNext

Return to Tools & Guides

Who is online

Users browsing this forum: No registered users and 1 guest

Login