Possible Design Bug?

Post here to discuss scenario, campaign, data and art editing as well as any mods to Panzer Command.

Moderator: koiosworks

Post Reply
User avatar
Der Oberst
Posts: 64
Joined: Sun Jul 31, 2005 3:12 pm
Location: United States

Possible Design Bug?

Post by Der Oberst »

I'm working on a scenario and the unitname properties in the game are acting squirrelly. Here's an example:

<unit unitid="Sd Kfz 222" unitname="1/1-6 Recon Platoon" exp="Veteran" number="4" max="4" x="858,850,870,874" z="169,157,182,153" heading="135,134,136,136"/>
<unit unitid="Pz Kpfw VI Tiger I" unitname="1/Stab-503" exp="Veteran" number="2" max="2" x="881,872,888,862" z="66,56,75,48" heading="134,133,136,132"/>
<unit unitid="Pz Kpfw IIIN" unitname="2/Stab-503" exp="Veteran" number="5" max="5" x="940,932,930,946,927" z="86,98,77,97,90" heading="135,136,136,137,134"/>
<unit unitid="Pz Kpfw IIIN" unitname="Stab/1-503 Schwere Abteilung" exp="Veteran" number="5" max="5" x="960,952,950,966,947" z="86,98,77,97,90" heading="135,136,136,137,134"/>
<unit unitid="Pz Kpfw VI Tiger I" unitname="Stab/1-503 Schwere" exp="Veteran" number="1" max="1" x="256" z="196" heading="134,133,136,132"/>


The unitname displays fine for the "1/1-6 Recon Platoon", and the "2/Stab-503", but the second unit "1/Stab-503" is displaying it's name as a number - 75. The same goes for the last two(but they are different numbers). This is also happening with other German units I've built for this scenario, but this is just an example.

Any ideas?




Regards,

Der Oberst
-----------------------------------------
User avatar
koiosworks
Posts: 813
Joined: Sun Jun 20, 2004 8:14 pm

RE: Possible Design Bug?

Post by koiosworks »

ORIGINAL: Der Oberst

I'm working on a scenario and the unitname properties in the game are acting squirrelly. Here's an example:

<unit unitid="Sd Kfz 222" unitname="1/1-6 Recon Platoon" exp="Veteran" number="4" max="4" x="858,850,870,874" z="169,157,182,153" heading="135,134,136,136"/>
<unit unitid="Pz Kpfw VI Tiger I" unitname="1/Stab-503" exp="Veteran" number="2" max="2" x="881,872,888,862" z="66,56,75,48" heading="134,133,136,132"/>
<unit unitid="Pz Kpfw IIIN" unitname="2/Stab-503" exp="Veteran" number="5" max="5" x="940,932,930,946,927" z="86,98,77,97,90" heading="135,136,136,137,134"/>
<unit unitid="Pz Kpfw IIIN" unitname="Stab/1-503 Schwere Abteilung" exp="Veteran" number="5" max="5" x="960,952,950,966,947" z="86,98,77,97,90" heading="135,136,136,137,134"/>
<unit unitid="Pz Kpfw VI Tiger I" unitname="Stab/1-503 Schwere" exp="Veteran" number="1" max="1" x="256" z="196" heading="134,133,136,132"/>


The unitname displays fine for the "1/1-6 Recon Platoon", and the "2/Stab-503", but the second unit "1/Stab-503" is displaying it's name as a number - 75. The same goes for the last two(but they are different numbers). This is also happening with other German units I've built for this scenario, but this is just an example.

Any ideas?



the 'max' must equal the number of unit coordinates you are giving. the stab-503 has a 'max' of 2 but has 4 unit coordinates for x, z, and heading. either up max to 4 or kill off 2 from each of the x,z, and heading. You have a similar problem with the bottom tiger too, it has 5 headings (for 5 units).

that should fix you up

FYI - max = number of units in squad and each unit must have a X, Z, and heading.
number = number of untis that are pre-purchased and can be any number <= max.

thanks!


User avatar
Der Oberst
Posts: 64
Joined: Sun Jul 31, 2005 3:12 pm
Location: United States

RE: Possible Design Bug?

Post by Der Oberst »

Dang persnickety XML! [:D]

Thanks so much. That did the trick!

Now, back to my Schwere Abteilung 503 scenario! [:D]



Regards,

Der Oberst
-----------------------------------------
Post Reply

Return to “Scenario Design and Modding”