Something Wrong with Cheat Codes

PC : Turn based WW2 goodness in the mold of Panzer General. This promises to be a true classic!

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

Post Reply
uncajerf
Senior Corporal - Destroyer
Senior Corporal - Destroyer
Posts: 120
Joined: Fri Jun 29, 2012 12:14 am

Something Wrong with Cheat Codes

Post by uncajerf »

Why would I get the wrong result when using cheat codes? I'm trying to test my re-written .pzbrf files, but on a couple of scenarios I get the wrong result when I use "endscn #". E.g., I get a Victory when it should be a Loss (2); Triumph when it should be a Victory (1). I suspect it's something I did to the file(s), but I can't tell what.

Any ideas?


uncajerf
uncajerf

"Artillery adds dignity to what otherwise would be a vulgar brawl." -Frederick the Great
uncajerf
Senior Corporal - Destroyer
Senior Corporal - Destroyer
Posts: 120
Joined: Fri Jun 29, 2012 12:14 am

Re: Something Wrong with Cheat Codes

Post by uncajerf »

Well, I can get a 'Loss' if I enter "endscn 3" instead of 2. Odd... :?
uncajerf

"Artillery adds dignity to what otherwise would be a vulgar brawl." -Frederick the Great
BiteNibbleChomp
Lieutenant-General - Do 217E
Lieutenant-General - Do 217E
Posts: 3231
Joined: Mon Jul 01, 2013 6:35 am

Re: Something Wrong with Cheat Codes

Post by BiteNibbleChomp »

What actually happens is the game reads them in the order they were programmed. For some scenarios it is not necessarily DV/MV/Loss/none/none

for instance, in Battlefield Europe (a mod by McGuba) there are 4 types of victory:

Total Victory (beat both UK and USSR)
Victory (beat UK or USSR)
Draw (hold stuff in Germany until 1945)
Loss (fail all of the above).

In this case, endscn 0 will result in a Total Victory, as one would expect.
endscn 1 will cause a victory.
BUT endscn 2 will also cause a victory (in this case, beat the UK one - endscn 1 is the scripts attached to beating the USSR)
3 for Draw, 4 for Loss.

What happened in your scenario was the designer had either had multiple ways to get one type of victory or simply couldn't be bothered putting them in the correct slots.

- BNC
Ryan O'Shea - Developer - Strategic Command American Civil War
uncajerf
Senior Corporal - Destroyer
Senior Corporal - Destroyer
Posts: 120
Joined: Fri Jun 29, 2012 12:14 am

Re: Something Wrong with Cheat Codes

Post by uncajerf »

BiteNibbleChomp wrote:What actually happens is the game reads them in the order they were programmed. For some scenarios it is not necessarily DV/MV/Loss/none/none

[snip]

What happened in your scenario was the designer had either had multiple ways to get one type of victory or simply couldn't be bothered putting them in the correct slots.

- BNC
OIC... thanx. At the very end, some odd results with 'Unthinkable', as well: Got "Scenario Ended" with '3', but then the buttons on the main menu were disabled; had to crt-alt-del-restart.

Is that hard-coded, or can a 'modder' (newb like me!) fix that? I'd also like to fix other things besides the Briefings, e.g., there are lots of errors in the in-game messages, not to mention the titles of scenarios et al.; "Napels" and "Rur"? :roll:

Thanx again!


uncajerf
uncajerf

"Artillery adds dignity to what otherwise would be a vulgar brawl." -Frederick the Great
BiteNibbleChomp
Lieutenant-General - Do 217E
Lieutenant-General - Do 217E
Posts: 3231
Joined: Mon Jul 01, 2013 6:35 am

Re: Something Wrong with Cheat Codes

Post by BiteNibbleChomp »

If you change what order the victory conditions are in then you can adjust what the cheat codes will do. I don't see the point though.

- BNC
Ryan O'Shea - Developer - Strategic Command American Civil War
uncajerf
Senior Corporal - Destroyer
Senior Corporal - Destroyer
Posts: 120
Joined: Fri Jun 29, 2012 12:14 am

Re: Something Wrong with Cheat Codes

Post by uncajerf »

BiteNibbleChomp wrote:If you change what order the victory conditions are in then you can adjust what the cheat codes will do. I don't see the point though.

- BNC
Ah... well, I wouldn't know how to do that. As for why -- cuz I like consistency! 8)

Thanx!
uncajerf

"Artillery adds dignity to what otherwise would be a vulgar brawl." -Frederick the Great
Post Reply

Return to “Panzer Corps”