BUG Panzer Corps v1.30 breaks the game with the purchase

A forum to discuss custom scenarios, campaigns and modding in general.

Moderators: Slitherine Core, Panzer Corps Design, Panzer Corps Moderators

Post Reply
bcnkor
Senior Corporal - Destroyer
Senior Corporal - Destroyer
Posts: 104
Joined: Sat Jan 19, 2008 12:06 pm

BUG Panzer Corps v1.30 breaks the game with the purchase

Post by bcnkor »

1-With the Panzer Corps v1.30 the game is broken with the purchase of ships in the Purchase option.

How can we buy boats and structure?
Sub, cruiser, battleship, carrier without breaking the game:

When adding the lines to buy boats in purchase.htm
when you enter Ships (purchase in game) several times (several times entering to buy boats in unitclass only with Sub, cruiser, battleship, carrier and structure) it ends up breaking the game and sends you to windows.

2-I used to work with lower versions game and now I can not get it to work for me. Even installing (vainilla) everything again. I still failThe lines that I put inside the UI / purchase.htm folder.
I think it is necessary to add the ships in some line more in some other file, to see if someone can help me, thanks ...

<div id="ClassList" style="position:absolute; left:15px; top:205px; height:min-intrinsic; width: 160px; overflow:hidden">
<button.cls name="unitclass" type="radio" id="unitclass0"><img src="purchase/classes/0.png" />&nbsp;IDS_CLASS_LONG_INFANTRY</button>
<div style="height:5px" />
<button.cls name="unitclass" type="radio" id="unitclass1"><img src="purchase/classes/1.png" />&nbsp;IDS_CLASS_LONG_TANK</button>
<div style="height:5px" />
<button.cls name="unitclass" type="radio" id="unitclass2"><img src="purchase/classes/2.png" />&nbsp;IDS_CLASS_LONG_RECON</button>
<div style="height:5px" />
<button.cls name="unitclass" type="radio" id="unitclass3"><img src="purchase/classes/3.png" />&nbsp;IDS_CLASS_LONG_AT</button>
<div style="height:5px" />
<button.cls name="unitclass" type="radio" id="unitclass4"><img src="purchase/classes/4.png" />&nbsp;IDS_CLASS_LONG_ARTY</button>
<div style="height:5px" />
<button.cls name="unitclass" type="radio" id="unitclass5"><img src="purchase/classes/5.png" />&nbsp;IDS_CLASS_LONG_AA</button>
<div style="height:5px" />
<button.cls name="unitclass" type="radio" id="unitclass6"><img src="purchase/classes/6.png" />&nbsp;IDS_CLASS_LONG_STRUCTURE</button>
<div style="height:5px" />
<button.cls name="unitclass" type="radio" id="unitclass7"><img src="purchase/classes/7.png" />&nbsp;IDS_CLASS_LONG_FIGHTER</button>
<div style="height:5px" />
<button.cls name="unitclass" type="radio" id="unitclass8"><img src="purchase/classes/8.png" />&nbsp;IDS_CLASS_LONG_TAC_BOMBER</button>
<div style="height:5px" />
<button.cls name="unitclass" type="radio" id="unitclass9"><img src="purchase/classes/9.png" />&nbsp;IDS_CLASS_LONG_STR_BOMBER</button>
<div style="height:5px" />
<button.cls name="unitclass" type="radio" id="unitclass10"><img src="purchase/classes/10.png" />&nbsp;IDS_CLASS_LONG_SUB</button>
<div style="height:5px" />
<button.cls name="unitclass" type="radio" id="unitclass11"><img src="purchase/classes/11.png" />&nbsp;IDS_CLASS_LONG_DESTROYER</button>
<div style="height:5px" />
<button.cls name="unitclass" type="radio" id="unitclass12"><img src="purchase/classes/12.png" />&nbsp;IDS_CLASS_LONG_CAPITAL_SHIP</button>
<div style="height:5px" />
<button.cls name="unitclass" type="radio" id="unitclass13"><img src="purchase/classes/13.png" />&nbsp;IDS_CLASS_LONG_CARRIER</button>
</div>
---------------------------------------------------------------------
----------------------------------------------------------------------
3-the basic default basic lines:

<div id="ClassList" style="position:absolute; right:15px; top:205px; height:min-intrinsic; width: 160px; overflow:hidden">
<button.cls name="unitclass" type="radio" id="unitclass0"><img src="purchase/classes/0.png" />&nbsp;IDS_CLASS_LONG_INFANTRY</button>
<div style="height:5px" />
<button.cls name="unitclass" type="radio" id="unitclass1"><img src="purchase/classes/1.png" />&nbsp;IDS_CLASS_LONG_TANK</button>
<div style="height:5px" />
<button.cls name="unitclass" type="radio" id="unitclass2"><img src="purchase/classes/2.png" />&nbsp;IDS_CLASS_LONG_RECON</button>
<div style="height:5px" />
<button.cls name="unitclass" type="radio" id="unitclass3"><img src="purchase/classes/3.png" />&nbsp;IDS_CLASS_LONG_AT</button>
<div style="height:5px" />
<button.cls name="unitclass" type="radio" id="unitclass4"><img src="purchase/classes/4.png" />&nbsp;IDS_CLASS_LONG_ARTY</button>
<div style="height:5px" />
<button.cls name="unitclass" type="radio" id="unitclass5"><img src="purchase/classes/5.png" />&nbsp;IDS_CLASS_LONG_AA</button>
<div style="height:5px" />
<button.cls name="unitclass" type="radio" id="unitclass7"><img src="purchase/classes/7.png" />&nbsp;IDS_CLASS_LONG_FIGHTER</button>
<div style="height:5px" />
<button.cls name="unitclass" type="radio" id="unitclass8"><img src="purchase/classes/8.png" />&nbsp;IDS_CLASS_LONG_TAC_BOMBER</button>
<div style="height:5px" />
<button.cls name="unitclass" type="radio" id="unitclass9"><img src="purchase/classes/9.png" />&nbsp;IDS_CLASS_LONG_STR_BOMBER</button>
</div>
Attachments
Purchase.jpg
Purchase.jpg (66.45 KiB) Viewed 3094 times
Last edited by bcnkor on Sun Dec 10, 2017 2:57 pm, edited 1 time in total.
wrm76
Lance Corporal - Panzer IA
Lance Corporal - Panzer IA
Posts: 17
Joined: Sat Nov 15, 2014 6:31 pm
Location: Romania
Contact:

Re: BUG Panzer Corps v1.30 breaks the game with the purchase

Post by wrm76 »

<html>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<link rel="stylesheet" type="text/css" href="panzercorps.css">

<head>

<style>
div
{
//border:1px solid red;
}
.flag[type="radio"],
.flag[type="radio"]:hover
{
background-image:url(purchase/purchase_tab_inact.png);
background-repeat:no-repeat;
width:29px;
height:29px;
padding:0px;
padding-left:3px;
padding-top:5px;
border:0px;
margin:0px;
overflow:hidden;
cursor:default;
vertical-align: top;
foreground-repeat: no-repeat;
foreground-position: center center;
}

.flag[type="radio"]:active,
.flag[type="radio"]:checked,
.flag[type="radio"]:active:hover,
.flag[type="radio"]:checked:hover
{
background-image:url(purchase/purchase_tab_act.png);
}

