Bug with "switchable" units?

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

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

guille1434
Major-General - Jagdtiger
Major-General - Jagdtiger
Posts: 2856
Joined: Sun Jul 01, 2012 5:32 pm

Bug with "switchable" units?

Post by guille1434 »

I was trying to give Heavy AA units a triple purpose... Meaning that they could be switched from AA to AT and to artillery mode... I am pretty sure I could implement "triple purpose" units in the v1.05 equipment file, but for some reason, this seems not to work in v1.10. Anytime I mod the file to incorporate the triple unit, the game will cease to respond when I click the switch button while said unit is selected (while playing a scenario).

Anyone tested this feature in the present game version and/or in the previous one?

It is really a pity not to be able to use this feature to its fullest, because I think is one of the best improvements of this game when you compare to Panzer General.

Thanks!
Razz1
Panzer Corps Moderator
Panzer Corps Moderator
Posts: 3308
Joined: Tue Jan 18, 2011 4:49 am
Location: USA

Re: Bug with "switchable" units?

Post by Razz1 »

It has to be a way switch.
That should work.

AA to AT AT to Art Art to AA

So you need to switch 3 times before you can come back to the original unit.

You need 3 icons and 3 ID numbers.

4000 to 4001 to 4003

4003 to 4001

This is how logic works.
guille1434
Major-General - Jagdtiger
Major-General - Jagdtiger
Posts: 2856
Joined: Sun Jul 01, 2012 5:32 pm

Re: Bug with "switchable" units?

Post by guille1434 »

Indeed, I'm familiar with the switch system workings, and the multipurpose column in the equipment file, but I could not make it work. Anyone tried? What were the test results? It would be Unit A --> Unit B --> Unit C --> Unit A, but the game freezes...
El_Condoro
Panzer Corps Moderator
Panzer Corps Moderator
Posts: 2119
Joined: Tue Jun 03, 2008 9:32 am

Re: Bug with "switchable" units?

Post by El_Condoro »

There was an issue with the 'primary' trait not being applied to a switch unit. No, I haven't tried it but am about to! :)
Ballermann
Sergeant First Class - Panzer IIIL
Sergeant First Class - Panzer IIIL
Posts: 397
Joined: Sat Oct 08, 2011 2:03 pm
Location: Germany

Re: Bug with "switchable" units?

Post by Ballermann »

But it is not possible to switch Transport units.
(I try it with the Land-Wasser-Schlepper from Churchy)
Sorry, for my bad school english...
El_Condoro
Panzer Corps Moderator
Panzer Corps Moderator
Posts: 2119
Joined: Tue Jun 03, 2008 9:32 am

Re: Bug with "switchable" units?

Post by El_Condoro »

Hmmm. Just tested it without a problem - Wehrmacht to grenadier to fallschirmer back to wehrmacht. Didn't need to make any changes except to have the switch number in the correct column. Using 1.10.

AA in artillery mode? How does that work?
Radoye
Administrative Corporal - SdKfz 251/1
Administrative Corporal - SdKfz  251/1
Posts: 125
Joined: Fri Mar 30, 2012 5:48 pm

Re: Bug with "switchable" units?

Post by Radoye »

El_Condoro wrote:AA in artillery mode? How does that work?
The 88 was used on occasions as field artillery firing HE rounds way before it was discovered it can be deadly against tanks when switched to AP ammo. I believe in Spain and in France it was used as an artillery piece.

Also, some varieties of 75mm AA guns were nothing more than the good old 'French 75' field gun on a new mount allowing for extreme elevation levels and with AA sights.
guille1434
Major-General - Jagdtiger
Major-General - Jagdtiger
Posts: 2856
Joined: Sun Jul 01, 2012 5:32 pm

Re: Bug with "switchable" units?

Post by guille1434 »

El_Condoro: Thanks! I will test again, I suppose I am making some mistake.

