diff --git a/data/base/messages/brief1-1.json b/data/base/messages/brief1-1.json index 3c9c0fd3415..0603025ff73 100644 --- a/data/base/messages/brief1-1.json +++ b/data/base/messages/brief1-1.json @@ -1,22 +1,22 @@ { - "video0000": { - "name": "FLIGHT", - "sequences": [ - { "loop": 0, "subtitles": "INFLIGHT_MSG1", "video": "inflight.ogg" } - ] - }, - "video0001": { - "name": "SB1_1_MSG", - "sequences": [ - { "loop": 0, "subtitles": ["P1-1_MSG1", "P1-1_MSG2", "P1-1_MSG3"], "video": "cam1/sub1_1p.ogg" }, - { "loop": 0, "subtitles": ["SUB1_1_MSG1", "SUB1_1_MSG2", "SUB1_1_MSG3"], "video": "cam1/sub1_1.ogg" } - ] - }, - "video0002": { - "name": "MB1_B2_MSG", - "sequences": [ - { "loop": 1, "subtitles": "TRANS_MSG1", "video": "brfcom.ogg" }, - { "loop": 0, "subtitles": ["CAM1_B2_MSG", "CAM1_B2_MSG2", "CAM1_B2_MSG3"], "video": "cam1/cam1bpow.ogg" } - ] + "type": "wz2100.briefs.v1", + "briefs": { + "FLIGHT": { + "sequences": [ + { "loop": 0, "subtitles": "INFLIGHT_MSG1", "video": "inflight.ogg" } + ] + }, + "SB1_1_MSG": { + "sequences": [ + { "loop": 0, "subtitles": ["P1-1_MSG1", "P1-1_MSG2", "P1-1_MSG3"], "video": "cam1/sub1_1p.ogg" }, + { "loop": 0, "subtitles": ["SUB1_1_MSG1", "SUB1_1_MSG2", "SUB1_1_MSG3"], "video": "cam1/sub1_1.ogg" } + ] + }, + "MB1_B2_MSG": { + "sequences": [ + { "loop": 1, "subtitles": "TRANS_MSG1", "video": "brfcom.ogg" }, + { "loop": 0, "subtitles": ["CAM1_B2_MSG", "CAM1_B2_MSG2", "CAM1_B2_MSG3"], "video": "cam1/cam1bpow.ogg" } + ] + } } } diff --git a/data/base/messages/brief1-2.json b/data/base/messages/brief1-2.json index 32e4bef6d5c..bb214219e20 100644 --- a/data/base/messages/brief1-2.json +++ b/data/base/messages/brief1-2.json @@ -1,16 +1,17 @@ { - "video0000": { - "name": "SB1_2_MSG", - "sequences": [ - { "loop": 1, "subtitles": "TRANS_MSG1", "video": "brfcom.ogg" }, - { "loop": 0, "subtitles": ["SUB1_2_MSG1", "SUB1_2_MSG2", "SUB1_2_MSG3"], "video": "cam1/sub1_2.ogg" } - ] - }, - "video0001": { - "name": "SB1_2_MSG2", - "sequences": [ - { "loop": 1, "subtitles": "SUB1_4A_MSG4", "video": "incomtns.ogg" }, - { "loop": 0, "subtitles": ["SUB1_2_MSG4", "SUB1_2_MSG5", "SUB1_2_MSG6"], "video": "cam1/sub12pt2.ogg" } - ] + "type": "wz2100.briefs.v1", + "briefs": { + "SB1_2_MSG": { + "sequences": [ + { "loop": 1, "subtitles": "TRANS_MSG1", "video": "brfcom.ogg" }, + { "loop": 0, "subtitles": ["SUB1_2_MSG1", "SUB1_2_MSG2", "SUB1_2_MSG3"], "video": "cam1/sub1_2.ogg" } + ] + }, + "SB1_2_MSG2": { + "sequences": [ + { "loop": 1, "subtitles": "SUB1_4A_MSG4", "video": "incomtns.ogg" }, + { "loop": 0, "subtitles": ["SUB1_2_MSG4", "SUB1_2_MSG5", "SUB1_2_MSG6"], "video": "cam1/sub12pt2.ogg" } + ] + } } } diff --git a/data/base/messages/brief1-3.json b/data/base/messages/brief1-3.json index 843b3bc373e..6cffcbc7e90 100644 --- a/data/base/messages/brief1-3.json +++ b/data/base/messages/brief1-3.json @@ -1,32 +1,31 @@ { - "video0000": { - "name": "SB1_3_UPDATE", - "sequences": [ - { "loop": 0, "subtitles": "P1-3A_MSG1", "video": "cam1/sub1_3p1.ogg" }, - { "loop": 0, "subtitles": ["BETA1_MSG1", "BETA1_MSG2", "BETA1_MSG3"], "video": "cam1/sub13bet.ogg" }, - { "loop": 0, "subtitles": ["GAMMA_MSG1", "GAMMA_MSG2", "GAMMA_MSG3"], "video": "cam1/sub13gam.ogg" }, - { "loop": 0, "subtitles": ["SUB1_3_MSG1", "SUB1_3_MSG2", "SUB1_3_MSG3"], "video": "cam1/sub1_3.ogg" } - ] - }, - "video0001": { - "name": "SB1_3_MSG", - "sequences": [ - { "loop": 1, "subtitles": "TRANS_MSG1", "video": "brfcom.ogg" }, - { "loop": 0, "subtitles": ["SUB1_3_MSG1", "SUB1_3_MSG2", "SUB1_3_MSG3"], "video": "cam1/sub1_3.ogg" } - ] - }, - "video0002": { - "name": "SB1_3_MSG3", - "sequences": [ - { "loop": 0, "subtitles": "NP_MSG1", "video": "cam1/sub13np1.ogg" }, - { "loop": 0, "subtitles": "NP_MSG2", "video": "npend.ogg" } - ] - }, - "video0003": { - "name": "SB1_3_MSG4", - "sequences": [ - { "loop": 0, "subtitles": "NP_MSG1", "video": "cam1/sub13np2.ogg" }, - { "loop": 0, "subtitles": "NP_MSG2", "video": "npend.ogg" } - ] + "type": "wz2100.briefs.v1", + "briefs": { + "SB1_3_UPDATE": { + "sequences": [ + { "loop": 0, "subtitles": "P1-3A_MSG1", "video": "cam1/sub1_3p1.ogg" }, + { "loop": 0, "subtitles": ["BETA1_MSG1", "BETA1_MSG2", "BETA1_MSG3"], "video": "cam1/sub13bet.ogg" }, + { "loop": 0, "subtitles": ["GAMMA_MSG1", "GAMMA_MSG2", "GAMMA_MSG3"], "video": "cam1/sub13gam.ogg" }, + { "loop": 0, "subtitles": ["SUB1_3_MSG1", "SUB1_3_MSG2", "SUB1_3_MSG3"], "video": "cam1/sub1_3.ogg" } + ] + }, + "SB1_3_MSG": { + "sequences": [ + { "loop": 1, "subtitles": "TRANS_MSG1", "video": "brfcom.ogg" }, + { "loop": 0, "subtitles": ["SUB1_3_MSG1", "SUB1_3_MSG2", "SUB1_3_MSG3"], "video": "cam1/sub1_3.ogg" } + ] + }, + "SB1_3_MSG3": { + "sequences": [ + { "loop": 0, "subtitles": "NP_MSG1", "video": "cam1/sub13np1.ogg" }, + { "loop": 0, "subtitles": "NP_MSG2", "video": "npend.ogg" } + ] + }, + "SB1_3_MSG4": { + "sequences": [ + { "loop": 0, "subtitles": "NP_MSG1", "video": "cam1/sub13np2.ogg" }, + { "loop": 0, "subtitles": "NP_MSG2", "video": "npend.ogg" } + ] + } } } diff --git a/data/base/messages/brief1-4a.json b/data/base/messages/brief1-4a.json index 4f4d4393ec2..3c71977f3fe 100644 --- a/data/base/messages/brief1-4a.json +++ b/data/base/messages/brief1-4a.json @@ -1,20 +1,21 @@ { - "video0000": { - "name": "SB1_4_MSG", - "sequences": [ - { "loop": 1, "subtitles": ["SUB1_4A_MSG4", "SUB1_4A_MSG5", "SUB1_4A_MSG6"], "video": "cam1/sub1_4pl.ogg" }, - { "loop": 0, "subtitles": "", "video": "cam1/sub14anp.ogg" }, - { "loop": 0, "subtitles": "NP_MSG2", "video": "npend.ogg" }, - { "loop": 0, "subtitles": ["SUB1_4A_MSG1", "SUB1_4A_MSG2", "SUB1_4A_MSG3"], "video": "cam1/sub1_4.ogg" } - ] - }, - "video0001": { - "name": "SB1_4_B", - "sequences": [ - { "loop": 1, "subtitles": ["TRANS_MSG1", "SUB1_4B_MSG2", "SUB1_4B_MSG3"], "video": "cam1/sub14bpl.ogg" }, - { "loop": 0, "subtitles": "", "video": "cam1/sub1_4bn.ogg" }, - { "loop": 0, "subtitles": "NP_MSG2", "video": "nexend.ogg" }, - { "loop": 0, "subtitles": ["SUB1_4B_MSG4", "SUB1_4B_MSG5", "SUB1_4B_MSG6"], "video": "cam1/sub1_4b.ogg" } - ] + "type": "wz2100.briefs.v1", + "briefs": { + "SB1_4_MSG": { + "sequences": [ + { "loop": 1, "subtitles": ["SUB1_4A_MSG4", "SUB1_4A_MSG5", "SUB1_4A_MSG6"], "video": "cam1/sub1_4pl.ogg" }, + { "loop": 0, "subtitles": "", "video": "cam1/sub14anp.ogg" }, + { "loop": 0, "subtitles": "NP_MSG2", "video": "npend.ogg" }, + { "loop": 0, "subtitles": ["SUB1_4A_MSG1", "SUB1_4A_MSG2", "SUB1_4A_MSG3"], "video": "cam1/sub1_4.ogg" } + ] + }, + "SB1_4_B": { + "sequences": [ + { "loop": 1, "subtitles": ["TRANS_MSG1", "SUB1_4B_MSG2", "SUB1_4B_MSG3"], "video": "cam1/sub14bpl.ogg" }, + { "loop": 0, "subtitles": "", "video": "cam1/sub1_4bn.ogg" }, + { "loop": 0, "subtitles": "NP_MSG2", "video": "nexend.ogg" }, + { "loop": 0, "subtitles": ["SUB1_4B_MSG4", "SUB1_4B_MSG5", "SUB1_4B_MSG6"], "video": "cam1/sub1_4b.ogg" } + ] + } } } diff --git a/data/base/messages/brief1-5.json b/data/base/messages/brief1-5.json index daeb52f59d8..3143894b6e5 100644 --- a/data/base/messages/brief1-5.json +++ b/data/base/messages/brief1-5.json @@ -1,9 +1,11 @@ { - "video0000": { - "name": "SB1_5_MSG", - "sequences": [ - { "loop": 0, "subtitles": "TRANS_MSG1", "video": "cam1/sub1_5pl.ogg" }, - { "loop": 0, "subtitles": ["SUB1_5_MSG1", "SUB1_5_MSG2", "SUB1_5_MSG3"], "video": "cam1/sub1_5.ogg" } - ] + "type": "wz2100.briefs.v1", + "briefs": { + "SB1_5_MSG": { + "sequences": [ + { "loop": 0, "subtitles": "TRANS_MSG1", "video": "cam1/sub1_5pl.ogg" }, + { "loop": 0, "subtitles": ["SUB1_5_MSG1", "SUB1_5_MSG2", "SUB1_5_MSG3"], "video": "cam1/sub1_5.ogg" } + ] + } } } diff --git a/data/base/messages/brief1-7.json b/data/base/messages/brief1-7.json index 40c405880b5..92895c4309b 100644 --- a/data/base/messages/brief1-7.json +++ b/data/base/messages/brief1-7.json @@ -1,21 +1,21 @@ { - "video0000": { - "name": "SB1_7_MSG", - "sequences": [ - { "loop": 1, "subtitles": ["TRANS_MSG1", "SUB1_7_MSG5", "SUB1_7_MSG6"], "video": "cam1/sub1_7pl.ogg" }, - { "loop": 0, "subtitles": "SUB1_7_MSG4", "video": "cam1/sub17fmv.ogg" } - ] - }, - "video0001": { - "name": "SB1_7_MSG2", - "sequences": [ - { "loop": 0, "subtitles": ["SUB1_7_MSG1", "SUB1_7_MSG2", "SUB1_7_MSG3"], "video": "cam1/sub1_7.ogg" } - ] - }, - "video0002": { - "name": "SB1_7_MSG3", - "sequences": [ - { "loop": 0, "subtitles": ["SUB1_7_MSG1", "SUB1_7_MSG2", "SUB1_7_MSG3"], "video": "cam1/sub1_7b.ogg" } - ] + "type": "wz2100.briefs.v1", + "briefs": { + "SB1_7_MSG": { + "sequences": [ + { "loop": 1, "subtitles": ["TRANS_MSG1", "SUB1_7_MSG5", "SUB1_7_MSG6"], "video": "cam1/sub1_7pl.ogg" }, + { "loop": 0, "subtitles": "SUB1_7_MSG4", "video": "cam1/sub17fmv.ogg" } + ] + }, + "SB1_7_MSG2": { + "sequences": [ + { "loop": 0, "subtitles": ["SUB1_7_MSG1", "SUB1_7_MSG2", "SUB1_7_MSG3"], "video": "cam1/sub1_7.ogg" } + ] + }, + "SB1_7_MSG3": { + "sequences": [ + { "loop": 0, "subtitles": ["SUB1_7_MSG1", "SUB1_7_MSG2", "SUB1_7_MSG3"], "video": "cam1/sub1_7b.ogg" } + ] + } } } diff --git a/data/base/messages/brief1a-c.json b/data/base/messages/brief1a-c.json index e38a9d05a56..360182df863 100644 --- a/data/base/messages/brief1a-c.json +++ b/data/base/messages/brief1a-c.json @@ -1,16 +1,17 @@ { - "video0000": { - "name": "MB1A-C_MSG", - "sequences": [ - { "loop": 0, "subtitles": ["TRANS_MSG1", "CAM1A-C_MSG5", "CAM1A-C_MSG6"], "video": "cam1/cam1acp.ogg" }, - { "loop": 0, "subtitles": "", "video": "cam1/map1a_c.ogg" } - ] - }, - "video0001": { - "name": "MB1A-C_MSG2", - "sequences": [ - { "loop": 0, "subtitles": "TRANS_MSG1", "video": "brfcom.ogg" }, - { "loop": 0, "subtitles": ["CAM1A-C_MSG1", "CAM1A-C_MSG2", "CAM1A-C_MSG3"], "video": "cam1/cam1ac.ogg" } - ] + "type": "wz2100.briefs.v1", + "briefs": { + "MB1A-C_MSG": { + "sequences": [ + { "loop": 0, "subtitles": ["TRANS_MSG1", "CAM1A-C_MSG5", "CAM1A-C_MSG6"], "video": "cam1/cam1acp.ogg" }, + { "loop": 0, "subtitles": "", "video": "cam1/map1a_c.ogg" } + ] + }, + "MB1A-C_MSG2": { + "sequences": [ + { "loop": 0, "subtitles": "TRANS_MSG1", "video": "brfcom.ogg" }, + { "loop": 0, "subtitles": ["CAM1A-C_MSG1", "CAM1A-C_MSG2", "CAM1A-C_MSG3"], "video": "cam1/cam1ac.ogg" } + ] + } } } diff --git a/data/base/messages/brief1a.json b/data/base/messages/brief1a.json index a374a9b1701..dc39636b94f 100644 --- a/data/base/messages/brief1a.json +++ b/data/base/messages/brief1a.json @@ -1,15 +1,16 @@ { - "video0000": { - "name": "MB1A_MSG", - "sequences": [ - { "loop": 1, "subtitles": "TRANS_MSG1", "video": "brfcom.ogg" }, - { "loop": 0, "subtitles": ["CAM1A_MSG1", "CAM1A_MSG2", "CAM1A_MSG3"], "video": "cam1/cam1ascv.ogg" } - ] - }, - "video0001": { - "name": "CMB1_MSG", - "sequences": [ - { "loop": 0, "subtitles": ["CAM1_MSG1", "CAM1_MSG2", "CAM1_MSG3"], "video": "cam1/cam1.ogg" } - ] + "type": "wz2100.briefs.v1", + "briefs": { + "MB1A_MSG": { + "sequences": [ + { "loop": 1, "subtitles": "TRANS_MSG1", "video": "brfcom.ogg" }, + { "loop": 0, "subtitles": ["CAM1A_MSG1", "CAM1A_MSG2", "CAM1A_MSG3"], "video": "cam1/cam1ascv.ogg" } + ] + }, + "CMB1_MSG": { + "sequences": [ + { "loop": 0, "subtitles": ["CAM1_MSG1", "CAM1_MSG2", "CAM1_MSG3"], "video": "cam1/cam1.ogg" } + ] + } } } diff --git a/data/base/messages/brief1b.json b/data/base/messages/brief1b.json index 68bb978d16d..2be9f4e8cd9 100644 --- a/data/base/messages/brief1b.json +++ b/data/base/messages/brief1b.json @@ -1,9 +1,11 @@ { - "video0000": { - "name": "MB1B_MSG", - "sequences": [ - { "loop": 1, "subtitles": ["P1B_MSG1", "P1B_MSG2", "P1B_MSG3"], "video": "cam1/cam1b_p.ogg" }, - { "loop": 0, "subtitles": ["CAM1B_MSG1", "CAM1B_MSG2", "CAM1B_MSG3"], "video": "cam1/cam1b.ogg" } - ] + "type": "wz2100.briefs.v1", + "briefs": { + "MB1B_MSG": { + "sequences": [ + { "loop": 1, "subtitles": ["P1B_MSG1", "P1B_MSG2", "P1B_MSG3"], "video": "cam1/cam1b_p.ogg" }, + { "loop": 0, "subtitles": ["CAM1B_MSG1", "CAM1B_MSG2", "CAM1B_MSG3"], "video": "cam1/cam1b.ogg" } + ] + } } } diff --git a/data/base/messages/brief1c.json b/data/base/messages/brief1c.json index d9194bd47a2..2fd7c000488 100644 --- a/data/base/messages/brief1c.json +++ b/data/base/messages/brief1c.json @@ -1,32 +1,31 @@ { - "video0000": { - "name": "MB1C_MSG", - "sequences": [ - { "loop": 1, "subtitles": "TRANS_MSG1", "video": "brfcom.ogg" }, - { "loop": 0, "subtitles": ["CAM1C_MSG1", "CAM1C_MSG2", "CAM1C_MSG3"], "video": "cam1/map1cexp.ogg" }, - { "loop": 0, "subtitles": "", "video": "cam1/cam1ccom.ogg" } - ] - }, - "video0001": { - "name": "MB1C2_MSG", - "sequences": [ - { "loop": 1, "subtitles": "NP_MSG1", "video": "incomtns.ogg" }, - { "loop": 0, "subtitles": "NP_MSG2", "video": "cam1/cam1cnp.ogg" }, - { "loop": 0, "subtitles": ["CAM1C_MSG4", "CAM1C_MSG5", "CAM1C_MSG6"], "video": "cam1/map1c.ogg" } - ] - }, - "video0002": { - "name": "MB1C3_MSG", - "sequences": [ - { "loop": 1, "subtitles": "P1-3A_MSG1", "video": "prjupdat.ogg" }, - { "loop": 0, "subtitles": ["CAM1C_MSG7", "CAM1C_MSG8", "CAM1C_MSG9"], "video": "cam1/cam1ccf.ogg" } - ] - }, - "video0003": { - "name": "MB1C4_MSG", - "sequences": [ - { "loop": 1, "subtitles": "P1-3A_MSG1", "video": "prjupdat.ogg" }, - { "loop": 0, "subtitles": ["CAM1C_MSG10", "CAM1C_MSG11"], "video": "cam1/cam1clz.ogg" } - ] + "type": "wz2100.briefs.v1", + "briefs": { + "MB1C_MSG": { + "sequences": [ + { "loop": 1, "subtitles": "TRANS_MSG1", "video": "brfcom.ogg" }, + { "loop": 0, "subtitles": ["CAM1C_MSG1", "CAM1C_MSG2", "CAM1C_MSG3"], "video": "cam1/map1cexp.ogg" }, + { "loop": 0, "subtitles": "", "video": "cam1/cam1ccom.ogg" } + ] + }, + "MB1C2_MSG": { + "sequences": [ + { "loop": 1, "subtitles": "NP_MSG1", "video": "incomtns.ogg" }, + { "loop": 0, "subtitles": "NP_MSG2", "video": "cam1/cam1cnp.ogg" }, + { "loop": 0, "subtitles": ["CAM1C_MSG4", "CAM1C_MSG5", "CAM1C_MSG6"], "video": "cam1/map1c.ogg" } + ] + }, + "MB1C3_MSG": { + "sequences": [ + { "loop": 1, "subtitles": "P1-3A_MSG1", "video": "prjupdat.ogg" }, + { "loop": 0, "subtitles": ["CAM1C_MSG7", "CAM1C_MSG8", "CAM1C_MSG9"], "video": "cam1/cam1ccf.ogg" } + ] + }, + "MB1C4_MSG": { + "sequences": [ + { "loop": 1, "subtitles": "P1-3A_MSG1", "video": "prjupdat.ogg" }, + { "loop": 0, "subtitles": ["CAM1C_MSG10", "CAM1C_MSG11"], "video": "cam1/cam1clz.ogg" } + ] + } } } diff --git a/data/base/messages/brief1ca.json b/data/base/messages/brief1ca.json index 8d3703522ae..ee269b4346e 100644 --- a/data/base/messages/brief1ca.json +++ b/data/base/messages/brief1ca.json @@ -1,10 +1,12 @@ { - "video0000": { - "name": "MB1CA_MSG", - "sequences": [ - { "loop": 0, "subtitles": "TRANS_MSG1", "video": "brfcom.ogg" }, - { "loop": 0, "subtitles": ["CAM1CA_MSG1", "CAM1CA_MSG2", "CAM1CA_MSG3"], "video": "cam1/cam1ca.ogg" }, - { "loop": 1, "subtitles": ["SUP_MSG1", "SUP_MSG2", "SUP_MSG3"], "video": "cam1/cam1capl.ogg" } - ] + "type": "wz2100.briefs.v1", + "briefs": { + "MB1CA_MSG": { + "sequences": [ + { "loop": 0, "subtitles": "TRANS_MSG1", "video": "brfcom.ogg" }, + { "loop": 0, "subtitles": ["CAM1CA_MSG1", "CAM1CA_MSG2", "CAM1CA_MSG3"], "video": "cam1/cam1ca.ogg" }, + { "loop": 1, "subtitles": ["SUP_MSG1", "SUP_MSG2", "SUP_MSG3"], "video": "cam1/cam1capl.ogg" } + ] + } } } diff --git a/data/base/messages/brief1d.json b/data/base/messages/brief1d.json index a0af9ab0391..6e8cc3823ac 100644 --- a/data/base/messages/brief1d.json +++ b/data/base/messages/brief1d.json @@ -1,17 +1,18 @@ { - "video0000": { - "name": "MB1D_MSG", - "sequences": [ - { "loop": 1, "subtitles": ["CAM1D_MSG1", "CAM1D_MSG4", "CAM1D_MSG5"], "video": "cam1/cam1dp1.ogg" }, - { "loop": 0, "subtitles": "", "video": "cam1/cam1dnp.ogg" }, - { "loop": 0, "subtitles": "NP_MSG2", "video": "npend.ogg" } - ] - }, - "video0001": { - "name": "MB1D_MSG2", - "sequences": [ - { "loop": 0, "subtitles": ["CAM1D_MSG1", "CAM1D_MSG2", "CAM1D_MSG3"], "video": "cam1/cam1d.ogg" }, - { "loop": 0, "subtitles": "", "video": "cam1/cam1dp2.ogg" } - ] + "type": "wz2100.briefs.v1", + "briefs": { + "MB1D_MSG": { + "sequences": [ + { "loop": 1, "subtitles": ["CAM1D_MSG1", "CAM1D_MSG4", "CAM1D_MSG5"], "video": "cam1/cam1dp1.ogg" }, + { "loop": 0, "subtitles": "", "video": "cam1/cam1dnp.ogg" }, + { "loop": 0, "subtitles": "NP_MSG2", "video": "npend.ogg" } + ] + }, + "MB1D_MSG2": { + "sequences": [ + { "loop": 0, "subtitles": ["CAM1D_MSG1", "CAM1D_MSG2", "CAM1D_MSG3"], "video": "cam1/cam1d.ogg" }, + { "loop": 0, "subtitles": "", "video": "cam1/cam1dp2.ogg" } + ] + } } } diff --git a/data/base/messages/brief2-1.json b/data/base/messages/brief2-1.json index ecbe3f59590..0d2064cf098 100644 --- a/data/base/messages/brief2-1.json +++ b/data/base/messages/brief2-1.json @@ -1,14 +1,15 @@ { - "video0000": { - "name": "MB2_1_MSG", - "sequences": [ - { "loop": 0, "subtitles": ["CAM2_1_MSG1", "CAM2_1_MSG2"], "video": "brfcom4s.ogg" } - ] - }, - "video0001": { - "name": "MB2_1_MSG2", - "sequences": [ - { "loop": 0, "subtitles": ["CAM2_1_MSG3", "CAM2_1_MSG4", "CAM2_1_MSG5"], "video": "cam2/cam2_1.ogg" } - ] + "type": "wz2100.briefs.v1", + "briefs": { + "MB2_1_MSG": { + "sequences": [ + { "loop": 0, "subtitles": ["CAM2_1_MSG1", "CAM2_1_MSG2"], "video": "brfcom4s.ogg" } + ] + }, + "MB2_1_MSG2": { + "sequences": [ + { "loop": 0, "subtitles": ["CAM2_1_MSG3", "CAM2_1_MSG4", "CAM2_1_MSG5"], "video": "cam2/cam2_1.ogg" } + ] + } } } diff --git a/data/base/messages/brief2-2.json b/data/base/messages/brief2-2.json index de83fabc133..5511eb3e0e1 100644 --- a/data/base/messages/brief2-2.json +++ b/data/base/messages/brief2-2.json @@ -1,25 +1,25 @@ { - "video0000": { - "name": "MB2_2_MSG", - "sequences": [ - { "loop": 0, "subtitles": "TRANS_MSG1", "video": "brfcom.ogg" }, - { "loop": 0, "subtitles": ["CAM2_2_MSG", "CAM2_2_MSG2", "CAM2_2_MSG3"], "video": "cam2/cam22pl1.ogg" }, - { "loop": 0, "subtitles": "", "video": "cam2/cam2_2n.ogg" } - ] - }, - "video0001": { - "name": "MB2_2_MSG2", - "sequences": [ - { "loop": 0, "subtitles": "CAM2_2_MSG7", "video": "cam2/cam22pl2.ogg" }, - { "loop": 0, "subtitles": "", "video": "cam2/cam22fmv.ogg" }, - { "loop": 0, "subtitles": "", "video": "cam2/cam2_2n2.ogg" }, - { "loop": 0, "subtitles": "CAM2_2_MSG", "video": "cam2/cam22pl3.ogg" } - ] - }, - "video0002": { - "name": "MB2_2_MSG3", - "sequences": [ - { "loop": 0, "subtitles": ["CAM2_2_MSG4", "CAM2_2_MSG5", "CAM2_2_MSG6"], "video": "cam2/cam2_2.ogg" } - ] + "type": "wz2100.briefs.v1", + "briefs": { + "MB2_2_MSG": { + "sequences": [ + { "loop": 0, "subtitles": "TRANS_MSG1", "video": "brfcom.ogg" }, + { "loop": 0, "subtitles": ["CAM2_2_MSG", "CAM2_2_MSG2", "CAM2_2_MSG3"], "video": "cam2/cam22pl1.ogg" }, + { "loop": 0, "subtitles": "", "video": "cam2/cam2_2n.ogg" } + ] + }, + "MB2_2_MSG2": { + "sequences": [ + { "loop": 0, "subtitles": "CAM2_2_MSG7", "video": "cam2/cam22pl2.ogg" }, + { "loop": 0, "subtitles": "", "video": "cam2/cam22fmv.ogg" }, + { "loop": 0, "subtitles": "", "video": "cam2/cam2_2n2.ogg" }, + { "loop": 0, "subtitles": "CAM2_2_MSG", "video": "cam2/cam22pl3.ogg" } + ] + }, + "MB2_2_MSG3": { + "sequences": [ + { "loop": 0, "subtitles": ["CAM2_2_MSG4", "CAM2_2_MSG5", "CAM2_2_MSG6"], "video": "cam2/cam2_2.ogg" } + ] + } } } diff --git a/data/base/messages/brief2-5.json b/data/base/messages/brief2-5.json index bdaae794f6f..f26ec23abce 100644 --- a/data/base/messages/brief2-5.json +++ b/data/base/messages/brief2-5.json @@ -1,15 +1,16 @@ { - "video0000": { - "name": "MB2_5_MSG", - "sequences": [ - { "loop": 1, "subtitles": "TRANS_MSG1", "video": "brfcom.ogg" }, - { "loop": 1, "subtitles": ["CAM2_5_MSG", "CAM2_5_MSG2", "CAM2_5_MSG3"], "video": "cam2/cam2_5pl.ogg" } - ] - }, - "video0001": { - "name": "MB2_5_MSG2", - "sequences": [ - { "loop": 0, "subtitles": ["CAM2_5_MSG4", "CAM2_5_MSG5", "CAM2_5_MSG6"], "video": "cam2/cam2_5.ogg" } - ] + "type": "wz2100.briefs.v1", + "briefs": { + "MB2_5_MSG": { + "sequences": [ + { "loop": 1, "subtitles": "TRANS_MSG1", "video": "brfcom.ogg" }, + { "loop": 1, "subtitles": ["CAM2_5_MSG", "CAM2_5_MSG2", "CAM2_5_MSG3"], "video": "cam2/cam2_5pl.ogg" } + ] + }, + "MB2_5_MSG2": { + "sequences": [ + { "loop": 0, "subtitles": ["CAM2_5_MSG4", "CAM2_5_MSG5", "CAM2_5_MSG6"], "video": "cam2/cam2_5.ogg" } + ] + } } } diff --git a/data/base/messages/brief2-6.json b/data/base/messages/brief2-6.json index ab51491557b..b23445af980 100644 --- a/data/base/messages/brief2-6.json +++ b/data/base/messages/brief2-6.json @@ -1,23 +1,23 @@ { - "video0000": { - "name": "MB2_6_MSG", - "sequences": [ - { "loop": 0, "subtitles": "CAM2_6_MSG", "video": "cam2/cam26pl1.ogg" } - ] - }, - "video0001": { - "name": "MB2_6_MSG2", - "sequences": [ - { "loop": 0, "subtitles": "", "video": "cam2/cam26afm.ogg" }, - { "loop": 1, "subtitles": ["CAM2_6_MSG", "CAM2_6_MSG2", "CAM2_6_MSG3"], "video": "cam2/cam26pl2.ogg" }, - { "loop": 0, "subtitles": ["CAM2_6_MSG4", "CAM2_6_MSG5", "CAM2_6_MSG6"], "video": "cam2/cam2_6a.ogg" }, - { "loop": 0, "subtitles": "", "video": "cam2/cam26bfm.ogg" } - ] - }, - "video0002": { - "name": "MB2_6_MSG3", - "sequences": [ - { "loop": 0, "subtitles": ["CAM2_6_MSG7", "CAM2_6_MSG8", "CAM2_6_MSG9"], "video": "cam2/cam2_6b.ogg" } - ] + "type": "wz2100.briefs.v1", + "briefs": { + "MB2_6_MSG": { + "sequences": [ + { "loop": 0, "subtitles": "CAM2_6_MSG", "video": "cam2/cam26pl1.ogg" } + ] + }, + "MB2_6_MSG2": { + "sequences": [ + { "loop": 0, "subtitles": "", "video": "cam2/cam26afm.ogg" }, + { "loop": 1, "subtitles": ["CAM2_6_MSG", "CAM2_6_MSG2", "CAM2_6_MSG3"], "video": "cam2/cam26pl2.ogg" }, + { "loop": 0, "subtitles": ["CAM2_6_MSG4", "CAM2_6_MSG5", "CAM2_6_MSG6"], "video": "cam2/cam2_6a.ogg" }, + { "loop": 0, "subtitles": "", "video": "cam2/cam26bfm.ogg" } + ] + }, + "MB2_6_MSG3": { + "sequences": [ + { "loop": 0, "subtitles": ["CAM2_6_MSG7", "CAM2_6_MSG8", "CAM2_6_MSG9"], "video": "cam2/cam2_6b.ogg" } + ] + } } } diff --git a/data/base/messages/brief2-7.json b/data/base/messages/brief2-7.json index 70cc19e1760..8be948a233d 100644 --- a/data/base/messages/brief2-7.json +++ b/data/base/messages/brief2-7.json @@ -1,15 +1,16 @@ { - "video0000": { - "name": "MB2_7_MSG", - "sequences": [ - { "loop": 1, "subtitles": "TRANS_MSG1", "video": "brfcom.ogg" }, - { "loop": 0, "subtitles": "", "video": "cam2/cam27fmv.ogg" } - ] - }, - "video0001": { - "name": "MB2_7_MSG2", - "sequences": [ - { "loop": 0, "subtitles": ["CAM2_7_MSG", "CAM2_7_MSG2", "CAM2_7_MSG3"], "video": "cam2/cam2_7.ogg" } - ] + "type": "wz2100.briefs.v1", + "briefs": { + "MB2_7_MSG": { + "sequences": [ + { "loop": 1, "subtitles": "TRANS_MSG1", "video": "brfcom.ogg" }, + { "loop": 0, "subtitles": "", "video": "cam2/cam27fmv.ogg" } + ] + }, + "MB2_7_MSG2": { + "sequences": [ + { "loop": 0, "subtitles": ["CAM2_7_MSG", "CAM2_7_MSG2", "CAM2_7_MSG3"], "video": "cam2/cam2_7.ogg" } + ] + } } } diff --git a/data/base/messages/brief2-8.json b/data/base/messages/brief2-8.json index a45fb9ea838..5601f8e8cdb 100644 --- a/data/base/messages/brief2-8.json +++ b/data/base/messages/brief2-8.json @@ -1,15 +1,16 @@ { - "video0000": { - "name": "MB2_8_MSG", - "sequences": [ - { "loop": 1, "subtitles": "TRANS_MSG1", "video": "brfcom.ogg" }, - { "loop": 1, "subtitles": ["CAM2_8_MSG", "CAM2_8_MSG2", "CAM2_8_MSG3"], "video": "cam2/cam28apl.ogg" } - ] - }, - "video0001": { - "name": "MB2_8_MSG2", - "sequences": [ - { "loop": 0, "subtitles": ["CAM2_8_MSG4", "CAM2_8_MSG5", "CAM2_8_MSG6"], "video": "cam2/cam2_8a.ogg" } - ] + "type": "wz2100.briefs.v1", + "briefs": { + "MB2_8_MSG": { + "sequences": [ + { "loop": 1, "subtitles": "TRANS_MSG1", "video": "brfcom.ogg" }, + { "loop": 1, "subtitles": ["CAM2_8_MSG", "CAM2_8_MSG2", "CAM2_8_MSG3"], "video": "cam2/cam28apl.ogg" } + ] + }, + "MB2_8_MSG2": { + "sequences": [ + { "loop": 0, "subtitles": ["CAM2_8_MSG4", "CAM2_8_MSG5", "CAM2_8_MSG6"], "video": "cam2/cam2_8a.ogg" } + ] + } } } diff --git a/data/base/messages/brief2-c.json b/data/base/messages/brief2-c.json index db14d611be9..b153540a06c 100644 --- a/data/base/messages/brief2-c.json +++ b/data/base/messages/brief2-c.json @@ -1,17 +1,18 @@ { - "video0000": { - "name": "MB2_C_MSG", - "sequences": [ - { "loop": 0, "subtitles": "TRANS_MSG1", "video": "brfcom.ogg" }, - { "loop": 0, "subtitles": ["CAM2_C_MSG1", "CAM2_C_MSG2"], "video": "cam2/cam2capl.ogg" }, - { "loop": 0, "subtitles": ["CAM2_C_MSG3", "CAM2_C_MSG4", "CAM2_C_MSG5"], "video": "cam2/cam2ca.ogg" } - ] - }, - "video0001": { - "name": "MB2_C_MSG2", - "sequences": [ - { "loop": 0, "subtitles": ["CAM2_C_MSG6", "CAM2_C_MSG7", "CAM2_C_MSG8"], "video": "cam2/cam2cbpl.ogg" }, - { "loop": 0, "subtitles": ["CAM2_C_MSG9", "CAM2_C_MSG10", "CAM2_C_MSG11"], "video": "cam2/cam2cb.ogg" } - ] + "type": "wz2100.briefs.v1", + "briefs": { + "MB2_C_MSG": { + "sequences": [ + { "loop": 0, "subtitles": "TRANS_MSG1", "video": "brfcom.ogg" }, + { "loop": 0, "subtitles": ["CAM2_C_MSG1", "CAM2_C_MSG2"], "video": "cam2/cam2capl.ogg" }, + { "loop": 0, "subtitles": ["CAM2_C_MSG3", "CAM2_C_MSG4", "CAM2_C_MSG5"], "video": "cam2/cam2ca.ogg" } + ] + }, + "MB2_C_MSG2": { + "sequences": [ + { "loop": 0, "subtitles": ["CAM2_C_MSG6", "CAM2_C_MSG7", "CAM2_C_MSG8"], "video": "cam2/cam2cbpl.ogg" }, + { "loop": 0, "subtitles": ["CAM2_C_MSG9", "CAM2_C_MSG10", "CAM2_C_MSG11"], "video": "cam2/cam2cb.ogg" } + ] + } } } diff --git a/data/base/messages/brief2-di.json b/data/base/messages/brief2-di.json index 338b069ce21..ba2b776e648 100644 --- a/data/base/messages/brief2-di.json +++ b/data/base/messages/brief2-di.json @@ -1,16 +1,17 @@ { - "video0000": { - "name": "MB2_DI_MSG", - "sequences": [ - { "loop": 1, "subtitles": "TRANS_MSG1", "video": "brfcom.ogg" }, - { "loop": 1, "subtitles": ["CAM2_DI_MSG3", "CAM2_DI_MSG4", "CAM2_DI_MSG5"], "video": "cam2/cam2_di.ogg" } - ] - }, - "video0001": { - "name": "MB2_DI_MSG2", - "sequences": [ - { "loop": 0, "subtitles": "CAM2_B_MSG3", "video": "cam2/cam2dipl.ogg" }, - { "loop": 0, "subtitles": "", "video": "cam2/cam2dico.ogg" } - ] + "type": "wz2100.briefs.v1", + "briefs": { + "MB2_DI_MSG": { + "sequences": [ + { "loop": 1, "subtitles": "TRANS_MSG1", "video": "brfcom.ogg" }, + { "loop": 1, "subtitles": ["CAM2_DI_MSG3", "CAM2_DI_MSG4", "CAM2_DI_MSG5"], "video": "cam2/cam2_di.ogg" } + ] + }, + "MB2_DI_MSG2": { + "sequences": [ + { "loop": 0, "subtitles": "CAM2_B_MSG3", "video": "cam2/cam2dipl.ogg" }, + { "loop": 0, "subtitles": "", "video": "cam2/cam2dico.ogg" } + ] + } } } diff --git a/data/base/messages/brief2-dii.json b/data/base/messages/brief2-dii.json index 34b7e5096e8..b48d2d13c5d 100644 --- a/data/base/messages/brief2-dii.json +++ b/data/base/messages/brief2-dii.json @@ -1,24 +1,24 @@ { - "video0000": { - "name": "MB2_DII_MSG", - "sequences": [ - { "loop": 0, "subtitles": "TRANS_MSG1", "video": "brfcom4s.ogg" }, - { "loop": 0, "subtitles": ["CAM2_DII_MSG1", "CAM2_DII_MSG2", "CAM2_DII_MSG9"], "video": "cam2/cam2diif.ogg" }, - { "loop": 0, "subtitles": "CAM2_DII_MSG1", "video": "cam2/c2diif2.ogg" } - ] - }, - "video0001": { - "name": "MB2_DII_MSG2", - "sequences": [ - { "loop": 0, "subtitles": ["CAM2_DII_MSG3", "CAM2_DII_MSG4", "CAM2_DII_MSG5"], "video": "cam2/cam2diib.ogg" }, - { "loop": 0, "subtitles": "", "video": "cam2/cam2diin.ogg" }, - { "loop": 0, "subtitles": ["CAM2_DII_MSG6", "CAM2_DII_MSG7", "CAM2_DII_MSG8"], "video": "cam2/cam2diip.ogg" } - ] - }, - "video0002": { - "name": "CAM2_OUT", - "sequences": [ - { "loop": 0, "subtitles": "", "video": "cam2/cam2out.ogg" } - ] + "type": "wz2100.briefs.v1", + "briefs": { + "MB2_DII_MSG": { + "sequences": [ + { "loop": 0, "subtitles": "TRANS_MSG1", "video": "brfcom4s.ogg" }, + { "loop": 0, "subtitles": ["CAM2_DII_MSG1", "CAM2_DII_MSG2", "CAM2_DII_MSG9"], "video": "cam2/cam2diif.ogg" }, + { "loop": 0, "subtitles": "CAM2_DII_MSG1", "video": "cam2/c2diif2.ogg" } + ] + }, + "MB2_DII_MSG2": { + "sequences": [ + { "loop": 0, "subtitles": ["CAM2_DII_MSG3", "CAM2_DII_MSG4", "CAM2_DII_MSG5"], "video": "cam2/cam2diib.ogg" }, + { "loop": 0, "subtitles": "", "video": "cam2/cam2diin.ogg" }, + { "loop": 0, "subtitles": ["CAM2_DII_MSG6", "CAM2_DII_MSG7", "CAM2_DII_MSG8"], "video": "cam2/cam2diip.ogg" } + ] + }, + "CAM2_OUT": { + "sequences": [ + { "loop": 0, "subtitles": "", "video": "cam2/cam2out.ogg" } + ] + } } } diff --git a/data/base/messages/brief2a.json b/data/base/messages/brief2a.json index 974bf6f9241..18a19f6be9d 100644 --- a/data/base/messages/brief2a.json +++ b/data/base/messages/brief2a.json @@ -1,15 +1,16 @@ { - "video0000": { - "name": "MB2A_MSG", - "sequences": [ - { "loop": 0, "subtitles": ["CAM2A_MSG1", "CAM2A_MSG2", "CAM2A_MSG3"], "video": "cam2/c002.ogg" } - ] - }, - "video0001": { - "name": "MB2A_MSG2", - "sequences": [ - { "loop": 0, "subtitles": ["NP_MSG1", "CAM2A_MSG7", "CAM2A_MSG8"], "video": "cam2/cam2ap.ogg" }, - { "loop": 0, "subtitles": "", "video": "cam2/cam2acol.ogg" } - ] + "type": "wz2100.briefs.v1", + "briefs": { + "MB2A_MSG": { + "sequences": [ + { "loop": 0, "subtitles": ["CAM2A_MSG1", "CAM2A_MSG2", "CAM2A_MSG3"], "video": "cam2/c002.ogg" } + ] + }, + "MB2A_MSG2": { + "sequences": [ + { "loop": 0, "subtitles": ["NP_MSG1", "CAM2A_MSG7", "CAM2A_MSG8"], "video": "cam2/cam2ap.ogg" }, + { "loop": 0, "subtitles": "", "video": "cam2/cam2acol.ogg" } + ] + } } } diff --git a/data/base/messages/brief2b.json b/data/base/messages/brief2b.json index d614087f467..ccd212869d4 100644 --- a/data/base/messages/brief2b.json +++ b/data/base/messages/brief2b.json @@ -1,15 +1,16 @@ { - "video0000": { - "name": "MB2_B_MSG", - "sequences": [ - { "loop": 0, "subtitles": ["CAM2_B_MSG1", "CAM2_B_MSG2", "CAM2_B_MSG3"], "video": "cam2/cam2bpl.ogg" }, - { "loop": 0, "subtitles": "", "video": "cam2/cam2bcol.ogg" } - ] - }, - "video0001": { - "name": "MB2_B_MSG2", - "sequences": [ - { "loop": 0, "subtitles": ["CAM2_B_MSG7", "CAM2_B_MSG8", "CAM2_B_MSG9"], "video": "cam2/cam2b.ogg" } - ] + "type": "wz2100.briefs.v1", + "briefs": { + "MB2_B_MSG": { + "sequences": [ + { "loop": 0, "subtitles": ["CAM2_B_MSG1", "CAM2_B_MSG2", "CAM2_B_MSG3"], "video": "cam2/cam2bpl.ogg" }, + { "loop": 0, "subtitles": "", "video": "cam2/cam2bcol.ogg" } + ] + }, + "MB2_B_MSG2": { + "sequences": [ + { "loop": 0, "subtitles": ["CAM2_B_MSG7", "CAM2_B_MSG8", "CAM2_B_MSG9"], "video": "cam2/cam2b.ogg" } + ] + } } } diff --git a/data/base/messages/brief3-1a.json b/data/base/messages/brief3-1a.json index 80a05c9a586..33cfb7765b1 100644 --- a/data/base/messages/brief3-1a.json +++ b/data/base/messages/brief3-1a.json @@ -1,16 +1,17 @@ { - "video0000": { - "name": "MB3_1A_MSG", - "sequences": [ - { "loop": 0, "subtitles": "CAM3_1A_MSG", "video": "incomint.ogg" }, - { "loop": 0, "subtitles": ["CAM3_1A_MSG1", "CAM3_1A_MSG2", "CAM3_1A_MSG3"], "video": "cam3/cam31gam.ogg" }, - { "loop": 0, "subtitles": ["CAM3_1A_MSG4", "CAM3_1A_MSG5"], "video": "cam3/cam31g2.ogg" } - ] - }, - "video0001": { - "name": "MB3_1A_MSG2", - "sequences": [ - { "loop": 0, "subtitles": ["CAM3_1A_MSG6", "CAM3_1A_MSG7", "CAM3_1A_MSG8"], "video": "cam3/cam3_1.ogg" } - ] + "type": "wz2100.briefs.v1", + "briefs": { + "MB3_1A_MSG": { + "sequences": [ + { "loop": 0, "subtitles": "CAM3_1A_MSG", "video": "incomint.ogg" }, + { "loop": 0, "subtitles": ["CAM3_1A_MSG1", "CAM3_1A_MSG2", "CAM3_1A_MSG3"], "video": "cam3/cam31gam.ogg" }, + { "loop": 0, "subtitles": ["CAM3_1A_MSG4", "CAM3_1A_MSG5"], "video": "cam3/cam31g2.ogg" } + ] + }, + "MB3_1A_MSG2": { + "sequences": [ + { "loop": 0, "subtitles": ["CAM3_1A_MSG6", "CAM3_1A_MSG7", "CAM3_1A_MSG8"], "video": "cam3/cam3_1.ogg" } + ] + } } } diff --git a/data/base/messages/brief3-1b.json b/data/base/messages/brief3-1b.json index 0feaf4f8eb1..ab85fb1dacf 100644 --- a/data/base/messages/brief3-1b.json +++ b/data/base/messages/brief3-1b.json @@ -1,16 +1,17 @@ { - "video0000": { - "name": "MB3_1B_MSG", - "sequences": [ - { "loop": 0, "subtitles": "NP_MSG1", "video": "incomint.ogg" }, - { "loop": 0, "subtitles": "", "video": "cam3/cam3_1bn.ogg" }, - { "loop": 0, "subtitles": ["CAM3_1B_MSG1", "CAM3_1B_MSG2", "CAM3_1B_MSG3"], "video": "cam3/cam31bpl.ogg" } - ] - }, - "video0001": { - "name": "MB3_1B_MSG2", - "sequences": [ - { "loop": 0, "subtitles": ["CAM3_1B_MSG4", "CAM3_1B_MSG5", "CAM3_1B_MSG6"], "video": "cam3/cam3_1b.ogg" } - ] + "type": "wz2100.briefs.v1", + "briefs": { + "MB3_1B_MSG": { + "sequences": [ + { "loop": 0, "subtitles": "NP_MSG1", "video": "incomint.ogg" }, + { "loop": 0, "subtitles": "", "video": "cam3/cam3_1bn.ogg" }, + { "loop": 0, "subtitles": ["CAM3_1B_MSG1", "CAM3_1B_MSG2", "CAM3_1B_MSG3"], "video": "cam3/cam31bpl.ogg" } + ] + }, + "MB3_1B_MSG2": { + "sequences": [ + { "loop": 0, "subtitles": ["CAM3_1B_MSG4", "CAM3_1B_MSG5", "CAM3_1B_MSG6"], "video": "cam3/cam3_1b.ogg" } + ] + } } } diff --git a/data/base/messages/brief3-2.json b/data/base/messages/brief3-2.json index 00c52a644f0..13579e34391 100644 --- a/data/base/messages/brief3-2.json +++ b/data/base/messages/brief3-2.json @@ -1,29 +1,28 @@ { - "video0000": { - "name": "MB3_2_MSG", - "sequences": [ - { "loop": 0, "subtitles": ["CAM3_2_MSG1", "CAM3_2_MSG2", "CAM3_2_MSG3"], "video": "cam3/cam32pl.ogg" }, - { "loop": 0, "subtitles": "CAM3_2_MSG4", "video": "cam3/cam32alp.ogg" }, - { "loop": 0, "subtitles": "CAM3_2_MSG5", "video": "cam3/cam32pl2.ogg" } - ] - }, - "video0001": { - "name": "MB3_2_MSG2", - "sequences": [ - { "loop": 0, "subtitles": ["CAM3_2_MSG6", "CAM3_2_MSG7", "CAM3_2_MSG8"], "video": "cam3/cam3_2b.ogg" } - ] - }, - "video0002": { - "name": "MB3_2_MSG3", - "sequences": [ - { "loop": 0, "subtitles": "NP_MSG1", "video": "incomtns.ogg" }, - { "loop": 0, "subtitles": "", "video": "cam3/cam32a2.ogg" } - ] - }, - "video0003": { - "name": "MB3_2_MSG4", - "sequences": [ - { "loop": 0, "subtitles": "CAM3_2_MSG9", "video": "cam3/cam32pl3.ogg" } - ] + "type": "wz2100.briefs.v1", + "briefs": { + "MB3_2_MSG": { + "sequences": [ + { "loop": 0, "subtitles": ["CAM3_2_MSG1", "CAM3_2_MSG2", "CAM3_2_MSG3"], "video": "cam3/cam32pl.ogg" }, + { "loop": 0, "subtitles": "CAM3_2_MSG4", "video": "cam3/cam32alp.ogg" }, + { "loop": 0, "subtitles": "CAM3_2_MSG5", "video": "cam3/cam32pl2.ogg" } + ] + }, + "MB3_2_MSG2": { + "sequences": [ + { "loop": 0, "subtitles": ["CAM3_2_MSG6", "CAM3_2_MSG7", "CAM3_2_MSG8"], "video": "cam3/cam3_2b.ogg" } + ] + }, + "MB3_2_MSG3": { + "sequences": [ + { "loop": 0, "subtitles": "NP_MSG1", "video": "incomtns.ogg" }, + { "loop": 0, "subtitles": "", "video": "cam3/cam32a2.ogg" } + ] + }, + "MB3_2_MSG4": { + "sequences": [ + { "loop": 0, "subtitles": "CAM3_2_MSG9", "video": "cam3/cam32pl3.ogg" } + ] + } } } diff --git a/data/base/messages/brief3-4.json b/data/base/messages/brief3-4.json index 210e088f226..dfbdd071272 100644 --- a/data/base/messages/brief3-4.json +++ b/data/base/messages/brief3-4.json @@ -1,33 +1,31 @@ { - "video0000": { - "name": "MB3_4_MSG", - "sequences": [ - { "loop": 0, "subtitles": "CAM3_4_MSG1", "video": "brfcom.ogg" }, - { "loop": 0, "subtitles": ["CAM3_4_MSG2", "CAM3_4_MSG3", "CAM3_4_MSG4"], "video": "cam3/cam3_4a.ogg" } - ] - }, - "video0001": { - "name": "MB3_4_MSG2", - "sequences": [ - { "loop": 0, "subtitles": ["CAM3_4_MSG5", "CAM3_4_MSG6"], "video": "cam3/cam3_4b.ogg" } - ] - }, - "video0002": { - "name": "MB3_4_MSG3", - "sequences": [ - { "loop": 0, "subtitles": "", "video": "cam3/cam34fmv.ogg" } - ] - }, - "video0003": { - "name": "MB3_4_MSG4", - "sequences": [ - { "loop": 0, "subtitles": "", "video": "cam3/cam34mu1.ogg" } - ] - }, - "video0004": { - "name": "MB3_4_MSG5", - "sequences": [ - { "loop": 0, "subtitles": "", "video": "cam3/cam34mu2.ogg" } - ] + "type": "wz2100.briefs.v1", + "briefs": { + "MB3_4_MSG": { + "sequences": [ + { "loop": 0, "subtitles": "CAM3_4_MSG1", "video": "brfcom.ogg" }, + { "loop": 0, "subtitles": ["CAM3_4_MSG2", "CAM3_4_MSG3", "CAM3_4_MSG4"], "video": "cam3/cam3_4a.ogg" } + ] + }, + "MB3_4_MSG2": { + "sequences": [ + { "loop": 0, "subtitles": ["CAM3_4_MSG5", "CAM3_4_MSG6"], "video": "cam3/cam3_4b.ogg" } + ] + }, + "MB3_4_MSG3": { + "sequences": [ + { "loop": 0, "subtitles": "", "video": "cam3/cam34fmv.ogg" } + ] + }, + "MB3_4_MSG4": { + "sequences": [ + { "loop": 0, "subtitles": "", "video": "cam3/cam34mu1.ogg" } + ] + }, + "MB3_4_MSG5": { + "sequences": [ + { "loop": 0, "subtitles": "", "video": "cam3/cam34mu2.ogg" } + ] + } } } diff --git a/data/base/messages/brief3-a.json b/data/base/messages/brief3-a.json index 046febbcbaa..6f9ea19062c 100644 --- a/data/base/messages/brief3-a.json +++ b/data/base/messages/brief3-a.json @@ -1,15 +1,16 @@ { - "video0000": { - "name": "MB3A_MSG", - "sequences": [ - { "loop": 0, "subtitles": ["CAM3_MSG1", "CAM3_MSG2", "CAM3_MSG3"], "video": "cam3/cam3intp.ogg" }, - { "loop": 0, "subtitles": "", "video": "cam3/cam3int.ogg" } - ] - }, - "video0001": { - "name": "MB3A_MSG2", - "sequences": [ - { "loop": 0, "subtitles": ["CAM3A_MSG1", "CAM3A_MSG2", "CAM3A_MSG3"], "video": "cam3/cam3intb.ogg" } - ] + "type": "wz2100.briefs.v1", + "briefs": { + "MB3A_MSG": { + "sequences": [ + { "loop": 0, "subtitles": ["CAM3_MSG1", "CAM3_MSG2", "CAM3_MSG3"], "video": "cam3/cam3intp.ogg" }, + { "loop": 0, "subtitles": "", "video": "cam3/cam3int.ogg" } + ] + }, + "MB3A_MSG2": { + "sequences": [ + { "loop": 0, "subtitles": ["CAM3A_MSG1", "CAM3A_MSG2", "CAM3A_MSG3"], "video": "cam3/cam3intb.ogg" } + ] + } } } diff --git a/data/base/messages/brief3-b.json b/data/base/messages/brief3-b.json index 2bafc0b7947..ee7dd68e509 100644 --- a/data/base/messages/brief3-b.json +++ b/data/base/messages/brief3-b.json @@ -1,22 +1,22 @@ { - "video0000": { - "name": "MB3_B_MSG", - "sequences": [ - { "loop": 0, "subtitles": ["CAM3_B_MSG1", "CAM3_B_MSG2", "CAM3_B_MSG3"], "video": "cam3/cam3bpl.ogg" }, - { "loop": 0, "subtitles": "INCOM_INT", "video": "incomint.ogg" }, - { "loop": 0, "subtitles": "", "video": "cam3/cam3bg.ogg" } - ] - }, - "video0001": { - "name": "MB3_B_MSG2", - "sequences": [ - { "loop": 0, "subtitles": ["CAM3_B_MSG4", "CAM3_B_MSG5", "CAM3_B_MSG6"], "video": "cam3/cam3b.ogg" } - ] - }, - "video0002": { - "name": "MB3_B_MSG3", - "sequences": [ - { "loop": 0, "subtitles": "", "video": "cam3/cam3_bn.ogg" } - ] + "type": "wz2100.briefs.v1", + "briefs": { + "MB3_B_MSG": { + "sequences": [ + { "loop": 0, "subtitles": ["CAM3_B_MSG1", "CAM3_B_MSG2", "CAM3_B_MSG3"], "video": "cam3/cam3bpl.ogg" }, + { "loop": 0, "subtitles": "INCOM_INT", "video": "incomint.ogg" }, + { "loop": 0, "subtitles": "", "video": "cam3/cam3bg.ogg" } + ] + }, + "MB3_B_MSG2": { + "sequences": [ + { "loop": 0, "subtitles": ["CAM3_B_MSG4", "CAM3_B_MSG5", "CAM3_B_MSG6"], "video": "cam3/cam3b.ogg" } + ] + }, + "MB3_B_MSG3": { + "sequences": [ + { "loop": 0, "subtitles": "", "video": "cam3/cam3_bn.ogg" } + ] + } } } diff --git a/data/base/messages/brief3-c.json b/data/base/messages/brief3-c.json index ff9c98e49ec..4a8100127e2 100644 --- a/data/base/messages/brief3-c.json +++ b/data/base/messages/brief3-c.json @@ -1,20 +1,21 @@ { - "video0000": { - "name": "MB3_C_MSG", - "sequences": [ - { "loop": 0, "subtitles": ["CAM3_C_MSG1", "CAM3_C_MSG2"], "video": "cam3/cam3cpl1.ogg" }, - { "loop": 0, "subtitles": "", "video": "cam3/cam3_cn.ogg" }, - { "loop": 0, "subtitles": "", "video": "cam3/c3c.ogg" }, - { "loop": 0, "subtitles": ["CAM3_C_MSG3", "CAM3_C_MSG4"], "video": "cam3/cam3cpl2.ogg" } - ] - }, - "video0001": { - "name": "MB3_C_MSG2", - "sequences": [ - { "loop": 0, "subtitles": ["CAM3_C_MSG5", "CAM3_C_MSG6", "CAM3_C_MSG7"], "video": "cam3/cam3cbet.ogg" }, - { "loop": 0, "subtitles": ["CAM3_C_MSG8", "CAM3_C_MSG9"], "video": "cam3/cam3cpl3.ogg" }, - { "loop": 0, "subtitles": "CAM3_C_MSG10", "video": "incomtns.ogg" }, - { "loop": 0, "subtitles": ["CAM3_C_MSG11", "CAM3_C_MSG12", "CAM3_C_MSG13"], "video": "cam3/cam3_cg.ogg" } - ] + "type": "wz2100.briefs.v1", + "briefs": { + "MB3_C_MSG": { + "sequences": [ + { "loop": 0, "subtitles": ["CAM3_C_MSG1", "CAM3_C_MSG2"], "video": "cam3/cam3cpl1.ogg" }, + { "loop": 0, "subtitles": "", "video": "cam3/cam3_cn.ogg" }, + { "loop": 0, "subtitles": "", "video": "cam3/c3c.ogg" }, + { "loop": 0, "subtitles": ["CAM3_C_MSG3", "CAM3_C_MSG4"], "video": "cam3/cam3cpl2.ogg" } + ] + }, + "MB3_C_MSG2": { + "sequences": [ + { "loop": 0, "subtitles": ["CAM3_C_MSG5", "CAM3_C_MSG6", "CAM3_C_MSG7"], "video": "cam3/cam3cbet.ogg" }, + { "loop": 0, "subtitles": ["CAM3_C_MSG8", "CAM3_C_MSG9"], "video": "cam3/cam3cpl3.ogg" }, + { "loop": 0, "subtitles": "CAM3_C_MSG10", "video": "incomtns.ogg" }, + { "loop": 0, "subtitles": ["CAM3_C_MSG11", "CAM3_C_MSG12", "CAM3_C_MSG13"], "video": "cam3/cam3_cg.ogg" } + ] + } } } diff --git a/data/base/messages/brief3a-b.json b/data/base/messages/brief3a-b.json index 5971e9ca81d..3d61ec83ad0 100644 --- a/data/base/messages/brief3a-b.json +++ b/data/base/messages/brief3a-b.json @@ -1,22 +1,22 @@ { - "video0000": { - "name": "MB3_AB_MSG", - "sequences": [ - { "loop": 0, "subtitles": ["CAM3_AB_MSG1", "CAM3_AB_MSG2"], "video": "brfcom4s.ogg" }, - { "loop": 0, "subtitles": ["CAM3_AB_MSG3", "CAM3_AB_MSG4"], "video": "cam3/cam3aba.ogg" }, - { "loop": 0, "subtitles": "", "video": "cam3/cam3abf.ogg" } - ] - }, - "video0001": { - "name": "MB3_AB_MSG2", - "sequences": [ - { "loop": 0, "subtitles": "CAM3_AB_MSG1", "video": "cam3/cam3abpl.ogg" } - ] - }, - "video0002": { - "name": "MB3_AB_MSG3", - "sequences": [ - { "loop": 0, "subtitles": ["CAM3_AB_MSG5", "CAM3_AB_MSG6", "CAM3_AB_MSG7"], "video": "cam3/cam3ab.ogg" } - ] + "type": "wz2100.briefs.v1", + "briefs": { + "MB3_AB_MSG": { + "sequences": [ + { "loop": 0, "subtitles": ["CAM3_AB_MSG1", "CAM3_AB_MSG2"], "video": "brfcom4s.ogg" }, + { "loop": 0, "subtitles": ["CAM3_AB_MSG3", "CAM3_AB_MSG4"], "video": "cam3/cam3aba.ogg" }, + { "loop": 0, "subtitles": "", "video": "cam3/cam3abf.ogg" } + ] + }, + "MB3_AB_MSG2": { + "sequences": [ + { "loop": 0, "subtitles": "CAM3_AB_MSG1", "video": "cam3/cam3abpl.ogg" } + ] + }, + "MB3_AB_MSG3": { + "sequences": [ + { "loop": 0, "subtitles": ["CAM3_AB_MSG5", "CAM3_AB_MSG6", "CAM3_AB_MSG7"], "video": "cam3/cam3ab.ogg" } + ] + } } } diff --git a/data/base/messages/brief3a-d1.json b/data/base/messages/brief3a-d1.json index 28e359a5066..de0524a2b0b 100644 --- a/data/base/messages/brief3a-d1.json +++ b/data/base/messages/brief3a-d1.json @@ -1,28 +1,27 @@ { - "video0000": { - "name": "MB3_AD1_MSG", - "sequences": [ - { "loop": 0, "subtitles": ["CAM3A_D1_MSG1", "CAM3A_D1_MSG2", "CAM3A_D1_MSG3"], "video": "cam3/c3ad1pl1.ogg" }, - { "loop": 0, "subtitles": ["CAM3A_D1_MSG4", "CAM3A_D1_MSG5"], "video": "cam3/c3_d1_a.ogg" } - ] - }, - "video0001": { - "name": "MB3_AD1_MSG2", - "sequences": [ - { "loop": 0, "subtitles": "CAM3A_D1_MSG6", "video": "cam3/c3ad1pl2.ogg" }, - { "loop": 0, "subtitles": ["CAM3A_D1_MSG7", "CAM3A_D1_MSG8"], "video": "cam3/c3_d1_b.ogg" } - ] - }, - "video0002": { - "name": "MB3_AD1_MSG3", - "sequences": [ - { "loop": 0, "subtitles": ["CAM3A_D1_MSG9", "CAM3A_D1_MSG10", "CAM3A_D1_MSG11"], "video": "cam3/cam3ad1b.ogg" } - ] - }, - "video0003": { - "name": "MB3_AD1_MSG4", - "sequences": [ - { "loop": 0, "subtitles": "CAM3A_D1_MSG12", "video": "cam3/c3ad1pl3.ogg" } - ] + "type": "wz2100.briefs.v1", + "briefs": { + "MB3_AD1_MSG": { + "sequences": [ + { "loop": 0, "subtitles": ["CAM3A_D1_MSG1", "CAM3A_D1_MSG2", "CAM3A_D1_MSG3"], "video": "cam3/c3ad1pl1.ogg" }, + { "loop": 0, "subtitles": ["CAM3A_D1_MSG4", "CAM3A_D1_MSG5"], "video": "cam3/c3_d1_a.ogg" } + ] + }, + "MB3_AD1_MSG2": { + "sequences": [ + { "loop": 0, "subtitles": "CAM3A_D1_MSG6", "video": "cam3/c3ad1pl2.ogg" }, + { "loop": 0, "subtitles": ["CAM3A_D1_MSG7", "CAM3A_D1_MSG8"], "video": "cam3/c3_d1_b.ogg" } + ] + }, + "MB3_AD1_MSG3": { + "sequences": [ + { "loop": 0, "subtitles": ["CAM3A_D1_MSG9", "CAM3A_D1_MSG10", "CAM3A_D1_MSG11"], "video": "cam3/cam3ad1b.ogg" } + ] + }, + "MB3_AD1_MSG4": { + "sequences": [ + { "loop": 0, "subtitles": "CAM3A_D1_MSG12", "video": "cam3/c3ad1pl3.ogg" } + ] + } } } diff --git a/data/base/messages/brief3a-d2.json b/data/base/messages/brief3a-d2.json index 96b44e396fc..32020641bed 100644 --- a/data/base/messages/brief3a-d2.json +++ b/data/base/messages/brief3a-d2.json @@ -1,42 +1,39 @@ { - "video0000": { - "name": "MB3_AD2_MSG", - "sequences": [ - { "loop": 0, "subtitles": ["CAM3A_D2_MSG1", "CAM3A_D2_MSG2", "CAM3A_D2_MSG3"], "video": "cam3/c3ad2pl1.ogg" }, - { "loop": 0, "subtitles": ["CAM3A_D2_MSG4", "CAM3A_D2_MSG5", "CAM3A_D2_MSG6"], "video": "cam3/c3ad2pl2.ogg" }, - { "loop": 0, "subtitles": "CAM3A_D2_MSG7", "video": "cam3/c3ad2pl3.ogg" }, - { "loop": 0, "subtitles": "", "video": "cam3/cam3ad2n.ogg" } - ] - }, - "video0001": { - "name": "MB3_AD2_MSG2", - "sequences": [ - { "loop": 0, "subtitles": "", "video": "cam3/c3ad2n2.ogg" } - ] - }, - "video0002": { - "name": "MB3_AD2_MSG3", - "sequences": [ - { "loop": 1, "subtitles": ["CAM3A_D2_MSG8", "CAM3A_D2_MSG9", "CAM3A_D2_MSG10"], "video": "cam3/c3ad2pl4.ogg" }, - { "loop": 0, "subtitles": ["CAM3A_D2_MSG11", "CAM3A_D2_MSG12", "CAM3A_D2_MSG13"], "video": "cam3/c3ad2_09.ogg" } - ] - }, - "video0003": { - "name": "MB3_AD2_MSG4", - "sequences": [ - { "loop": 0, "subtitles": ["CAM3A_D2_MSG14", "CAM3A_D2_MSG15", "CAM3A_D2_MSG16"], "video": "cam3/c3ad2_12.ogg" } - ] - }, - "video0004": { - "name": "MB3_AD2_MSG5", - "sequences": [ - { "loop": 0, "subtitles": ["CAM3A_D2_MSG17", "CAM3A_D2_MSG18", "CAM3A_D2_MSG19"], "video": "cam3/c3ad2_14.ogg" } - ] - }, - "video0005": { - "name": "MB3_AD2_MSG6", - "sequences": [ - { "loop": 0, "subtitles": ["CAM3A_D2_MSG20", "CAM3A_D2_MSG21"], "video": "cam3/c3ad2_16.ogg" } - ] + "type": "wz2100.briefs.v1", + "briefs": { + "MB3_AD2_MSG": { + "sequences": [ + { "loop": 0, "subtitles": ["CAM3A_D2_MSG1", "CAM3A_D2_MSG2", "CAM3A_D2_MSG3"], "video": "cam3/c3ad2pl1.ogg" }, + { "loop": 0, "subtitles": ["CAM3A_D2_MSG4", "CAM3A_D2_MSG5", "CAM3A_D2_MSG6"], "video": "cam3/c3ad2pl2.ogg" }, + { "loop": 0, "subtitles": "CAM3A_D2_MSG7", "video": "cam3/c3ad2pl3.ogg" }, + { "loop": 0, "subtitles": "", "video": "cam3/cam3ad2n.ogg" } + ] + }, + "MB3_AD2_MSG2": { + "sequences": [ + { "loop": 0, "subtitles": "", "video": "cam3/c3ad2n2.ogg" } + ] + }, + "MB3_AD2_MSG3": { + "sequences": [ + { "loop": 1, "subtitles": ["CAM3A_D2_MSG8", "CAM3A_D2_MSG9", "CAM3A_D2_MSG10"], "video": "cam3/c3ad2pl4.ogg" }, + { "loop": 0, "subtitles": ["CAM3A_D2_MSG11", "CAM3A_D2_MSG12", "CAM3A_D2_MSG13"], "video": "cam3/c3ad2_09.ogg" } + ] + }, + "MB3_AD2_MSG4": { + "sequences": [ + { "loop": 0, "subtitles": ["CAM3A_D2_MSG14", "CAM3A_D2_MSG15", "CAM3A_D2_MSG16"], "video": "cam3/c3ad2_12.ogg" } + ] + }, + "MB3_AD2_MSG5": { + "sequences": [ + { "loop": 0, "subtitles": ["CAM3A_D2_MSG17", "CAM3A_D2_MSG18", "CAM3A_D2_MSG19"], "video": "cam3/c3ad2_14.ogg" } + ] + }, + "MB3_AD2_MSG6": { + "sequences": [ + { "loop": 0, "subtitles": ["CAM3A_D2_MSG20", "CAM3A_D2_MSG21"], "video": "cam3/c3ad2_16.ogg" } + ] + } } } diff --git a/data/base/messages/briefdemo.json b/data/base/messages/briefdemo.json index 02a2b2f2736..a1f15fe73a8 100644 --- a/data/base/messages/briefdemo.json +++ b/data/base/messages/briefdemo.json @@ -1,9 +1,11 @@ { - "video0000": { - "name": "MBDEMO_MSG", - "sequences": [ - { "loop": 0, "subtitles": "TRANS_MSG1", "video": "brfcom.ogg" }, - { "loop": 0, "subtitles": ["CAM1A_MSG1", "CAM1A_MSG2", "CAM1A_MSG3"], "video": "fastplay.ogg" } - ] + "type": "wz2100.briefs.v1", + "briefs": { + "MBDEMO_MSG": { + "sequences": [ + { "loop": 0, "subtitles": "TRANS_MSG1", "video": "brfcom.ogg" }, + { "loop": 0, "subtitles": ["CAM1A_MSG1", "CAM1A_MSG2", "CAM1A_MSG3"], "video": "fastplay.ogg" } + ] + } } } diff --git a/data/base/messages/brieftut.json b/data/base/messages/brieftut.json index 9439314cdfa..01b5d88d41a 100644 --- a/data/base/messages/brieftut.json +++ b/data/base/messages/brieftut.json @@ -1,8 +1,10 @@ { - "video0000": { - "name": "FACTORYVIPER", - "sequences": [ - { "loop": 0, "subtitles": "", "video": "factory.ogg" } - ] + "type": "wz2100.briefs.v1", + "briefs": { + "FACTORYVIPER": { + "sequences": [ + { "loop": 0, "subtitles": "", "video": "factory.ogg" } + ] + } } } diff --git a/data/base/messages/cam1-outro.json b/data/base/messages/cam1-outro.json index 82fe0fe6895..bf586b6cc5b 100644 --- a/data/base/messages/cam1-outro.json +++ b/data/base/messages/cam1-outro.json @@ -1,24 +1,24 @@ { - "video0000": { - "name": "CAM1_OUT", - "sequences": [ - { "loop": 0, "subtitles": ["CAM1OUT_MSG1", "CAM1OUT_MSG2", "CAM1OUT_MSG3"], "video": "cam1/cam1out1.ogg" }, - { "loop": 0, "subtitles": "", "video": "cam1/cam1out2.ogg" }, - { "loop": 0, "subtitles": "", "video": "cam1/cam1out3.ogg" } - ] - }, - "video0001": { - "name": "CAM1_OUT2", - "sequences": [ - { "loop": 0, "subtitles": "", "video": "cam1/cam1out4.ogg" }, - { "loop": 0, "subtitles": "", "video": "cam1/cam1out5.ogg" }, - { "loop": 1, "subtitles": ["CAM1OUT_MSG4", "CAM1OUT_MSG5"], "video": "cam1/cam1out6.ogg" } - ] - }, - "video0002": { - "name": "CAM2_BRIEF", - "sequences": [ - { "loop": 0, "subtitles": "CAM1OUT_MSG6", "video": "cam1/c001end.ogg" } - ] + "type": "wz2100.briefs.v1", + "briefs": { + "CAM1_OUT": { + "sequences": [ + { "loop": 0, "subtitles": ["CAM1OUT_MSG1", "CAM1OUT_MSG2", "CAM1OUT_MSG3"], "video": "cam1/cam1out1.ogg" }, + { "loop": 0, "subtitles": "", "video": "cam1/cam1out2.ogg" }, + { "loop": 0, "subtitles": "", "video": "cam1/cam1out3.ogg" } + ] + }, + "CAM1_OUT2": { + "sequences": [ + { "loop": 0, "subtitles": "", "video": "cam1/cam1out4.ogg" }, + { "loop": 0, "subtitles": "", "video": "cam1/cam1out5.ogg" }, + { "loop": 1, "subtitles": ["CAM1OUT_MSG4", "CAM1OUT_MSG5"], "video": "cam1/cam1out6.ogg" } + ] + }, + "CAM2_BRIEF": { + "sequences": [ + { "loop": 0, "subtitles": "CAM1OUT_MSG6", "video": "cam1/c001end.ogg" } + ] + } } } diff --git a/data/base/messages/genmessages.json b/data/base/messages/genmessages.json index 6a6d3baea0f..87302b0ceb1 100644 --- a/data/base/messages/genmessages.json +++ b/data/base/messages/genmessages.json @@ -1,14 +1,15 @@ { - "video0000": { - "name": "END", - "sequences": [ - { "loop": 0, "subtitles": "END_MSG1", "video": "end.ogg" } - ] - }, - "video0001": { - "name": "WIN", - "sequences": [ - { "loop": 0, "subtitles": "WIN_MSG1", "video": "victory.ogg" } - ] + "type": "wz2100.briefs.v1", + "briefs": { + "END": { + "sequences": [ + { "loop": 0, "subtitles": "END_MSG1", "video": "end.ogg" } + ] + }, + "WIN": { + "sequences": [ + { "loop": 0, "subtitles": "WIN_MSG1", "video": "victory.ogg" } + ] + } } } diff --git a/doc/BriefAndProximityFormat.md b/doc/BriefAndProximityFormat.md index 4399c90080d..0e9a80783c9 100644 --- a/doc/BriefAndProximityFormat.md +++ b/doc/BriefAndProximityFormat.md @@ -29,19 +29,21 @@ Each Proximity message must have a unique ID. This ID will be what can be refere Example: ```json { - "video0000": { - "name": "MB1A_MSG", - "sequences": [ - { "loop": 1, "subtitles": "TRANS_MSG1", "video": "brfcom.ogg" }, - { "loop": 0, "subtitles": ["CAM1A_MSG1", "CAM1A_MSG2", "CAM1A_MSG3"], "video": "cam1/cam1ascv.ogg" } - ] + "type": "wz2100.briefs.v1", + "briefs": { + "MB1A_MSG": { + "sequences": [ + { "loop": 1, "subtitles": "TRANS_MSG1", "video": "brfcom.ogg" }, + { "loop": 0, "subtitles": ["CAM1A_MSG1", "CAM1A_MSG2", "CAM1A_MSG3"], "video": "cam1/cam1ascv.ogg" } + ] + } } } ``` -Each video sequence should start with something simple like "video..." or something else at your discretion. Order here does not matter. -Within each sequence, there will be two values: -- name: The unique view data name ID. This will be used as a reference for scripts to invoke to start a video subset. +Each briefing must have a unique ID. This will be used as a reference for scripts to invoke to start a video subset. + +Within each briefing, there will be: - sequences: an array of objects (order matters!) containing variables about each sub-video: - loop: An integer between 0-1 to loop the entire video until its audio stops playing. Will always display subtitles every frame if set to 1. - subtitles: String or array of string translation references for the video. These are added to the Intel menu icon text messages. diff --git a/src/message.cpp b/src/message.cpp index 1ce6400b508..42361228dac 100644 --- a/src/message.cpp +++ b/src/message.cpp @@ -39,6 +39,7 @@ #include "stats.h" #include "text.h" #include "qtscript.h" +#include "wzjsonhelpers.h" static std::map apsViewData; @@ -743,66 +744,123 @@ WzString *loadProximityViewData(const char *fileName) return new WzString(fileName); // so that cleanup function will be called on right data } +inline void from_json(const nlohmann::json& j, SEQ_DISPLAY& v) +{ + v.sequenceName = WzString::fromUtf8(j["video"].get()); + debug(LOG_WZ, "Sequence name: %s", v.sequenceName.toUtf8().c_str()); + v.flag = j["loop"].get(); + debug(LOG_WZ, "Sequence loop: %d", v.flag); + // Set the subtitle string for the sequence. + const nlohmann::json& subtitles = j["subtitles"]; + if (!subtitles.is_null() && subtitles.is_array()) + { + for (auto &a : subtitles) + { + std::string msg = a.get(); + if (msg.length() != 0) + { + const char *str = strresGetString(psStringRes, msg.c_str()); + ASSERT(str, "Cannot find the view data string with id \"%s\"", msg.c_str()); + v.textMsg.push_back(WzString::fromUtf8(str)); + debug(LOG_WZ, "Sequence subtitle array: %s", msg.c_str()); + } + } + } + else + { + std::string msg = subtitles.get(); + if (msg.length() != 0) + { + const char *str = strresGetString(psStringRes, msg.c_str()); + ASSERT(str, "Cannot find the view data string with id \"%s\"", msg.c_str()); + v.textMsg.push_back(WzString::fromUtf8(str)); + debug(LOG_WZ, "Sequence subtitle string: %s", msg.c_str()); + } + } +} + WzString *loadFlicViewData(const char *fileName) { ASSERT_OR_RETURN(nullptr, PHYSFS_exists(fileName), "%s not found", fileName); - WzConfig ini(fileName, WzConfig::ReadOnlyAndRequired); - std::vector list = ini.childGroups(); - for (size_t i = 0; i < list.size(); ++i) + + auto jsonObjOpt = wzLoadJsonObjectFromFile(fileName); + if (!jsonObjOpt.has_value()) + { + debug(LOG_ERROR, "Failed to load JSON: %s", fileName); + return nullptr; + } + const auto& jsonObj = jsonObjOpt.value(); + + // "type": "wz2100.briefs.v1" + auto it = jsonObj.find("type"); + if (it == jsonObj.end()) + { + debug(LOG_ERROR, "Missing required \"type\" key: %s", fileName); + return nullptr; + } + if (!it.value().is_string() || it.value().get() != "wz2100.briefs.v1") + { + debug(LOG_ERROR, "Unexpected \"type\" - expecting \"wz2100.briefs.v1\": %s", fileName); + return nullptr; + } + + // "briefs" + it = jsonObj.find("briefs"); + if (it == jsonObj.end()) + { + debug(LOG_ERROR, "Missing required \"briefs\" key: %s", fileName); + return nullptr; + } + if (!it.value().is_object()) + { + debug(LOG_ERROR, "\"briefs\" value is not an object: %s", fileName); + return nullptr; + } + const auto& briefsObj = it.value(); + + for (auto brief : briefsObj.items()) { + debug(LOG_WZ, "Sequence video set: %s", brief.key().c_str()); + + const auto& briefObj = brief.value(); + if (!briefObj.is_object()) + { + debug(LOG_ERROR, "\"briefs\"[%s] value is not an object: %s", brief.key().c_str(), fileName); + continue; + } + + auto briefIt = briefObj.find("sequences"); + if (briefIt == briefObj.end()) + { + debug(LOG_ERROR, "\"briefs\"[%s] lacks a \"sequences\" property: %s", brief.key().c_str(), fileName); + continue; + } + if (!briefIt.value().is_array()) + { + debug(LOG_ERROR, "\"briefs\"[%s] \"sequences\" property must have an array value: %s", brief.key().c_str(), fileName); + continue; + } + std::vector seqList; + try { + seqList = briefObj["sequences"].get>(); + } + catch (const std::exception&) + { + debug(LOG_ERROR, "Failed to parse \"briefs\"[%s] \"sequences\" property value: %s", brief.key().c_str(), fileName); + continue; + } + debug(LOG_WZ, "Sequence list size: %zu", seqList.size()); + // Replay viewdata init - unsigned int j = 0; VIEWDATA *v = new VIEWDATA; VIEW_REPLAY *r = new VIEW_REPLAY; v->pData = r; v->fileName = fileName; v->type = VIEW_RPL; - debug(LOG_WZ, "Sequence video set: %s", list[i].toUtf8().c_str()); - ini.beginGroup(list[i]); - v->name = WzString::fromUtf8(ini.json("name").get()); - debug(LOG_WZ, "Sequence viewdata name: %s", v->name.toUtf8().c_str()); - nlohmann::json element = ini.json("sequences"); - r->seqList.resize(element.size()); - debug(LOG_WZ, "Sequence list size: %d", (int)r->seqList.size()); + v->name = WzString::fromUtf8(brief.key()); + r->seqList = std::move(seqList); - for (auto& videoIdx : element) - { - r->seqList[j].sequenceName = WzString::fromUtf8(videoIdx["video"].get()); - debug(LOG_WZ, "Sequence name: %s", r->seqList[j].sequenceName.toUtf8().c_str()); - r->seqList[j].flag = videoIdx["loop"].get(); - debug(LOG_WZ, "Sequence loop: %d", r->seqList[j].flag); - // Set the subtitle string for the sequence. - nlohmann::json array = videoIdx["subtitles"]; - if (!array.is_null() && array.is_array()) - { - for (auto &a : array) - { - std::string msg = a.get(); - if (msg.length() != 0) - { - const char *str = strresGetString(psStringRes, msg.c_str()); - ASSERT(str, "Cannot find the view data string with id \"%s\"", msg.c_str()); - r->seqList[j].textMsg.push_back(WzString::fromUtf8(str)); - debug(LOG_WZ, "Sequence subtitle array: %s", msg.c_str()); - } - } - } - else - { - std::string msg = videoIdx["subtitles"].get(); - if (msg.length() != 0) - { - const char *str = strresGetString(psStringRes, msg.c_str()); - ASSERT(str, "Cannot find the view data string with id \"%s\"", msg.c_str()); - r->seqList[j].textMsg.push_back(WzString::fromUtf8(str)); - debug(LOG_WZ, "Sequence subtitle string: %s", msg.c_str()); - } - } - ++j; - } - - ini.endGroup(); apsViewData[v->name] = v; } return new WzString(fileName); // so that cleanup function will be called on right data