Hi Kaboonu!
I have try also the script and get also a NullExeption.
[
{
"TimeDateTimeIntraDayCal": "19.06.24",
"TimeDateTimeIntraSecMilliString": "150",
"CaptionString": "System.AggregateException: Mindestens ein Fehler ist aufgetreten. ---> System.ArgumentNullException: Der Wert darf nicht NULL sein.\r\nParametername: key\r\n bei System.ThrowHelper.ThrowArgumentNullException(ExceptionArgument argument)\r\n bei System.Collections.Generic.Dictionary`2.FindEntry(TKey key)\r\n bei System.Collections.Generic.Dictionary`2.TryGetValue(TKey key, TValue& value)\r\n bei Submission#0.<<Initialize>>d__0.MoveNext()\r\n--- Ende der Stapelüberwachung vom vorhergehenden Ort, an dem die Ausnahme ausgelöst wurde ---\r\n bei System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n bei System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n bei Microsoft.CodeAnalysis.Scripting.ScriptExecutionState.<RunSubmissionsAsync>d__9`1.MoveNext()\r\n--- Ende der Stapelüberwachung vom vorhergehenden Ort, an dem die Ausnahme ausgelöst wurde ---\r\n bei System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n bei System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n bei Microsoft.CodeAnalysis.Scripting.Script`1.<RunSubmissionsAsync>d__21.MoveNext()\r\n --- Ende der internen Ausnahmestapelüberwachung ---\r\n bei System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)\r\n bei BotSharp.ScriptRun.ScriptRun.<>c__DisplayClass61_0.<Start>b__0()\r\n---> (Interne Ausnahme #0) System.ArgumentNullException: Der Wert darf nicht NULL sein.\r\nParametername: key\r\n bei System.ThrowHelper.ThrowArgumentNullException(ExceptionArgument argument)\r\n bei System.Collections.Generic.Dictionary`2.FindEntry(TKey key)\r\n bei System.Collections.Generic.Dictionary`2.TryGetValue(TKey key, TValue& value)\r\n bei Submission#0.<<Initialize>>d__0.MoveNext()\r\n--- Ende der Stapelüberwachung vom vorhergehenden Ort, an dem die Ausnahme ausgelöst wurde ---\r\n bei System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n bei System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n bei Microsoft.CodeAnalysis.Scripting.ScriptExecutionState.<RunSubmissionsAsync>d__9`1.MoveNext()\r\n--- Ende der Stapelüberwachung vom vorhergehenden Ort, an dem die Ausnahme ausgelöst wurde ---\r\n bei System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n bei System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n bei Microsoft.CodeAnalysis.Scripting.Script`1.<RunSubmissionsAsync>d__21.MoveNext()<---\r\n",
"LineIndex": 32,
"CharacterIndexInLine": 0,
"LineIndexInAvalonEdit": 33,
"CharacterIndexInLineInAvalonEdit": 1
}
]
i have this put inside the script:
string VersionScript = "MARBEL-1v3 ";//do not change
// begin of configuration section ->
// new System.Media.SoundPlayer(@"C:\sw4-force.wav").Play();
Host.Log( "Gathering and processing some info to be used later ");
Host.Delay(2111);
//important to change
string StationHomeName = "Hek VIII - Moon 12 - Boundless Creation Factory ( Minmatar Industrial Station )";//|station2
string IgnoreNeutral = "player1|player2"; //
string MyCorpo = "[EXXXX]";
var InfoPannelRegion =
Measurement?.InfoPanelCurrentSystem?.HeaderText.RemoveXmlTag()?.Trim();
var CurrentRegion = InfoPannelRegion.Substring(InfoPannelRegion.LastIndexOf(' ')).TrimStart();
var CurrentSystem = InfoPannelRegion.Substring(0,InfoPannelRegion.IndexOf(' ')).TrimEnd();
var MyOwnChar = chatLocal?.ParticipantView?.Entry?.FirstOrDefault(myflag =>myflag?.FlagIcon == null);
string CharName = MyOwnChar?.NameLabel?.Text.ToLower();
string MTUName;
Dictionary<string,string> NamingMtu=new Dictionary<string,string>();
NamingMtu.Add("XxxXxxxx", "Mobile Tractor Unit");
//NamingMtu.Add("mychar2", "2mtu");
NamingMtu.TryGetValue(CharName,out MTUName);
string WarpToAnomalyDistance = "Within 30 km";
string RattingShipName = "OhOh"; //|Vexor
string SalvageShipName = "Noctis|Gnosis";
var UseMissiles = true;
string MissilesName = "Caldari Navy Scourge Light Missile";
string QuantityMissiles = "2000";
int MinInLauncher = 19;
////usual to change
Maybe you put some examples in the recommende Field. Like station name.