Page 4 of 8

Re: UPDATED Map XML Wizard

PostPosted: Tue Mar 02, 2010 5:07 pm
by chipv
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.

Re: UPDATED Map XML Wizard

PostPosted: Tue Mar 02, 2010 5:46 pm
by natty dread
Nice! I'll have to try that out...

Re: UPDATED Map XML Wizard

PostPosted: Wed Mar 10, 2010 12:16 pm
by natty dread
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...

Re: UPDATED Map XML Wizard

PostPosted: Wed Mar 10, 2010 12:23 pm
by chipv
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)

Re: UPDATED Map XML Wizard

PostPosted: Wed Mar 10, 2010 1:35 pm
by natty dread
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.

Re: UPDATED Map XML Wizard

PostPosted: Wed Mar 10, 2010 1:37 pm
by natty dread
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

Re: UPDATED Map XML Wizard

PostPosted: Wed Mar 10, 2010 1:52 pm
by natty dread
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 ;)

Re: UPDATED Map XML Wizard

PostPosted: Wed Mar 10, 2010 5:48 pm
by OliverFA
You are a Master, Sir. Thanks so much for your good job! :)

Re: UPDATED Map XML Wizard

PostPosted: Fri Mar 26, 2010 11:41 am
by natty dread
Why isn't this thread stickied?

Re: UPDATED Map XML Wizard

PostPosted: Thu Apr 01, 2010 12:40 pm
by Evil DIMwit
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."

Re: UPDATED Map XML Wizard

PostPosted: Thu Apr 01, 2010 1:50 pm
by MrBenn
natty_dread wrote:Why isn't this thread stickied?


I'm not a big fan of stickyed threads - too many of them makes the forum difficult to navigate, but I do get where you're coming from. This XML Wizard is a really good tool, and would be better served in the Tools subforum. I was speaking with chipv about it last night, and ended up forgetting to move the thread... I'll do it now ;-)

[Moved]

Re: UPDATED Map XML Wizard

PostPosted: Thu Apr 01, 2010 2:06 pm
by ender516
Maybe it's time to update this post: Map Making Tools - Updated [24/11/08] The Map XML Wizard could be mentioned and any links to dead tools (I think there may be some) could be culled (or at least flagged).

Re: UPDATED Map XML Wizard

PostPosted: Thu Apr 01, 2010 2:14 pm
by MrBenn
ender516 wrote:Maybe it's time to update this post: Map Making Tools - Updated [24/11/08] The Map XML Wizard could be mentioned and any links to dead tools (I think there may be some) could be culled (or at least flagged).

One step ahead of you - it's already on my to do list!

The date on that thread is actually incorrect as things have been updated to that thread more recently than 24th Nov 2008. It'll be updated in due course :P

Re: UPDATED Map XML Wizard

PostPosted: Sat Apr 10, 2010 1:53 am
by oaktown
just wanted to say that this is a very nice addition to the foundry - thanks chipv.

Question: I used the character reference codes for special characters; eg. á instead of á. I imported my file into the Wizard to check tweak the coordinates, and it spit the new XML back out with the characters instead of the codes. If my memory serves me well, CC is alright with the characters, but BOB freaks out and requires the codes. Anybody have any thoughts in this? Should I go search and replace the codes back in?

thanks.

Re: UPDATED Map XML Wizard

PostPosted: Sat Apr 10, 2010 3:53 am
by chipv
oaktown wrote:just wanted to say that this is a very nice addition to the foundry - thanks chipv.

Question: I used the character reference codes for special characters; eg. á instead of á. I imported my file into the Wizard to check tweak the coordinates, and it spit the new XML back out with the characters instead of the codes. If my memory serves me well, CC is alright with the characters, but BOB freaks out and requires the codes. Anybody have any thoughts in this? Should I go search and replace the codes back in?

thanks.


Hi Oak, no, the requirement for using the character codes disappeared a while back. So you can retain the characters as they should be displayed but here is the info you need:

viewtopic.php?f=466&t=105494&start=75#p2422101

Re: UPDATED Map XML Wizard

PostPosted: Sat Apr 10, 2010 7:18 pm
by oaktown
thanks chip for answering the same question you had to answer just three months ago. :)

Re: UPDATED Map XML Wizard

PostPosted: Mon Apr 12, 2010 2:17 pm
by HtoOh
Hello all,
I'd really enjoy creating a map. Where do I get this software?
Thank you in advance for any assistance provided.
Benny

Re: UPDATED Map XML Wizard

