Correct Properties list for reference and Better XMLs Please

classic Classic list List threaded Threaded
11 messages Options
Reply | Threaded
Open this post in threaded view
|

Correct Properties list for reference and Better XMLs Please

Veqryn
Administrator
This post was updated on .
I have been upgrading all the maps for 1.2.2,
and it has been difficult at times because of the low quality of xml coding.
especially when it comes to reading the properties section.  Most maps have completely unreadable order, completely random order, incomplete, contradictory, outdated, and/or non-existing properties.

So, for the love of god,
the rest of the xml's being coded for triplea

i would like all of you to base your code off of 1 of the following 2 examples
and i would like you to keep the order that they are listed in as well.  it makes it soooo much easier to read when they are listed by category like i have below, complete with comments for each section.

you can then customize it after copying it from below.  you can turn things false or true as you see fit, add new ones, delete old ones.  
But please START with one of the 2 xml's i will list below. (the first is ww2v2 REVISED rules properties, the second is ww2v3 1941/1942 rules)
And then mark any changes you make inside of the  thing.

thank you for listening,
veqryn


edit: obviously you will have to change the Bids section.... and the mapName section, and the notes section...

edit2:
or alternatively, just download the latest ww2v2 or ww2v3 or ww2v4, and then copy the entire properties section and paste it overtop of the properties section of the map you are making..... then change it to your liking.  

edit3:
v3 type properties:
ww2v3propertyset.txt

complete ww2v3 rules properties for copying and pasting:
ww2v3ActualPropertyList.txt

edit4:
complete example XML file for a ww2v3 type game:
ww2v3fullxmlexample.xml


edit5:
for very very new maps, with all the latest features, please base your xml on Pact of Steel 2's xml:
pact_of_steel_2.xml
.
Please contribute to the TripleA 2013 donation drive:
http://tripleadev.1671093.n2.nabble.com/2013-TripleA-Donation-Drive-tp7583455.html
Reply | Threaded
Open this post in threaded view
|

Re: Better XMLs Please

Veqryn
Administrator
This post was updated on .
WW2v2 Rules Properties needed below:


        <propertyList>
               
               
                <property name="Russians bid" value="0" editable="true">
                                <number min="0" max="1000"/>
                </property>

               
                <property name="Honorable Surrender" value="false" editable="true">
                        <boolean/>
                </property>

                <property name="Axis Honorable Victory VCs" value="10" editable="false">
                        <number min="8" max="12"/>
                </property>

                <property name="Allies Honorable Victory VCs" value="10" editable="false">
                        <number min="8" max="12"/>
                </property>

               
                <property name="Low Luck" value="false" editable="true">
                        <boolean/>
                </property>

                <property name="Low Luck for AntiAircraft" value="false" editable="true">
                        <boolean/>
                </property>

                <property name="Low Luck for Technology" value="false" editable="true">
                        <boolean/>
                </property>

                <property name="Low Luck for Bombing and Territory Damage" value="false" editable="true">
                        <boolean/>
                </property>

                <property name="Tech Development" value="true" editable="true">
                        <boolean/>
                </property>

                <property name="Super Sub Defence Bonus" value="0" editable="true">
                        <number min="0" max="1"/>
                </property>

                <property name="LHTR Heavy Bombers" value="false" editable="true">
                        <boolean/>
                </property>

                <property name="Heavy Bomber Dice Rolls" value="2" editable="true">
                        <number min="2" max="10"/>
                </property>

                <property name="Territory Turn Limit" value="false" editable="true">
                        <boolean/>
                </property>

                <property name="Always on AA" value="true" editable="true">
                        <boolean/>
                </property>

                <property name="Choose AA Casualties" value="false" editable="false">
                        <boolean/>
                </property>

                <property name="Roll AA Individually" value="true" editable="false">
                        <boolean/>
                </property>

                <property name="Kamikaze Airplanes" value="false" editable="true">
                        <boolean/>
                </property>

                <property name="Battleships repair at end of round" value="true" editable="true">
                        <boolean/>
                </property>

                <property name="Battleships repair at beginning of round" value="false" editable="true">
                        <boolean/>
                </property>

               
                <property name="WW2V2" value="true" editable="false">
                        <boolean/>
                </property>

                <property name="Submersible Subs" value="true" editable="false">
                        <boolean/>
                </property>

                <property name="Two hit battleship" value="true" editable="false">
                        <boolean/>
                </property>

                <property name="Produce fighters on carriers" value="true" editable="false">
                        <boolean/>
                </property>

                <property name="Move existing fighters to new carriers" value="true" editable="false">
                        <boolean/>
                </property>

                <property name="LHTR Carrier production rules" value="false" editable="true">
                        <boolean/>
                </property>

                <property name="Allied Air Dependents" value="true" editable="false">
                        <boolean/>
                </property>

                <property name="neutralCharge" value="9999999"/>

                <property name="maxFactoriesPerTerritory" value="1"/>

               
                <property name="Sub Control Sea Zone Restricted" value="false" editable="false">
                        <boolean/>
                </property>


               
                <property name="mapName" value="ExactNameofFolder" editable="false"/>

                <property name="notes">
                        <value>