.flag img
{
margin:auto;
padding:0;
}

.flag *
{
vertical-align: top;
}

.cls[type="radio"],
.cls[type="radio"]:hover
{
background-image:url(purchase/purchase_butons_normal.png);
background-repeat:no-repeat;
background-position: left center;
height:33px;
padding:0px;
padding-left:38px;
padding-left:0px;
border:0px;
text-align: left;
vertical-align: middle;
color: #afa37d;
display: block;
font-weight: bold;
font-size: 13px;
cursor:default;
}

.cls *
{
vertical-align: middle;
}

.cls[type="radio"]:active,
.cls[type="radio"]:checked,
.cls[type="radio"]:active:checked
{
background-image:url(purchase/purchase_butons_act.png);
color: #efe0b7;
}

.cls[type="radio"]:disabled
{
foreground-image:url(purchase/purchase_butons_inact.png);
foreground-repeat:no-repeat;
foreground-position: left center;
color: #95907c;
}

.pushbtn
{
width: 154px;
height: 50px;
background-image: url(purchase/panzer_horizont_button01.png);
background-repeat: no-repeat;
text-align: center;
vertical-align: middle;
color: #f9f5c8;
font-weight: bold;
padding: 0px;
font-size:13px;
}

.pushbtn:active
{
background-image: url(purchase/panzer_horizont_button01_act.png);
}

.pushbtn:disabled
{
color: #95907c
}

td.staticon
{
width:30px;
height:30px;
text-align: center;
vertical-align: middle;
// border: 1px solid red;
}

td.staticon > img
{
width:30px;
height:30px;
}

td.statvalue
{
height:30px;
width: 40px;
text-align: center;
vertical-align: middle;
overflow: hidden;
font-weight: bold;
// border: 1px solid red;
}

td.statvalue div
{
// border: 1px solid blue;
height: 30px;
vertical-align: middle;
width: min-intrinsic;
}

td.sel
{
height:20px;
font-size:16px;
}
td.hover
{
height:10px;
font-size:10px;
}
</style>

</head>

<body style="background-image:url(purchase/purchase_bg.png); background-repeat: stretch; padding-top:24px">

<div style="background-image:url(purchase/purchase_box1_head.png); background-repeat:no-repeat; position:absolute; top:5px; width:193px; height:161px">

<div.gotlisch style="position:absolute; left:16px; top:30px; width:160px; height:40px; text-align:center; vertical-align:middle; color:#353630; font-size:37px">
<span id="Header">IDS_BUTTON_PURCHASE</span>
</div>

<div style="position:absolute; left:26px; top:94px; height:25px; text-align:left; vertical-align:middle; color:#c5bf9d; font-size:12px; font-weight:bold">
IDS_LABEL_PRESTIGE
</div>

<div style="position:absolute; left:61px; top:94px; height:25px; width: 64px; text-align:center; vertical-align:middle; color:#fdda76; font-size:12px; font-weight:bold">
<span id="Credit10000" style="color:#E3DE8C">0</span>
</div>

<div style="position:absolute; left:73px; top:94px; height:25px; width: 64px; text-align:center; vertical-align:middle; color:#fdda76; font-size:12px; font-weight:bold">
<span id="Credit1000" style="color:#E3DE8C">0</span>
</div>

<div style="position:absolute; left:85px; top:94px; height:25px; width: 64px; text-align:center; vertical-align:middle; color:#fdda76; font-size:12px; font-weight:bold">
<span id="Credit100" style="color:#E3DE8C">0</span>
</div>

<div style="position:absolute; left:97px; top:94px; height:25px; width: 64px; text-align:center; vertical-align:middle; color:#fdda76; font-size:12px; font-weight:bold">
<span id="Credit10" style="color:#E3DE8C">0</span>
</div>

<div style="position:absolute; left:109px; top:94px; height:25px; width: 64px; text-align:center; vertical-align:middle; color:#fdda76; font-size:12px; font-weight:bold">
<span id="Credit1" style="color:#E3DE8C">0</span>
</div>

<div style="position:absolute; left:26px; top:123px; height:25px; text-align:left; vertical-align:middle; color:#c5bf9d; font-size:12px; font-weight:bold">
IDS_LABEL_CORE_UNITS
</div>

<div style="position:absolute; left:117px; top:123px; height:25px; width: 25px; text-align:center; vertical-align:middle; color:#fdda76; font-size:12px; font-weight:bold">
<span id="CoreUnits10" style="color:#E3DE8C">0</span>
</div>

<div style="position:absolute; left:129px; top:123px; height:25px; width: 25px; text-align:center; vertical-align:middle; color:#fdda76; font-size:12px; font-weight:bold">
<span id="CoreUnits1" style="color:#E3DE8C">0</span>
</div>

</div>

<div style="flow:grid; height:100%%; overflow:hidden">

<div style="left:1#; top:1#; width:193px; height:100%; background-image:url(purchase/purchase_box2.png); background-repeat:expand stretch-middle; background-position: 20px 20px 20px 20px; margin-right:13px">

<div id="FlagList" style="position:absolute; left:15px; top:160px; height:31px; width: 160px; text-align: left; vertical-align: top; overflow:hidden">
<button.flag name="flag" type="radio" id="flag0"></button><button.flag name="flag" type="radio" id="flag1"></button><button.flag name="flag" type="radio" id="flag2"></button><button.flag name="flag" type="radio" id="flag3"></button><button.flag name="flag" type="radio" id="flag4"></button>
</div>

<div id="ClassList" style="position:absolute; left:15px; top:205px; height:min-intrinsic; width: 160px; overflow:hidden">
<button.cls name="unitclass" type="radio" id="unitclass0"><img src="purchase/classes/0.png" />&nbsp;IDS_CLASS_LONG_INFANTRY</button>
<div style="height:5px" />
<button.cls name="unitclass" type="radio" id="unitclass1"><img src="purchase/classes/1.png" />&nbsp;IDS_CLASS_LONG_TANK</button>
<div style="height:5px" />
<button.cls name="unitclass" type="radio" id="unitclass2"><img src="purchase/classes/2.png" />&nbsp;IDS_CLASS_LONG_RECON</button>
<div style="height:5px" />
<button.cls name="unitclass" type="radio" id="unitclass3"><img src="purchase/classes/3.png" />&nbsp;IDS_CLASS_LONG_AT</button>
<div style="height:5px" />
<button.cls name="unitclass" type="radio" id="unitclass4"><img src="purchase/classes/4.png" />&nbsp;IDS_CLASS_LONG_ARTY</button>
<div style="height:5px" />
<button.cls name="unitclass" type="radio" id="unitclass5"><img src="purchase/classes/5.png" />&nbsp;IDS_CLASS_LONG_AA</button>
<div style="height:5px" />
<button.cls name="unitclass" type="radio" id="unitclass7"><img src="purchase/classes/7.png" />&nbsp;IDS_CLASS_LONG_FIGHTER</button>
<div style="height:5px" />
<button.cls name="unitclass" type="radio" id="unitclass8"><img src="purchase/classes/8.png" />&nbsp;IDS_CLASS_LONG_TAC_BOMBER</button>
<div style="height:5px" />
<button.cls name="unitclass" type="radio" id="unitclass9"><img src="purchase/classes/9.png" />&nbsp;IDS_CLASS_LONG_STR_BOMBER</button>
<div style="height:5px" />
<button.cls name="unitclass" type="radio" id="unitclass6"><img src="purchase/classes/6.png" />&nbsp;IDS_CLASS_LONG_STRUCTURE</button>
<div style="height:5px" />
<button.cls name="unitclass" type="radio" id="unitclass18"><img src="purchase/classes/18.png" />&nbsp;IDS_CLASS_LONG_ARMOURED_TRAIN</button>
<div style="height:5px" />
<button.cls name="unitclass" type="radio" id="unitclass13"><img src="purchase/classes/13.png" />&nbsp;IDS_CLASS_LONG_CARRIER</button>
<div style="height:5px" />
<button.cls name="unitclass" type="radio" id="unitclass12"><img src="purchase/classes/12.png" />&nbsp;IDS_CLASS_LONG_CAPITAL_SHIP</button>
<div style="height:5px" />
<button.cls name="unitclass" type="radio" id="unitclass11"><img src="purchase/classes/11.png" />&nbsp;IDS_CLASS_LONG_DESTROYER</button>
<div style="height:5px" />
<button.cls name="unitclass" type="radio" id="unitclass19"><img src="purchase/classes/19.png" />&nbsp;IDS_CLASS_LONG_RIVER_BOAT</button>
<div style="height:5px" />
<button.cls name="unitclass" type="radio" id="unitclass10"><img src="purchase/classes/10.png" />&nbsp;IDS_CLASS_LONG_SUB</button>
</div>

