Kingdom Come: Deliverance

Kingdom Come: Deliverance

View Stats:
nomed74 Feb 7, 2019 @ 5:45am
Baptism of Fire Bug Solution
start game with -devmode
open console
type or copy paste :
cheat_eval cheat:faction_add_angriness(xx, 1)

-- xx faction id (you should use both 19 and 20 for xx)

cheat_eval cheat:faction_add_rep(xx, -0.5)

after hours of research the web this was the solution i found
if your reputations is to heigh(for whatever reason) with Prybislawitz the quest is bugged
(yk they dont atk you and quest fails do to "many soldiers died")
Last edited by nomed74; Apr 30, 2019 @ 12:43pm
< >
Showing 91-105 of 125 comments
eNelx Feb 16, 2023 @ 3:41am 
Originally posted by FIREFLY:
The BUG explained:
"Too many casualties" means a bunch of friendly units died. But I tried cheating and 1-hit-killing all enemies with no friendly deaths, and the BUG persists.

What CAUSES the bug (my guess):
The Player can have so high standing in the world, that even the bandits are friendly.
But if the bandits are friends, and those friends die, then you run into "too many casualties".
That's why this is a BUG. You MUST kill them but they are considered ALLIES.

SOLUTIONS:
- I think I once used the console to manually set all factions as enemies. It was a pain! I have no idea which of the hundreds of factions were the right one. But once they are all enemies, I do not get the "too many casualties.
- I browsed the game assets and found the file I mention in a post above (from 5 Sep, 2022 @ 8:01pm) where I removed the GAME OVER conditions from the Baptism of Fire mission, and now I can only lose by actually dying, not from friendly casualties.
I believe if you write the thing on cheat console mod that shows you all the factions. I dont know what command is it but i've seen it on Reddit in a similar post about it. From what I remember the id for Pribyslavitz bandits is 20 and for the Pribyslavitz cumans its 19
FIREFLY Feb 16, 2023 @ 10:59am 
Originally posted by eNelx:
I believe if you write the thing on cheat console mod that shows you all the factions. I dont know what command is it but i've seen it on Reddit in a similar post about it. From what I remember the id for Pribyslavitz bandits is 20 and for the Pribyslavitz cumans its 19
That sounds about right. I think that is what I ended up with. Or 23. Or something. I can't remember if doing that cheat marks your savegame as "has cheated" or anything like that. But my trick where I removed the GameOver conditions from that mission, that seems to do the trick.
lexdevel Apr 20, 2023 @ 2:50am 
For those who have an readonly error saving Scripts.pak: you can actually unzip files, do the changes and zip them again. You will need a 7-zip, just select archive format - "zip" and compression level - "0 - Store". Backup your original Scripts.pak, just in case
Pyro Apr 28, 2023 @ 10:46am 
Originally posted by FIREFLY:
Here is the solution that finally fixes this otherwise game-breaking bug:

1. Open the folder named Data in the installation directory. ( KingdomComeDeliverance\Data )

