I can not get cam2diif.ogg to play not matter what I try. It's as if it does not exist and is completely skipped altogether. I have not found any documentation on how the message brief files are interpreted other than analyzing the patterns from the other files. Any idea how to make it play? Once it plays I am ready for testing to be done with the new campaign research fix and the difficulty modifiers in my usual branch (after doing some squashing).

Unfortunately, I have not found a solution so far. I did try putting it on its own line in base/messages/brief2-dii.txt and modifying the 2-end script to include it, but it just plays the one after it instead.

Edit:
I noticed that it might actually be playing for a very brief moment now. It lasts long enough to see the subtitles in the video (nothing else) and then it abruptly ends and moves onto the next sequence.

Try hackAddMessage("MB2_DII_MSG", MISS_MSG, CAM_HUMAN_PLAYER, true). That is the general form I have seen and been using. I prefer to put all of them in an array and use an index var in conjunction with eventVideoDone() until it reaches the last one.

With this commit, there will be a tab in the debug menu to see all currently defined messages.

Next step, I'm thinking of adding a qtscript function to load message files, that way we don't need them in the resource system, and you can more easily test stuff (don't need to be in the correct level to just load up a video using the debug menu, for example).

By defined does that mean only the ones that have played so far? I see that CAM2_OUT is missing in the debug tab in the final Beta mission.

Regarding Beta-end: In transport.cpp line 1129 there is a possibility to break any mission with the safety flag being true. It keeps firing the transport exit event and will prevent an idle transport from exiting the map should the player have no droids on map... leaving the mission unbeatable. Is that whole if block necessary anymore?

Berserk Cyborg wrote:Regarding Beta-end: In transport.cpp line 1129 there is a possibility to break any mission with the safety flag being true. It keeps firing the transport exit event and will prevent an idle transport from exiting the map should the player have no droids on map... leaving the mission unbeatable. Is that whole if block necessary anymore?

I've no idea how that code works, but it has been like that since forever. I think much of this logic should just be moved into scripts.

If the campaign works fine without this code, then feel free to remove it.

Berserk Cyborg wrote:Try hackAddMessage("MB2_DII_MSG", MISS_MSG, CAM_HUMAN_PLAYER, true). That is the general form I have seen and been using. I prefer to put all of them in an array and use an index var in conjunction with eventVideoDone() until it reaches the last one.

This is what works for me:

I add

file SMSG "brief2-dii.txt"

to the bottom of data/base/wrf/cam1.wrf, then start CAM1A. In the debug menu, tab Contexts, subtab cam1a:0 tab, I type in

Does not work as it should... at least for me. It still skips the video showing Alpha base destroyed without the diff I uploaded a few posts above. There must be some initial delay that this sequence has that is longer than most other sequences when reading in data.