Guten Tag zusammen,
ich habe derzeit das Problem, das mit seit dem TS3 Update immer folgende Fehlermeldung ausgegeben wird wenn ich meinen Server mit folgenden Settings in der meta.xml starten möchte.
XML
<meta>
<info name="teamspeak_wrapper" type="script" />
<script src="RAGEMP_TsVoice.dll" />
<setting name="teamspeak_query_address" value="" default="127.0.0.1" />
<setting name="teamspeak_query_port" value="" default="10011" />
<setting name="teamspeak_port" value="" default="9987" />
<setting name="teamspeak_login" value="" default="serveradmin" />
<setting name="teamspeak_password" value="" default="serverpassword" />
<setting name="teamspeak_channel" value="" default="sprachkanal" />
</meta>
Hier tritt folgender Fehler auf.
Code
Started! Waiting for connections..
[P] Plugin bridge.dll loaded!
System.ArgumentNullException: Value cannot be null.
Parameter name: hostName
at TeamSpeak3QueryApi.Net.QueryClient..ctor(String hostName, Int32 port) in C:\Users\Administrator\Desktop\RAGEMP_GTA5_TSVoice-master\RAGEMP_TsVoice\TsQuery\QueryClient.cs:line 60
at TeamSpeak3QueryApi.Net.Specialized.TeamSpeakClient..ctor(String hostName, Int32 port) in C:\Users\Administrator\Desktop\RAGEMP_GTA5_TSVoice-master\RAGEMP_TsVoice\TsQuery\Specialized\TeamSpeakClient.cs:line 34
at RAGEMP_TsVoice.Teamspeak.<InitTSQuery>d__32.MoveNext() in C:\Users\Administrator\Desktop\RAGEMP_GTA5_TSVoice-master\RAGEMP_TsVoice\Teamspeak.cs:line 117
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at RAGEMP_TsVoice.Teamspeak.<<OnResourceStart>b__28_0>d.MoveNext() in C:\Users\Administrator\Desktop\RAGEMP_GTA5_TSVoice-master\RAGEMP_TsVoice\Teamspeak.cs:line 66
Alles anzeigen
Die connect Methode sieht wie folgt aus :
C
public async Task InitTSQuery()
{
tsQuery = new TeamSpeakClient(TeamspeakQueryAddress, TeamspeakQueryPort); // Create rich client instance
try
{
await tsQuery.Connect(); // connect to the server
await tsQuery.Login(TeamspeakLogin, TeamspeakPassword); // login to do some stuff that requires permission
await tsQuery.UseServer(TeamspeakServerId); // Use the server with id '1'
var me = await tsQuery.WhoAmI(); // Get information about yourself!
var channel = (await tsQuery.FindChannel(TeamspeakChannel)).FirstOrDefault();
Utils.Delay(100, false, async () =>
await UpdateTeamspeak(channel)
);
}
catch(QueryException ex)
{
Console.WriteLine(ex.ToString());
}
}
Alles anzeigen
Hatte alles funktioniert nun nicht mehr!
Passe ich nun die Methode etwas an, ohne die Daten aus der XML Datei zu lesen und gebe im Code direkt den Host und den Port an, bekomme ich diesen Fehler hier.
Code
[P] Plugin bridge.dll loaded!
TeamSpeak3QueryApi.Net.QueryException: An error occurred during the query.
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at TeamSpeak3QueryApi.Net.QueryClient.<Send>d__28.MoveNext() in C:\Users\Administrator\Desktop\RAGEMP_GTA5_TSVoice-master\RAGEMP_TsVoice\TsQuery\QueryClient.cs:line 149
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at RAGEMP_TsVoice.Teamspeak.<InitTSQuery>d__36.MoveNext() in C:\Users\Administrator\Desktop\RAGEMP_GTA5_TSVoice-master\RAGEMP_TsVoice\Teamspeak.cs:line 125
Teamspeak Wrapper Initialised!
Started HTTP server at 22006 port.
Alles anzeigen
Ich habe wirklich keine Ahnung was ich falsch mache. Eventuell kann da jemand helfen ...