<div style="height:100%%" />

<div style="padding:10px; font-size:13px" id="ShowAllNationsDiv">
<input type="checkbox" name="ShowAllNations" id="ShowAllNations" style="vertical-align:middle" />IDS_SHOW_ALL_NATIONS
</div>

</div>

<div style="left:2#; top:1#; width:100%%; height:100%">

<div style="height:100%%; width: 100%%; background-image:url(purchase/purchase_box2.png); background-repeat:expand stretch-middle; background-position: 30px 30px 30px 30px; padding: 20px">
<widget.typelist type="select" id="UnitList">

<!--
<OPTION VALUE=0 name="unit"><div.btn><img.uniticon icon="" /></div><div.label>Test1</div></OPTION>
<OPTION.red VALUE=1 name="unit"><div.btn><img.uniticon icon="" /></div><div.label>Test2</div></OPTION>
-->

</widget>
</div>

<div style="height:130px; width: 100%%; background-image:url(purchase/purchase_box2.png); background-repeat:expand stretch-middle; background-position: 20px 20px 20px 20px; margin-top:13px; padding: 20px">
<widget.typelist type="select" id="TransportList">

<!--
<OPTION VALUE=0 name="unit"><div.btn><img.uniticon icon="" /></div><div.label>Test1</div></OPTION>
<OPTION.red VALUE=1 name="unit"><div.btn><img.uniticon icon="" /></div><div.label>Test2</div></OPTION>
-->

</widget>
</div>

</div>

<div style="left:3#; top:1#; width:320px; margin-left: 10px">

<div id="UnitClassDescription" style="height:min-intrinsic; width: 280px; text-align:left; vertical-align:top; padding:20px; display:none">
</div>

<div id="UnitStats" style="background-image:url(purchase/purchase_unitinfo.png); background-repeat:expand; background-position: 273px 0px 0px 0px; display:block; height:100%%">

<div id="UnitBlock" style="position:absolute; right:35px; top:0px; height:256px; width: 256px; text-align:center; vertical-align:middle">
<span id="UnitBigIcon"></span>
<div id="UnitSpecialAbilities" style="position:absolute; left:80px; top:250px; height:24px; width: 96px; text-align:center; vertical-align:middle">
&nbsp;
</div>
</div>

<div id="UnitBlock" style="position:absolute; right:45px; top:208px; height:38px; width: 242px; text-align:center; vertical-align:middle">
<span id="UnitTypeLong" style="color:#333230; font-family: Georgia; font-size:13px; font-weight:bold"></span>
</div>

<div style="height:250px" />

<div style="height:100%%; max-height: 30px" />

