Moderators: Cartographers, Global Moderators



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.
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.

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?
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.
<?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>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.
Would it be possible for you to escape the weird characters (less than, greater than, ampersand, apostrophe, and quotation mark)?

Empty tags are equally invalid; and technically, multiple entries with the same item (even if it's an empty <border> tag) would be referring to the same thing, which would cause more problems... Empty and absent are not the same thingender516 wrote:If a <borders> component is mandatory, why not generate an empty one?

MrBenn wrote:Empty tags are equally invalid; and technically, multiple entries with the same item (even if it's an empty <border> tag) would be referring to the same thing, which would cause more problems... Empty and absent are not the same thingender516 wrote:If a <borders> component is mandatory, why not generate an empty one?
<borders>
</borders><borders>
<border></border>
</borders>
ender516 wrote:chipv wrote: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.
ender516 wrote:Three new issues:
- 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>
</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
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.- 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)?
- 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.)
natty_dread wrote: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?

Users browsing this forum: No registered users and 0 guests