Page 6 of 8
Re: UPDATED Map XML Wizard
Posted: Sat Apr 24, 2010 11:36 pm
by ender516
chipv wrote:natty_dread wrote:The problem with the ampersands is, that I had ampersands correctly escaped with & but when I loaded the map into wizard, then saved it again with the wizard, the wizard changed them back to plain ampersands, and I had to change them again manually. I'm not sure if this has been fixed already, but that's how it was when I worked on the nordic xml.
This needs fixing and would have stayed broken had you not given such a clear description of the problem, thanks!
I'm glad natty got my point across. So will you be handling ampersands and less-than signs, so that if I type one into the name of a territory or continent, it will be properly escaped in the XML?
Re: UPDATED Map XML Wizard
Posted: Sun Apr 25, 2010 3:28 pm
by chipv
New update with a number of small fixes mainly to correct the output on pressing Show XML:
Incoming escaped characters correctly escaped for outgoing XML (natty_dread)
Textbox entry of invalid XML characters escaped for outgoing XML (ender516)
Removed failure of outgoing XML for HTML special characters
Corrected output of positions
Delete territories from positions when territory completely removed from XML
Corrected yellow highlight for positions and objectives
Corrected map inspect for multiple nested continents
I have not yet done the coordinates, that should be next unless there are any other requests.
Thanks for bug reports, keep them coming please, as well as enhancement requests.
Re: UPDATED Map XML Wizard
Posted: Thu May 13, 2010 12:44 pm
by natty dread
Is there any chance we could ever see a downloadable version of the wizard?
Re: UPDATED Map XML Wizard
Posted: Sun May 23, 2010 3:07 pm
by cairnswk
chipv
what a great tool you've created here.
I was able to complete the xml for Stalingrad in 6 hours yesterday.
Thoroughly recommend using this tool!
On an improvement note....
The header line that has borders, bombardments etc is currently scrolling with the data input.
Is it possible to make that line not scroll...i found that sometimes i forgot which section it was that i was doing, and making it not scroll would assist to see what it is that is being worked on.
Thanks once again.

Re: UPDATED Map XML Wizard
Posted: Sun May 23, 2010 3:33 pm
by ender516
cairnswk wrote:chipv
what a great tool you've created here.
I was able to complete the xml for Stalingrad in 6 hours yesterday.
Thoroughly recommend using this tool!
On an improvement note....
The header line that has borders, bombardments etc is currently scrolling with the data input.
Is it possible to make that line not scroll...i found that sometimes i forgot which section it was that i was doing, and making it not scroll would assist to see what it is that is being worked on.
Thanks once again.

The availability of this excellent tool was why I was willing and able to offer to do the Stalingrad XML for you.
With regards to scrolling, I have noticed that sometimes when I am using the arrow keys to fix coordinates, the window scrolls as well, which can be a bother.
Re: UPDATED Map XML Wizard
Posted: Fri Jun 11, 2010 12:40 pm
by MrBenn
Hey chip, I've found a flaw with the "play game" feature... Starting positions get equally divided amongst the players, so if you have eight positions, then each player in a 1v1 will get four of them. When I tested the XML for the World Cup map, it indicated that each player would start with 11 terrs, when in fact they will each begin with 12, because of the starting positions

Re: UPDATED Map XML Wizard
Posted: Sat Jun 12, 2010 7:03 pm
by chipv
MrBenn wrote:Hey chip, I've found a flaw with the "play game" feature... Starting positions get equally divided amongst the players, so if you have eight positions, then each player in a 1v1 will get four of them. When I tested the XML for the World Cup map, it indicated that each player would start with 11 terrs, when in fact they will each begin with 12, because of the starting positions