<div style="height:min-intrinsic; width: 320px; text-align:center; vertical-align:middle; overflow:hidden">
<table id="UnitBlock" cellspacing=-1 cellpadding=0 style="margin:auto">
<tr>
<td>
<table cellspacing=-1 cellpadding=0>
<tr.s><td.staticon><img src="stats/icon_cost.png" tooltip="IDS_STAT_COST" moreinfo="IDI_STATS_COST" /></td></tr>
<tr.s><td.staticon><img src="stats/icon_strength.png" tooltip="IDS_STAT_MAX_STRENGTH" moreinfo="IDI_STATS_MAX_STRENGTH" /></td></tr>
<tr.s><td.staticon><img src="stats/icon_fuel.png" tooltip="IDS_STAT_MAX_FUEL" moreinfo="IDI_STATS_MAX_FUEL" /></td></tr>
<tr.s><td.staticon><img src="stats/icon_ammo.png" tooltip="IDS_STAT_MAX_AMMO" moreinfo="IDI_STATS_MAX_AMMO" /></td></tr>
</table>
</td>
<td>
<table style="height: 100%%" cellspacing=-1 cellpadding=0>
<tr><td.statvalue><span id="UnitCost" /></td></tr>
<tr><td.statvalue><span id="UnitMaxStrength" /></td></tr>
<tr><td.statvalue><span id="UnitMaxFuel" /></td></tr>
<tr><td.statvalue><span id="UnitMaxAmmo" /></td></tr>
</table>
</td>
<td>
<table id="Unit2Block" style="height: 100%%" cellspacing=-1 cellpadding=0>
<tr><td.statvalue><span id="Unit2Cost" /></td></tr>
<tr><td.statvalue><span id="Unit2MaxStrength" /></td></tr>
<tr><td.statvalue><span id="Unit2MaxFuel" /></td></tr>
<tr><td.statvalue><span id="Unit2MaxAmmo" /></td></tr>
</table>
</td>
<td>
<table id="TransportBlock" style="height: 100%%" cellspacing=-1 cellpadding=0>
<tr><td.statvalue id="TransportCost" align=center></td></tr>
<tr><td.statvalue id="TransportMaxStrength"></td></tr>
<tr><td.statvalue id="TransportMaxFuel"></td></tr>
<tr><td.statvalue id="TransportMaxAmmo"></td></tr>
</table>
</td>
<td>
<table cellspacing=-1 cellpadding=0>
<tr.s><td.staticon><img src="stats/icon_moves.png" tooltip="IDS_STAT_MOVEMENT" moreinfo="IDI_STATS_MOVEMENT" /></td></tr>
<tr.s><td.staticon><img src="stats/icon_LOS.png" tooltip="IDS_STAT_SPOTTING" moreinfo="IDI_STATS_SPOTTING" /></td></tr>
<tr.s><td.staticon><img src="stats/icon_range.png" tooltip="IDS_STAT_RANGE" moreinfo="IDI_STATS_RANGE" /></td></tr>
<tr.s><td.staticon><img src="stats/icon_initiative.png" tooltip="IDS_STAT_INITIATIVE" moreinfo="IDI_STATS_INITIATIVE" /></td></tr>
</table>
</td>
<td>
<table style="height: 100%%" cellspacing=-1 cellpadding=0>
<tr><td.statvalue style="flow:h-flow"><div style="width:50%%"/><div id="UnitMovement" /><div id="UnitMovementIcon" /></td></tr>
<tr><td.statvalue><span id="UnitSpotting" /></td></tr>
<tr><td.statvalue><span id="UnitRange" /></td></tr>
<tr><td.statvalue><span id="UnitInitiative" /></td></tr>
</table>
</td>
<td>
<table id="Unit2Block" style="height: 100%%" cellspacing=-1 cellpadding=0>
<tr><td.statvalue style="flow:h-flow"><div style="width:50%%"/><div id="Unit2Movement" /><div id="Unit2MovementIcon" /></td></tr>
<tr><td.statvalue><span id="Unit2Spotting" /></td></tr>
<tr><td.statvalue><span id="Unit2Range" /></td></tr>
<tr><td.statvalue><span id="Unit2Initiative" /></td></tr>
</table>
</td>
<td>
<table id="TransportBlock" style="height: 100%%" cellspacing=-1 cellpadding=0>
<tr><td.statvalue style="flow:h-flow"><div style="width:50%%"/><div id="TransportMovement" /><div id="TransportMovementIcon" /></td></tr>
<tr><td.statvalue id="TransportSpotting"></td></tr>
<tr><td.statvalue id="TransportRange"></td></tr>
<tr><td.statvalue id="TransportInitiative"></td></tr>
</table>
</td>
</tr>
<tr>
<td>
<table cellspacing=-1 cellpadding=0>
<tr.s><td.staticon><img src="stats/icon_softatt.png" tooltip="IDS_STAT_SOFT_ATTACK" moreinfo="IDI_STATS_SOFT_ATTACK" /></td></tr>
<tr.s><td.staticon><img src="stats/icon_hardatt.png" tooltip="IDS_STAT_HARD_ATTACK" moreinfo="IDI_STATS_HARD_ATTACK" /></td></tr>
<tr.s><td.staticon><img src="stats/icon_airatt.png" tooltip="IDS_STAT_AIR_ATTACK" moreinfo="IDI_STATS_AIR_ATTACK" /></td></tr>
<tr.s><td.staticon><img src="stats/icon_navatt.png" tooltip="IDS_STAT_NAVAL_ATTACK" moreinfo="IDI_STATS_NAVAL_ATTACK" /></td></tr>
</table>
</td>
<td>
<table style="height: 100%%" cellspacing=-1 cellpadding=0>
<tr><td.statvalue><span id="UnitSoftAttack" /></td></tr>
<tr><td.statvalue><span id="UnitHardAttack" /></td></tr>
<tr><td.statvalue><span id="UnitAirAttack" /></td></tr>
<tr><td.statvalue><span id="UnitNavalAttack" /></td></tr>
</table>
</td>
<td>
<table id="Unit2Block" style="height: 100%%" cellspacing=-1 cellpadding=0>
<tr><td.statvalue><span id="Unit2SoftAttack" /></td></tr>
<tr><td.statvalue><span id="Unit2HardAttack" /></td></tr>
<tr><td.statvalue><span id="Unit2AirAttack" /></td></tr>
<tr><td.statvalue><span id="Unit2NavalAttack" /></td></tr>
</table>
</td>
<td>
<table id="TransportBlock" style="height: 100%%" cellspacing=-1 cellpadding=0>
<tr><td.statvalue id="TransportSoftAttack" align=center"></td></tr>
<tr><td.statvalue id="TransportHardAttack"></td></tr>
<tr><td.statvalue id="TransportAirAttack"></td></tr>
<tr><td.statvalue id="TransportNavalAttack"></td></tr>
</table>
</td>
<td>
<table cellspacing=-1 cellpadding=0>
<tr.s><td.staticon><img src="stats/icon_grounddef.png" tooltip="IDS_STAT_GROUND_DEFENSE" moreinfo="IDI_STATS_GROUND_DEFENSE" /></td></tr>
<tr.s><td.staticon><img src="stats/icon_airdef.png" tooltip="IDS_STAT_AIR_DEFENSE" moreinfo="IDI_STATS_AIR_DEFENSE" /></td></tr>
<tr.s><td.staticon><img src="stats/icon_closedef.png" tooltip="IDS_STAT_CLOSE_DEFENSE" moreinfo="IDI_STATS_CLOSE_DEFENSE" /></td></tr>
<tr.s><td.staticon><img src="stats/icon_targettype.png" tooltip="IDS_STAT_TARGET_TYPE" moreinfo="IDI_STATS_TARGET_TYPE" /></td></tr>
</table>
</td>
<td>
<table style="height: 100%%" cellspacing=-1 cellpadding=0>
<tr><td.statvalue><span id="UnitGroundDefense" /></td></tr>
<tr><td.statvalue><span id="UnitAirDefense" /></td></tr>
<tr><td.statvalue><span id="UnitCloseDefense" /></td></tr>
<tr><td.statvalue><span id="UnitTargetType" style="font-size:13px" /></td></tr>
</table>
</td>
<td>
<table id="Unit2Block" style="height: 100%%" cellspacing=-1 cellpadding=0>
<tr><td.statvalue><span id="Unit2GroundDefense" /></td></tr>
<tr><td.statvalue><span id="Unit2AirDefense" /></td></tr>
<tr><td.statvalue><span id="Unit2CloseDefense" /></td></tr>
<tr><td.statvalue><span id="Unit2TargetType" style="font-size:13px" /></td></tr>
</table>
</td>
<td>
<table id="TransportBlock" style="height: 100%%" cellspacing=-1 cellpadding=0>
<tr><td.statvalue id="TransportGroundDefense" align=center"></td></tr>
<tr><td.statvalue id="TransportAirDefense"></td></tr>
<tr><td.statvalue id="TransportCloseDefense"></td></tr>
<tr><td.statvalue id="TransportTargetType" style="font-size:13px" ></td></tr>
</table>
</td>
</tr>
</table>

<p id="UnitBlock" style="font-size:15px; font-weight: 900">
IDS_LABEL_TOTAL_COST <span id="TotalCost" style="color:#fbd661">0</span>
</p>
<p id="UnitBlock" style="font-size:15px; font-weight: 900">
<span id="RedMessage" style="color:#ff0000"></span>
</p>
</div>

<div style="height:60px" />

</div>



<div style="position:absolute; right:0px; bottom:0px; height:min-intrinsic; width: 330px; text-align:center; vertical-align:middle">
<button.pushbtn id="cmd_ok"><span id="PurchaseText">IDS_BUTTON_PURCHASE</span></button>
<button.pushbtn id="cmd_cancel">IDS_BUTTON_CANCEL</button>
</div>

</div>

</body>
</html>
wrm76
Lance Corporal - Panzer IA
Lance Corporal - Panzer IA
Posts: 17
Joined: Sat Nov 15, 2014 6:31 pm
Location: Romania
Contact:

Re: BUG Panzer Corps v1.30 breaks the game with the purchase

Post by wrm76 »

open-it with Notepad++ and save as .htm file . is it possible to save as .txt and change after the extension to .htm . It represent the Purchase Mini-Mod by Puma v.1.30 . you will need the .png image files representing the classes unlocked , butt is not necessary .
Ballermann
Sergeant First Class - Panzer IIIL
Sergeant First Class - Panzer IIIL
Posts: 396
Joined: Sat Oct 08, 2011 2:03 pm
Location: Germany

