Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- NOTICE
- Detect and handle most Verse runtime crashes (requires a bit of setup)
- Upon crash, can either restart round and/or send analytics and/or mark the device as "crashed" for custom handling (using .Ping() method)
- Can manually trigger a crash for testing purposes
- (see more in file's README)
- USAGE
- - Add the VERSE SNIPPET (1) into a new file named verse_crash_detector.verse
- - Convert some/all of your "creative_device" to "crashable_device"
- BEFORE: "some_device := class(creative_device):"
- AFTER: "some_device := class(crashable_device):"
- - Rename all crashable_device.OnBegin to OnCrashableDeviceBegin
- - Build Verse Code
- - Copy Paste the DEVICES (2) into your map
- - Place a Verse Crash Detector device into your map
- - Link the "Timer" field to "Timer Device - Crash Watcher"
- - (OPT; if you want to send additional analytics on crash) Link the "GlobalCrashAnalytics" to Analytic Device - Crash Detected
- NOTE: Might not be relevant since we got the content service errors page now
- - (OPT; if you want to be able to restart a round on crash) Change Island Settings Total Rounds = 100
- - (OPT) If using Save Point Device, you'll probably want to set it to load on every spawn (because you changed the number of rounds)
- - (OPT) For each crashable device, configure the handling behavior differently (fields RestartRoundOnCrash, CrashAnalytics, DeviceName)
- - Start Game > Open "Output Log" > See a list of all watched devices (with their names if you provided them)
Advertisement
Add Comment
Please, Sign In to add comment