Conquer Club

[Online] Map XML Wizard

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

Moderator: Cartographers

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: 12877
Joined: Fri Feb 08, 2008 8:58 pm
Location: just plain fucked

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
Captain the.killing.44
 
Posts: 4724
Joined: Thu Oct 23, 2008 7:43 pm
Location: now tell me what got two gums and knows how to spit rhymes

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
Captain chipv
 
Posts: 2750
Joined: Mon Apr 28, 2008 5:30 pm

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: 12877
Joined: Fri Feb 08, 2008 8:58 pm
Location: just plain fucked

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
 
Posts: 4455
Joined: Wed Dec 17, 2008 6:07 pm
Location: Waterloo, Ontario

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: 9624
Joined: Thu Jan 04, 2007 9:02 am

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
Captain the.killing.44
 
Posts: 4724
Joined: Thu Oct 23, 2008 7:43 pm
Location: now tell me what got two gums and knows how to spit rhymes

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
Captain chipv
 
Posts: 2750
Joined: Mon Apr 28, 2008 5:30 pm

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
 
Posts: 4455
Joined: Wed Dec 17, 2008 6:07 pm
Location: Waterloo, Ontario

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
Captain chipv
 
Posts: 2750
Joined: Mon Apr 28, 2008 5:30 pm

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
Captain chipv
 
Posts: 2750
Joined: Mon Apr 28, 2008 5:30 pm

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
Captain chipv
 
Posts: 2750
Joined: Mon Apr 28, 2008 5:30 pm

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
Captain chipv
 
Posts: 2750
Joined: Mon Apr 28, 2008 5:30 pm

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: 12877
Joined: Fri Feb 08, 2008 8:58 pm
Location: just plain fucked

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
Captain chipv
 
Posts: 2750
Joined: Mon Apr 28, 2008 5:30 pm

Re: UPDATED Map XML Wizard

Postby chipv on Tue Mar 02, 2010 5:07 pm

New feature.

Army Numbers added.

When playing a game, instead of the coloured 88s you now get the real army numbers instead.

This now looks exactly like the CC game.
Thanks to lackattack for providing me with the dropshadow code - that now makes the Wizard armies look the same as CC's.

So far I have implemented killer neutrals and autodeploys (the army numbers change automatically as in the game).
Use this to see exactly what the initial drop will look like in terms of numbers of armies.

Starting positions and everything is calculated as you would expect and Map Inspect reflects the number of armies on that territory too.
User avatar
Captain chipv
 
Posts: 2750
Joined: Mon Apr 28, 2008 5:30 pm

Re: UPDATED Map XML Wizard

Postby natty dread on Tue Mar 02, 2010 5:46 pm

Nice! I'll have to try that out...
Image
User avatar
Sergeant 1st Class natty dread
 
Posts: 12877
Joined: Fri Feb 08, 2008 8:58 pm
Location: just plain fucked

Re: UPDATED Map XML Wizard

Postby natty dread on Wed Mar 10, 2010 12:16 pm

Not sure if this has been reported, but the coordinates (the 88:s) seem to be in different positions when red or white. When they're red they're 1 pixel to the left, when white they move 1 pixel to the right...
Image
User avatar
Sergeant 1st Class natty dread
 
Posts: 12877
Joined: Fri Feb 08, 2008 8:58 pm
Location: just plain fucked

Re: UPDATED Map XML Wizard

Postby chipv on Wed Mar 10, 2010 12:23 pm

natty_dread wrote:Not sure if this has been reported, but the coordinates (the 88:s) seem to be in different positions when red or white. When they're red they're 1 pixel to the left, when white they move 1 pixel to the right...


Dead easy to fix.

Can you let me know by colour what the pixel offsets are please?

(e.g. Red incorrect 1px to left)
User avatar
Captain chipv
 
Posts: 2750
Joined: Mon Apr 28, 2008 5:30 pm

Re: UPDATED Map XML Wizard

Postby natty dread on Wed Mar 10, 2010 1:35 pm

Well, the red 88 seems to be in correct position actually.

White 88 is one to the right.

The coloured 3:s seem to be one pixel up.
Image
User avatar
Sergeant 1st Class natty dread
 
Posts: 12877
Joined: Fri Feb 08, 2008 8:58 pm
Location: just plain fucked

Re: UPDATED Map XML Wizard

Postby natty dread on Wed Mar 10, 2010 1:37 pm

Also I seem to have problems loading my XML file to the wizard...

here's my XML:

http://www.fileden.com/files/2010/2/7/2 ... _xml_1.xml


edit: never mind I think I found the problem... & signs
Image
User avatar
Sergeant 1st Class natty dread
 
Posts: 12877
Joined: Fri Feb 08, 2008 8:58 pm
Location: just plain fucked

Re: UPDATED Map XML Wizard

Postby natty dread on Wed Mar 10, 2010 1:52 pm

Actually... it seems to be the other way around, the coloured 3:s are in the right position, while red and white numbers are 1 pixel too low... sorry ;)
Image
User avatar
Sergeant 1st Class natty dread
 
Posts: 12877
Joined: Fri Feb 08, 2008 8:58 pm
Location: just plain fucked

Re: UPDATED Map XML Wizard

Postby OliverFA on Wed Mar 10, 2010 5:48 pm

You are a Master, Sir. Thanks so much for your good job! :)
Welcoming the long awaited Trench Warfare Setting (Previously Adjacent Attacks).

My Maps:
Research and Conquer - Civilization meets Conquer Club

Best score: 2,346 - Best position: #618 - Best percentile: 4.87%
User avatar
Private OliverFA
 
Posts: 2295
Joined: Wed Jul 09, 2008 4:30 am
Location: Somewhere in Spain

Re: UPDATED Map XML Wizard

Postby natty dread on Fri Mar 26, 2010 11:41 am

Why isn't this thread stickied?
Image
User avatar
Sergeant 1st Class natty dread
 
Posts: 12877
Joined: Fri Feb 08, 2008 8:58 pm
Location: just plain fucked

Re: UPDATED Map XML Wizard

Postby Evil DIMwit on Thu Apr 01, 2010 12:40 pm

On top of what's been said already, i just got a warning that said "Warning: Territory A attacks Territory B but not vice vera." Should be "vice versa."
ImageImage
User avatar
Captain Evil DIMwit
 
Posts: 1616
Joined: Thu Mar 22, 2007 1:47 pm
Location: Philadelphia, NJ

PreviousNext

Return to Tools & Guides

Who is online

Users browsing this forum: No registered users