<![CDATA[       
				
				Here goes info about your map and stuff.
				<br>This will create a new line
			]]>
</value>
                </property>
        </propertyList>
</game>
Please contribute to the TripleA 2013 donation drive:
http://tripleadev.1671093.n2.nabble.com/2013-TripleA-Donation-Drive-tp7583455.html
Reply | Threaded
Open this post in threaded view
|

Re: Better XMLs Please

Veqryn
Administrator
This post was updated on .
In reply to this post by Veqryn
WW2v3 1941 / 1942 and WW2v4 rules properties needed below:


                <propertyList>
                               
                               
                               
                                <property name="Russians bid" value="0" editable="true">
                                                <number min="0" max="1000"/>
                                </property>

                               
                                <property name="Honorable Surrender" value="true" editable="true">
                                                <boolean/>
                                </property>

                                <property name="Axis Honorable Victory VCs" value="15" editable="false">
                                                <number min="2" max="18"/>
                                </property>

                                <property name="Allies Honorable Victory VCs" value="15" editable="false">
                                                <number min="2" max="18"/>
                                </property>

                                <property name="Low Luck" value="false" editable="true">
                                                <boolean/>
                                </property>

                                <property name="Low Luck for AntiAircraft" value="false" editable="true">
                                                <boolean/>
                                </property>

                                <property name="Low Luck for Technology" value="false" editable="true">
                                                <boolean/>
                                </property>

                                <property name="Low Luck for Bombing and Territory Damage" value="false" editable="true">
                                                <boolean/>
                                </property>

                                <property name="National Objectives" value="false" editable="true">
                                                <boolean/>
                                </property>

                                <property name="Tech Development" value="false" editable="true">
                                                <boolean/>
                                </property>

                                <property name="Super Sub Defence Bonus" value="0" editable="true">
                                                <number min="0" max="1"/>
                                </property>

                                <property name="LHTR Heavy Bombers" value="false" editable="true">
                                                <boolean/>
                                </property>

                                <property name="Heavy Bomber Dice Rolls" value="2" editable="false">
                                                <number min="2" max="3"/>
                                </property>

                                <property name="Always on AA" value="false" editable="true">
                                                <boolean/>
                                </property>

                                <property name="Kamikaze Airplanes" value="false" editable="true">
                                                <boolean/>
                                </property>

                                <property name="Battleships repair at end of round" value="true" editable="true">
                                                <boolean/>
                                </property>

                                <property name="Battleships repair at beginning of round" value="false" editable="true">
                                                <boolean/>
                                </property>

                                <property name="Display Sea Names" value="true" editable="true">
                                                <boolean/>
                                </property>
                               

                               
                                <property name="WW2V3" value="true" editable="false">
                                                <boolean/>
                                </property>

                                <property name="WW2V3 Tech Model" value="true" editable="false">
                                                <boolean/>
                                </property>

                                <property name="Use Shipyards" value="true" editable="false">
                                                <boolean/>
                                </property>

                                <property name="All Rockets Attack" value="true" editable="false">
                                                <boolean/>
                                </property>

                                <property name="Rockets Can Fly Over Impassables" value="false" editable="false">
                                                <boolean/>
                                </property>

                               

                               
                               
                                <property name="Blitz Through Factories And AA Restricted" value="true" editable="false">
                                                <boolean/>
                                </property>

                                <property name="Roll AA Individually" value="true" editable="false">
                                                <boolean/>
                                </property>

                                <property name="Choose AA Casualties" value="false" editable="false">
                                                <boolean/>
                                </property>

                                <property name="AA Territory Restricted" value="true" editable="false">
                                                <boolean/>
                                </property>

                                <property name="Multiple AA Per Territory" value="true" editable="false">
                                                <boolean/>
                                </property>

                               
                                <property name="Partial Amphibious Retreat" value="true" editable="false">
                                                <boolean/>
                                </property>

                                <property name="Shore Bombard Per Ground Unit Restricted" value="true" editable="false">
                                                <boolean/>
                                </property>

                                <property name="Naval Bombard Casualties Return Fire Restricted" value="true" editable="false">
                                                <boolean/>
                                </property>

                                <property name="Hari-Kari Units" value="true" editable="false">
                                                <boolean/>
                                </property>

                                <property name="Allied Air Dependents" value="true" editable="false">
                                                <boolean/>
                                </property>

                                <property name="Surviving Air Move To Land" value="true" editable="false">
                                                <boolean/>
                                </property>

                                <property name="Air Attack Sub Restricted" value="true" editable="false">
                                                <boolean/>
                                </property>

                                <property name="Ignore Transport In Movement" value="true" editable="false">
                                                <boolean/>
                                </property>

                                <property name="Transport Casualties Restricted" value="true" editable="false">
                                                <boolean/>
                                </property>

                                <property name="Unescorted Transport Dies" value="true" editable="false">
                                                <boolean/>
                                </property>

                                <property name="Ignore Sub In Movement" value="true" editable="false">
                                                <boolean/>
                                </property>

                                <property name="Defending Subs Sneak Attack" value="true" editable="false">
                                                <boolean/>
                                </property>

                                <property name="Sub Retreat Before Battle" value="true" editable="false">
                                                <boolean/>
                                </property>

                                <property name="Submersible Subs" value="true" editable="false">
                                                <boolean/>
                                </property>

                               
                                <property name="Sub Control Sea Zone Restricted" value="true" editable="false">
                                                <boolean/>
                                </property>

                                <property name="Previous Units Fight" value="true" editable="false">
                                                <boolean/>
                                </property>

                                <property name="Two hit battleship" value="true" editable="false">
                                                <boolean/>
                                </property>

                               
                                <property name="Produce fighters on carriers" value="true" editable="false">
                                                <boolean/>
                                </property>

                                <property name="Produce new fighters on old carriers" value="true" editable="false">
                                                <boolean/>
                                </property>

                                <property name="Move existing fighters to new carriers" value="false" editable="false">
                                                <boolean/>
                                </property>

                                <property name="Land existing fighters on new carriers" value="true" editable="false">
                                                <boolean/>
                                </property>

                                <property name="LHTR Carrier production rules" value="true" editable="false">
                                                <boolean/>
                                </property>

                                <property name="Unit Placement In Enemy Seas" value="true" editable="false">
                                                <boolean/>
                                </property>

                                <property name="Territory Turn Limit" value="false" editable="false">
                                                <boolean/>
                                </property>

                                <property name="maxFactoriesPerTerritory" value="1"/>

                                <property name="Placement Restricted By Factory" value="true" editable="false">
                                                <boolean/>
                                </property>

                                <property name="SBR Affects Unit Production" value="true" editable="false">
                                                <boolean/>
                                </property>

                               
                                <property name="neutralCharge" value="9999999"/>

                                <property name="Neutrals Are Impassable" value="true" editable="false">
                                                <boolean/>
                                </property>

                                <property name="Neutrals Are Blitzable" value="false" editable="false">
                                                <boolean/>
                                </property>

                               
                                <property name="mapName" value="TheExactNameOfTheMainFolder" editable="false"/>

                               
                                <property name="notes">
                                                <value>
                                               
