MARVEL script, ratting at a new level

from what I see in your screensot, you have declared:
errrrrr
in original script ( from git) it was:

string LabelNameAttackDrones;

that means it is only declared, there is no need to fill with his value

string LabelNameAttackDrones = "heavy";

Heavy on original it was on folder name:

var CombatDronesFolder = "heavy";

not on name of drones.
The names for drones it is take from dictionary, only one drone name/region . and is useful if you use different chars on different regions. But if you want them named directly, you have to delete the lines 55;56;57 from screenshot :
(look how it is on git:)
capp
So in the end you mixted the variables, you named drones “heavy” and after that you take the name from dictionary. so is nothing strange to take crash after crash.
I suggest you to re-read my wiki topic.

2 Likes

Finally I got it !!! Thanks for the help and the quick support. I would like to know, if you have how to configure the attack priority of the rats, for example: Frigates> Cruisers> BattleShips> Etc … Currently I do not understand exactly how it determines the priority of the targets.

2 Likes

Another important thing to note, as soon as we arrive at the anomaly all the rats focus on us, however, as soon as we launch the drones they change the target and start attacking the drone … It would be interesting a system to monitor the life of the drones.

1 Like

Up to now I use 2 types of selecting priority and is always after the generic name of rats.

  1. I use 2 lists , one for frigates , and the second for the rest. somehow I organized in function of wave, by the generic name of rats . … and a third list for ewar. this way all are separated and is really simple to manage them.
  2. is in tests, is a way developed with the help of Viir for asteroids ( mining script). Practically I group the rats after the name. Is working, really simple to code, but it take some time ( latence) for grouping and sometimes this is not so good for retreat( even .5sec it counts for retreat). And sometimes there is an error , until the list is repopulated with the next group match in list
    this two ways manage the lists in overview. from here is simple enough because you take the closer to you or ewar.
    there is another way ( in dev, but honestly is not so brilliant): to transform/group ( into sanderling) the rats , and put a sticker like " frigates"/destroyers etc.; so after the ship type.
    the problem is with ewar , in this approach, also on Hs there is a big problem because some ships are out-classed and a tinny rats is come near you and hit you hard or it stays further and you run for them. This in an cluster with 30 ships, 15 really fast and hard to hit, could be fatal. More than that, there are some rats who doesnt fit to a group ( new generation of ships)
    anyway, this is an option; and you have to manage the targeting and priority in targeted list, where you have only the name and the distance.

this is a problem of game; on old versions of my scripts I coded to monitor the drones. the thing is you lose a lot of time monitoring them( and resources). Best way to avoid aggressing the drones, is to eject from ship ( you go back on station) and board after 1 min. From bot, you could use safely a painter. this will aggress you 99.99% , and is included on script. ( I use a painter on all my vni and more than that it is useful against of frigates, because it increase their signature)
Honestly, I lose 1 ship /month and only then I lose my drones; and this because sometimes it happens a red is coming in the system and i am scrambled y 4-5 rats.
The most important thing is to not abuse of botting; fix the session timer ( hoursToSession) at 4-5 hours., use rdp to bot in same time when you do other things on computer; and play like usual in the rest of time. this way you are not catched :wink:
At max, with an vni you do like 700m/24h ( no salvager, no salvage drones) and you can touch 1b/day with salvagers. using drones is not so fast, but is funny because you can salvage ( do something, not on marked on map -green anomalies) when there is a big traffic in your system.
Usually when is traffic, I hide my mtu into another ship ( so is not found in items hangar) and I let drones salvagers; the script it passing by himself at using the drones.
anyway, 1b / day is not nothing, ( you could divide the time between 4-5 alphas to be safe) for a poor vni, even with the new prices of plex

3 Likes

Hi, I have two issues, one being I never seem to be able to recover my drones since the bot just spams shift+R nonstop. Another error I get is the bot says I’m missing sound files, but I keep my in-game audio off? How do I fix these?

