[FIXED] Raid on Kismayo - Trigger not working?

Post bug reports and ask for game support here.

Moderator: MOD_Command

Post Reply
ColonelMolerat
Posts: 490
Joined: Wed Sep 23, 2015 10:36 am

[FIXED] Raid on Kismayo - Trigger not working?

Post by ColonelMolerat »

Hello!
Great work on CMO - I'm especially loving the new satellite maps.
However, on Raid on Kismayo, when I move the marines to the safehouse... nothing happens. Attached is my save file.
When there were enemies in the area, I got a warning, but after destroying them, nothing.
Cheers!

Edit:
Messing around in the editor, if I add an 'endscenario' action to the trigger, it works. So the trigger isn't broken, but the action is.

Edit #2:
I've sort-of worked what seems to be affecting things.
In the action US_MarinesAtSite, there is the command:
local theUnit = ScenEdit_UnitX()
The marines are supposed to be assigned to theUnit for the action to work, but instead another unit in the area becomes theUnit. If I move all my other units out of the trigger area, the marines (correctly) become theUnit.

Then there is a second problem:
The action has the following line:
theMessage = GenerateRadioMessageBody(theMessage,theReconTeam.name

the theReconTeam.name is a nil value.

If delete 'theReconTeam.name', it works.

So, to 'fix' this action, I must:
- Move all units that are not the marines out of the trigger area
- Delete the text 'theReconTeam.name' from the action

Then it works ok.

I hope that helps.
Attachments
RaidonKismayo.zip
(103.57 KiB) Downloaded 11 times
User avatar
michaelm75au
Posts: 12457
Joined: Sat May 05, 2001 8:00 am
Location: Melbourne, Australia

RE: Raid on Kismayo - Trigger not working?

Post by michaelm75au »

The problem is that the 'theReconTeam' unit is not present; possibly killed? The Recon team cal lsign is 'Coyote 4', but I can't see it.

This is a script error -
1. should be checking it is present before 'theReconTeam' is used
2. variable is local but not defined in the script.

Issue with scenario itself.

Changed these lines in the action - set the variable, and pass the name
local theReconTeam = ScenEdit_GetUnit({guid='a818d4d3-2693-4805-b8c8-8692781f97e0'})
local callsign = nil
if theReconTeam ~= nil then
callsign = theReconTeam.name
end
theMessage = GenerateRadioMessageBody(theMessage,callsign)
Michael
Dimitris
Posts: 15321
Joined: Sun Jul 31, 2005 10:29 am
Contact:

RE: Raid on Kismayo - Trigger not working?

Post by Dimitris »

Hi,

A corrected version of this scenario has already been made available on the current public beta: https://www.matrixgames.com/forums/tm.asp?m=4749983

If you haven't, can you apply this update and give it a try?
ColonelMolerat
Posts: 490
Joined: Wed Sep 23, 2015 10:36 am

RE: Raid on Kismayo - Trigger not working?

Post by ColonelMolerat »

Ahh all that work finding the problem for nothing!
I did search the forums but only saw issues related to the car pathfinding, sorry!
I'll give it a shot now...
I use Steam - will I need to do anything to go back to normal non-beta life, or can I just forget about it and it will return with future updates?

Just tried it. It works! Thank you for both the support and the game!

(For anybody else with the same problem, your old save won't work, you have to start fresh)
Post Reply

Return to “Tech Support”