Open codefather-labs opened 4 years ago
my connection with steam is correct, IsConnected = true, but dota object does not work. it looks like steamclient is not inited, but it was!
Haven't used or updated this repo in a while but if someone PR's a fix I will merge.
@paralin are you going to update it? :v
When i trying use this example:
DotaGCHandler.Bootstrap(client); DotaGCHandler dota = client.GetHandler();
I got exception:
Unhandled exception. System.NullReferenceException: Object reference not set to an instance of an object. at Dota2.GC.DotaGCHandler.<.ctor>b__45_0(Object stateInfo) at System.Threading.TimerQueueTimer.<>c.<.cctor>b__23_0(Object state) at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) --- End of stack trace from previous location where exception was thrown --- at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.TimerQueueTimer.CallCallback(Boolean isThreadPool) at System.Threading.TimerQueueTimer.Fire(Boolean isThreadPool) at System.Threading.TimerQueue.FireNextTimers() at System.Threading.TimerQueue.AppDomainTimerCallback(Int32 id)
Process finished with exit code 6.
I initialized steam cli before starting and all looking good in this instance, but i dont know what is it
mac os
part of code:
using System; using System.Collections.Generic; using System.Threading;
using SteamKit2; using SteamKit2.Internal; // brings in our protobuf client messages using SteamKit2.GC; // brings in the GC related classes using SteamKit2.GC.Dota.Internal; // brings in dota specific protobuf messages
using System.IO; using System.Security.Cryptography; using SteamKit2.Unified.Internal;
using Dota2; using Dota2.GC;
namespace DotaAPIConsole { public class SteamAgent { public static SteamClient client;
}