Skip to content

Commit

Permalink
Use json parser directly for brief file loading, tweak format
Browse files Browse the repository at this point in the history
  • Loading branch information
past-due committed Oct 30, 2024
1 parent 98f1a48 commit a5d53fd
Show file tree
Hide file tree
Showing 39 changed files with 745 additions and 657 deletions.
38 changes: 19 additions & 19 deletions data/base/messages/brief1-1.json
Original file line number Diff line number Diff line change
@@ -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" }
]
}
}
}
27 changes: 14 additions & 13 deletions data/base/messages/brief1-2.json
Original file line number Diff line number Diff line change
@@ -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" }
]
}
}
}
57 changes: 28 additions & 29 deletions data/base/messages/brief1-3.json
Original file line number Diff line number Diff line change
@@ -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" }
]
}
}
}
35 changes: 18 additions & 17 deletions data/base/messages/brief1-4a.json
Original file line number Diff line number Diff line change
@@ -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" }
]
}
}
}
14 changes: 8 additions & 6 deletions data/base/messages/brief1-5.json
Original file line number Diff line number Diff line change
@@ -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" }
]
}
}
}
36 changes: 18 additions & 18 deletions data/base/messages/brief1-7.json
Original file line number Diff line number Diff line change
@@ -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" }
]
}
}
}
27 changes: 14 additions & 13 deletions data/base/messages/brief1a-c.json
Original file line number Diff line number Diff line change
@@ -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" }
]
}
}
}
25 changes: 13 additions & 12 deletions data/base/messages/brief1a.json
Original file line number Diff line number Diff line change
@@ -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" }
]
}
}
}
14 changes: 8 additions & 6 deletions data/base/messages/brief1b.json
Original file line number Diff line number Diff line change
@@ -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" }
]
}
}
}
57 changes: 28 additions & 29 deletions data/base/messages/brief1c.json
Original file line number Diff line number Diff line change
@@ -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" }
]
}
}
}
16 changes: 9 additions & 7 deletions data/base/messages/brief1ca.json
Original file line number Diff line number Diff line change
@@ -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" }
]
}
}
}
Loading

0 comments on commit a5d53fd

Please sign in to comment.