mirror of
https://github.com/Pax1601/DCSOlympus.git
synced 2025-10-29 16:56:34 +00:00
v0.4.11-alpha-rc3
This commit is contained in:
13
client/@types/olympus/index.d.ts
vendored
13
client/@types/olympus/index.d.ts
vendored
@@ -2031,6 +2031,19 @@ declare module "unit/unitsmanager" {
|
|||||||
* @param category Either "Aircraft", "Helicopter", "GroundUnit", or "NavyUnit". Determines what class will be used to create the new unit accordingly.
|
* @param category Either "Aircraft", "Helicopter", "GroundUnit", or "NavyUnit". Determines what class will be used to create the new unit accordingly.
|
||||||
*/
|
*/
|
||||||
addUnit(ID: number, category: string): void;
|
addUnit(ID: number, category: string): void;
|
||||||
|
/** Sort units segregated groups based on controlling type and protection, if DCS-controlled
|
||||||
|
*
|
||||||
|
* @param units <Unit[]>
|
||||||
|
* @returns Object
|
||||||
|
*/
|
||||||
|
segregateUnits(units: Unit[]): {
|
||||||
|
[key: string]: [];
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @param numOfProtectedUnits number
|
||||||
|
*/
|
||||||
|
showProtectedUnitsPopup(numOfProtectedUnits: number): void;
|
||||||
/** Update the data of all the units. The data is directly decoded from the binary buffer received from the REST Server. This is necessary for performance and bandwidth reasons.
|
/** Update the data of all the units. The data is directly decoded from the binary buffer received from the REST Server. This is necessary for performance and bandwidth reasons.
|
||||||
*
|
*
|
||||||
* @param buffer The arraybuffer, encoded according to the ICD defined in: TODO Add reference to ICD
|
* @param buffer The arraybuffer, encoded according to the ICD defined in: TODO Add reference to ICD
|
||||||
|
|||||||
@@ -112,5 +112,5 @@ function onListening() {
|
|||||||
debug('Listening on ' + bind);
|
debug('Listening on ' + bind);
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log("DCS Olympus server v0.4.10-alpha-rc2 started correctly!")
|
console.log("DCS Olympus server v0.4.11-alpha-rc3 started correctly!")
|
||||||
console.log("Waiting for connections...")
|
console.log("Waiting for connections...")
|
||||||
|
|||||||
4
client/package-lock.json
generated
4
client/package-lock.json
generated
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "DCSOlympus",
|
"name": "DCSOlympus",
|
||||||
"version": "v0.4.10-alpha-rc2",
|
"version": "v0.4.11-alpha-rc3",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "DCSOlympus",
|
"name": "DCSOlympus",
|
||||||
"version": "v0.4.10-alpha-rc2",
|
"version": "v0.4.11-alpha-rc3",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@turf/turf": "^6.5.0",
|
"@turf/turf": "^6.5.0",
|
||||||
"body-parser": "^1.20.2",
|
"body-parser": "^1.20.2",
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
"name": "DCSOlympus",
|
"name": "DCSOlympus",
|
||||||
"node-main": "./bin/www",
|
"node-main": "./bin/www",
|
||||||
"main": "http://localhost:3000",
|
"main": "http://localhost:3000",
|
||||||
"version": "v0.4.10-alpha-rc2",
|
"version": "v0.4.11-alpha-rc3",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "browserify .\\src\\index.ts --debug -o .\\public\\javascripts\\bundle.js -t [ babelify --global true --presets [ @babel/preset-env ] --extensions '.js'] -p [ tsify --noImplicitAny ] && copy.bat",
|
"build": "browserify .\\src\\index.ts --debug -o .\\public\\javascripts\\bundle.js -t [ babelify --global true --presets [ @babel/preset-env ] --extensions '.js'] -p [ tsify --noImplicitAny ] && copy.bat",
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ import { UnitListPanel } from "./panels/unitlistpanel";
|
|||||||
import { ContextManager } from "./context/contextmanager";
|
import { ContextManager } from "./context/contextmanager";
|
||||||
import { Context } from "./context/context";
|
import { Context } from "./context/context";
|
||||||
|
|
||||||
var VERSION = "v0.4.10-alpha-rc2";
|
var VERSION = "v0.4.11-alpha-rc3";
|
||||||
var DEBUG = false;
|
var DEBUG = false;
|
||||||
|
|
||||||
export class OlympusApp {
|
export class OlympusApp {
|
||||||
@@ -262,9 +262,7 @@ export class OlympusApp {
|
|||||||
const latestVersionSpan = document.getElementById("latest-version") as HTMLElement;
|
const latestVersionSpan = document.getElementById("latest-version") as HTMLElement;
|
||||||
if (latestVersionSpan) {
|
if (latestVersionSpan) {
|
||||||
latestVersionSpan.innerHTML = this.#latestVersion ?? "Unknown";
|
latestVersionSpan.innerHTML = this.#latestVersion ?? "Unknown";
|
||||||
if (this.#latestVersion !== VERSION) {
|
latestVersionSpan.classList.toggle("new-version", this.#latestVersion !== VERSION);
|
||||||
latestVersionSpan.classList.add("new-version");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<div id="app-summary">
|
<div id="app-summary">
|
||||||
<h2>DCS Olympus</h2>
|
<h2>DCS Olympus</h2>
|
||||||
<h4>Dynamic Unit Command</h4>
|
<h4>Dynamic Unit Command</h4>
|
||||||
<div class="app-version">Version <span class="app-version-number">v0.4.10-alpha-rc2</span></div>
|
<div class="app-version">Version <span class="app-version-number">v0.4.11-alpha-rc3</span></div>
|
||||||
<div class="app-version">Latest version <span id="latest-version" class="app-version-number"></span></div>
|
<div class="app-version">Latest version <span id="latest-version" class="app-version-number"></span></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
<div class="ol-select-options">
|
<div class="ol-select-options">
|
||||||
<div id="toolbar-summary">
|
<div id="toolbar-summary">
|
||||||
<h3>DCS Olympus</h3>
|
<h3>DCS Olympus</h3>
|
||||||
<div class="accent-green app-version-number">version v0.4.10-alpha-rc2</div>
|
<div class="accent-green app-version-number">version v0.4.11-alpha-rc3</div>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<a href="https://discord.gg/wWXyVVBZT7" target="_blank">Discord</a>
|
<a href="https://discord.gg/wWXyVVBZT7" target="_blank">Discord</a>
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#define nwjsFolder "..\..\nwjs\"
|
#define nwjsFolder "..\..\nwjs\"
|
||||||
#define nodejsFolder "..\..\node\"
|
#define nodejsFolder "..\..\node\"
|
||||||
#define version "v0.4.10-alpha-rc2"
|
#define version "v0.4.11-alpha-rc3"
|
||||||
|
|
||||||
[Setup]
|
[Setup]
|
||||||
AppName=DCS Olympus
|
AppName=DCS Olympus
|
||||||
@@ -51,35 +51,35 @@ Source: "..\scripts\python\configurator\dist\configurator.exe"; DestDir: "{app}\
|
|||||||
[Run]
|
[Run]
|
||||||
Filename: "{app}\Mods\Services\Olympus\configurator.exe"; Parameters: -a {code:GetAddress} -c {code:GetClientPort} -b {code:GetBackendPort} -p {code:GetPassword} -bp {code:GetBluePassword} -rp {code:GetRedPassword}; Check: CheckCallConfigurator
|
Filename: "{app}\Mods\Services\Olympus\configurator.exe"; Parameters: -a {code:GetAddress} -c {code:GetClientPort} -b {code:GetBackendPort} -p {code:GetPassword} -bp {code:GetBluePassword} -rp {code:GetRedPassword}; Check: CheckCallConfigurator
|
||||||
|
|
||||||
[Registry]
|
;[Registry]
|
||||||
Root: HKCU; Subkey: "Environment"; ValueType: string; ValueName: "DCSOLYMPUS_PATH"; ValueData: "{app}\Mods\Services\Olympus"; Flags: preservestringtype
|
;Root: HKCU; Subkey: "Environment"; ValueType: string; ValueName: "DCSOLYMPUS_PATH"; ValueData: "{app}\Mods\Services\Olympus"; Flags: preservestringtype
|
||||||
Root: HKCU; Subkey: "Environment"; ValueType: expandsz; ValueName: "Path"; ValueData: "{olddata};%DCSOLYMPUS_PATH%\bin"; Check: NeedsAddPath('%DCSOLYMPUS_PATH%\bin');
|
;Root: HKCU; Subkey: "Environment"; ValueType: expandsz; ValueName: "Path"; ValueData: "{olddata};%DCSOLYMPUS_PATH%\bin"; Check: NeedsAddPath('%DCSOLYMPUS_PATH%\bin');
|
||||||
|
|
||||||
[Setup]
|
;[Setup]
|
||||||
; Tell Windows Explorer to reload the environment
|
; Tell Windows Explorer to reload the environment
|
||||||
ChangesEnvironment=yes
|
;ChangesEnvironment=yes
|
||||||
|
|
||||||
[Icons]
|
[Icons]
|
||||||
Name: "{userdesktop}\DCS Olympus Client"; Filename: "{app}\Mods\Services\Olympus\client\nw.exe"; Tasks: desktopicon; IconFilename: "{app}\Mods\Services\Olympus\img\olympus.ico"; Check: CheckLocalInstall
|
Name: "{userdesktop}\DCS Olympus Client"; Filename: "{app}\Mods\Services\Olympus\client\nw.exe"; Tasks: desktopicon; IconFilename: "{app}\Mods\Services\Olympus\img\olympus.ico"; Check: CheckLocalInstall
|
||||||
Name: "{userdesktop}\DCS Olympus Server"; Filename: "{app}\Mods\Services\Olympus\client\node.exe"; Tasks: desktopicon; IconFilename: "{app}\Mods\Services\Olympus\img\olympus_server.ico"; Parameters: ".\bin\www"; Check: CheckServerInstall
|
Name: "{userdesktop}\DCS Olympus Server"; Filename: "{app}\Mods\Services\Olympus\client\node.exe"; Tasks: desktopicon; IconFilename: "{app}\Mods\Services\Olympus\img\olympus_server.ico"; Parameters: ".\bin\www"; Check: CheckServerInstall
|
||||||
Name: "{userdesktop}\DCS Olympus Configurator"; Filename: "{app}\Mods\Services\Olympus\configurator.exe"; Tasks: desktopicon; IconFilename: "{app}\Mods\Services\Olympus\img\olympus_configurator.ico"; Check: CheckServerInstall
|
Name: "{userdesktop}\DCS Olympus Configurator"; Filename: "{app}\Mods\Services\Olympus\configurator.exe"; Tasks: desktopicon; IconFilename: "{app}\Mods\Services\Olympus\img\olympus_configurator.ico"; Check: CheckServerInstall
|
||||||
|
|
||||||
[Code]
|
;[Code]
|
||||||
function NeedsAddPath(Param: string): boolean;
|
;function NeedsAddPath(Param: string): boolean;
|
||||||
var
|
;var
|
||||||
OrigPath: string;
|
; OrigPath: string;
|
||||||
begin
|
;begin
|
||||||
if not RegQueryStringValue(HKCU,
|
; if not RegQueryStringValue(HKCU,
|
||||||
'Environment',
|
; 'Environment',
|
||||||
'Path', OrigPath)
|
; 'Path', OrigPath)
|
||||||
then begin
|
; then begin
|
||||||
Result := True;
|
; Result := True;
|
||||||
exit;
|
; exit;
|
||||||
end;
|
; end;
|
||||||
{ look for the path with leading and trailing semicolon }
|
; { look for the path with leading and trailing semicolon }
|
||||||
{ Pos() returns 0 if not found }
|
; { Pos() returns 0 if not found }
|
||||||
Result := Pos(';' + Param + ';', ';' + OrigPath + ';') = 0;
|
; Result := Pos(';' + Param + ';', ';' + OrigPath + ';') = 0;
|
||||||
end;
|
;end;
|
||||||
|
|
||||||
[Code]
|
[Code]
|
||||||
var
|
var
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ declare_plugin(self_ID,
|
|||||||
shortName = "Olympus",
|
shortName = "Olympus",
|
||||||
fileMenuName = "Olympus",
|
fileMenuName = "Olympus",
|
||||||
|
|
||||||
version = "v0.4.10-alpha-rc2",
|
version = "v0.4.11-alpha-rc3",
|
||||||
state = "installed",
|
state = "installed",
|
||||||
developerName= "DCS Refugees 767 squadron",
|
developerName= "DCS Refugees 767 squadron",
|
||||||
info = _("DCS Olympus is a mod for DCS World. It allows users to spawn, control, task, group, and remove units from a DCS World server using a real-time map interface, similarly to Real Time Strategy games. The user interface also provides useful informations units, like loadouts, fuel, tasking, and so on. In the future, more features for DCS World GCI and JTAC will be available."),
|
info = _("DCS Olympus is a mod for DCS World. It allows users to spawn, control, task, group, and remove units from a DCS World server using a real-time map interface, similarly to Real Time Strategy games. The user interface also provides useful informations units, like loadouts, fuel, tasking, and so on. In the future, more features for DCS World GCI and JTAC will be available."),
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
local version = "v0.4.10-alpha-rc2"
|
local version = "v0.4.11-alpha-rc3"
|
||||||
|
|
||||||
local debug = false -- True enables debug printing using DCS messages
|
local debug = false -- True enables debug printing using DCS messages
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
local version = 'v0.4.10-alpha-rc2'
|
local version = 'v0.4.11-alpha-rc3'
|
||||||
|
|
||||||
Olympus = {}
|
Olympus = {}
|
||||||
Olympus.OlympusDLL = nil
|
Olympus.OlympusDLL = nil
|
||||||
|
|||||||
BIN
src/olympus/olympus.aps
Normal file
BIN
src/olympus/olympus.aps
Normal file
Binary file not shown.
@@ -1,6 +1,6 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#define VERSION "v0.4.10-alpha-rc2"
|
#define VERSION "v0.4.11-alpha-rc3"
|
||||||
#define LOG_NAME "Olympus_log.txt"
|
#define LOG_NAME "Olympus_log.txt"
|
||||||
#define REST_ADDRESS "http://localhost:30000"
|
#define REST_ADDRESS "http://localhost:30000"
|
||||||
#define REST_URI "olympus"
|
#define REST_URI "olympus"
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
{
|
{
|
||||||
"version": "v0.4.10-alpha-rc2"
|
"version": "v0.4.11-alpha-rc3"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user