<![CDATA[
									How to make a map, by Veqryn.
									Here goes your game notes.
								<br>Use the br in triangle braces to make new lines.
								<br>Explain your game, and any special rules and units.
								<br>Credit yourself and anyone who helped you.
						]]>

                                        </value>
                                </property>
                </propertyList>
</game>
Please contribute to the TripleA 2013 donation drive:
http://tripleadev.1671093.n2.nabble.com/2013-TripleA-Donation-Drive-tp7583455.html
Reply | Threaded
Open this post in threaded view
|

Re: Better XMLs Please

Veqryn
Administrator
In reply to this post by Veqryn
if you are curious what properties are out there, and if that property you are using still exists, please check out:

Constants.java
and
Properties.java

in the TripleA\src\games\strategy\triplea
folder
of the source code
which you can download here: https://sourceforge.net/projects/triplea/files/
Please contribute to the TripleA 2013 donation drive:
http://tripleadev.1671093.n2.nabble.com/2013-TripleA-Donation-Drive-tp7583455.html
Reply | Threaded
Open this post in threaded view
|

Re: Better XMLs Please

Veqryn
Administrator
This post was updated on .
In reply to this post by Veqryn
Added:

Complete Property Set for WW2v2 Revised:
ww2v2propertyset.txt


Property Set for aWW2v3 AA50 type game:
ww2v3propertyset.txt

