Guest User

verse_crash_detector (README)

a guest
May 23rd, 2024
292
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.45 KB | None | 0 0
  1. NOTICE
  2. Detect and handle most Verse runtime crashes (requires a bit of setup)
  3. Upon crash, can either restart round and/or send analytics and/or mark the device as "crashed" for custom handling (using .Ping() method)
  4. Can manually trigger a crash for testing purposes
  5. (see more in file's README)
  6.  
  7. USAGE
  8. - Add the VERSE SNIPPET (1) into a new file named verse_crash_detector.verse
  9. - Convert some/all of your "creative_device" to "crashable_device"
  10. BEFORE: "some_device := class(creative_device):"
  11. AFTER: "some_device := class(crashable_device):"
  12. - Rename all crashable_device.OnBegin to OnCrashableDeviceBegin
  13. - Build Verse Code
  14. - Copy Paste the DEVICES (2) into your map
  15. - Place a Verse Crash Detector device into your map
  16. - Link the "Timer" field to "Timer Device - Crash Watcher"
  17. - (OPT; if you want to send additional analytics on crash) Link the "GlobalCrashAnalytics" to Analytic Device - Crash Detected
  18. NOTE: Might not be relevant since we got the content service errors page now
  19. - (OPT; if you want to be able to restart a round on crash) Change Island Settings Total Rounds = 100
  20. - (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)
  21. - (OPT) For each crashable device, configure the handling behavior differently (fields RestartRoundOnCrash, CrashAnalytics, DeviceName)
  22. - 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