Yeah, I've allocated the start positions in the same way as the pot.
For 2 players it is divided like 3 players but not for starting positions, right.
Re: UPDATED Map XML Wizard
Posted: Fri Jun 18, 2010 6:19 pm
by MrBenn
Starting positions are divided completely equally between all players, regardless of the number. Any spares go into the pot for general distribution unless they are coded as neutral starts. Starting positions override neutral starts.
Re: UPDATED Map XML Wizard
Posted: Sun Jun 20, 2010 1:22 am
by ender516
Hey, chipv, with the recent updates to the way the site displays numbers, will you be doing any changes to this tool in a similar vein? I know in the past there have been questions about numbers being slightly mispositioned as compared to how the site would show them, and some variation with colour.
Re: UPDATED Map XML Wizard
Posted: Sat Jun 26, 2010 6:58 am
by chipv
MrBenn wrote:Starting positions are divided completely equally between all players, regardless of the number. Any spares go into the pot for general distribution unless they are coded as neutral starts. Starting positions override neutral starts.
Fixed.
For 2 players, even distributions for starts. For the general pot 2 is treated like 3.
Re: UPDATED Map XML Wizard
Posted: Mon Jun 28, 2010 7:00 pm
by natty dread
Somehow, the XML wizard has set all my small map coords to 0,0 and now it's impossible to fix them since they're all stacked into the upper left corner.
How do I fix this?
link to xml ->
http://www.fileden.com/files/2010/2/7/2 ... ientx1.xml
Re: UPDATED Map XML Wizard
Posted: Mon Jun 28, 2010 7:03 pm
by MrBenn
Can you go through the xml in a text editor and delete out the 0,0 coords (ie remove each line completely?)
--on a side note, do you have an old copy to backup from/revert to?
Re: UPDATED Map XML Wizard
Posted: Mon Jun 28, 2010 7:08 pm
by natty dread
MrBenn wrote:Can you go through the xml in a text editor and delete out the 0,0 coords (ie remove each line completely?)
--on a side note, do you have an old copy to backup from/revert to?
No, this was the first time I saved it...
I guess I can remove them with the search & destroy function of notepad easily enough. Thanks MrB.
Re: UPDATED Map XML Wizard
Posted: Mon Jun 28, 2010 7:16 pm
by natty dread
Well I did that and now the wizard refuses to load the XML. (good thing I didn't overwrite the original.)
Re: UPDATED Map XML Wizard
Posted: Mon Jun 28, 2010 11:24 pm
by ender516
Sounds like it may be time to give the tool the ability to alter the coordinates by typing in the toolbox.
Re: UPDATED Map XML Wizard
Posted: Tue Jun 29, 2010 12:32 pm
by natty dread
Even better would be if you could also move the coordinates by mouse. Keyboard moving can be tedious if the coordinate is on the opposite edge of the image from where it should be...
Anyway, can anyone help me fix my coordinates?
Re: UPDATED Map XML Wizard
Posted: Tue Jun 29, 2010 1:05 pm
by chipv
This has happened because you only loaded one map. The instructions do say load both.
There is no way for the XML Wizard to auto-calculate the other coordinates so they are marked as zero
in order to produce valid XML.
I suggest for now, copy the coordinates over the zeroes so that small map = large map coords and then
nudge them which at least means you dont have to redo the rest of the XML.
Perhaps I can give a button to autocalculate the second map coords, this is not the first time someone has done this.
Re: UPDATED Map XML Wizard
Posted: Tue Jun 29, 2010 1:08 pm
by MrBenn
Jota's Map Assistant can help fill in the missing coordinates. (There's a link to it in the mapmaker tools thread.)
You can load in the XML file (with the set of coords missing), and click in roughly the right place to generate the coords. Once you've done that, you should be able to use the XML wizard to finetune the positioning...
Re: UPDATED Map XML Wizard
Posted: Tue Jun 29, 2010 1:09 pm
by MrBenn
chipv wrote:This has happened because you only loaded one map. The instructions do say load both.
There is no way for the XML Wizard to auto-calculate the other coordinates so they are marked as zero
in order to produce valid XML.
I suggest for now, copy the coordinates over the zeroes so that small map = large map coords and then
nudge them which at least means you dont have to redo the rest of the XML.
Perhaps I can give a button to autocalculate the second map coords, this is not the first time someone has done this.
A "recalculate coords" button would be useful, and would help idiot-proof that functionality

Re: UPDATED Map XML Wizard
Posted: Tue Jun 29, 2010 1:14 pm
by natty dread
vPerhaps I can give a button to autocalculate the second map coords, this is not the first time someone has done this.
Do that please

thanks mrbenn, I managed to fix the XML with Jota's tool.
Re: UPDATED Map XML Wizard
Posted: Tue Jun 29, 2010 5:44 pm
by chipv
natty_dread wrote:vPerhaps I can give a button to autocalculate the second map coords, this is not the first time someone has done this.
Do that please

Done. There are 2 new buttons called Auto xy.
If you have forgotten to add a second image and already entered a lot of territories then
use the button once you do load the second image.
It will only correct coords (0,0) so you don't lose any coords that you already did on the second map.
Re: UPDATED Map XML Wizard
Posted: Tue Jun 29, 2010 6:21 pm
by natty dread
Ah, a bit late for me as I already fixed my coords, but a nice addition nonetheless.
Now you could maybe look into fixing the clipped army numbers? They're kinda annoying...
Re: UPDATED Map XML Wizard
Posted: Tue Jun 29, 2010 7:29 pm
by chipv
New update - made a correction to gameplay with complex nested continents and overrides found during work on a new map which works now.
Natty any chance of writing another post to summarize what you want whilst I'm at it?
Re: UPDATED Map XML Wizard
Posted: Tue Jun 29, 2010 8:29 pm
by natty dread
Well.. the army numbers are clipped, 1-2 bottom lines of pixels are missing from each number. That's all I have right now...
Re: UPDATED Map XML Wizard
Posted: Tue Jun 29, 2010 9:20 pm
by chipv
natty_dread wrote:Well.. the army numbers are clipped, 1-2 bottom lines of pixels are missing from each number. That's all I have right now...
Can you let me have a screenshot please and also what browser.