About AA used as artillery... yes, the 88 AA guns were used as artillery, they were perfectly capable to fulfill that role... you only need the correct range table to calculate elevations. 12.8 cm Flak guns mounted in flak towers were used also as artillery, when the cities they were built were being invaded by the russians (for example, Berlin). As I could read, they were a very tough nut to crack, holding large forces at bay.
bebro
Slitherine
Slitherine
Posts: 4519
Joined: Sun Nov 19, 2006 12:50 pm

Re: Bug with "switchable" units?

Post by bebro »

Yeah, other countries did it too....the Japanese used 75mm AA guns in their original role of course, but then also as AT, "normal" arty or even coastal arty....


edit: though for gameplay reasons one unit having lotsa switches might be overpowering it, or at least making some of the more special types rather useless (if you end up with some types performing all tasks too well)...

*my 2 cents :)
Radoye
Administrative Corporal - SdKfz 251/1
Administrative Corporal - SdKfz  251/1
Posts: 125
Joined: Fri Mar 30, 2012 5:48 pm

Re: Bug with "switchable" units?

Post by Radoye »

bebro wrote:though for gameplay reasons one unit having lotsa switches might be overpowering it, or at least making some of the more special types rather useless (if you end up with some types performing all tasks too well)...

*my 2 cents :)
Switchable units should be significantly more expensive than their non-switchable counterparts.
guille1434
Major-General - Jagdtiger
Major-General - Jagdtiger
Posts: 2856
Joined: Sun Jul 01, 2012 5:32 pm

Re: Bug with "switchable" units?

Post by guille1434 »

Besides, an AA unit switched to Artillery (for example) cannot defend itself or nearby units from air attack in the turn which was used as arty. I think this rebalances things a bit. For the turn, you gain an artillery unit, but loose an AA one.
guille1434
Major-General - Jagdtiger
Major-General - Jagdtiger
Posts: 2856
Joined: Sun Jul 01, 2012 5:32 pm

Re: Bug with "switchable" units?

Post by guille1434 »

Well... I continued with tests about "switchable" units and found that there my be a problem after all...

I did the same test as El_Condoro and everything was OK. That is to make "switchable" the first three units of the eqp table by means of adding the correct numbers to the "multipurpose" column. But when I copied the three units to the last rows of the file (as if they were new units added to the file), simply copying those first three infantry units to the last rows of the table, the problem reappeared, and the game froze when I attempted to switch them. I attach the "new" units in case someone want to test this problem, you only have to open the present file and copy/paste the three units rows in the game equipment file (make a backup of the original, to play it safe, just in case). The problem was the same when I added a third switch option to a unit that it was already two-way switchable.

I don't feel well about this, because the "switch" feature is one of the best improvements (in my opinion) this game offered to old Pz Gen players like me. If this is really a bug, it should be taken care of by the game developers. Or may be (I hope!) someone could point me if I am making some mistake, causing the program to freeze.

Maybe someone when have time, can have a look a this file and see if there is really a problem.

Thanks!!
Attachments
equipment2.rar
(657 Bytes) Downloaded 169 times
Last edited by guille1434 on Sun Sep 16, 2012 10:09 pm, edited 1 time in total.
Razz1
Panzer Corps Moderator
Panzer Corps Moderator
Posts: 3308
Joined: Tue Jan 18, 2011 4:49 am
Location: USA

Re: Bug with "switchable" units?

Post by Razz1 »

I bet your data is not in the correct columns.
guille1434
Major-General - Jagdtiger
Major-General - Jagdtiger
Posts: 2856
Joined: Sun Jul 01, 2012 5:32 pm

Re: Bug with "switchable" units?

Post by guille1434 »

No, it is not the case, I was very careful about such kind of mistakes. Because of this reason, I just copied and pasted to the end of the file the first three units, and just added the numbers in the "multipurpose" column. Maybe someone could check the file I uploaded in my previous post.
Chris10
Captain - Bf 110D
Captain - Bf 110D
Posts: 890
Joined: Tue Mar 27, 2012 1:06 am
Location: Spain

Re: Bug with "switchable" units?

Post by Chris10 »