PostPosted: Mon Apr 12, 2010 2:26 pm
by natty dread
You don't download the XML wizard, it's browser-based.

But you will need a graphics software first. Draw the map and don't worry about XML, the XML comes later.

Re: UPDATED Map XML Wizard

PostPosted: Sat Apr 17, 2010 9:35 pm
by chipv
Added support for new XML feature to allow continents within objectives.

Details of changes:

1. Read and display continents within objectives
2. Allow adding and deleting of continents to/from objectives (click on grey cell first)
3. Hover over objective also highlights its continents
4. Deleting a continent (using delete button) will also remove it from any continents or objectives.
5. Gameplay allows for continents within objectives
6. Validation includes latest changes to XML schema check used in Mapmaker
7. Added checks
  • Error: Objective X has component Y which does not exist as a continent
    Action: Component Y is removed from component list of Objective X.
  • Error: Objective X has multiple component entries for Y
    Action: Duplicate instances of Component Y are removed from component list of Objective X.
The multiple components now include multiple identical continents

Re: UPDATED Map XML Wizard

PostPosted: Sun Apr 18, 2010 12:55 am
by ender516
Glad to know you are keeping this tool right up to date. I have just started using it in something other than a testing mode: I am doing the XML for Napoleonic Europe 1812. I have so far only added the territories: just names at locations on the small map, no borders, or neutrals, or continents, or anything. I was a little bothered by one thing. I had created a file with the name of each territory on a line by itself and had that open in a window. I got a nice rhythm going: select a line (one territory name), copy to clipboard, click location on map in Wizard window (which creates a new territory and places the text cursor in the name field), paste from clipboard, click yellow cell to add new territory, repeat as necessary. My problem was that there was no keystroke equivalent to clicking the yellow cell. I prefer not to go back and forth between keyboard and mouse. If I could have pressed, say, Enter to signal that I was satisfied with the name and wanted to add the territory, I could then use Alt-Tab to return to the editor window with the territory names, selected and copied the next name via the keyboard, and then clicked with the mouse cursor (still over the map) to start another new point. The mouse would stay over the map where it belongs, and I would be even more productive.

Re: UPDATED Map XML Wizard

PostPosted: Sun Apr 18, 2010 6:19 am
by chipv
ender516 wrote:Glad to know you are keeping this tool right up to date. I have just started using it in something other than a testing mode: I am doing the XML for Napoleonic Europe 1812. I have so far only added the territories: just names at locations on the small map, no borders, or neutrals, or continents, or anything. I was a little bothered by one thing. I had created a file with the name of each territory on a line by itself and had that open in a window. I got a nice rhythm going: select a line (one territory name), copy to clipboard, click location on map in Wizard window (which creates a new territory and places the text cursor in the name field), paste from clipboard, click yellow cell to add new territory, repeat as necessary. My problem was that there was no keystroke equivalent to clicking the yellow cell. I prefer not to go back and forth between keyboard and mouse. If I could have pressed, say, Enter to signal that I was satisfied with the name and wanted to add the territory, I could then use Alt-Tab to return to the editor window with the territory names, selected and copied the next name via the keyboard, and then clicked with the mouse cursor (still over the map) to start another new point. The mouse would stay over the map where it belongs, and I would be even more productive.


Are you wanting to click the yellow cell for the territory you just added in order to add borders?

Yes, I can put in automatic switch to yellow on ENTER specifically on territory names.

Re: UPDATED Map XML Wizard

PostPosted: Sun Apr 18, 2010 6:21 pm
by ender516
chipv wrote:
ender516 wrote:Glad to know you are keeping this tool right up to date. I have just started using it in something other than a testing mode: I am doing the XML for Napoleonic Europe 1812. I have so far only added the territories: just names at locations on the small map, no borders, or neutrals, or continents, or anything. I was a little bothered by one thing. I had created a file with the name of each territory on a line by itself and had that open in a window. I got a nice rhythm going: select a line (one territory name), copy to clipboard, click location on map in Wizard window (which creates a new territory and places the text cursor in the name field), paste from clipboard, click yellow cell to add new territory, repeat as necessary. My problem was that there was no keystroke equivalent to clicking the yellow cell. I prefer not to go back and forth between keyboard and mouse. If I could have pressed, say, Enter to signal that I was satisfied with the name and wanted to add the territory, I could then use Alt-Tab to return to the editor window with the territory names, selected and copied the next name via the keyboard, and then clicked with the mouse cursor (still over the map) to start another new point. The mouse would stay over the map where it belongs, and I would be even more productive.