Re: BUG Panzer Corps v1.30 breaks the game with the purchase

Post by Ballermann »

There is no bug with purchase in v.1.30! Because its a mod, a Purchase Mod.

See in the second Post:
http://streitmacht.com/viewtopic.php?f=406&t=2198
Sorry, for my bad school english...
bcnkor
Senior Corporal - Destroyer
Senior Corporal - Destroyer
Posts: 104
Joined: Sat Jan 19, 2008 12:06 pm

Re: BUG Panzer Corps v1.30 breaks the game with the purchase

Post by bcnkor »

wrm76 wrote:open-it with Notepad++ and save as .htm file . is it possible to save as .txt and change after the extension to .htm . It represent the Purchase Mini-Mod by Puma v.1.30 . you will need the .png image files representing the classes unlocked , butt is not necessary .

wrm76: It represent the Purchase Mini-Mod by Puma v.1.30

Thanks for answering, if I downloaded version 1.3 of PUMA and it does not work (with Sub, cruiser, battleship, carrier ), it fails me to enter the ships. I have also tested your purchase.html and it keeps failing, now I have windows 10 before I had windows 7.
Note: With the other unitclass (no ships) functions everything is fine.
wrm76: If it works, send me a copy of your file, thanks for everything.

http://streitmacht.com/viewtopic.php?f=406&t=2198

--------------------------------------
My File:
---------------------------------------

<html>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<link rel="stylesheet" type="text/css" href="panzercorps.css">

<head>

<style>
div
{
//border:1px solid red;
}
.flag[type="radio"],
.flag[type="radio"]:hover
{
background-image:url(purchase/purchase_tab_inact.png);
background-repeat:no-repeat;
width:29px;
height:29px;
padding:0px;
padding-left:3px;
padding-top:5px;
border:0px;
margin:0px;
overflow:hidden;
cursor:default;
vertical-align: top;
foreground-repeat: no-repeat;
foreground-position: center center;
}

.flag[type="radio"]:active,
.flag[type="radio"]:checked,
.flag[type="radio"]:active:hover,
.flag[type="radio"]:checked:hover
{
background-image:url(purchase/purchase_tab_act.png);
}

.flag img
{
margin:auto;
padding:0;
}

.flag *
{
vertical-align: top;
}

.cls[type="radio"],
.cls[type="radio"]:hover
{
background-image:url(purchase/purchase_butons_normal.png);
background-repeat:no-repeat;
background-position: left center;
height:33px;
padding:0px;
padding-left:38px;
padding-left:0px;
border:0px;
text-align: left;
vertical-align: middle;
color: #afa37d;
display: block;
font-weight: bold;
font-size: 13px;
cursor:default;
}

.cls *
{
vertical-align: middle;
}

.cls[type="radio"]:active,
.cls[type="radio"]:checked,
.cls[type="radio"]:active:checked
{
background-image:url(purchase/purchase_butons_act.png);
color: #efe0b7;
}

.cls[type="radio"]:disabled
{
foreground-image:url(purchase/purchase_butons_inact.png);
foreground-repeat:no-repeat;
foreground-position: left center;
color: #95907c;
}

.pushbtn
{
width: 154px;
height: 50px;
background-image: url(purchase/panzer_horizont_button01.png);
background-repeat: no-repeat;
text-align: center;
vertical-align: middle;
color: #f9f5c8;
font-weight: bold;
padding: 0px;
font-size:13px;
}

.pushbtn:active
{
background-image: url(purchase/panzer_horizont_button01_act.png);
}

.pushbtn:disabled
{
color: #95907c
}

td.staticon
{
width:30px;
height:30px;
text-align: center;
vertical-align: middle;
// border: 1px solid red;
}

td.staticon > img
{
width:30px;
height:30px;
}

td.statvalue
{
height:30px;
width: 40px;
text-align: center;
vertical-align: middle;
overflow: hidden;
font-weight: bold;
// border: 1px solid red;
}

td.statvalue div
{
// border: 1px solid blue;
height: 30px;
vertical-align: middle;
width: min-intrinsic;
}

td.sel
{
height:20px;
font-size:16px;
}
td.hover
{
height:10px;
font-size:10px;
}
</style>

</head>

<body style="background-image:url(purchase/purchase_bg.png); background-repeat: stretch; padding-top:24px">

<div style="background-image:url(purchase/purchase_box1_head.png); background-repeat:no-repeat; position:absolute; top:5px; width:193px; height:161px">

<div.gotlisch style="position:absolute; left:16px; top:30px; width:160px; height:40px; text-align:center; vertical-align:middle; color:#353630; font-size:37px">
<span id="Header">IDS_BUTTON_PURCHASE</span>
</div>

<div style="position:absolute; left:26px; top:94px; height:25px; text-align:left; vertical-align:middle; color:#c5bf9d; font-size:12px; font-weight:bold">
IDS_LABEL_PRESTIGE
</div>

<div style="position:absolute; left:61px; top:94px; height:25px; width: 64px; text-align:center; vertical-align:middle; color:#fdda76; font-size:12px; font-weight:bold">
<span id="Credit10000" style="color:#E3DE8C">0</span>
</div>

<div style="position:absolute; left:73px; top:94px; height:25px; width: 64px; text-align:center; vertical-align:middle; color:#fdda76; font-size:12px; font-weight:bold">
<span id="Credit1000" style="color:#E3DE8C">0</span>
</div>

<div style="position:absolute; left:85px; top:94px; height:25px; width: 64px; text-align:center; vertical-align:middle; color:#fdda76; font-size:12px; font-weight:bold">
<span id="Credit100" style="color:#E3DE8C">0</span>
</div>

<div style="position:absolute; left:97px; top:94px; height:25px; width: 64px; text-align:center; vertical-align:middle; color:#fdda76; font-size:12px; font-weight:bold">
<span id="Credit10" style="color:#E3DE8C">0</span>
</div>

<div style="position:absolute; left:109px; top:94px; height:25px; width: 64px; text-align:center; vertical-align:middle; color:#fdda76; font-size:12px; font-weight:bold">
<span id="Credit1" style="color:#E3DE8C">0</span>
</div>

<div style="position:absolute; left:26px; top:123px; height:25px; text-align:left; vertical-align:middle; color:#c5bf9d; font-size:12px; font-weight:bold">
IDS_LABEL_CORE_UNITS
</div>

<div style="position:absolute; left:117px; top:123px; height:25px; width: 25px; text-align:center; vertical-align:middle; color:#fdda76; font-size:12px; font-weight:bold">
<span id="CoreUnits10" style="color:#E3DE8C">0</span>
</div>

<div style="position:absolute; left:129px; top:123px; height:25px; width: 25px; text-align:center; vertical-align:middle; color:#fdda76; font-size:12px; font-weight:bold">
<span id="CoreUnits1" style="color:#E3DE8C">0</span>
</div>

</div>

<div style="flow:grid; height:100%%; overflow:hidden">

<div style="left:1#; top:1#; width:193px; height:100%; background-image:url(purchase/purchase_box2.png); background-repeat:expand stretch-middle; background-position: 20px 20px 20px 20px; margin-right:13px">

