Trigonometry! A Naval Action Macro
Robert ????????????????????????????? McCurdy
Cyber Defense AI Developer??Senior Security Engineer/Analyst Lead ??Threat Intelligence Developer??Lead Security Developer???Penetration Testing Lead????
"So I want to thank my wife for not leaving me during the development of this script and my father for sitting with me for ~6 hours drawing me pictures."
Thanks : https://chat.counterpoint.info (Jay) ,https://evilc.com and AHK Forums
So I don't get a lot of time to play video games. During the Steam summer sale I got a few games for myself on discount. I always loved Black Sails TV Show and the Assassin's Creed IV: Black Flag?Game. I picked up "Naval Action". I have had a long history with game that have really bad learning curves. The Total War games were always fun for me.
I quickly found that in this game I spend WAY too much time staring at the ocean and 'trading' with no easy way to navigate. You had to use your best guess by getting distances from ports to tell where to turn. You had to check trader tool from time to time to make sure you had not gone too far off course or ran into something..
This is where Trigonometry comes in! YES! turns out you do use high-school math in the real world. I found that when you press F11 to submit a bug report your X/Y coordinates were in plain text. I was by no means a math expert but I know if you... "Know where you were and know where you are... you can sort out your heading?". So along with this and a database of destinations I could make a script to sail the ship for me and alert me when it has reached it destination! This way I could "Spend more time with my family" and less time trading and actually play the game instead of trade 75% of the time. Here are some screenshot of the script in action.
Features
* Pan in Open World over Remote Desktop (VNC/RDP etc ..)!
* MULTI POINT ROUTES FOR AUTO PILOT!?
* AFK Fishing
* Auto Convert Fish (AFK Fishing)
* Auto manual sails see tinyurl.com/natips
* Auto show location using online map na-map.netlify.com (copied to clipboard)
* Auto forward ( just sails forward and keeps you from going idle )
* Auto detect shallows movement? and logout?
* Auto Check for maintenece in any AFK script (fishing etc ... ) will reconnect when disconnected!
* Auto close NA when bottle detected
* debug logging ! Naval_Action_AutohotKey.log
* cords in clipboard on na-map.netlify.com function
* email notifications
* auto pilot
What's next ?
Well next is move away from Autohotkey and pull the heading and other juicy info out of memory. This way I can make real time corrections instead of waiting for the debug dialog to come out. I also plan to only allow US players to use the script as our nation is the weakest in the game.
Script ( See README.txt for more information )
Video
Reference:
POC google sheets:
https://docs.google.com/spreadsheets/d/1Gye7g9WD3sDrOT84aUGNcRkkF0BQInI51OmnrrqhTdE/edit?usp=sharing
More on Atan2 (from "2-argument arctangent")
DllCall mouse_event (for in game pan/zoom) (AutoHotkey)?
FindText - Capture screen image into text and then find it (AutoHotkey)
Atan2 (from "2-argument arctangent") (AutoHotkey)
Drawing and math from my loving father Ray McCurdy
Cyber Defense AI Developer??Senior Security Engineer/Analyst Lead ??Threat Intelligence Developer??Lead Security Developer???Penetration Testing Lead????
6 年Source for autohotkey script as I am done with the game:?https://www.rmccurdy.com/scripts/Naval_Action_AutohotKey_Alpha/?