If you used exactly these entrys I bet the engine get confused since you didnt changed the name of the switch units ...Grenadiers and Fallschirmjäger are at the beginning of the list...they even use the same .png..now if you add the same entry again even with a multipurpose switch..how you expect the engine to differ between the equal entrys when you hit the button... ? :roll:
Give them different names in order to have clear IDs and I bet it works :wink:
guille1434
Major-General - Jagdtiger
Major-General - Jagdtiger
Posts: 2856
Joined: Sun Jul 01, 2012 5:32 pm

Re: Bug with "switchable" units?

Post by guille1434 »

No, already checked with other names (and in the file it could be seen that I changed the name of the primary unit to Whermacht Infantry-2). I suppose the program "reads" the unit ID by the number in the first column. So, I don´t believe this would be the reason.
Chris10
Captain - Bf 110D
Captain - Bf 110D
Posts: 890
Joined: Tue Mar 27, 2012 1:06 am
Location: Spain

Re: Bug with "switchable" units?

Post by Chris10 »

guille1434 wrote:No, already checked with other names (and in the file it could be seen that I changed the name of the primary unit to Whermacht Infantry-2). I suppose the program "reads" the unit ID by the number in the first column. So, I don´t believe this would be the reason.
hmmm..dunno then..will give it a try myself tomorrow :roll:
Razz1
Panzer Corps Moderator
Panzer Corps Moderator
Posts: 3308
Joined: Tue Jan 18, 2011 4:49 am
Location: USA

Re: Bug with "switchable" units?

Post by Razz1 »

Try getting rid of the word primary
guille1434
Major-General - Jagdtiger
Major-General - Jagdtiger
Posts: 2856
Joined: Sun Jul 01, 2012 5:32 pm

Re: Bug with "switchable" units?

Post by guille1434 »

Thanks Razz! Getting rid of "primary" trait, this I did not think about, I will try... Please if someone have time try this thing! Is very important to me... And I want to know if I am making some mistake or if there is a bug in program (which we have to make it being squashed!) Thanks Chris10 also for getting time to think and test about this matter!
blindsey
Corporal - 5 cm Pak 38
Corporal - 5 cm Pak 38
Posts: 49
Joined: Fri May 28, 2010 3:50 pm
Location: Washington, DC

Re: Bug with "switchable" units?

Post by blindsey »

I already did this exact same thing a couple of weeks ago in my equipment file, so I know it works. I have AA, AT and AP/Aty version of various 8.8 cm guns and I use a set of three ID numbers to switch them around. I typically use different classes however when switching units (but not always, so I know it works either way). I know it sounds obvious but double check that you updated your equipment file between scenarios, you can't do it using a saved game. Also, that you actually updated the Data folder version of your equipment file and not just the MOD\Data folder version of your equipment file. Check that you don't have any empty records in your equipment file, or rows that should start with # but don't etc. In other words, sorry, but it sounds like operator error. Good luck! :D

I use the switch feature more and more in my own equipment file, e.g., for entrenched infantry, dismounted cavalry, hull down tanks, AP versions of AA guns, etc. It is a great feature once you start to play with it. All of my SE units have been removed and my bonus units are SS units named after the various divisions, 1SS LSSAH, 2SS Das Reich, etc, and their series are 1SS, 2SS, etc. I also have them so they can switch between infantry and panzers to make the bonus units more useful (as a typical SS Panzer division had a couple of Panzergrenadier battalions and one Panzer regiment). So as their TOE changes over time I can upgrade the bonus units on their historical date, e.g, from foot infantry, to motorized infantry, and eventually to Panzers but I have multiple records with the dates overlapping, so I can switch back and forth between panzer and infantry as needed. The only bug I have right now that I haven't been able to figure out how to fix, is that when I switch to a panzer unit and then move it, the panzer unit still has the full infantry HT movement allowance (5+3) tacked on to the end of the armored movement allowance (5), and will switch from panzer to Infantry in HT/Truck if I move it more than 5 (in clear terrain), even though I have removed Land from the Panzer units' transport type. Anyone have any thoughts on how to resolve that?
Last edited by blindsey on Fri Oct 12, 2012 3:19 pm, edited 1 time in total.
Post Reply

Return to “Panzer Corps : Scenario Design”