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 ender516 on Sun Jan 10, 2010 9:46 am

chipv wrote:Yeah already on it.

I'm looking at adding a button "Test Drop" and allow choice of number of players.

Then I calculate random drop and colour each 88 accordingly leaving white for neutrals - how's that?

Not a bad idea, but it would be also good to be able to press a button which gives the whole board to one player and spells out all the objectives and bonuses (with their values). Then add a way of changing the ownership of a region/territory so the user can break zones and objectives and rebuild them for some other player, so you can check progressive bonuses, like hold two of four for +1, three of four for +2, and so on. As far as display goes, I'm thinking of stuff like BOB's Continent Overview and Objective Summary. The ability to hover over these things and highlight the pertinent areas on the map would be excellent.
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 Sun Jan 10, 2010 10:21 am

ender516 wrote:
chipv wrote:Yeah already on it.

I'm looking at adding a button "Test Drop" and allow choice of number of players.

Then I calculate random drop and colour each 88 accordingly leaving white for neutrals - how's that?

Not a bad idea, but it would be also good to be able to press a button which gives the whole board to one player and spells out all the objectives and bonuses (with their values). Then add a way of changing the ownership of a region/territory so the user can break zones and objectives and rebuild them for some other player, so you can check progressive bonuses, like hold two of four for +1, three of four for +2, and so on. As far as display goes, I'm thinking of stuff like BOB's Continent Overview and Objective Summary. The ability to hover over these things and highlight the pertinent areas on the map would be excellent.


You can already hover on continents/objectives/start positions to see the territories highlighted.
Do you mean after the test drop? Yes I'm doing that. (Actually done, just testing now).

I can add what you want simply by allowing 1 player to the test drop and do a special case.

I think If I publish what I've done then might be easier, as I'm not sure what you are gunning for regarding method of changing ownership.
User avatar
Captain chipv
 
Posts: 2750
Joined: Mon Apr 28, 2008 5:30 pm

Re: NEW Map XML Wizard

Postby chipv on Sun Jan 10, 2010 8:13 pm

Ok published. You can now test initial automatic troop drop. I have modified head post to include detail but it is straightforward.

Basically choose number of players, press Test Drop and the whole map lights up in player colours.
The drop is random so you can keep pressing Test drop to see what could happen in a real game.
All calculations are automatically done including starting positions, starting neutrals, required and overrides.
(Those last 2 are for the map inspect colouring)
Map inspect is coloured accordingly as you would expect to see. Hover over territory names or continent names or objective names too.
In the continents tab all territories are coloured. In addition if continents are held by one player the left cell is highlighted in that
colour to make it easy to see.

Added new error check

Error: Reinforcements defined with no Minimum Reinforcements

This is the first stage for drop testing, plenty more to come, but this will help for sure.

Let me know feedback and requests for additions to drop testing please.

Thanks again to WidowMakers for sorting a problem out with a .png
User avatar
Captain chipv
 
Posts: 2750
Joined: Mon Apr 28, 2008 5:30 pm

Re: NEW Map XML Wizard

Postby yeti_c on Mon Jan 11, 2010 8:09 am

chipv wrote:Error: Reinforcements defined with no Minimum Reinforcements


Not an error - could be a warning... without the minimum you get the default 3.

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 chipv on Mon Jan 11, 2010 9:17 am

yeti_c wrote:
chipv wrote:Error: Reinforcements defined with no Minimum Reinforcements


Not an error - could be a warning... without the minimum you get the default 3.

C.


Yeah realised when I was coding some new stuff for the tool.

The XML Tutorial says

"The minimum reinforcement must be a number greater than zero."

but it perhaps should say it is not mandatory with reinforcement tags because both examples have it together with reinforcement tags.
This makes it look like you need minimum reinforcement if you are using reinforcement tags.
User avatar
Captain chipv
 
Posts: 2750
Joined: Mon Apr 28, 2008 5:30 pm

Re: NEW Map XML Wizard

Postby chipv on Tue Jan 12, 2010 11:42 pm

Game Simulation Added

Too much info to type all over again, I have modified head post so please read.

Basically you can play a game simulation on your map following your xml rules so you can better test the XML.
I have outlined some ideas for how to use it to test a selection of xml tags.

If you want to try everything out straight away, load an existing CC map (input both images or even one and the xml)

I will try and do something about maps with large widths next as per natty_dread's request.
User avatar
Captain chipv
 
Posts: 2750
Joined: Mon Apr 28, 2008 5:30 pm

Re: NEW Map XML Wizard

Postby ender516 on Wed Jan 13, 2010 10:41 am

chipv wrote:Game Simulation Added

Too much info to type all over again, I have modified head post so please read.

Basically you can play a game simulation on your map following your xml rules so you can better test the XML.
I have outlined some ideas for how to use it to test a selection of xml tags.

