Repository navigation
Module select menu: choose Module 1, 2 or 3 in VR - #71
Merged
Merged
Conversation
SaveManager reset the run (clock and score) only when the active scene had build index 0, and SendRecieveData used the same test to report "in the menu" to GAMA. Index 0 is "Startup Menu_New" today only by coincidence; any scene put in front of it (a module select menu, for one) silently stops Module 1 from ever resetting. - Both now check for the scene named "Startup Menu_New" (SaveManager.StartScene). - When the start screen loads while the previous run's SaveManager is still alive (the player left mid-run instead of playing it out), the new one replaces it and starts a fresh run. Before, the new one destroyed itself and the next run resumed the old clock. Behaviour is unchanged for the current build order.
The app now starts on a "Module Select" scene (build index 0) instead of going straight into Module 1's start screen, and every module is reachable from it. - ModuleSelectMenu: a world-space VR menu built from code (no scene canvas, so the scene stays tiny and mergeable). Three cards, each with an in-game picture, in the team's palette and pill headers, the team's Lao welcome line in the shared Lao_SomVang Full SDF font, plus small buttons for the Module 2 tutorial and the GAMA/IP screen. Card text wraps and shrinks to fit. Select by looking at a card or with the thumbstick, A or trigger to launch. Gaze only takes over when the head moves onto another card, so it does not undo a thumbstick choice on the next frame. - Module 1 enters through the team's "Startup Menu_New" (how-to-play slides, clock reset), which is also where it returns when time runs out. - Module 3 is the team's Health Check (Module3_System/Scene/Module_3_Demo on Module-3-Demo / M3_Demo_BackUP): talk to villagers, check symptoms, send them to hospital or home. It is not on main yet, so in a player build the card is hidden until that scene is in the build list; in the editor it is drawn greyed out with the reason. When the branch merges, re-run the builder. - ReturnToMenu: hold B/Y for 1.5 s in any module to come back. It installs itself via RuntimeInitializeOnLoadMethod, so no module scene is touched. The bar only shows after 0.3 s, and the timer adds at most 0.1 s per frame, so a tap of B during a frame hitch is never taken for a hold. - AppFlow: every scene load goes by path. Names are not unique here: Module 1's game scene is "Main Scene", and so are two SIMPLE template scenes; the team's Module 3 branch has two scenes called Module_3_Demo. - ModuleSelectSceneBuilder (AEDES > Rebuild Module Select Scene) regenerates the scene, wires in every picture in MainMenu/Pictures (matched to cards by name), and writes the build list: Module Select, Startup Menu_New, Main Scene, Module_2_MainScene, [Module_3_Demo], Tutorial_M2, IP Menu. It keeps other entries, but disables any enabled scene whose name clashes with a module scene. Module_2_MainScene was not in main's build list at all. Checked in play mode via the playtest harness, on this branch and on a throwaway merge with M3_Demo_BackUP: menu -> Module 1 start screen -> game (300 s clock) -> hold B mid-run -> menu -> Module 1 again starts a fresh 300 s run; the stick picks each card and launches it; hold B returns to the menu from Module 1, 2, 3, the tutorial and the IP menu, repeatedly in one session. No exceptions from the menu. Not yet tried on a headset.
- `Tools/build.sh app` (and deploy.sh / build-and-deploy.sh) builds the enabled scenes in Build Settings, i.e. the module select menu plus every module, into build/Android/AEDES.apk. - `1` looked for Module_1_MainScene.unity, which main no longer has (the team's Module 1 renamed it "Main Scene"), so it died. It now builds Startup Menu_New plus Main Scene, since the game returns to the start screen when time runs out. - README: document `app` as the build to give a class.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The app now starts on a Module Select menu in VR instead of going straight into Module 1. Each module has a card with a picture from the game.
Module1/Scene/Startup Menu_New(Module 1's own start screen, thenMain Scene)Module2/Scene/Module_2_MainSceneModule3_System/Scene/Module_3_Demo(the team's Module 3)Below the cards are two small buttons, for the Module 2 tutorial and the GAMA/IP screen.
How to use it
Module 3 is not on main yet
The Module 3 card points to the team's scene on
Module-3-Demo/M3_Demo_BackUP. Until that scene is on main:When the Module 3 branch is merged:
ProjectSettings/EditorBuildSettings.assetwill conflict. Take either side, then run AEDES > Rebuild Module Select Scene. The card and its picture then appear.Other changes
SaveManagerandSendRecieveDatafound the start screen by checking "build index 0". The menu is now index 0, so they look for the scene namedStartup Menu_Newinstead.Module_2_MainScenewas not in main's build list before, so Module 2 was missing from APKs.Tools/build.sh appbuilds the whole app with the menu, tobuild/Android/AEDES.apk.Tools/build.sh 1was broken: it looked forModule_1_MainScene, which no longer exists. It now buildsStartup Menu_New+Main Scene.Testing
Tested in Unity play mode with the playtest harness, both on this branch and merged with
M3_Demo_BackUP:Not tested on a headset yet.
Please check
ModuleSelectTextinMainMenu/Scripts/ModuleSelectMenu.cs.NPC.OnTriggerEnterturns on an outline for character meshes thatNPC.Awakehas already deleted. This throwsMissingReferenceExceptionwhen the player walks up to some villagers.NPC.cshasusing NUnit.Framework, which can break APK builds.