Hi All - I used Sandeling to run a simple dscan scipt that would randomly “press” the “V” button to initiate a Dscan. This was under the 32bit client.
I’ve been able to get the newest version of botengine installed… though, when I point the app-source to the directory my old scripts live in, it doesn’t seem to find what it is looking for.
The complaint is: “I did not find anything at “path”, please choose a directory containing the code of an app”
So, I am wondering if I need to translate the old *.cs file to the new method of doing things?
Edit: Here is the simple code I am trying to use:
/// Simple function to dscan no error checking
/// Default usage runs for 10 times with a delay of 10 seconds
// Didn’t explain it too well this method can be called several different ways
// DScanner(19,3) will run 20 times at 3 second intervals
// DScanner(19) will run 20 times at Delay=10 intervals
// DScanner() will run 10 times at Delay=10 intervals
// the int HowMany=9 and int Delay=10 are placeholders for arguments they will
// default to 9 and 10 if they are not present
/// The following code is contained in a ‘method’ and only executed when this method is called →
var MinimDelayDscan = 5;//in seconds //random number range mimimun
var MaximDelayDscan = 15;//in seconds //random number range maximum
void DScanner(int HowMany=9,int Delay=10) //???
var Capa=Sanderling?.MemoryMeasurementParsed?.Value?.ShipUi?.Center; //find this bit of the UI
Sanderling.MouseClickLeft(Capa); //click this bit to insure ‘chat’ is not focused ^^
while (true)//(0 < HowMany) uncomment this and replace true to set number of cycles #1
//Random rnd = new Random(); //random number code
Random rnd = new System.Random(); //another random number code
int DelayTime = rnd.Next(MinimDelayDscan, MaximDelayDscan); //random number code
Host.Log("Dscan in : " + DelayTime+ " s "); //echo in log what is happening
Sanderling.KeyboardPress(VirtualKeyCode.VK_V); //virtual keyboard press “v” //Host.Delay(789Delay); //time to wait between code runs
Host.Delay(DelayTime1000); //=> delay of random generated in seconds
//HowMany–; uncomment this to set number of cycles #2
// This is a method call
DScanner();//(10, 10); uncomment this to set number of cycles #3
Not in this case.
As long as you do not read from the game client, you don’t need Sanderling.
For such a simple task, I don’t see a use for time-travel debugging, simulations, or other botengine features, so you might as well use a tool like AutoIt instead of botengine.
That being said, here is a complete app containing your dscan script:
You can run it with this command:
botengine run https://github.com/Viir/bots/tree/8abe64e698384bcd974172e07fbfcf59c83488b7/implement/applications/eve-online/eve-online-fred-derf-dscan-script