This is an extension of my team leader guide (they will be using this calculator the most). This calculator allows you to get the coordinates of literally any tile on the map. It essentially takes the difference between the numbers in the webmap and the numbers in-game and keeps applying that same difference everytime you enter a new set of X and Y coordinates. Very simple stuff. A lot of people do the same thing but manually and with an actual calculator, this just makes it quicker and easier. I made this in less than an hour on my notepad even though I have literally zero programming knowledge (first thing I ever programmed!). Well, I say I âmadeâ this but it was more like gutting something someone wrote many years ago and tailoring it to my needs. Anyways, seeing how I donât have a website or anything from which I can set this up so others can use it remotely, you can get this calculator in one of three ways. Iâll begin with what I think is the best way to do it.
A program on your computer (with colors)
You will need to download Python first, then youâll need to download an add-on that allows the use of color in the terminal. For the latter part, this video (skip to 1:10) does a good job of explaining how. Itâs one command away in your command prompt, thatâs it. With that out of the way, you can now set up your calculator. Simply create a new text document, paste this codeâŚ
The code
from colorama import init, Fore, Style
init(convert=True)
webmapSample_X_Coords = int(input(f'{Fore.RED}CALIBRATION:{Style.RESET_ALL} Enter the sample tile\'s X coordinates on the webmap: '))
webmapSample_Y_Coords = int(input(f'{Fore.RED}CALIBRATION:{Style.RESET_ALL} Enter the sample tile\'s Y coordinates on the webmap: '))
ingameSample_X_Coords = int(input(f'{Fore.RED}CALIBRATION:{Style.RESET_ALL} Enter the sample tile\'s X coordinates in the game: '))
ingameSample_Y_Coords = int(input(f'{Fore.RED}CALIBRATION:{Style.RESET_ALL} Enter the sample tile\'s Y coordinates in the game: '))
diffX = ingameSample_X_Coords - webmapSample_X_Coords
print('The difference between the X coordinates on the webmap and in-game =', diffX)
diffY = ingameSample_Y_Coords - webmapSample_Y_Coords
print('The difference between the Y coordinates on the webmap and in-game =', diffY)
print(f'{Fore.RED}The CMSS13 Coordinates Calculator has been calibrated.{Style.RESET_ALL}')
while True:
webmapTarget_X_Coords = int(input('Enter the target tile\'s webmap X coordinates: '))
def sum(webmapTarget_X_Coords, diffX):
return (webmapTarget_X_Coords + diffX)
webmapTarget_Y_Coords = int(input('Enter the target tile\'s webmap Y coordinates: '))
def sum(webmapTarget_Y_Coords, diffY):
return (webmapTarget_Y_Coords + diffY)
print(f'In-game X and Y coordinates for the target tile are {Fore.RED}({sum(webmapTarget_X_Coords, diffX)},{sum(webmapTarget_Y_Coords, diffY)}){Style.RESET_ALL}')
continue
âŚand save the file as .py (NOT .txt). Youâre done!
A program on your computer (without colors)
You will need to download Python first, then just create a new text document, paste this codeâŚ
The code
webmapSample_X_Coords = int(input('CALIBRATION: Enter the sample tile\'s X coordinates on the webmap: '))
webmapSample_Y_Coords = int(input('CALIBRATION: Enter the sample tile\'s Y coordinates on the webmap: '))
ingameSample_X_Coords = int(input('CALIBRATION: Enter the sample tile\'s X coordinates in the game: '))
ingameSample_Y_Coords = int(input('CALIBRATION: Enter the sample tile\'s Y coordinates in the game: '))
diffX = ingameSample_X_Coords - webmapSample_X_Coords
print('The difference between the X coordinates on the webmap and in-game =', diffX)
diffY = ingameSample_Y_Coords - webmapSample_Y_Coords
print('The difference between the Y coordinates on the webmap and in-game =', diffY)
print('The CMSS13 Coordinates Calculator has been calibrated.')
while True:
webmapTarget_X_Coords = int(input('Enter the target tile\'s webmap X coordinates: '))
def sum(webmapTarget_X_Coords, diffX):
return (webmapTarget_X_Coords + diffX)
webmapTarget_Y_Coords = int(input('Enter the target tile\'s webmap Y coordinates: '))
def sum(webmapTarget_Y_Coords, diffY):
return (webmapTarget_Y_Coords + diffY)
print(f'In-game X and Y coordinates for the target tile are ({sum(webmapTarget_X_Coords, diffX)},{sum(webmapTarget_Y_Coords, diffY)})')
continue
âŚand save the file as .py (NOT .txt). Youâre done!
Running the program online
If you donât want to bother with downloading anything, just open a new tab on your browser and search for âonline python.â Choose whatever website you want, paste the code above, and you should have a functionally identical calculator.
Now that you have your calculator set up, open the webmap, find an easily identifiable spot near you, and follow the instructions in the calculator. Once youâve calibrated it, you can get the coordinates of any spot on the map by simply referring to the webmap and inputting the X and Y coordinates.
I donât really care what you do with this code. Hell, you can change it and host it online so that people donât have to go through all this, thatâs fine by me. A link to this page would be nice, thatâs all!
I claim the title of the JTAC mafiaâs Godfather. The Don, maybe.