{"action":"created","issue":{"url":"https://api.github.com/repos/HearthSim/Stove/issues/87","repository_url":"https://api.github.com/repos/HearthSim/Stove","labels_url":"https://api.github.com/repos/HearthSim/Stove/issues/87/labels{/name}","comments_url":"https://api.github.com/repos/HearthSim/Stove/issues/87/comments","events_url":"https://api.github.com/repos/HearthSim/Stove/issues/87/events","html_url":"https://github.com/HearthSim/Stove/issues/87","id":182744165,"number":87,"title":"Unable to connect to Stove","user":{"login":"tzurbaev","id":7444747,"avatar_url":"https://avatars.githubusercontent.com/u/7444747?v=3","gravatar_id":"","url":"https://api.github.com/users/tzurbaev","html_url":"https://github.com/tzurbaev","followers_url":"https://api.github.com/users/tzurbaev/followers","following_url":"https://api.github.com/users/tzurbaev/following{/other_user}","gists_url":"https://api.github.com/users/tzurbaev/gists{/gist_id}","starred_url":"https://api.github.com/users/tzurbaev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tzurbaev/subscriptions","organizations_url":"https://api.github.com/users/tzurbaev/orgs","repos_url":"https://api.github.com/users/tzurbaev/repos","events_url":"https://api.github.com/users/tzurbaev/events{/privacy}","received_events_url":"https://api.github.com/users/tzurbaev/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-10-13T09:49:37Z","updated_at":"2016-10-14T06:51:59Z","closed_at":null,"body":"Greetings,\r\n\r\nI'm trying to connect to Stove with current game client but I can't. My installation process was like:\r\n\r\n- I've followed all steps from Wiki (Windows installation);\r\n- Compiled UnityHook (with Assembly-CSharp.dll and Assembly-CSharp-firstpass.dll in **lib** directory);\r\n- Added BattleNetCSharp.Init to example_hooks\r\n- Executed `Hooker path/to/Hearthstone_Data example_hooks`\r\n- Cloned fireplace (this may be wrong: copied `kettle/kettle.py` to fireplace's root dir, ran `python kettle.py`, kettle is listening now);\r\n- `go run stove.go` (server is listening on 1119)\r\n\r\nAt first time client was stuck on loading screen; Stove log: `\"server.go:169: handling packet service_id:0 method_id:5 token:41 size:0\"`, token value keeps incrementing.\r\n\r\nI've tried several times but no luck. After retries Stove starts crashing with \r\n```\r\n2016/10/13 17:28:11 auth.go:135: account test@hearthsim.info (BattleTag: Test#1234) authorized\r\n2016/10/13 17:28:11 session.go:172: session error: runtime error: invalid memory address or nil pointer dereference\r\n=== STACK TRACE ===\r\ngoroutine 22 [running]:\r\nruntime/debug.Stack(0xc042081608, 0x8e1c40, 0xc04200a0b0)\r\n\tC:/Go/src/runtime/debug/stack.go:24 +0x80\r\ngithub.com/HearthSim/stove/bnet.(*Session).DisconnectOnPanic(0xc04206e240)\r\n\r\n\tJ:/Go/src/github.com/HearthSim/stove/bnet/session.go:172 +0x75\r\npanic(0x8e1c40, 0xc04200a0b0)\r\n\r\n\tC:/Go/src/runtime/panic.go:458 +0x251\r\ngithub.com/HearthSim/stove/pegasus.(*Account).Init(0xc0423c2028, 0xc0423c2000)\r\n\r\n\tJ:/Go/src/github.com/HearthSim/stove/pegasus/account.go:12 +0x71\r\ngithub.com/HearthSim/stove/pegasus.BindSession(0xc0424de1a0, 0xc04206e240)\r\n\r\n\tJ:/Go/src/github.com/HearthSim/stove/pegasus/session.go:37 +0xf1\r\ngithub.com/HearthSim/stove/pegasus.(*Server).Connect(0xc0424de1a0, 0xc04206e240)\r\n\r\n\tJ:/Go/src/github.com/HearthSim/stove/pegasus/server.go:17 +0x3c\r\ngithub.com/HearthSim/stove/bnet.(*Server).ConnectGameServer(0xc04227e120, 0xc04206e240, 0xc042466ec0, 0x4)\r\n\r\n\tJ:/Go/src/github.com/HearthSim/stove/bnet/server.go:113 +0x83\r\ngithub.com/HearthSim/stove/bnet.(*AuthServerService).CompleteLogin(0xc04242a900, 0x25, 0xc042081bc0)\r\n\r\n\tJ:/Go/src/github.com/HearthSim/stove/bnet/auth.go:174 +0x614\r\ngithub.com/HearthSim/stove/bnet.(*AuthServerService).VerifyWebCredentials(0xc04242a900, 0xc042396000, 0x38, 0x1000, 0xd48c40, 0xc521ca)\r\n\r\n\tJ:/Go/src/github.com/HearthSim/stove/bnet/auth.go:139 +0x433\r\ngithub.com/HearthSim/stove/bnet.(*AuthServerService).Invoke(0xc04242a900, 0x7, 0xc042396000, 0x38, 0x1000, 0x0, 0xce, 0x0, 0x0, 0x1c)\r\n\r\n\tJ:/Go/src/github.com/HearthSim/stove/bnet/auth.go:66 +0x43a\r\ngithub.com/HearthSim/stove/bnet.(*Session).HandleRequest(0xc04206e240, 0x1, 0x7, 0xc042396000, 0x38, 0x1000, 0xd48c40, 0xc52200, 0xc0421e8000)\r\n\r\n\tJ:/Go/src/github.com/HearthSim/stove/bnet/session.go:262 +0x254\r\ngithub.com/HearthSim/stove/bnet.(*Session).HandlePacket(0xc04206e240, 0xc04211f420, 0xc042396000, 0x38, 0x1000)\r\n\r\n\tJ:/Go/src/github.com/HearthSim/stove/bnet/session.go:212 +0x13f\r\ngithub.com/HearthSim/stove/bnet.(*Server).handleClient(0xc04227e120, 0xd04640, 0xc0424de1b8)\r\n\r\n\tJ:/Go/src/github.com/HearthSim/stove/bnet/server.go:170 +0x55a\r\ncreated by github.com/HearthSim/stove/bnet.(*Server).ListenAndServe\r\n\r\n\tJ:/Go/src/github.com/HearthSim/stove/bnet/server.go:107 +0xc7\r\n\r\n2016/10/13 17:28:11 session.go:173: closing session\r\n2016/10/13 17:28:12 channel_subscriber.go:77: ChannelSubscriberService closing down for connection\r\n```\r\n\r\nSome issues I ran into while compiling/running hooker:\r\n\r\n1. VS reported `Error CS1501 No overload for method 'Init' takes 6 arguments` (SSLDisable.cs). I've removed 6th argument from `bool result = bnet.Init`, after this change Hooker compiled without errors.\r\n2. When I run `Hooker path/to/Hearthstone_Data example_hooks`, I notice some \"Cannot find any method...\" errors (full output below):\r\n```\r\nCannot find any method matching GameState.OnPowerHistory\r\nHooking method `System.Void bgs.BattleNet::.cctor()`\r\nHooking method `System.Void bgs.BattleNetCSharp::AuroraStateHandler_WaitForLogon()`\r\nHooking method `System.String bgs.BattleNetCSharp::GetLaunchOption(System.String,System.Boolean)`\r\nHooking method `System.String bgs.BattleNetCSharp::GetLaunchOption(System.String,System.Boolean,System.String)`\r\nCannot find any method matching Network.GetBattlePayConfigResponse\r\nHooking method `System.Boolean bgs.BattleNetCSharp::Init(System.Boolean,System.String,System.String,System.Int32,bgs.SslParameters)`\r\nHooking method `System.Void GameState::OnPowerHistory(System.Collections.Generic.List`1<Network/PowerHistory>)`\r\nCannot find any method matching BattleNet..cctor\r\nCannot find any method matching BattleNetCSharp.AuroraStateHandler_WaitForLogon\r\nCannot find any method matching BattleNetCSharp.GetLaunchOption\r\nHooking method `Network/BattlePayConfig Network::GetBattlePayConfigResponse()`\r\nCannot find any method matching BattleNetCSharp.Init\r\n```\r\nAm I doing something wrong?\r\n\r\nThanks for any help."},"comment":{"url":"https://api.github.com/repos/HearthSim/Stove/issues/comments/253723259","html_url":"https://github.com/HearthSim/Stove/issues/87#issuecomment-253723259","issue_url":"https://api.github.com/repos/HearthSim/Stove/issues/87","id":253723259,"user":{"login":"djkaty","id":4500319,"avatar_url":"https://avatars.githubusercontent.com/u/4500319?v=3","gravatar_id":"","url":"https://api.github.com/users/djkaty","html_url":"https://github.com/djkaty","followers_url":"https://api.github.com/users/djkaty/followers","following_url":"https://api.github.com/users/djkaty/following{/other_user}","gists_url":"https://api.github.com/users/djkaty/gists{/gist_id}","starred_url":"https://api.github.com/users/djkaty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djkaty/subscriptions","organizations_url":"https://api.github.com/users/djkaty/orgs","repos_url":"https://api.github.com/users/djkaty/repos","events_url":"https://api.github.com/users/djkaty/events{/privacy}","received_events_url":"https://api.github.com/users/djkaty/received_events","type":"User","site_admin":false},"created_at":"2016-10-14T06:51:59Z","updated_at":"2016-10-14T06:51:59Z","body":"Hi @tzurbaev ! Thanks for your issue report.\r\n\r\n1. Which version of the Hearthstone client did you use when you encountered the crashes?\r\n2. What did you change to stop the crashes?\r\n\r\nRegarding UnityHook, this is really out of date now and I need to update the documentation. Instead, restore the original DLLs in Hearthstone_Data\\Managed and use HearthSwitcher - https://github.com/djkaty/HearthSwitcher. Build it in Debug mode and set the server host to your local stove server in the Development tab when you run the app. This is a much more convenient way of switching between stove and the official servers.\r\n\r\nRegarding the hang on the loading screen, this is a known issue with recent commits of stove. I didn't notice it until reported because it only occurs with a fresh installation - a migrate install works normally. It is on my todo list to look into this over the next weeks (unfortunately I'm very busy right now). However if you get to the point shown in your stove log without crashes, you have more than likely done everything correctly.\r\n\r\nAs an aside, you don't need to move kettle.py from its original location. \"python kettle\\kettle.py\" from fireplace's base folder should work fine.\r\n\r\nHope that helps :)\r\n\r\nKaty.\r\n"}}
{"actor":{"display_login":"djkaty"}}