<div id="FlagList" style="position:absolute; left:15px; top:160px; height:31px; width: 160px; text-align: left; vertical-align: top; overflow:hidden">
<button.flag name="flag" type="radio" id="flag0"></button><button.flag name="flag" type="radio" id="flag1"></button><button.flag name="flag" type="radio" id="flag2"></button><button.flag name="flag" type="radio" id="flag3"></button><button.flag name="flag" type="radio" id="flag4"></button>
</div>

<div id="ClassList" style="position:absolute; left:15px; top:205px; height:min-intrinsic; width: 160px; overflow:hidden">
<button.cls name="unitclass" type="radio" id="unitclass0"><img src="purchase/classes/0.png" />&nbsp;IDS_CLASS_LONG_INFANTRY</button>
<div style="height:5px" />
<button.cls name="unitclass" type="radio" id="unitclass1"><img src="purchase/classes/1.png" />&nbsp;IDS_CLASS_LONG_TANK</button>
<div style="height:5px" />
<button.cls name="unitclass" type="radio" id="unitclass2"><img src="purchase/classes/2.png" />&nbsp;IDS_CLASS_LONG_RECON</button>
<div style="height:5px" />
<button.cls name="unitclass" type="radio" id="unitclass3"><img src="purchase/classes/3.png" />&nbsp;IDS_CLASS_LONG_AT</button>
<div style="height:5px" />
<button.cls name="unitclass" type="radio" id="unitclass4"><img src="purchase/classes/4.png" />&nbsp;IDS_CLASS_LONG_ARTY</button>
<div style="height:5px" />
<button.cls name="unitclass" type="radio" id="unitclass5"><img src="purchase/classes/5.png" />&nbsp;IDS_CLASS_LONG_AA</button>
<div style="height:5px" />
<button.cls name="unitclass" type="radio" id="unitclass6"><img src="purchase/classes/6.png" />&nbsp;IDS_CLASS_LONG_STRUCTURE</button>
<div style="height:5px" />
<button.cls name="unitclass" type="radio" id="unitclass7"><img src="purchase/classes/7.png" />&nbsp;IDS_CLASS_LONG_FIGHTER</button>
<div style="height:5px" />
<button.cls name="unitclass" type="radio" id="unitclass8"><img src="purchase/classes/8.png" />&nbsp;IDS_CLASS_LONG_TAC_BOMBER</button>
<div style="height:5px" />
<button.cls name="unitclass" type="radio" id="unitclass9"><img src="purchase/classes/9.png" />&nbsp;IDS_CLASS_LONG_STR_BOMBER</button>
<div style="height:5px" />
<button.cls name="unitclass" type="radio" id="unitclass10"><img src="purchase/classes/10.png" />&nbsp;IDS_CLASS_LONG_SUB</button>
<div style="height:5px" />
<button.cls name="unitclass" type="radio" id="unitclass11"><img src="purchase/classes/11.png" />&nbsp;IDS_CLASS_LONG_DESTROYER</button>
<div style="height:5px" />
<button.cls name="unitclass" type="radio" id="unitclass12"><img src="purchase/classes/12.png" />&nbsp;IDS_CLASS_LONG_CAPITAL_SHIP</button>
<div style="height:5px" />
<button.cls name="unitclass" type="radio" id="unitclass13"><img src="purchase/classes/13.png" />&nbsp;IDS_CLASS_LONG_CARRIER</button>
</div>

<div style="height:100%%" />

<div style="padding:10px; font-size:13px" id="ShowAllNationsDiv">
<input type="checkbox" name="ShowAllNations" id="ShowAllNations" style="vertical-align:middle" />IDS_SHOW_ALL_NATIONS
</div>

</div>

<div style="left:2#; top:1#; width:100%%; height:100%">

<div style="height:100%%; width: 100%%; background-image:url(purchase/purchase_box2.png); background-repeat:expand stretch-middle; background-position: 30px 30px 30px 30px; padding: 20px">
<widget.typelist type="select" id="UnitList">

<!--
<OPTION VALUE=0 name="unit"><div.btn><img.uniticon icon="" /></div><div.label>Test1</div></OPTION>
<OPTION.red VALUE=1 name="unit"><div.btn><img.uniticon icon="" /></div><div.label>Test2</div></OPTION>
-->

</widget>
</div>

<div style="height:130px; width: 100%%; background-image:url(purchase/purchase_box2.png); background-repeat:expand stretch-middle; background-position: 20px 20px 20px 20px; margin-top:13px; padding: 20px">
<widget.typelist type="select" id="TransportList">

<!--
<OPTION VALUE=0 name="unit"><div.btn><img.uniticon icon="" /></div><div.label>Test1</div></OPTION>
<OPTION.red VALUE=1 name="unit"><div.btn><img.uniticon icon="" /></div><div.label>Test2</div></OPTION>
-->

</widget>
</div>

</div>

<div style="left:3#; top:1#; width:320px; margin-left: 10px">

<div id="UnitClassDescription" style="height:min-intrinsic; width: 280px; text-align:left; vertical-align:top; padding:20px; display:none">
</div>

<div id="UnitStats" style="background-image:url(purchase/purchase_unitinfo.png); background-repeat:expand; background-position: 273px 0px 0px 0px; display:block; height:100%%">

<div id="UnitBlock" style="position:absolute; right:35px; top:0px; height:256px; width: 256px; text-align:center; vertical-align:middle">
<span id="UnitBigIcon"></span>
<div id="UnitSpecialAbilities" style="position:absolute; left:80px; top:250px; height:24px; width: 96px; text-align:center; vertical-align:middle">
&nbsp;
</div>
</div>

<div id="UnitBlock" style="position:absolute; right:45px; top:208px; height:38px; width: 242px; text-align:center; vertical-align:middle">
<span id="UnitTypeLong" style="color:#333230; font-family: Georgia; font-size:13px; font-weight:bold"></span>
</div>

<div style="height:250px" />

<div style="height:100%%; max-height: 30px" />

