Ambush bug

Campaign Series: Vietnam is a new turn-based, tactical/operational war game that focuses on the Indochina War, Vietnam Civil War and the first years of US involvement in Vietnam with over 100 historical scenarios.

Moderator: Jason Petho

Post Reply
kodab89
Posts: 26
Joined: Mon Jun 17, 2024 6:16 pm

Ambush bug

Post by kodab89 »

I encountered this bug several times. After my units get ambushed (in this case it was trucks) the game closes to windows.
What info you need to look into it? I attach my save file the turn before the crash https://drive.google.com/file/d/1d-hSIr ... drive_link
User avatar
Crossroads
Posts: 18169
Joined: Sun Jul 05, 2009 8:57 am

Re: Ambush bug

Post by Crossroads »

kodab89 wrote: Fri Aug 02, 2024 7:35 am I encountered this bug several times. After my units get ambushed (in this case it was trucks) the game closes to windows.
What info you need to look into it? I attach my save file the turn before the crash https://drive.google.com/file/d/1d-hSIr ... drive_link
Thank you for reporting this, kodab89. First: is this with the latest 1.31.02 game version?

Save file is a great starting point, thank you! Where did the ambush bug take place, which units at which hex, do you recall?
Visit us at: Campaign Series Legion
---
CS: Vietnam 1948-1967 < v2.00.03 Remastered Edition (May 20, 2025)
CS: Middle East 1948-1985 < v3.00.03 Remastered Edition (May 20, 2025)
User avatar
Crossroads
Posts: 18169
Joined: Sun Jul 05, 2009 8:57 am

Re: Ambush bug

Post by Crossroads »

Thank you for access to your Google drive. I took a few turns, managed to get a few Ambushes, three times so far, always with a result of reduced by 1. This was with 1.31.02 released yesterday:

ambush.jpg
ambush.jpg (188.18 KiB) Viewed 321 times

I was not able to replicate the CTD behaviour yet. Do you recall seeing an Ambush result dialog first, what were the results? Complete annihilation, or reduce in strength points?
Last edited by Crossroads on Sat Aug 03, 2024 7:53 am, edited 1 time in total.
Visit us at: Campaign Series Legion
---
CS: Vietnam 1948-1967 < v2.00.03 Remastered Edition (May 20, 2025)
CS: Middle East 1948-1985 < v3.00.03 Remastered Edition (May 20, 2025)
kodab89
Posts: 26
Joined: Mon Jun 17, 2024 6:16 pm

Re: Ambush bug

Post by kodab89 »

1/ I used v. 1.30 beta, didn't know there was a new version, sorry. Maybe in 1.31 you already fixed it?

2/ It was me attacking with 2 full teams of halftrucks, 1 on them was ambushed (killed) after i assulted a hex - there was a dialog box showing the info. After i clicked it game crashed to desktop. I'll try to recreate the situation and give you exact coordinates and/or record it today evening.

3/ The bug was generally ambush related, had it happen to me in several scenarios with various units, I bypassed it by not assulting certain hexes in a scenario. It was also mentioned here on forum one time.

4/ Is assulting with 2 halftruck teams a wise move? By all means no :)
User avatar
Crossroads
Posts: 18169
Joined: Sun Jul 05, 2009 8:57 am

Re: Ambush bug

Post by Crossroads »

kodab89 wrote: Fri Aug 02, 2024 12:22 pm 1/ I used v. 1.30 beta, didn't know there was a new version, sorry. Maybe in 1.31 you already fixed it?

2/ It was me attacking with 2 full teams of halftrucks, 1 on them was ambushed (killed) after i assulted a hex - there was a dialog box showing the info. After i clicked it game crashed to desktop. I'll try to recreate the situation and give you exact coordinates and/or record it today evening.

3/ The bug was generally ambush related, had it happen to me in several scenarios with various units, I bypassed it by not assulting certain hexes in a scenario. It was also mentioned here on forum one time.

4/ Is assulting with 2 halftruck teams a wise move? By all means no :)
Now that I have a more detailed report (two halftracks), I don't think it was. 1.31 fixed an Assault bug when leaders present under certain circumstances, so likely this is not it, even if Ambush is another type of assault.

It is useful to know one of the halftrack platoons was destroyed. This is likely a more difficult bug to get my crosshairs on, as so much randomness involved. First in that Ambush triggers, and then outcome is such that the bug takes place.

If you see the CTD again, please zip the game log files from Logs folder immediately, before restart. Those can have important clues as well.

This is a good start, thank you for the details!
Visit us at: Campaign Series Legion
---
CS: Vietnam 1948-1967 < v2.00.03 Remastered Edition (May 20, 2025)
CS: Middle East 1948-1985 < v3.00.03 Remastered Edition (May 20, 2025)
kodab89
Posts: 26
Joined: Mon Jun 17, 2024 6:16 pm

Re: Ambush bug

Post by kodab89 »

I managed to reproduce the bug. I have recorded a video - lats 10 seconds of the clip is the bug mentioned. You can view it here: https://youtu.be/xKD1uW8rlCw

I also attach all the log files here - https://drive.google.com/drive/folders/ ... sp=sharing

This time I have used the newest version available - 1.31.02
User avatar
Jason Petho
Posts: 17484
Joined: Tue Jun 22, 2004 10:31 am
Location: Terrace, BC, Canada
Contact:

Re: Ambush bug

Post by Jason Petho »

Ah, I see what you're doing.

The main reason - and a clue for Petri - is that you're assaulting with a unit that has a 0 assault value. The mortars shouldn't be included in the assault.

Units that assault with a 0 assault value are subject to an ambush, which is happening.
User avatar
Crossroads
Posts: 18169
Joined: Sun Jul 05, 2009 8:57 am

Re: Ambush bug

Post by Crossroads »

Thank you for your detailed bug report, kodab89! Cheers Jason, Divide-by-0? To be found out.

As for assaulting with mortar units, yes, a penalty to be paid on the counter-assault by defending unit code. But as the game allows it, it should not crash. To be fixed.
Visit us at: Campaign Series Legion
---
CS: Vietnam 1948-1967 < v2.00.03 Remastered Edition (May 20, 2025)
CS: Middle East 1948-1985 < v3.00.03 Remastered Edition (May 20, 2025)
Post Reply

Return to “Campaign Series: Vietnam”