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
Something Wrong with Cheat Codes
Moderators: Slitherine Core, Panzer Corps Moderators, Panzer Corps Design
Something Wrong with Cheat Codes
uncajerf
"Artillery adds dignity to what otherwise would be a vulgar brawl." -Frederick the Great
"Artillery adds dignity to what otherwise would be a vulgar brawl." -Frederick the Great
Re: Something Wrong with Cheat Codes
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
"Artillery adds dignity to what otherwise would be a vulgar brawl." -Frederick the Great
-
BiteNibbleChomp
- Lieutenant-General - Do 217E

- Posts: 3231
- Joined: Mon Jul 01, 2013 6:35 am
Re: Something Wrong with Cheat Codes
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
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
Re: Something Wrong with Cheat Codes
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.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
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"?
Thanx again!
uncajerf
uncajerf
"Artillery adds dignity to what otherwise would be a vulgar brawl." -Frederick the Great
"Artillery adds dignity to what otherwise would be a vulgar brawl." -Frederick the Great
-
BiteNibbleChomp
- Lieutenant-General - Do 217E

- Posts: 3231
- Joined: Mon Jul 01, 2013 6:35 am
Re: Something Wrong with Cheat Codes
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
- BNC
Ryan O'Shea - Developer - Strategic Command American Civil War
Re: Something Wrong with Cheat Codes
Ah... well, I wouldn't know how to do that. As for why -- cuz I like consistency!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
Thanx!
uncajerf
"Artillery adds dignity to what otherwise would be a vulgar brawl." -Frederick the Great
"Artillery adds dignity to what otherwise would be a vulgar brawl." -Frederick the Great