<div style="height:min-intrinsic; width: 320px; text-align:center; vertical-align:middle; overflow:hidden">
<table id="UnitBlock" cellspacing=-1 cellpadding=0 style="margin:auto">
<tr>
<td>
<table cellspacing=-1 cellpadding=0>
<tr.s><td.staticon><img src="stats/icon_cost.png" tooltip="IDS_STAT_COST" moreinfo="IDI_STATS_COST" /></td></tr>
<tr.s><td.staticon><img src="stats/icon_strength.png" tooltip="IDS_STAT_MAX_STRENGTH" moreinfo="IDI_STATS_MAX_STRENGTH" /></td></tr>
<tr.s><td.staticon><img src="stats/icon_fuel.png" tooltip="IDS_STAT_MAX_FUEL" moreinfo="IDI_STATS_MAX_FUEL" /></td></tr>
<tr.s><td.staticon><img src="stats/icon_ammo.png" tooltip="IDS_STAT_MAX_AMMO" moreinfo="IDI_STATS_MAX_AMMO" /></td></tr>
</table>
</td>
<td>
<table style="height: 100%%" cellspacing=-1 cellpadding=0>
<tr><td.statvalue><span id="UnitCost" /></td></tr>
<tr><td.statvalue><span id="UnitMaxStrength" /></td></tr>
<tr><td.statvalue><span id="UnitMaxFuel" /></td></tr>
<tr><td.statvalue><span id="UnitMaxAmmo" /></td></tr>
</table>
</td>
<td>
<table id="Unit2Block" style="height: 100%%" cellspacing=-1 cellpadding=0>
<tr><td.statvalue><span id="Unit2Cost" /></td></tr>
<tr><td.statvalue><span id="Unit2MaxStrength" /></td></tr>
<tr><td.statvalue><span id="Unit2MaxFuel" /></td></tr>
<tr><td.statvalue><span id="Unit2MaxAmmo" /></td></tr>
</table>
</td>
<td>
<table id="TransportBlock" style="height: 100%%" cellspacing=-1 cellpadding=0>
<tr><td.statvalue id="TransportCost" align=center></td></tr>
<tr><td.statvalue id="TransportMaxStrength"></td></tr>
<tr><td.statvalue id="TransportMaxFuel"></td></tr>
<tr><td.statvalue id="TransportMaxAmmo"></td></tr>
</table>
</td>
<td>
<table cellspacing=-1 cellpadding=0>
<tr.s><td.staticon><img src="stats/icon_moves.png" tooltip="IDS_STAT_MOVEMENT" moreinfo="IDI_STATS_MOVEMENT" /></td></tr>
<tr.s><td.staticon><img src="stats/icon_LOS.png" tooltip="IDS_STAT_SPOTTING" moreinfo="IDI_STATS_SPOTTING" /></td></tr>
<tr.s><td.staticon><img src="stats/icon_range.png" tooltip="IDS_STAT_RANGE" moreinfo="IDI_STATS_RANGE" /></td></tr>
<tr.s><td.staticon><img src="stats/icon_initiative.png" tooltip="IDS_STAT_INITIATIVE" moreinfo="IDI_STATS_INITIATIVE" /></td></tr>
</table>
</td>
<td>
<table style="height: 100%%" cellspacing=-1 cellpadding=0>
<tr><td.statvalue style="flow:h-flow"><div style="width:50%%"/><div id="UnitMovement" /><div id="UnitMovementIcon" /></td></tr>
<tr><td.statvalue><span id="UnitSpotting" /></td></tr>
<tr><td.statvalue><span id="UnitRange" /></td></tr>
<tr><td.statvalue><span id="UnitInitiative" /></td></tr>
</table>
</td>
<td>
<table id="Unit2Block" style="height: 100%%" cellspacing=-1 cellpadding=0>
<tr><td.statvalue style="flow:h-flow"><div style="width:50%%"/><div id="Unit2Movement" /><div id="Unit2MovementIcon" /></td></tr>
<tr><td.statvalue><span id="Unit2Spotting" /></td></tr>
<tr><td.statvalue><span id="Unit2Range" /></td></tr>
<tr><td.statvalue><span id="Unit2Initiative" /></td></tr>
</table>
</td>
<td>
<table id="TransportBlock" style="height: 100%%" cellspacing=-1 cellpadding=0>
<tr><td.statvalue style="flow:h-flow"><div style="width:50%%"/><div id="TransportMovement" /><div id="TransportMovementIcon" /></td></tr>
<tr><td.statvalue id="TransportSpotting"></td></tr>
<tr><td.statvalue id="TransportRange"></td></tr>
<tr><td.statvalue id="TransportInitiative"></td></tr>
</table>
</td>
</tr>
<tr>
<td>
<table cellspacing=-1 cellpadding=0>
<tr.s><td.staticon><img src="stats/icon_softatt.png" tooltip="IDS_STAT_SOFT_ATTACK" moreinfo="IDI_STATS_SOFT_ATTACK" /></td></tr>
<tr.s><td.staticon><img src="stats/icon_hardatt.png" tooltip="IDS_STAT_HARD_ATTACK" moreinfo="IDI_STATS_HARD_ATTACK" /></td></tr>
<tr.s><td.staticon><img src="stats/icon_airatt.png" tooltip="IDS_STAT_AIR_ATTACK" moreinfo="IDI_STATS_AIR_ATTACK" /></td></tr>
<tr.s><td.staticon><img src="stats/icon_navatt.png" tooltip="IDS_STAT_NAVAL_ATTACK" moreinfo="IDI_STATS_NAVAL_ATTACK" /></td></tr>
</table>
</td>
<td>
<table style="height: 100%%" cellspacing=-1 cellpadding=0>
<tr><td.statvalue><span id="UnitSoftAttack" /></td></tr>
<tr><td.statvalue><span id="UnitHardAttack" /></td></tr>
<tr><td.statvalue><span id="UnitAirAttack" /></td></tr>
<tr><td.statvalue><span id="UnitNavalAttack" /></td></tr>
</table>
</td>
<td>
<table id="Unit2Block" style="height: 100%%" cellspacing=-1 cellpadding=0>
<tr><td.statvalue><span id="Unit2SoftAttack" /></td></tr>
<tr><td.statvalue><span id="Unit2HardAttack" /></td></tr>
<tr><td.statvalue><span id="Unit2AirAttack" /></td></tr>
<tr><td.statvalue><span id="Unit2NavalAttack" /></td></tr>
</table>
</td>
<td>
<table id="TransportBlock" style="height: 100%%" cellspacing=-1 cellpadding=0>
<tr><td.statvalue id="TransportSoftAttack" align=center"></td></tr>
<tr><td.statvalue id="TransportHardAttack"></td></tr>
<tr><td.statvalue id="TransportAirAttack"></td></tr>
<tr><td.statvalue id="TransportNavalAttack"></td></tr>
</table>
</td>
<td>
<table cellspacing=-1 cellpadding=0>
<tr.s><td.staticon><img src="stats/icon_grounddef.png" tooltip="IDS_STAT_GROUND_DEFENSE" moreinfo="IDI_STATS_GROUND_DEFENSE" /></td></tr>
<tr.s><td.staticon><img src="stats/icon_airdef.png" tooltip="IDS_STAT_AIR_DEFENSE" moreinfo="IDI_STATS_AIR_DEFENSE" /></td></tr>
<tr.s><td.staticon><img src="stats/icon_closedef.png" tooltip="IDS_STAT_CLOSE_DEFENSE" moreinfo="IDI_STATS_CLOSE_DEFENSE" /></td></tr>
<tr.s><td.staticon><img src="stats/icon_targettype.png" tooltip="IDS_STAT_TARGET_TYPE" moreinfo="IDI_STATS_TARGET_TYPE" /></td></tr>
</table>
</td>
<td>
<table style="height: 100%%" cellspacing=-1 cellpadding=0>
<tr><td.statvalue><span id="UnitGroundDefense" /></td></tr>
<tr><td.statvalue><span id="UnitAirDefense" /></td></tr>
<tr><td.statvalue><span id="UnitCloseDefense" /></td></tr>
<tr><td.statvalue><span id="UnitTargetType" style="font-size:13px" /></td></tr>
</table>
</td>
<td>
<table id="Unit2Block" style="height: 100%%" cellspacing=-1 cellpadding=0>
<tr><td.statvalue><span id="Unit2GroundDefense" /></td></tr>
<tr><td.statvalue><span id="Unit2AirDefense" /></td></tr>
<tr><td.statvalue><span id="Unit2CloseDefense" /></td></tr>
<tr><td.statvalue><span id="Unit2TargetType" style="font-size:13px" /></td></tr>
</table>
</td>
<td>
<table id="TransportBlock" style="height: 100%%" cellspacing=-1 cellpadding=0>
<tr><td.statvalue id="TransportGroundDefense" align=center"></td></tr>
<tr><td.statvalue id="TransportAirDefense"></td></tr>
<tr><td.statvalue id="TransportCloseDefense"></td></tr>
<tr><td.statvalue id="TransportTargetType" style="font-size:13px" ></td></tr>
</table>
</td>
</tr>
</table>