02-22-59.508: I do not forget my Vipers here
02-23-00.488: I do not forget my Vipers here
02-23-01.474: I do not forget my Vipers here
02-23-02.497: I do not forget my Vipers here
02-23-03.486: I do not forget my Vipers here
02-23-04.519: I do not forget my Vipers here
02-23-05.497: I do not forget my Vipers here
02-23-06.528: I do not forget my Vipers here
02-23-07.505: I do not forget my Vipers here
02-23-08.534: I do not forget my Vipers here
02-23-09.561: I do not forget my Vipers here
02-23-10.542: I do not forget my Vipers here
02-23-11.567: I do not forget my Vipers here
02-23-12.550: I do not forget my Vipers here
02-23-13.546: I do not forget my Vipers here
02-23-14.540: I do not forget my Vipers here
02-23-15.570: I do not forget my Vipers here
02-23-16.553: I do not forget my Vipers here
02-23-17.577: I do not forget my Vipers here
02-23-18.561: I do not forget my Vipers here
02-23-19.546: I do not forget my Vipers here
02-23-20.531: I do not forget my Vipers here
02-23-21.528: I do not forget my Vipers here
02-23-22.560: I do not forget my Vipers here
02-23-23.558: RuntimeException: System.AggregateException: One or more errors occurred. —> System.AggregateException: One or more errors occurred. —> System.IO.FileNotFoundException: Please be sure a sound file exists at the specified location.
at System.Media.SoundPlayer.ValidateSoundFile(String fileName)
at System.Media.SoundPlayer.LoadAndPlay(Int32 flags)
at Submission#0.DefenseStep()
at Submission#0.<>d__0.MoveNext()
— 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 Microsoft.CodeAnalysis.Scripting.ScriptExecutionState.d__91.MoveNext() --- 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 Microsoft.CodeAnalysis.Scripting.Script1.d__21.MoveNext()
— End of inner exception stack trace —
at System.Threading.Tasks.Task1.GetResultCore(Boolean waitCompletionNotification) at BotSharp.ScriptRun.ScriptRun.<>c__DisplayClass75_1.<Start>b__3() at System.Threading.Tasks.Task1.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
— End of inner exception stack trace —
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
at System.Threading.Tasks.Task.Wait()
at BotSharp.ScriptRun.ScriptRun.<>c__DisplayClass75_0.b__4()
—> (Inner Exception #0) System.AggregateException: One or more errors occurred. —> System.IO.FileNotFoundException: Please be sure a sound file exists at the specified location.
at System.Media.SoundPlayer.ValidateSoundFile(String fileName)
at System.Media.SoundPlayer.LoadAndPlay(Int32 flags)
at Submission#0.DefenseStep()
at Submission#0.<>d__0.MoveNext()
— 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 Microsoft.CodeAnalysis.Scripting.ScriptExecutionState.d__91.MoveNext() --- 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 Microsoft.CodeAnalysis.Scripting.Script1.d__21.MoveNext()
— End of inner exception stack trace —
at System.Threading.Tasks.Task1.GetResultCore(Boolean waitCompletionNotification) at BotSharp.ScriptRun.ScriptRun.<>c__DisplayClass75_1.<Start>b__3() at System.Threading.Tasks.Task1.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
—> (Inner Exception #0) System.IO.FileNotFoundException: Please be sure a sound file exists at the specified location.
File name: ‘C:\Appear.wav’
at System.Media.SoundPlayer.ValidateSoundFile(String fileName)
at System.Media.SoundPlayer.LoadAndPlay(Int32 flags)
at Submission#0.DefenseStep()
at Submission#0.<>d__0.MoveNext()
— 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 Microsoft.CodeAnalysis.Scripting.ScriptExecutionState.d__91.MoveNext() --- 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 Microsoft.CodeAnalysis.Scripting.Script1.d__21.MoveNext()<—
<—

the script is 99.99% of my script, and I’m using sound to allarm me; you do not have the sound files used by me.
you can change the filename with another soud files ( *.wav) , or to do like I stated in the description of script:

while your drones are still in space, it will keep spamming SHIFT+r and posting this message.
If still this it happens after your drones are into bay , then your reading does not update. If the drones are not coming back, then maybe you changed the shortcut keys ( or you have a different language/layout on eve)

1 Like

Ahhh okay. My apologies I didn’t realize there were multiple entries of .wav files throughout the code. I felt like it was spamming shift+R so quickly that my drones weren’t being recalled, I will double check.

Thanks, it did turn out to be my language/second keyboard layout that wasn’t getting my drones to recall fully. Also, how many MTU’s do I need? Does the bot pick up the MTU right away after the site is done or does he change ships every 4 or 5 sites done?

1 Like

after each site it change to salvager ship and recover the mtu. you can ( to lose , killed by reds) only one mtu :)), so I suggest you to check visual from time to time if you still have your mtu.
recovering the mtu is in multiple places on code. the lag could let him there on ex-site( in fact the lag/latence could create a lot of troubles)
I test my scripts on multiples calc, faster or not, with better connection or not and I tried to make an reliable script

2 Likes

How does it know if an MTU is mine or a corp mate’s? Does it physically rename the MTU every time i launch it?

1 Like

because you tell him your corp ticket and mtu name? You name it before starting to bot, he doesnt rename it automatic

string MyCorpo = "[corp ticket]";
...................
Dictionary<string,string> NamingMtu=new Dictionary<string,string>();
NamingMtu.Add("mychar1", "1mtu");//your name have to be in miniscule : not "MyChar" but "mychar"
NamingMtu.Add("mychar2", "2mtu");
NamingMtu.TryGetValue(CharName,out MTUName);
1 Like

ah okay gotcha. cheers

the script could rename an mtu( go ito a safe spot- because is not wise to rename him on site- launch him, rename and take him back), but, to use that it should also make a difference between already started sites and a new one, remember if it droped one before, check if already droped mtu is killed by others, and manage count of mtu’s( into station and in ship inventory).
All this would take a lot of space in filesyze and add more complexity on script ( which is already complex in some ways) but it seems you can doit really simple after Viir will release the new framework

Hello.
First, thanks for the bot its awsome :slight_smile:
But now i have a problem.
The last day it worked.
Now it stucks with no error msg.
When he try to ignore the anomalys at the scanner screen.
it just clicking the first one and thats all.
Can i have some tips where i shuld look for the solution in the code? :slight_smile:

Thank

Well some restart, and its working again :slight_smile:

your screenshot is unreadable.
but
look if he stop the ship after the dockout, if measure the modules and if he look after the bookmark
I let the script running even 24h, it doesnt stuck anywhere, so it has to be someting from your measurements/etc.
How you named your salvage ship? because he could not detect you are into a salvage ship

Sorry trying to make a better picture.
But, yes i named it, it chages to the salvaging ship.
Then undock and say
Line 848 “tethering, not on site”
then jumps to
Line 177 and again and again
But i try to give you a screnshot just have to do a small pic :smiley:

it doesnt matter the picture in this case. wait, i have to read the code
it seems it doesnt detect you are near a citadel(or station) who offer you tethering.
If you do not have a tethering, he will jump at inbeltsite and show your message
also it shows the message Host.Log(" Luke > I try Master Yoda, … I try!"); when he dock out?

I cant do this small screenshot :smiley:

if you use him at a station without tethering, you have to modify the script