Attachments Set for WW2v3 AA50:
ww2v3attachmentset.txt

A Full XML example of a v3 type game:
ww2v3fullxmlexample.xml

Actual Property Set of WW2v3 complete with Extra properties for special China rules:
ww2v3ActualPropertyList.txt


enjoy
Please contribute to the TripleA 2013 donation drive:
http://tripleadev.1671093.n2.nabble.com/2013-TripleA-Donation-Drive-tp7583455.html
Reply | Threaded
Open this post in threaded view
|

Re: Better XMLs Please

OnanTheBrBr
This is very helpful, Veqryn. Thx.
Maybe you could add a Map Maker section to your main thread, and there add a link to this thread here. Gudkarmas nice tutorial about changing unit colors also would fit there. I can also set you up as collaborator for the rest of the Depot, if you would prefer to have all your help efforts to be safely hosted there instead.

Cheers,
EB
For Downloads, Help, Maps and Links, visit Bommel's TripleA Supply Depot
Reply | Threaded
Open this post in threaded view
|

Re: Correct Properties list for reference and Better XMLs Please

Veqryn
Administrator
In reply to this post by Veqryn
i've cleaned up the properties list and put some notes in to help people
should look much nicer now in notepad
Please contribute to the TripleA 2013 donation drive:
http://tripleadev.1671093.n2.nabble.com/2013-TripleA-Donation-Drive-tp7583455.html
Reply | Threaded
Open this post in threaded view
|

Re: Correct Properties list for reference and Better XMLs Please

Veqryn
Administrator
In reply to this post by Veqryn
bumping this so it doesn't fall off of nabble
Please contribute to the TripleA 2013 donation drive:
http://tripleadev.1671093.n2.nabble.com/2013-TripleA-Donation-Drive-tp7583455.html
Reply | Threaded
Open this post in threaded view
|

Re: Correct Properties list for reference and Better XMLs Please

Veqryn
Administrator
updated for TripleA 1.3.1.1

The above are only for ww2v2 and ww2v3 type maps.  


There are many more properties, and the new ones can be found inside the POS2 xml:
pact_of_steel_2.xml

Please contribute to the TripleA 2013 donation drive:
http://tripleadev.1671093.n2.nabble.com/2013-TripleA-Donation-Drive-tp7583455.html
Reply | Threaded
Open this post in threaded view
|

Re: Correct Properties list for reference and Better XMLs Please

crazygerman

I just used the PoS 2 xml last night it is very helpful
However some of the information is outdated, because of how quickly 1.3 evolved. You should update the write-ins if you have time.
I cant code Java, but ill provide moral support :)
Reply | Threaded
Open this post in threaded view
|

Re: Correct Properties list for reference and Better XMLs Please

Veqryn
Administrator
"some of the information" is not specific enough,

POS2 xml has over 4600 lines of code, can you please specify what exactly is outdated?
Please contribute to the TripleA 2013 donation drive:
http://tripleadev.1671093.n2.nabble.com/2013-TripleA-Donation-Drive-tp7583455.html