Skip to content

Commit

Permalink
Kola map updates
Browse files Browse the repository at this point in the history
  • Loading branch information
karel26 committed May 3, 2024
1 parent 60f15d1 commit 1714430
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cmd/sneaker-server/versioninfo.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
"FileVersion": {
"Major": 0,
"Minor": 0,
"Patch": 15,
"Patch": 16,
"Build": 0
},
"ProductVersion": {
"Major": 0,
"Minor": 0,
"Patch": 15,
"Patch": 16,
"Build": 0
},
"FileFlagsMask": "3f",
Expand All @@ -22,14 +22,14 @@
"Comments": "Fork by Special K",
"CompanyName": "b1naryth1ef",
"FileDescription": "Web-based AEW&C interface for DCS",
"FileVersion": "v0.0.15.0",
"FileVersion": "v0.0.16.0",
"InternalName": "sneaker.exe",
"LegalCopyright": "Copyright 2021 Andrei Zbikowski",
"LegalTrademarks": "",
"OriginalFilename": "main.go",
"PrivateBuild": "",
"ProductName": "Sneaker",
"ProductVersion": "v0.0.15.0",
"ProductVersion": "v0.0.16.0",
"SpecialBuild": ""
},
"VarFileInfo": {
Expand Down
3 changes: 3 additions & 0 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import { Falklands } from "./dcs/maps/Falklands";
import { Normandy } from "./dcs/maps/Normandy";
import { TheChannel } from "./dcs/maps/TheChannel";
import { Nevada } from "./dcs/maps/Nevada";
import { Kola } from "./dcs/maps/Kola";
import { Server, serverStore } from "./stores/ServerStore";
import { route } from "./util";

Expand Down Expand Up @@ -147,6 +148,8 @@ function ServerContainer({ serverName }: { serverName: string }) {
dcsMap = Normandy;
} else if (refLat >= 32 && refLat <= 40 && refLng >= -122 && refLng <= -112) {
dcsMap = Nevada;
} else if (refLat >= 62 && refLat <= 73 && refLng >= -4 && refLng <= 40) {
dcsMap = Kola;
} else {
console.log(refLat, refLng);
return (
Expand Down
1 change: 1 addition & 0 deletions src/data/airbases/kola.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"Lakselv": {"callsign": "Lakselv", "cat": 4, "desc": {"_origin": "", "attributes": {"Airfields": true}, "category": 0, "displayName": "Lakselv", "life": 3600, "typeName": "Lakselv"}, "id": 1, "point": [70.057759938201, 24.975276128064, 5.2753481864929], "runways": [{"Name": 34, "course": 0.14419163763523, "length": 2470.1184082031, "position": {"x": 234850.03125, "y": 5.2753481864929, "z": 88378.3359375}, "width": 45}]}, "Rovaniemi": {"callsign": "Rovaniemi", "cat": 4, "desc": {"_origin": "", "attributes": {"Airfields": true}, "category": 0, "displayName": "Rovaniemi", "life": 3600, "typeName": "Rovaniemi"}, "id": 2, "point": [66.574566219304, 25.849959054083, 186.5428314209], "runways": [{"Name": 21, "course": 2.5676310062408, "length": 2772.607421875, "position": {"x": -152462.09375, "y": 186.5428314209, "z": 151503.71875}, "width": 60}]}, "Kemi Tornio": {"callsign": "Kemi Tornio", "cat": 4, "desc": {"_origin": "", "attributes": {"Airfields": true}, "category": 0, "displayName": "Kemi Tornio", "life": 3600, "typeName": "Kemi Tornio"}, "id": 3, "point": [65.792105051259, 24.586346222607, 14.260339736938], "runways": [{"Name": 18, "course": 3.0679059028625, "length": 2396.6000976562, "position": {"x": -243395.96875, "y": 14.260339736938, "z": 101204.6328125}, "width": 65}]}, "Bas 100": {"callsign": "Bas 100", "cat": 4, "desc": {"_origin": "", "attributes": {"Airfields": true}, "category": 0, "displayName": "Bas 100", "life": 3600, "typeName": "Bas 100"}, "id": 4, "point": [67.075946867342, 26.560454027496, 224.3041229248], "runways": [{"Name": 22, "course": 2.3878312110901, "length": 2352.8156738281, "position": {"x": -93814.8046875, "y": 224.3041229248, "z": 177899.3125}, "width": 45}]}, "Kiruna": {"callsign": "Kiruna", "cat": 4, "desc": {"_origin": "", "attributes": {"Airfields": true}, "category": 0, "displayName": "Kiruna", "life": 3600, "typeName": "Kiruna"}, "id": 5, "point": [67.830309878359, 20.352317498997, 437.3486328125], "runways": [{"Name": 21, "course": 2.5431251525879, "length": 2265.5014648438, "position": {"x": -20455.625, "y": 437.3486328125, "z": -90638.921875}, "width": 65}]}, "Severomorsk3": {"callsign": "Severomorsk3", "cat": 4, "desc": {"_origin": "", "attributes": {"Airfields": true}, "category": 0, "displayName": "Severomorsk3", "life": 3600, "typeName": "Severomorsk3"}, "id": 6, "point": [68.85677411136, 33.715938376222, 172.87286376953], "runways": [{"Name": 35, "course": 0.15725308656693, "length": 2285.2131347656, "position": {"x": 148828.296875, "y": 172.87286376953, "z": 445899.6875}, "width": 65}]}, "Bodo": {"callsign": "Bodo", "cat": 4, "desc": {"_origin": "", "attributes": {"Airfields": true}, "category": 0, "displayName": "Bodo", "life": 3600, "typeName": "Bodo"}, "id": 7, "point": [67.266972958478, 14.335477876481, 7.8878412246704], "runways": [{"Name": 7, "course": -1.4644631147385, "length": 2626.8718261719, "position": {"x": -66958.8828125, "y": 7.8878412246704, "z": -348337.3125}, "width": 65}]}, "Severomorsk1": {"callsign": "Severomorsk1", "cat": 4, "desc": {"_origin": "", "attributes": {"Airfields": true}, "category": 0, "displayName": "Severomorsk1", "life": 3600, "typeName": "Severomorsk1"}, "id": 8, "point": [69.041038945947, 33.404833413526, 79.83479309082], "runways": [{"Name": 14, "course": -2.3641948699951, "length": 2768.8662109375, "position": {"x": 164318.28125, "y": 79.83479309082, "z": 430555.5625}, "width": 65}]}, "Olenegorsk": {"callsign": "Olenegorsk", "cat": 4, "desc": {"_origin": "", "attributes": {"Airfields": true}, "category": 0, "displayName": "Olenegorsk", "life": 3600, "typeName": "Olenegorsk"}, "id": 9, "point": [68.165641193625, 33.478248615765, 220.00268554688], "runways": [{"Name": 19, "course": 3.0036821365356, "length": 3311.314453125, "position": {"x": 68386.7109375, "y": 220.00268554688, "z": 451986.375}, "width": 65}]}, "Monchegorsk": {"callsign": "Monchegorsk", "cat": 4, "desc": {"_origin": "", "attributes": {"Airfields": true}, "category": 0, "displayName": "Monchegorsk", "life": 3600, "typeName": "Monchegorsk"}, "id": 10, "point": [67.980068235154, 33.00554585351, 166.96284484863], "runways": [{"Name": 1, "course": -0.2809699177742, "length": 2288.9135742188, "position": {"x": 46867.5625, "y": 166.96284484863, "z": 437312.6875}, "width": 65}]}, "Jokkmokk": {"callsign": "Jokkmokk", "cat": 4, "desc": {"_origin": "", "attributes": {"Airfields": true}, "category": 0, "displayName": "Jokkmokk", "life": 3600, "typeName": "Jokkmokk"}, "id": 11, "point": [66.503506337049, 20.134963877353, 271.79202270508], "runways": [{"Name": 14, "course": -2.5300014019012, "length": 1922.2287597656, "position": {"x": -168128.5625, "y": 271.79202270508, "z": -100659.1484375}, "width": 65}, {"Name": 32, "course": -2.6577680110931, "length": 1922.2287597656, "position": {"x": -167979.21875, "y": 271.79202270508, "z": -101916.2265625}, "width": 65}, {"Name": 15, "course": 3.0833442211151, "length": 1166.818359375, "position": {"x": -170687.75, "y": 271.79202270508, "z": -100980.8671875}, "width": 45}, {"Name": 33, "course": 0.82040852308273, "length": 1166.818359375, "position": {"x": -169760.6875, "y": 271.79202270508, "z": -102914.65625}, "width": 45}]}, "Murmansk International": {"callsign": "Murmansk International", "cat": 4, "desc": {"_origin": "", "attributes": {"Airfields": true}, "category": 0, "displayName": "Murmansk International", "life": 3600, "typeName": "Murmansk International"}, "id": 12, "point": [68.790779721545, 32.735392362593, 76.017112731934], "runways": [{"Name": 13, "course": -2.3607330322266, "length": 2415.9519042969, "position": {"x": 131730.5, "y": 76.017112731934, "z": 409479}, "width": 65}]}, "Kalixfors": {"callsign": "Kalixfors", "cat": 4, "desc": {"_origin": "", "attributes": {"Airfields": true}, "category": 0, "displayName": "Kalixfors", "life": 3600, "typeName": "Kalixfors"}, "id": 13, "point": [67.769859948236, 20.249609559672, 473.07836914062], "runways": [{"Name": 17, "course": -2.9912338256836, "length": 1096.6549072266, "position": {"x": -26773.458984375, "y": 473.07836914062, "z": -94330.125}, "width": 45}]}}
9 changes: 9 additions & 0 deletions src/dcs/maps/Kola.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import KolaAirBases from "../../data/airbases/kola.json";
import { convertRawAirBaseData, DCSMap } from "./DCSMap";

export const Kola: DCSMap = {
name: "Kola",
center: [67, 26],
magDec: 13,
airports: convertRawAirBaseData(KolaAirBases),
};

0 comments on commit 1714430

Please sign in to comment.