Thanks, I've been able to get a better understanding from the src files for "HearthstoneExtract."
Still having trouble tracking down this error though, the entire code has a try catch around it, and it appears to be completely random when it does happen. I run the plugin, it starts a practice AI match, and echos it to the screen (so I know the plugin is loaded and executing commands as intended), then it goes to deck selection, and just when it's about to start the game, it throws an error:
Code:
Sigmund online
Platform assembly: D:\Games\Hearthstone\Hearthstone_Data\Managed\System.Xml.dll (this message is harmless)
[HealthyGaming] CAIS Active: False, Accout Country: CAN, Time: 6.79141, Played Time: 0, Rested Time: 0
(Filename: C:/BuildAgent/work/cac08d8a5e25d4cb/Runtime/ExportGenerated/StandalonePlayer/UnityEngineDebug.cpp Line: 54)
Unloading 5 Unused Serialized files (Serialized files now loaded: 16 / Dirty serialized files: 0)
Unloading 40 unused Assets to reduce memory usage. Loaded Objects now: 7449.
Total: 9.168311 ms (FindLiveObjects: 0.239433 ms CreateObjectMapping: 0.507520 ms MarkObjects: 7.539699 ms DeleteObjects: 0.460753 ms)
Platform assembly: D:\Games\Hearthstone\Hearthstone_Data\Managed\Mono.Cecil.dll (this message is harmless)
Loader.exec called for C:\Users\Spood\Documents\GitHub\Sigmund\plugins\testplugin.dll
Non platform assembly: C:\Users\Spood\AppData\Local\Temp\tmp1bcea906.tmp (this message is harmless)
7:17:07 PM: Destroyed old plugin
Loader.runAssembly ran Plugin.Plugin.init for TestPlugin
7:17:07 PM: Plugin started
7:17:10 PM: Playing game against practice AI
Unloading 2 Unused Serialized files (Serialized files now loaded: 16 / Dirty serialized files: 0)
Unloading 23 unused Assets to reduce memory usage. Loaded Objects now: 7455.
Total: 17.411821 ms (FindLiveObjects: 0.375782 ms CreateObjectMapping: 1.039413 ms MarkObjects: 14.018248 ms DeleteObjects: 1.256122 ms)
Unhandled Bnet Error: [event=Games_OnCancelGame error=ERROR_INVALID_ARGS]
(Filename: C:/BuildAgent/work/cac08d8a5e25d4cb/Runtime/ExportGenerated/StandalonePlayer/UnityEngineDebug.cpp Line: 54)
Error.AddFatal() - message=Oops! Playful sprites have disrupted Hearthstone as it was linking up to the Battle.net service. Please wait a few minutes for them to disperse and try re-launching the game.
(Filename: C:/BuildAgent/work/cac08d8a5e25d4cb/Runtime/ExportGenerated/StandalonePlayer/UnityEngineDebug.cpp Line: 54)
Unhandled Bnet Error: [event=Bnet_OnDisconnected error=ERROR_INVALID_ARGS]
(Filename: C:/BuildAgent/work/cac08d8a5e25d4cb/Runtime/ExportGenerated/StandalonePlayer/UnityEngineDebug.cpp Line: 54)
Error.AddFatal() - message=Oops! Playful sprites have disrupted Hearthstone as it was linking up to the Battle.net service. Please wait a few minutes for them to disperse and try re-launching the game.
(Filename: C:/BuildAgent/work/cac08d8a5e25d4cb/Runtime/ExportGenerated/StandalonePlayer/UnityEngineDebug.cpp Line: 54)
Error.AddFatal() - message=You were disconnected from the Battle.net service. Please relaunch Hearthstone to reconnect.
(Filename: C:/BuildAgent/work/cac08d8a5e25d4cb/Runtime/ExportGenerated/StandalonePlayer/UnityEngineDebug.cpp Line: 54)
Unloading 2 Unused Serialized files (Serialized files now loaded: 16 / Dirty serialized files: 0)
Unloading 240 unused Assets to reduce memory usage. Loaded Objects now: 8141.
Total: 10.914170 ms (FindLiveObjects: 0.402789 ms CreateObjectMapping: 0.940939 ms MarkObjects: 7.238348 ms DeleteObjects: 1.928974 ms)
7:17:22 PM: Mainloop failed over to default. Mode: FATAL_ERROR