Page 1 of 1

Something Wrong with Cheat Codes

Posted: Mon Jun 27, 2016 8:42 am
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

Re: Something Wrong with Cheat Codes

Posted: Mon Jun 27, 2016 9:00 am
by uncajerf
Well, I can get a 'Loss' if I enter "endscn 3" instead of 2. Odd... :?

Re: Something Wrong with Cheat Codes

Posted: Mon Jun 27, 2016 12:32 pm
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

Re: Something Wrong with Cheat Codes

Posted: Mon Jun 27, 2016 9:25 pm
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

Re: Something Wrong with Cheat Codes

Posted: Mon Jun 27, 2016 10:15 pm
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

Re: Something Wrong with Cheat Codes

Posted: Mon Jun 27, 2016 10:46 pm
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!