<p id="UnitBlock" style="font-size:15px; font-weight: 900">
IDS_LABEL_TOTAL_COST <span id="TotalCost" style="color:#fbd661">0</span>
</p>
<p id="UnitBlock" style="font-size:15px; font-weight: 900">
<span id="RedMessage" style="color:#ff0000"></span>
</p>
</div>

<div style="height:60px" />

</div>



<div style="position:absolute; right:0px; bottom:0px; height:min-intrinsic; width: 330px; text-align:center; vertical-align:middle">
<button.pushbtn id="cmd_ok"><span id="PurchaseText">IDS_BUTTON_PURCHASE</span></button>
<button.pushbtn id="cmd_cancel">IDS_BUTTON_CANCEL</button>
</div>

</div>

</body>
</html>
Last edited by bcnkor on Sat Dec 09, 2017 3:15 pm, edited 2 times in total.
bcnkor
Senior Corporal - Destroyer
Senior Corporal - Destroyer
Posts: 104
Joined: Sat Jan 19, 2008 12:06 pm

Re: BUG Panzer Corps v1.30 breaks the game with the purchase

Post by bcnkor »

Ballermann wrote:There is no bug with purchase in v.1.30! Because its a mod, a Purchase Mod.

See in the second Post:
http://streitmacht.com/viewtopic.php?f=406&t=2198

Ballermann: Thanks for answering, if I download it from there to see if it worked, but it does not work with the ships, I jump to windows. Note: the other unitclass if it works well, but not the ships. Even with a clean installation (vanilla). Now I have windows 10 before I had windows 7.

Ballermann: If it works, send me a copy of your file, thanks for everything.
Ballermann
Sergeant First Class - Panzer IIIL
Sergeant First Class - Panzer IIIL
Posts: 396
Joined: Sat Oct 08, 2011 2:03 pm
Location: Germany

Re: BUG Panzer Corps v1.30 breaks the game with the purchase

Post by Ballermann »

bcnkor wrote: Ballermann: Thanks for answering, if I download it from there to see if it worked, but it does not work with the ships, I jump to windows. Note: the other unitclass if it works well, but not the ships. Even with a clean installation (vanilla). Now I have windows 10 before I had windows 7.

Ballermann: If it works, send me a copy of your file, thanks for everything.
I just copied it over and it works. I have v.1.31 vanilla, with me it works perfect. (My file is the same as from the Mod)
Sorry, for my bad school english...
bcnkor
Senior Corporal - Destroyer
Senior Corporal - Destroyer
Posts: 104
Joined: Sat Jan 19, 2008 12:06 pm

Re: BUG Panzer Corps v1.30 breaks the game with the purchase

Post by bcnkor »

Ballermann wrote:
bcnkor wrote: Ballermann: Thanks for answering, if I download it from there to see if it worked, but it does not work with the ships, I jump to windows. Note: the other unitclass if it works well, but not the ships. Even with a clean installation (vanilla). Now I have windows 10 before I had windows 7.

Ballermann: If it works, send me a copy of your file, thanks for everything.
I just copied it over and it works. I have v.1.31 vanilla, with me it works perfect. (My file is the same as from the Mod)
--------------------------
with me it works perfect:
1-Can you prove to me that you enter Ship several times?
It fails me when I combine to enter several times when entering the same ship (class) to it, sometimes when entering and others when I peak several times to it is very rare but it only fails me in: with Sub, cruiser, battleship, carrier.

2-I have also tried in data / unit class.dat to add new entries for the ships, but they do not work that way either.
3-I tried to put it in Windows 7 compatibility and start with administrator but still fails in windows 10, even with a new installation.

Thanks for everything
Ballermann
Sergeant First Class - Panzer IIIL
Sergeant First Class - Panzer IIIL
Posts: 396
Joined: Sat Oct 08, 2011 2:03 pm
Location: Germany

Re: BUG Panzer Corps v1.30 breaks the game with the purchase

Post by Ballermann »

Maybe your e-file is flawed, for example, if a name is too long it crashes when clicking up.

BTW:
Translated with Google...
Sorry, for my bad school english...
bcnkor
Senior Corporal - Destroyer
Senior Corporal - Destroyer
Posts: 104
Joined: Sat Jan 19, 2008 12:06 pm

Re: BUG Panzer Corps v1.30 breaks the game with the purchase

Post by bcnkor »

Maybe your e-file is flawed, for example, if a name is too long it crashes when clicking up.

BTW:
Translated with Google...

good idea I've tried it and it's still the same, although when you install everything again you would have to improve these possible failures.
I do not know what to do more, thank you very much for your support.
bcnkor
Senior Corporal - Destroyer
Senior Corporal - Destroyer
Posts: 104
Joined: Sat Jan 19, 2008 12:06 pm

Re: BUG Panzer Corps v1.30 breaks the game with the purchase

Post by bcnkor »

1-these are the lines that fail:

<button.cls name="unitclass" type="radio" id="unitclass13"><img src="purchase/classes/13.png" />&nbsp;IDS_CLASS_LONG_CARRIER</button>
<div style="height:5px" />
<button.cls name="unitclass" type="radio" id="unitclass12"><img src="purchase/classes/12.png" />&nbsp;IDS_CLASS_LONG_CAPITAL_SHIP</button>
<div style="height:5px" />
<button.cls name="unitclass" type="radio" id="unitclass11"><img src="purchase/classes/11.png" />&nbsp;IDS_CLASS_LONG_DESTROYER</button>
<div style="height:5px" />
<button.cls name="unitclass" type="radio" id="unitclass10"><img src="purchase/classes/10.png" />&nbsp;IDS_CLASS_LONG_SUB</button>
</div>

2-only this section fails, where is the assignment of the units (when you enter the first time or the second time in these classunits), note is translated into Spanish:
I think that these assignments (unitclass13,unitclass12,unitclass11,unitclass10) need to be added to another file and when not found it jumps to windows

button.cls name="unitclass" type="radio" id="unitclass13"
button.cls name="unitclass" type="radio" id="unitclass12"
button.cls name="unitclass" type="radio" id="unitclass11"
button.cls name="unitclass" type="radio" id="unitclass10"

3-the other part of the image and the text work well in various tests (note is translated into Spanish but it is a short text and does not affect):
<img src="purchase/classes/13.png" />&nbsp;IDS_CLASS_LONG_CARRIER</button>

File: data/strings.pzdat
IDS_CLASS_LONG_SUB Submarino Max 16 characters

4-I have also disabled all the IDS_CARRIER_CLASS_DESCRIPTION in
strings.pzdat
with
# IDS_CARRIER_CLASS_DESCRIPTION
in case it was a possible load problem


5-One solution I have found is every time you enter the classes (carrier, submarine, destroyes, battletship, just faild there) wait 4 thousand seconds, or when you jump from one class of the navy to another class of marine wait another 4 milliseconds seconds, and so I have managed not to jump to windows.

Let's see if anyone can come up with the other solution, thanks ...
Attachments
Purchase.jpg
Purchase.jpg (30.05 KiB) Viewed 2803 times
Post Reply

Return to “Panzer Corps : Scenario Design”