2. Make a backup copy of Scripts.pak on your desktop. (Just in case - so you don't need to validate all your game files if you make a mistake).

3. Right-click on the file Scripts.pak and use 7-zip to "open archive" (do not try to extract or unzip the pak file. Doing so will corrupt it and apparently add some unwanted metadata to it).

4. In the 7-zip file browser, go to Scripts.pak/Libs/AI/quests/

5. Select the file q_pribBattle.xml and press F4 - this lets you edit the file without extracting/unzipping it. (Do not attempt to make a backup of q_pribBattle.xml, as you cannot re-insert the backup back into Scripts.pak without corrupting it).

6. Delete the following lines from the file and save your changes. (You will be asked again if you want to save the xml file inside Scripts.pak after you close the editor. Say Yes).

The code below must be deleted to stop the "Too many casualties" bug:

<IfCondition failOnCondition="&quot;false&quot;" condition="&quot;$questObjectiveUpdate.ObjectiveName == &apos;battleLost&apos; &amp; $questObjectiveUpdate.State == $enum:ObjectiveState.Started&quot;">
<SetQuestObjective quest="&quot;&quot;" objective="&quot;battleLost&quot;" function="&quot;CompleteObjective&quot;" />
</IfCondition>
<IfCondition failOnCondition="&quot;false&quot;" condition="&quot;$questObjectiveUpdate.ObjectiveName == &apos;gameOver&apos; &amp; $questObjectiveUpdate.State == $enum:ObjectiveState.Completed&quot;">
<Sequence>
<QuestObjectiveCondition quest="&quot;&quot;" objective="&quot;playerFled&quot;" function="&quot;IsObjectiveCompleted&quot;" failSubtMissing="&quot;false&quot;" saveVersion="2">
<Then canSkip="1">
<GameOver Reason="&quot;Q_IR_FledBattle&quot;" />
</Then>
</QuestObjectiveCondition>
<QuestObjectiveCondition quest="&quot;&quot;" objective="&quot;battleLost&quot;" function="&quot;IsObjectiveCompleted&quot;" failSubtMissing="&quot;false&quot;" saveVersion="2">
<Then canSkip="1">
<GameOver Reason="&quot;TooManyCausalties&quot;" />
</Then>
</QuestObjectiveCondition>
<QuestObjectiveCondition quest="&quot;&quot;" objective="&quot;killPlayer&quot;" function="&quot;IsObjectiveCompleted&quot;" failSubtMissing="&quot;false&quot;" saveVersion="2">
<Then canSkip="1">
<GameOver Reason="&quot;LostABattle&quot;" />
</Then>
</QuestObjectiveCondition>
</Sequence>
</IfCondition>
To sum up this discussion, you either use in-game cheat via mod or download 7z 2016 to fix this annoying problem.
DargonBlak Apr 28, 2023 @ 11:43am 
Originally posted by Pyro:
To sum up this discussion, you either use in-game cheat via mod or download 7z 2016 to fix this annoying problem.

Well, this is a rather rare bug - it doesn't always happen to everyone.

In many many playthroughs for me, this specific bug has never happened.

But for some players, for whatever reason (probably how they tend to play the game and arrive at this point), they get bugged and need a solution, and yes, it sound very annoying.
Last edited by DargonBlak; Apr 28, 2023 @ 11:48am
dinodragos Jul 5, 2023 @ 4:44am 
Originally posted by FIREFLY:
After 10 hours of working on it, I finally found a solution!

You need to install 7-zip so you can edit a file in the game folder without unzipping a pak file.
Here is the solution that finally fixes this otherwise game-breaking bug:

1. Open the folder named Data in the installation directory. ( KingdomComeDeliverance\Data )

2. Make a backup copy of Scripts.pak on your desktop. (Just in case - so you don't need to validate all your game files if you make a mistake).

3. Right-click on the file Scripts.pak and use 7-zip to "open archive" (do not try to extract or unzip the pak file. Doing so will corrupt it and apparently add some unwanted metadata to it).

4. In the 7-zip file browser, go to Scripts.pak/Libs/AI/quests/

5. Select the file q_pribBattle.xml and press F4 - this lets you edit the file without extracting/unzipping it. (Do not attempt to make a backup of q_pribBattle.xml, as you cannot re-insert the backup back into Scripts.pak without corrupting it).

6. Delete the following lines from the file and save your changes. (You will be asked again if you want to save the xml file inside Scripts.pak after you close the editor. Say Yes).

The code below must be deleted to stop the "Too many casualties" bug:

<IfCondition failOnCondition="&quot;false&quot;" condition="&quot;$questObjectiveUpdate.ObjectiveName == &apos;battleLost&apos; &amp; $questObjectiveUpdate.State == $enum:ObjectiveState.Started&quot;">
<SetQuestObjective quest="&quot;&quot;" objective="&quot;battleLost&quot;" function="&quot;CompleteObjective&quot;" />
</IfCondition>
<IfCondition failOnCondition="&quot;false&quot;" condition="&quot;$questObjectiveUpdate.ObjectiveName == &apos;gameOver&apos; &amp; $questObjectiveUpdate.State == $enum:ObjectiveState.Completed&quot;">
<Sequence>
<QuestObjectiveCondition quest="&quot;&quot;" objective="&quot;playerFled&quot;" function="&quot;IsObjectiveCompleted&quot;" failSubtMissing="&quot;false&quot;" saveVersion="2">
<Then canSkip="1">
<GameOver Reason="&quot;Q_IR_FledBattle&quot;" />
</Then>
</QuestObjectiveCondition>
<QuestObjectiveCondition quest="&quot;&quot;" objective="&quot;battleLost&quot;" function="&quot;IsObjectiveCompleted&quot;" failSubtMissing="&quot;false&quot;" saveVersion="2">
<Then canSkip="1">
<GameOver Reason="&quot;TooManyCausalties&quot;" />
</Then>
</QuestObjectiveCondition>
<QuestObjectiveCondition quest="&quot;&quot;" objective="&quot;killPlayer&quot;" function="&quot;IsObjectiveCompleted&quot;" failSubtMissing="&quot;false&quot;" saveVersion="2">
<Then canSkip="1">
<GameOver Reason="&quot;LostABattle&quot;" />
</Then>
</QuestObjectiveCondition>
</Sequence>
</IfCondition>

I hope this will help everyone enjoy the game again. It took me all night to finally find this solution. And boy was I happy when I finally beat "Baptism of Fire". Because nothing else worked for me. No trainer. No Mods. Not Cheat Engine. Not rewriting the reputation mods to grant negative reputation. Not spawning villagers into prebyslev to kill them to decrease reputation with the village. Nothing. Only the solution above.

Thank you so much!!!

At first, it didn't seem to work, but when I reloaded the "My Friend Timmy" quest and started to play from there, it worked like a charm.

The bug probably happened because of the "Easy Reputation" mod that I installed to get back my reputation after accidentally killing one of the guards in a fast travel event. I completely forgot to delete the mod.
Last edited by dinodragos; Jul 5, 2023 @ 9:06am
FIREFLY Jul 5, 2023 @ 11:33am 
Happy it worked for you :steamthumbsup: :)
lalalimbo Jul 21, 2023 @ 6:54pm 
I know you wrote this 3 years ago, but I'm not clear on the scripts you said to delete. Is each line a separate line of code in the file or do I need to search for each line? Not having much luck with it.
FIREFLY Jul 26, 2023 @ 1:51am 
I have revisited my guide. I can see that the game has been updated a lot since that time. But I have made some discoveries that may help:

1. Go to: D:\Games\Steam\steamapps\common\KingdomComeDeliverance\Data
2. Right-click the file "scripts.pak" and select 7-zip > Open archive
NOTE: make a backup copy first, in case you break the file while editing it.
3. Enter the sub-folders: Libs -> AI -> quests
4. Sort alphabetically to find the file: "q_pribBattle.xml"
5. Select that file and press F4 to edit it directly in the archive.
6. Find the word: GameOver

Remove all 3 GameOver "tags" from the XML. (Everything listed between <Then> and </Then> where the text GameOver appears.)

Save and exit.

You may have to restart the battle or load a save from just before you enter the battle, but as far as I can tell, at least one user got this working and beat the mission without the Game Over "too many friendly casualties" bug.
Last edited by FIREFLY; Jul 26, 2023 @ 1:53am
DargonBlak Jul 26, 2023 @ 4:52am 
Originally posted by FIREFLY:
I have revisited my guide....

Thank you for your work.
Darkwarsoul Aug 24, 2023 @ 4:17pm 
can someone PLEASE PLEASE

put the edited "scripts.pak" file somewhere

PLEASE
FIREFLY Aug 25, 2023 @ 7:25pm 
2
3
Outono Sep 24, 2023 @ 4:23pm 
Folks, good evening. I'm using Google Translator to translate this message. For those who couldn't edit the file because it's read-only, use WinRAR instead of 7zip. Just follow the step-by-step instructions from our friend above and use WinRAR.
NeeliXBe Dec 15, 2023 @ 8:46pm 
Originally posted by FIREFLY:
Try this link. I hope it works:
https://1drv.ms/u/s!AmWGETnH74Ijir1KG5_ZMjw_MPntXw?e=e8e9OW

Ty for this file i could finnaly make it work !
nothing helped , used 7zip winrar , couldnt save the xml after removing the lines .
But this replacing my script file with yours helped !
apuryaman06 Apr 16, 2024 @ 5:35am 
Originally posted by FIREFLY:
@Des Wait, what are you saying? Did my solution not work for you? Do you want me to send you the modified file I used to get past that mission without the "Too many casualties" bug?
Hello @FIREFLY can you please share the modified file with me? Can you also explain where and how to put the new file? Thanks!
< >
Showing 91-105 of 125 comments
Per page: 1530 50