If you want to try everything out straight away, load an existing CC map (input both images or even one and the xml)

I will try and do something about maps with large widths next as per natty_dread's request.

Oh, chipv, you are rocking the house! This is a tremendous upgrade, making XML checks a breeze. My only quibble is gaining an objective ends the game immediately, rather than at the start of the turn of the player holding the objective. The only way I see this being much of a problem would be if one wanted to check if holding the objective had the appropriate effect of limiting bonuses received by other players taking their turns before the play came back to the one holding the objective.
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 Wed Jan 13, 2010 11:02 am

ender516 wrote:
chipv wrote:Game Simulation Added

Too much info to type all over again, I have modified head post so please read.

Basically you can play a game simulation on your map following your xml rules so you can better test the XML.
I have outlined some ideas for how to use it to test a selection of xml tags.

If you want to try everything out straight away, load an existing CC map (input both images or even one and the xml)

I will try and do something about maps with large widths next as per natty_dread's request.

Oh, chipv, you are rocking the house! This is a tremendous upgrade, making XML checks a breeze. My only quibble is gaining an objective ends the game immediately, rather than at the start of the turn of the player holding the objective. The only way I see this being much of a problem would be if one wanted to check if holding the objective had the appropriate effect of limiting bonuses received by other players taking their turns before the play came back to the one holding the objective.


Ah good spot, bug there will fix shortly, thanks very much for feedback again!
User avatar
Captain chipv
 
Posts: 2750
Joined: Mon Apr 28, 2008 5:30 pm

Re: NEW Map XML Wizard

Postby chipv on Wed Jan 13, 2010 12:01 pm

ender516 wrote:
chipv wrote:Game Simulation Added

Too much info to type all over again, I have modified head post so please read.

Basically you can play a game simulation on your map following your xml rules so you can better test the XML.
I have outlined some ideas for how to use it to test a selection of xml tags.

If you want to try everything out straight away, load an existing CC map (input both images or even one and the xml)

I will try and do something about maps with large widths next as per natty_dread's request.

Oh, chipv, you are rocking the house! This is a tremendous upgrade, making XML checks a breeze. My only quibble is gaining an objective ends the game immediately, rather than at the start of the turn of the player holding the objective. The only way I see this being much of a problem would be if one wanted to check if holding the objective had the appropriate effect of limiting bonuses received by other players taking their turns before the play came back to the one holding the objective.


This is fixed now, thanks again.
User avatar
Captain chipv
 
Posts: 2750
Joined: Mon Apr 28, 2008 5:30 pm

Re: NEW Map XML Wizard

Postby chipv on Sat Jan 16, 2010 12:29 pm

You can right click to show/hide editing window or drag it if the the image is too wide.

natty, can you let me know if this works for you, please?
User avatar
Captain chipv
 
Posts: 2750
Joined: Mon Apr 28, 2008 5:30 pm

Re: NEW Map XML Wizard

Postby natty dread on Sat Jan 16, 2010 1:14 pm

It works excellently! Thanks!
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 natty dread on Mon Jan 25, 2010 4:06 pm

I can't seem to get the gameplay testing / play simulation to work... I press play but all that happens is that 1 territory for each player turns into different colours. How do I attack, bombard etc. ?

Only the territories of 1 continent turn to different colours though...

Here's the XML I made to test gameplay for my nordic countries map.

show
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 yeti_c on Mon Jan 25, 2010 4:11 pm

Chip - just used this to test some XML...

Worked like a dream...

I did have some hanging hovers though - not sure why... couldn't reproduce it either - probably an event not firing properly - stupid 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 natty dread on Mon Jan 25, 2010 4:14 pm

yeti_c wrote:Chip - just used this to test some XML...

Worked like a dream...

I did have some hanging hovers though - not sure why... couldn't reproduce it either - probably an event not firing properly - stupid browser.

C.


Yeah, well I'm not getting the gameplay work at all. The way I understand it from the introduction in this thread I should be able to simulate a whole game with "players" playing their "turns"... I press play but all it does is change colours of a few territories. And then if I try to click the territories it just goes to territory edit mode. It's not supposed to be like this right?

Can you try if you can get it to work? Here's a map image: http://img69.imageshack.us/img69/842/northeuropev28.png

Does it need a small image too for the game testing to work?
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 chipv on Mon Jan 25, 2010 5:51 pm

natty_dread wrote:
yeti_c wrote:Chip - just used this to test some XML...

Worked like a dream...

I did have some hanging hovers though - not sure why... couldn't reproduce it either - probably an event not firing properly - stupid browser.

C.


Yeah, well I'm not getting the gameplay work at all. The way I understand it from the introduction in this thread I should be able to simulate a whole game with "players" playing their "turns"... I press play but all it does is change colours of a few territories. And then if I try to click the territories it just goes to territory edit mode. It's not supposed to be like this right?

