Compare commits

..

No commits in common. "014fc90c1e8601d6a692b086b2efd1a5c49972a8" and "d3c762b1410970e106892a3f3ab06bd2d5d6df90" have entirely different histories.

2 changed files with 4598 additions and 384686 deletions

View File

@ -1,6 +1,6 @@
Tree("Root") { Tree("Root") {
Composite(Sequence) { Composite(Sequence) {
// RunTree("32_Grotto_Kueche_Intro") RunTree("32_Grotto_Kueche_Intro")
BTC.InitializeSpeechManager() BTC.InitializeSpeechManager()
BTC.SetSpeechRecognitionLanguage("it-IT") BTC.SetSpeechRecognitionLanguage("it-IT")
BTC.SetVoiceName("it-IT-FabiolaNeural") BTC.SetVoiceName("it-IT-FabiolaNeural")
@ -129,44 +129,26 @@ Tree("32_Grotto_Kueche_Intro") {
BTC.Run("MediaPlayer.VIDEOS.ZwiebelnschneidenF_01") BTC.Run("MediaPlayer.VIDEOS.ZwiebelnschneidenF_01")
BTC.Run("MediaPlayer.VIDEOS.ZwiebelnschneidenF_Idle02") BTC.Run("MediaPlayer.VIDEOS.ZwiebelnschneidenF_Idle02")
Composite(Race) { // Race
Composite(Sequence) { // Zwiebeln schneiden
BTC.Wait(30) BTC.FindObjectsByTag("SlicedZwiebel", 5)
BTC.SetBool("CancelCooking") BTC.Show("GO.STATIC.RezeptCheckmark2")
} // Race Ende
Composite(Sequence) {
// Zwiebeln schneiden
BTC.FindObjectsByTag("SlicedZwiebel", 6)
BTC.SetBool("CancelCooking", false)
BTC.Show("GO.STATIC.RezeptCheckmark2")
}
}
Composite(Selector) {
BTC.CompareBool("CancelCooking", false)
Composite(Sequence) {
// --- Kueche - Abbruch ---
BTC.Hide("MediaPlayer.VIDEOS.ZwiebelnschneidenF_Idle02")
BTC.Run("MediaPlayer.VIDEOS.AbbruchF1")
// TODO: Define Jump Point to grotto 1
BTC.Run("LoadScene.NEXT.32Grotto1")
}
}
// --- Kueche - alles gefunden ---
BTC.Hide("MediaPlayer.VIDEOS.ZwiebelnschneidenF_Idle02") BTC.Hide("MediaPlayer.VIDEOS.ZwiebelnschneidenF_Idle02")
BTC.Run("MediaPlayer.VIDEOS.allesgefundenF1")
BTC.Run("MediaPlayer.VIDEOS.allesgefundenFidle_02")
BTC.Show("Depthkit.VIDEOS.allesgefunden1Kuec")
BTC.Run("Depthkit.VIDEOS.allesgefunden1Kuec")
BTC.Hide("Depthkit.VIDEOS.allesgefunden1Kuec")
// Oel in Topf geben // Oel in Topf geben
BTC.Run("Particle.INTERACTABLES.Olivenoel") BTC.Run("Particle.INTERACTABLES.Olivenoel")
BTC.Show("GO.STATIC.RezeptCheckmark3") BTC.Show("GO.STATIC.RezeptCheckmark3")
BTC.Hide("MediaPlayer.VIDEOS.allesgefundenFidle_02") BTC.Show("Depthkit.VIDEOS.allesgefunden2Kuec")
BTC.Run("MediaPlayer.VIDEOS.allesgefundenF3") BTC.Run("Depthkit.VIDEOS.allesgefunden2Kuec")
BTC.Run("MediaPlayer.VIDEOS.allesgefundenFidle_04") BTC.Hide("Depthkit.VIDEOS.allesgefunden2Kuec")
// Herd anstellen - ToDo: Handling in Story? // Herd anstellen - ToDo: Handling in Story?
//BTC.Run("NamedGrabEvent.STATIC.Herdschalter") //BTC.Run("NamedGrabEvent.STATIC.Herdschalter")
@ -178,9 +160,9 @@ Tree("32_Grotto_Kueche_Intro") {
BTC.Run("StudioEventEmitter.INTERACTABLES.ZwiebelnInTopf") BTC.Run("StudioEventEmitter.INTERACTABLES.ZwiebelnInTopf")
BTC.Show("GO.STATIC.RezeptCheckmark4") BTC.Show("GO.STATIC.RezeptCheckmark4")
BTC.Hide("MediaPlayer.VIDEOS.allesgefundenFidle_04") BTC.Show("Depthkit.VIDEOS.allesgefunden3Kuec")
BTC.Run("MediaPlayer.VIDEOS.allesgefundenF5") BTC.Run("Depthkit.VIDEOS.allesgefunden3Kuec")
BTC.Run("MediaPlayer.VIDEOS.allesgefundenFidle_06") BTC.Hide("Depthkit.VIDEOS.allesgefunden3Kuec")
// Frage beantworten // Frage beantworten
BTC.AddPossbileSpeechIntent("Kueche.alles_gefunden.4") BTC.AddPossbileSpeechIntent("Kueche.alles_gefunden.4")
@ -298,9 +280,9 @@ Tree("32_Grotto_Kueche_Intro") {
Tree("32_Grotto_Kueche_Interesse_Kochen") { Tree("32_Grotto_Kueche_Interesse_Kochen") {
// --- Kueche - Interesse Kochen --- // --- Kueche - Interesse Kochen ---
Composite(Sequence) { Composite(Sequence) {
BTC.Hide("MediaPlayer.VIDEOS.allesgefundenFidle_06") BTC.Show("Depthkit.VIDEOS.InteresseKochen1Ku")
BTC.Run("MediaPlayer.VIDEOS.InteresseKochenF1") BTC.Run("Depthkit.VIDEOS.InteresseKochen1Ku")
BTC.Run("MediaPlayer.VIDEOS.InteresseKochenFid_02") BTC.Hide("Depthkit.VIDEOS.InteresseKochen1Ku")
// Frage beantworten // Frage beantworten
BTC.AddPossbileSpeechIntent("Kueche.Interesse_Kochen.2") BTC.AddPossbileSpeechIntent("Kueche.Interesse_Kochen.2")
@ -345,9 +327,9 @@ Tree("32_Grotto_Kueche_Interesse_Kochen") {
Tree("32_Grotto_Kueche_Kochen_Anzahl") { Tree("32_Grotto_Kueche_Kochen_Anzahl") {
// --- Kueche - Kochen Anzahl --- // --- Kueche - Kochen Anzahl ---
Composite(Sequence) { Composite(Sequence) {
BTC.Hide("MediaPlayer.VIDEOS.InteresseKochenFid_02") BTC.Show("Depthkit.VIDEOS.KochenAnzahl1Kuech")
BTC.Run("MediaPlayer.VIDEOS.KochenAnzahlF1") BTC.Run("Depthkit.VIDEOS.KochenAnzahl1Kuech")
BTC.Run("MediaPlayer.VIDEOS.KochenAnzahlFidle2") BTC.Hide("Depthkit.VIDEOS.KochenAnzahl1Kuech")
// Frage beantworten // Frage beantworten
BTC.AddPossbileSpeechIntent("Kueche.Kochen_Anzahl.2") BTC.AddPossbileSpeechIntent("Kueche.Kochen_Anzahl.2")
@ -365,7 +347,19 @@ Tree("32_Grotto_Kueche_Kochen_Anzahl") {
BTC.SpeechIntentRecognized() BTC.SpeechIntentRecognized()
// Intent erkannt // Intent erkannt
RunTree("32_Grotto_Kueche_Zusammen_Kochen") Composite(Race) {
Composite(Sequence) {
BTC.CompareIntentID("Kueche.Kochen_Anzahl.2")
BTC.ClearPossbileSpeechIntents()
//RunTree("32_Grotto_Kueche_Selbststaendig_Kochen")
RunTree("32_Grotto_Kueche_Zusammen_Kochen")
}
Composite(Sequence) {
BTC.CompareIntentID("Kueche.Kochen_Anzahl.4")
BTC.ClearPossbileSpeechIntents()
RunTree("32_Grotto_Kueche_Zusammen_Kochen")
}
}
} }
// -- Selector 2: Intent nicht erkannt // -- Selector 2: Intent nicht erkannt
@ -390,6 +384,7 @@ Tree("32_Grotto_Kueche_Kochen_Anzahl") {
BTC.Hide("GO.GO.Option2Button") BTC.Hide("GO.GO.Option2Button")
BTC.Hide("GO.GO.SpeechButton") BTC.Hide("GO.GO.SpeechButton")
BTC.Hide("GO.GO.SpeechOptions") BTC.Hide("GO.GO.SpeechOptions")
//RunTree("32_Grotto_Kueche_Selbststaendig_Kochen")
RunTree("32_Grotto_Kueche_Zusammen_Kochen") RunTree("32_Grotto_Kueche_Zusammen_Kochen")
} }
Composite(Sequence) { Composite(Sequence) {
@ -423,27 +418,24 @@ Tree("32_Grotto_Kueche_Kochen_Anzahl") {
Tree("32_Grotto_Kueche_Zusammen_Kochen") { Tree("32_Grotto_Kueche_Zusammen_Kochen") {
// --- Kueche - Zusammen Kochen --- // --- Kueche - Zusammen Kochen ---
Composite(Sequence) { Composite(Sequence) {
Composite(Marathon) { BTC.Show("Depthkit.VIDEOS.ZusammenKochen1Kue")
BTC.Hide("MediaPlayer.VIDEOS.allesgefundenFidle_06") BTC.Run("Depthkit.VIDEOS.ZusammenKochen1Kue")
BTC.Hide("MediaPlayer.VIDEOS.InteresseKochenFid_02") BTC.Hide("Depthkit.VIDEOS.ZusammenKochen1Kue")
BTC.Hide("MediaPlayer.VIDEOS.KochenAnzahlFidle2")
}
BTC.Run("MediaPlayer.VIDEOS.ZusammenKochenF1") // Risotto in Topf geben
BTC.Run("MediaPlayer.VIDEOS.ZusammenKochenFidl_02")
// Reis in Topf geben
BTC.Run("GO/Particle.INTERACTABLES.Risotto") BTC.Run("GO/Particle.INTERACTABLES.Risotto")
BTC.Hide("GO.INTERACTABLES.Reis")
BTC.Hide("GO/Particle.INTERACTABLES.Risotto")
BTC.Show("GO.STATIC.RezeptCheckmark5") BTC.Show("GO.STATIC.RezeptCheckmark5")
// Ruehren // Ruehren
BTC.Set("Collider.INTERACTABLES.Topf", "otherTag", "Loeffel") BTC.Set("Collider.INTERACTABLES.Topf", "otherTag", "Loeffel")
BTC.Run("Collider.INTERACTABLES.Topf") BTC.Run("Collider.INTERACTABLES.Topf")
BTC.Wait(2) BTC.Wait(2) // Wie lange ruehren?
BTC.Hide("MediaPlayer.VIDEOS.ZusammenKochenFidl_02") BTC.Show("Depthkit.VIDEOS.ZusammenKochen2Kue")
BTC.Run("MediaPlayer.VIDEOS.ZusammenKochenF3") BTC.Run("Depthkit.VIDEOS.ZusammenKochen2Kue")
BTC.Run("MediaPlayer.VIDEOS.ZusammenKochenFidl_04") BTC.Hide("Depthkit.VIDEOS.ZusammenKochen2Kue")
// Wein in Topf giessen // Wein in Topf giessen
BTC.Run("Particle.INTERACTABLES.Weisswein") BTC.Run("Particle.INTERACTABLES.Weisswein")
@ -460,9 +452,9 @@ Tree("32_Grotto_Kueche_Zusammen_Kochen") {
Composite(Sequence) { Composite(Sequence) {
BTC.Wait(5) BTC.Wait(5)
BTC.Hide("MediaPlayer.VIDEOS.ZusammenKochenFidl_04") BTC.Show("Depthkit.VIDEOS.ZusammenKochen3Kue")
BTC.Run("MediaPlayer.VIDEOS.ZusammenKochenF5") BTC.Run("Depthkit.VIDEOS.ZusammenKochen3Kue")
BTC.Run("MediaPlayer.VIDEOS.ZusammenKochenFidl_06") BTC.Hide("Depthkit.VIDEOS.ZusammenKochen3Kue")
} }
} }
@ -470,45 +462,113 @@ Tree("32_Grotto_Kueche_Zusammen_Kochen") {
BTC.Run("Particle.INTERACTABLES.Bouillon") BTC.Run("Particle.INTERACTABLES.Bouillon")
BTC.Show("GO.STATIC.RezeptCheckmark7") BTC.Show("GO.STATIC.RezeptCheckmark7")
BTC.Hide("MediaPlayer.VIDEOS.ZusammenKochenFidl_06") BTC.Show("Depthkit.VIDEOS.ZusammenKochen4Kue")
BTC.Run("MediaPlayer.VIDEOS.ZusammenKochenF7") BTC.Run("Depthkit.VIDEOS.ZusammenKochen4Kue")
BTC.Run("MediaPlayer.VIDEOS.ZusammenKochenFidl_08") BTC.Hide("Depthkit.VIDEOS.ZusammenKochen4Kue")
// Glas Wasser mit Steinpilze in Topf geben // Glas Wasser mit Steinpilze in Topf geben
BTC.Set("Collider.INTERACTABLES.Topf", "otherTag", "Steinpilze") BTC.Set("Collider.INTERACTABLES.Topf", "otherTag", "Steinpilze")
BTC.Run("Collider.INTERACTABLES.Topf") BTC.Run("Collider.INTERACTABLES.Topf")
BTC.Show("GO.STATIC.RezeptCheckmark8") BTC.Show("GO.STATIC.RezeptCheckmark8")
BTC.Wait(5)
BTC.Hide("MediaPlayer.VIDEOS.ZusammenKochenFidl_08") RunTree("32_Grotto_Kueche_Parmigiano")
BTC.Run("MediaPlayer.VIDEOS.ZusammenKochenF9") }
BTC.Run("MediaPlayer.VIDEOS.ZusammenKochenFidl_10") }
Tree("32_Grotto_Kueche_Parmigiano") {
// --- Kueche - Parmigiano ---
Composite(Sequence) {
BTC.Show("Depthkit.VIDEOS.ZusammenKochen5Kue")
BTC.Run("Depthkit.VIDEOS.ZusammenKochen5Kue")
BTC.Hide("Depthkit.VIDEOS.ZusammenKochen5Kue")
// Parmigiano in Topf geben // Parmigiano in Topf geben
BTC.Run("Particle.INTERACTABLES.Parmesan") BTC.Run("Particle.INTERACTABLES.Parmesan")
BTC.Show("GO.STATIC.RezeptCheckmark9") BTC.Show("GO.STATIC.RezeptCheckmark9")
BTC.Hide("MediaPlayer.VIDEOS.ZusammenKochenFidl_10") BTC.Show("Depthkit.VIDEOS.ZusammenKochen6Kue")
BTC.Run("MediaPlayer.VIDEOS.ZusammenKochenF11") BTC.Run("Depthkit.VIDEOS.ZusammenKochen6Kue")
BTC.Hide("Depthkit.VIDEOS.ZusammenKochen6Kue")
// --- Kueche - Outro --- // Antwort User
BTC.Run("MediaPlayer.VIDEOS.OutroF1") BTC.AddPossbileSpeechIntent("Kueche.Zusammen_Kochen.6")
BTC.Run("MediaPlayer.VIDEOS.OutroFidle8") BTC.StartSpeechIntentRecognition()
Composite(Marathon) { Composite(Race) {
// -- Race 1: User sagt etwas
Composite(Sequence) { Composite(Sequence) {
BTC.Run("MediaPlayer.VIDEOS.OutroG3") BTC.UserStartedSpeechInput()
BTC.Run("MediaPlayer.VIDEOS.OutroGidle6")
Composite(Selector) {
// -- Selector 1: Intent erkannt
Composite(Sequence) {
BTC.SpeechIntentRecognized()
// Intent erkannt
BTC.ClearPossbileSpeechIntents()
}
// -- Selector 2: Intent nicht erkannt
Composite(Sequence) {
BTC.ClearPossbileSpeechIntents()
}
}
} }
// -- Race 2: User sagt nichts
Composite(Sequence) { Composite(Sequence) {
BTC.Wait(12) BTC.Wait(5)
BTC.Hide("MediaPlayer.VIDEOS.OutroFidle8") BTC.CompareUserSpeechInputStarted(false)
BTC.Run("MediaPlayer.VIDEOS.OutroF4") BTC.AbortSpeechEventListener()
BTC.Run("MediaPlayer.VIDEOS.OutroFidle5") BTC.StopSpeechIntentRecognition()
BTC.ClearPossbileSpeechIntents()
} }
} }
BTC.Show("Depthkit.VIDEOS.ZusammenKochen7Kue")
BTC.Run("Depthkit.VIDEOS.ZusammenKochen7Kue")
BTC.Hide("Depthkit.VIDEOS.ZusammenKochen7Kue")
// Stelle für Pfanne leuchtet
BTC.Enable("NamedOutline.INTERACTABLES.TopfUntersetzer")
BTC.Set("Collider.INTERACTABLES.Topfuntersetzer", "otherTag", "Topf")
Composite(Race) {
Composite(Sequence) {
// Pfanne rueber stellen
BTC.Run("Collider.INTERACTABLES.Topfuntersetzer")
}
Composite(Sequence) {
// Keine Reaction
BTC.Wait(5)
BTC.Show("Depthkit.VIDEOS.ZusammenKochen8Kue")
BTC.Run("Depthkit.VIDEOS.ZusammenKochen8Kue")
BTC.Hide("Depthkit.VIDEOS.ZusammenKochen8Kue")
// Pfanne rueber stellen
BTC.Run("Collider.INTERACTABLES.Topfuntersetzer")
}
}
BTC.Hide("Depthkit.VIDEOS.ZusammenKochen8Kue")
BTC.Disable("NamedOutline.INTERACTABLES.TopfUntersetzer")
BTC.Show("Depthkit.VIDEOS.ZusammenKochen10Ku")
BTC.Run("Depthkit.VIDEOS.ZusammenKochen10Ku")
BTC.Hide("Depthkit.VIDEOS.ZusammenKochen10Ku")
BTC.Show("Depthkit.VIDEOS.ZusammenKochen12Ku")
BTC.Run("Depthkit.VIDEOS.ZusammenKochen12Ku")
BTC.Hide("Depthkit.VIDEOS.ZusammenKochen12Ku")
// --- Kueche - Outro ---
BTC.Show("Depthkit.VIDEOS.Outro1Kueche")
BTC.Run("Depthkit.VIDEOS.Outro1Kueche")
BTC.Hide("Depthkit.VIDEOS.Outro1Kueche")
BTC.Show("Depthkit.VIDEOS.Outro2Kueche")
BTC.Run("Depthkit.VIDEOS.Outro2Kueche")
BTC.Hide("Depthkit.VIDEOS.Outro2Kueche")
// Name sagen // Name sagen
BTC.AddPossbileSpeechIntent("Kueche.Outro.4") BTC.AddPossbileSpeechIntent("Kueche.Outro.4")
BTC.StartSpeechIntentRecognition() BTC.StartSpeechIntentRecognition()
@ -542,93 +602,15 @@ Tree("32_Grotto_Kueche_Zusammen_Kochen") {
} }
} }
Composite(Marathon) { BTC.Show("Depthkit.VIDEOS.Outro7Kueche")
Composite(Sequence) { BTC.Run("Depthkit.VIDEOS.Outro7Kueche")
BTC.Hide("MediaPlayer.VIDEOS.OutroGidle6") BTC.Hide("Depthkit.VIDEOS.Outro7Kueche")
BTC.Run("MediaPlayer.VIDEOS.OutroG9")
BTC.Run("MediaPlayer.VIDEOS.OutroGidle10")
}
Composite(Sequence) { BTC.Show("Depthkit.VIDEOS.Outro8Kueche")
BTC.Wait(1) BTC.Run("Depthkit.VIDEOS.Outro8Kueche")
BTC.Hide("MediaPlayer.VIDEOS.OutroFidle5") BTC.Hide("Depthkit.VIDEOS.Outro8Kueche")
BTC.Run("MediaPlayer.VIDEOS.OutroF7")
BTC.Run("MediaPlayer.VIDEOS.OutroFidle8")
}
}
Composite(Marathon) {
Composite(Sequence) {
BTC.Hide("MediaPlayer.VIDEOS.OutroFidle8")
BTC.Run("MediaPlayer.VIDEOS.OutroF11")
BTC.Run("MediaPlayer.VIDEOS.OutroFidle14")
}
Composite(Sequence) {
BTC.Wait(1)
BTC.Hide("MediaPlayer.VIDEOS.OutroGidle10")
BTC.Run("MediaPlayer.VIDEOS.OutroG12")
BTC.Run("MediaPlayer.VIDEOS.OutroGidle13")
}
}
BTC.AddPossbileSpeechIntent("Story_B_Grotto.Intro.3") // TODO: Update Speech Intent
BTC.AddPossbileSpeechIntent("Story_B_Grotto.Intro.4") // TODO: Update Speech Intent
BTC.StartSpeechIntentRecognition()
Composite(Race) {
// -- Race 1: User sagt etwas
Composite(Sequence) {
BTC.UserStartedSpeechInput()
Composite(Selector) {
// -- Selector 1: Intent erkannt
Composite(Sequence) {
BTC.SpeechIntentRecognized()
// Intent erkannt
Composite(Race) {
Composite(Sequence) {
BTC.CompareIntentID("Story_B_Grotto.Intro.3")
BTC.ClearPossbileSpeechIntents()
BTC.FadeOut("FadeScene.XRInteractionHandsSetup.Black")
BTC.Run("LoadScene.NEXT.32Grotto3")
}
Composite(Sequence) {
BTC.CompareIntentID("Story_B_Grotto.Intro.4")
BTC.ClearPossbileSpeechIntents()
}
}
}
// -- Selector 2: Intent nicht erkannt
Composite(Sequence) {
BTC.ClearPossbileSpeechIntents()
}
}
}
// -- Race 2: User sagt nichts
Composite(Sequence) {
BTC.Wait(5)
BTC.CompareUserSpeechInputStarted(false)
BTC.AbortSpeechEventListener()
BTC.StopSpeechIntentRecognition()
BTC.ClearPossbileSpeechIntents()
}
}
BTC.Hide("MediaPlayer.VIDEOS.OutroFidle14")
Composite(Marathon) {
BTC.Run("MediaPlayer.VIDEOS.OutroF15")
Composite(Sequence) {
BTC.Wait(7)
BTC.FadeOut("FadeScene.XRInteractionHandsSetup.Black")
}
}
BTC.FadeOut("FadeScene.XRInteractionHandsSetup.Black")
BTC.Run("LoadScene.NEXT.32Grotto3") BTC.Run("LoadScene.NEXT.32Grotto3")
} }
} }

File diff suppressed because it is too large Load Diff