Are you wanting to click the yellow cell for the territory you just added in order to add borders?

Yes, I can put in automatic switch to yellow on ENTER specifically on territory names.

All I wanted to do was add all the territories in one go: no borders or anything else at that point. Then I could save the XML (and a few hours' work). Next I would add something else (like continents, perhaps) and save that, and so on. Save early and save often is my motto.
Am I right in thinking that if I click a location to create a territory, then type in the name, I have to do something (like click the yellow cell next to the name) before I can go back to the map and click to create another territory?

Re: UPDATED Map XML Wizard

PostPosted: Sun Apr 18, 2010 6:58 pm
by chipv
ender516 wrote:All I wanted to do was add all the territories in one go: no borders or anything else at that point. Then I could save the XML (and a few hours' work). Next I would add something else (like continents, perhaps) and save that, and so on. Save early and save often is my motto.
Am I right in thinking that if I click a location to create a territory, then type in the name, I have to do something (like click the yellow cell next to the name) before I can go back to the map and click to create another territory?


No, you can keep going.

Click to create,type name, click to create, type name...

The mouse stays where it is.

Re: UPDATED Map XML Wizard

PostPosted: Sun Apr 18, 2010 7:53 pm
by ender516
chipv wrote:
ender516 wrote:All I wanted to do was add all the territories in one go: no borders or anything else at that point. Then I could save the XML (and a few hours' work). Next I would add something else (like continents, perhaps) and save that, and so on. Save early and save often is my motto.
Am I right in thinking that if I click a location to create a territory, then type in the name, I have to do something (like click the yellow cell next to the name) before I can go back to the map and click to create another territory?


No, you can keep going.

Click to create,type name, click to create, type name...

The mouse stays where it is.

Okay, I thought that when I tried that, I ended up altering the location of the same territory. Trying it again now, it seems okay. Pilot error, I suppose.

Three new issues:
  1. I don't like the fact that reloading code that the Wizard generated can result in errors. For example, I used the Wizard to generate this code which I saved in short.xml:
    Code: Select all
    <?xml version="1.0" encoding="UTF-8"?>
    <map>
    <territory>
       <name>Aboukir</name>
       <coordinates>
          <smallx>548</smallx>
          <smally>500</smally>
          <largex>732</largex>
          <largey>659</largey>
       </coordinates>
    </territory>
    <territory>
       <name>Anatolia</name>
       <coordinates>
          <smallx>569</smallx>
          <smally>407</smally>
          <largex>760</largex>
          <largey>535</largey>
       </coordinates>
    </territory>
    <territory>
       <name>Andalucia</name>
       <coordinates>
          <smallx>82</smallx>
          <smally>401</smally>
          <largex>111</largex>
          <largey>527</largey>
       </coordinates>
    </territory>
    </map>

    When I loaded it back in, I got the following:
    Code: Select all
    Loading File short.xml ...


    Error: Line 5 - Did not expect element coordinates there
    Error: Line 14 - Did not expect element coordinates there
    Error: Line 23 - Did not expect element coordinates there
    Warning: No continents found.
    Warning: Aboukir cannot be attacked.
    Warning: Aboukir cannot attack.
    Warning: Anatolia cannot be attacked.
    Warning: Anatolia cannot attack.
    Warning: Andalucia cannot be attacked.
    Warning: Andalucia cannot attack.
    XML Load Complete 7 warnings and 3 errors found. Click Close to close this window.

    The warnings are quite reasonable, but I don't like the errors. If a <borders> component is mandatory, why not generate an empty one? When I work with other code generators in RL, if I choose to save at a point where a completely valid file (i.e., one that will load without errors) cannot be created, I get a warning and I can force the issue, but usually the system will find a way of generating something that it can cope with upon reloading.
  2. I entered a name "Baden & Berg (Ulm, October 1805)" and when I reloaded it, I got an error which basically meant it had found a naked ampersand. Would it be possible for you to escape the weird characters (less than, greater than, ampersand, apostrophe, and quotation mark)?
  3. Any chance you could work things so that the images could be loaded from local files rather than a file sharing site? It could be handy to work completely on local files. (I tried using the file:// trick, but no luck.)

Re: UPDATED Map XML Wizard

PostPosted: Sun Apr 18, 2010 8:28 pm
by natty dread
Would it be possible for you to escape the weird characters (less than, greater than, ampersand, apostrophe, and quotation mark)?


Second this! I had to manually change all ampersands every time I edited my XML on nordic... was kinda annoying.

Also, has the postioning of the numbers been fixed yet?