Can you try if you can get it to work? Here's a map image: http://img69.imageshack.us/img69/842/northeuropev28.png

Does it need a small image too for the game testing to work?


Totally my fault , you managed to find 2 bugs lol. Fixed now you can play your map (I just did).

I uploaded your unmodified XML here if you wanted to try right away

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

You've only got large co-ords so put your image in the large URL textbox.
User avatar
Captain chipv
 
Posts: 2750
Joined: Mon Apr 28, 2008 5:30 pm

Re: NEW Map XML Wizard

Postby natty dread on Mon Jan 25, 2010 6:07 pm

Hey, thanks for the super-fast fix and hosting my xml! =D>
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 chipv on Mon Jan 25, 2010 6:11 pm

natty_dread wrote:Hey, thanks for the super-fast fix and hosting my xml! =D>


Check out the validation. Svalbard is intentionally like Alcatraz, I guess, but there is a one-way attack on Akershus - is that intended?
User avatar
Captain chipv
 
Posts: 2750
Joined: Mon Apr 28, 2008 5:30 pm

Re: NEW Map XML Wizard

Postby natty dread on Mon Jan 25, 2010 6:16 pm

Btw noticed another bug: in the window where it shows the player names and whose turn it is, and who gets what bonuses and autodeploys, all autodeploys show as +0 even though the players are getting autodeploys according to game log...
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 chipv on Mon Jan 25, 2010 6:25 pm

natty_dread wrote:Btw noticed another bug: in the window where it shows the player names and whose turn it is, and who gets what bonuses and autodeploys, all autodeploys show as +0 even though the players are getting autodeploys according to game log...


Fixed. Sorry, this probably ruins your first impression, but at least the tool is being given a proper workout.

Hopefully once bug-free, will be considered useful, thanks for your feedback, keep it coming.
User avatar
Captain chipv
 
Posts: 2750
Joined: Mon Apr 28, 2008 5:30 pm

Re: NEW Map XML Wizard

Postby natty dread on Mon Jan 25, 2010 6:41 pm

chipv wrote:Fixed. Sorry, this probably ruins your first impression, but at least the tool is being given a proper workout.


Not at all, really. In fact I was just ranting in my map thread how useful this is for working out flaws in the gameplay! (now if you can make a version with accurate deployments and dice throws so that you could really simulate a game 100% through... that'd be awesome! but I might be asking for too much here...) Anyway this system also works well, at least you can get an estimate of how a game might possibly be played on your current map rules.

Keep up the good work!
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 chipv on Mon Jan 25, 2010 6:45 pm

natty_dread wrote:
chipv wrote:Fixed. Sorry, this probably ruins your first impression, but at least the tool is being given a proper workout.


Not at all, really. In fact I was just ranting in my map thread how useful this is for working out flaws in the gameplay! (now if you can make a version with accurate deployments and dice throws so that you could really simulate a game 100% through... that'd be awesome! but I might be asking for too much here...) Anyway this system also works well, at least you can get an estimate of how a game might possibly be played on your current map rules.

Keep up the good work!


I was going to do that, then someone convinced me this would be nothing more than a gimmick so stopped short.
(Someone else also suggested bots to play with, same thing there).

Hmm.
User avatar
Captain chipv
 
Posts: 2750
Joined: Mon Apr 28, 2008 5:30 pm

Re: NEW Map XML Wizard

Postby natty dread on Mon Jan 25, 2010 6:50 pm

I was going to do that, then someone convinced me this would be nothing more than a gimmick so stopped short.


Don't listen to him! It'd be hugely useful: every time when you're not sure if your gameplay would work in practice, you'd just update the XML and run a few games on the XML wizard, and then you'd know for sure!

Bots to play with would also be fun, and it would also be kinda useful (less work in running simulations, don't need to play all players' turns yourself) but even just the first part would be immensely helpful.

Of course, if I am the only mapmaker that sees things this way, then you don't need to go doing a huge amount of work just for me... (although it would be nice ;) :D)
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 cairnswk on Mon Jan 25, 2010 7:04 pm

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

Chipv, i'm just sarting to get a taste for this tool...working on Cricket (even though LV will be doing this xml)

It is wildly useful, but it's also challenging and requires reading the instructions a lot -> therefore not friendly for those like me who like to "jump in". However...i can see the logic behind it...
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?

I applaud your work. =D> =D>
Image
* Pearl Harbour * Waterloo * Forbidden City * Jamaica * Pot Mosbi
User avatar
Private cairnswk
 
Posts: 11510
Joined: Sat Feb 03, 2007 8:32 pm
Location: Australia

Re: NEW Map XML Wizard

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

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).
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:21 pm

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

PreviousNext

Return to Tools & Guides

Who is online

Users browsing this forum: No registered users