Thanks for all the help @Viir
Og so I tried by downloading visual studio, cloned A-Bot from github and tried to insert the code mentioned from @Terpla to make it orbit.
Getting the following errors, appreciate any help to resolve these:
1>------ Build started: Project: Sanderling.ABot, Configuration: Debug|AnyCPU ------
Visual Studio\2017\Community\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(1987,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly âWindowsInput, Version=1.0.4.0, Culture=neutral, PublicKeyToken=9b287f7dc5073cad, processorArchitecture=MSILâ. Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
< \A-Bot ORBIT\src\Sanderling.ABot\Bot\Task\Module.cs(52,49,52,58): error CS0012: The type âVirtualKeyCodeâ is defined in an assembly that is not referenced. You must add a reference to assembly âWindowsInput, Version=1.0.4.0, Culture=neutral, PublicKeyToken=9b287f7dc5073cadâ.
<
\A-Bot ORBIT\src\Sanderling.ABot\Bot\Task\Module.cs(55,29,55,51): error CS0012: The type âVirtualKeyCodeâ is defined in an assembly that is not referenced. You must add a reference to assembly âWindowsInput, Version=1.0.4.0, Culture=neutral, PublicKeyToken=9b287f7dc5073cadâ.
<
\A-Bot ORBIT\src\Sanderling.ABot\Bot\Task\Combat.cs(44,43,44,71): error CS1501: No overload for method âClickMenuEntryByRegexPatternâ takes 3 arguments
No I didnât add anything else beside the modified combat.cs linked in my previous post after the cloned the latest version from github.
I tried to search for âvirtualâ in the project but it came up emptyâŚ
When I double click on the error messages it referees to line 44 in combat.cs :
yield return Broken.FirstOrDefault().ClickMenuEntryByRegexPattern(bot, âOrbitâ, â30 kmâ);
along with 52 and 55 respectively in the module.cs file?
Oh and could you pretend you are talking to a 5 year old that has never programmed before, because thatâs the level I am at when it comes to adding things you ask for, most of the time have no clue beside copy paste something specific
Edit:
I tried to commit but I might have done something wrong, anyway got the following error
With Terplas latest post, it looks like we have some new info about what he did. With the new info, I will wait to hear from you what the new situation is.
Sure, why not.
Ok thats some progress, now I have a better understanding of effort required to go a route involving pushing a commit to github.
Letâs first see if it works after applying the new info from Terpla.
Thanks @Terpla and @Viir for the help so far!
I tried to insert the new version of MenuTaskExtension, is it correct to just replace mine with the ones posted here in Menu.cs?
When I did that and build/debug I get the following error now:
Visual Studio\2017\Community\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(1987,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly âWindowsInput, Version=1.0.4.0, Culture=neutral, PublicKeyToken=9b287f7dc5073cad, processorArchitecture=MSILâ. Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
A-Bot ORBIT\src\Sanderling.ABot\Bot\Task\Module.cs(52,49,52,58): error CS0012: The type âVirtualKeyCodeâ is defined in an assembly that is not referenced. You must add a reference to assembly âWindowsInput, Version=1.0.4.0, Culture=neutral, PublicKeyToken=9b287f7dc5073cadâ.
A-Bot ORBIT\src\Sanderling.ABot\Bot\Task\Module.cs(55,29,55,51): error CS0012: The type âVirtualKeyCodeâ is defined in an assembly that is not referenced. You must add a reference to assembly âWindowsInput, Version=1.0.4.0, Culture=neutral, PublicKeyToken=9b287f7dc5073cadâ.
I tried to download a new clone from github, but I get the same error message as before.
I have to admit I am not 100% sure how to use Visual Studio, is there anything specific I need to do to build the project beside opening one of the files and click on Build â Build Solution?
Edit: Typo
Just to add, I downloaded .net from the link but it said I had a newer version and aborted.
Then we need to sort out building the unmodified clone first, before attempting to modify the source code.
Follow these steps to get us more info:
Use the command Rebuild Solution
Copy the complete build output (from the Output window) and post it here.
In the Solution Explorer, open contextmenu on the node representing the solution and in the contextmenu click the entry labeled Restore NuGet Packages.
Copy the output from the Output window and post it here.
Use the command Rebuild Solution
Copy the complete build output (from the Output window) and post it here.
Lets see if this worked:
1>------ Rebuild started: Project: Sanderling.ABot, Configuration: Debug|AnyCPU ------
Visual Studio\2017\Community\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(1987,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly âWindowsInput, Version=1.0.4.0, Culture=neutral, PublicKeyToken=9b287f7dc5073cad, processorArchitecture=MSILâ. Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
\A-Bot Original\src\Sanderling.ABot\Bot\Task\Module.cs(52,49,52,58): error CS0012: The type âVirtualKeyCodeâ is defined in an assembly that is not referenced. You must add a reference to assembly âWindowsInput, Version=1.0.4.0, Culture=neutral, PublicKeyToken=9b287f7dc5073cadâ.
\A-Bot Original\src\Sanderling.ABot\Bot\Task\Module.cs(55,29,55,51): error CS0012: The type âVirtualKeyCodeâ is defined in an assembly that is not referenced. You must add a reference to assembly âWindowsInput, Version=1.0.4.0, Culture=neutral, PublicKeyToken=9b287f7dc5073cadâ.
========== Rebuild: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
I am however not seeing the Restore NuGet Packages you mention anywhere, the only options I have are these on the folders:
Or on the files:
The ReBuild Solution doesnât give any different output when I use it again.
Looks like I need to add another step to the instructions for Restore NuGet Packages:
Looking at your screenshot, I am not sure if that context menu was opened on the solution item.
Therefore in solution explorer, first switch to solution view as shown in the screenshot below:
Then the solution item should become visible in the tree view as in the screenshot below:
On that solution node, you should see a context menu different from the one you showed earlier. Do you have an entry labeled Restore NuGet Packages in there?
Ok actually seems to be working! Even with my changes! Orbits like a champ
However I see one issue,
Its a bit slow to initiate the orbit rutine, meaning it will do so after everything else thus getting pummeled up quite a bit before the speed kicks up.
Ideally it should orbit first then activate afterburner/MWD to get up to speed then do the drone and targeting rutine. Is it possible to change this so it orbits first?
Doesnt seem to activate âMedium Armor Repair IIâ so it will eventually die, is it not supported or set to a really low threshold I could change somewhere?
I looked in the main thread and saw a few mentons of capital armor repairs and the use of âModuleActivePermanentSetTitlePatternâ But that would be inefective as Iâd need to refit quite a bit to make it stable with always on.