-
-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added support for new session tracking server
Removed old remote statistic tracking Added statistics for revives and enemy kills Added build number to description.ext
- Loading branch information
1 parent
93a6fa3
commit d5ea228
Showing
11 changed files
with
119 additions
and
42 deletions.
There are no files selected for viewing
Submodule Revive
updated
from fff889 to 908c5b
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
params["_end"]; | ||
|
||
[_end] call A3E_fnc_EndSession; | ||
[_end] call A3E_fnc_SaveStatistics; | ||
_end call BIS_fnc_endMissionServer; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
params["_endtype"]; | ||
|
||
|
||
if(A3E_Param_SendStatistics == 1) then { | ||
|
||
private _island = getText (missionConfigFile >> "EscapeIsland"); | ||
private _mod = getText (missionConfigFile >> "EscapeMod"); | ||
private _version = getText (missionConfigFile >> "EscapeVersion"); | ||
private _release = getText (missionConfigFile >> "EscapeRelease"); | ||
private _build = getText (missionConfigFile >> "EscapeBuild"); | ||
private _players = str count(call BIS_fnc_listPlayers); | ||
private _servername = serverName; | ||
private _guid = missionNamespace getvariable ["A3E_SessionGUID","00000000000-00000000000"]; | ||
private _revives = missionNamespace getvariable ["A3E_Revive_Count",0]; | ||
private _kills = missionNamespace getvariable ["A3E_Kill_Count",0]; | ||
// replace with the actual server URL where your API is hosted | ||
|
||
private _baseURL = "http://co10esc.anzp.de/api/session/"; | ||
|
||
|
||
private _uri = _baseURL + "endsession?" | ||
+"uid="+_guid | ||
+"&kills="+str _kills | ||
+"&revives="+str _revives | ||
+"&end=" + _endtype; | ||
|
||
"DummyLayer" cutRsc ["RscTitleDisplayEmpty", "PLAIN"]; | ||
private _emptyDisplay = uiNamespace getVariable "RscTitleDisplayEmpty"; | ||
private _html = _emptyDisplay ctrlCreate ["RscHTML", -1]; | ||
_html ctrlSetBackgroundColor [0,0,0,1]; | ||
_html ctrlSetPosition [0,0,0,0]; | ||
_html ctrlCommit 0; | ||
_html htmlLoad _uri; | ||
_emptyDisplay closeDisplay 1; | ||
|
||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
private _fnc_guid = { | ||
params["_servername"]; | ||
private _guid = hashValue(_servername)+"-"+hashValue(systemTimeUTC); | ||
_guid; | ||
}; | ||
|
||
|
||
if(A3E_Param_SendStatistics == 1) then { | ||
|
||
private _island = getText (missionConfigFile >> "EscapeIsland"); | ||
private _mod = getText (missionConfigFile >> "EscapeMod"); | ||
private _version = getText (missionConfigFile >> "EscapeVersion"); | ||
private _release = getText (missionConfigFile >> "EscapeRelease"); | ||
private _build = getText (missionConfigFile >> "EscapeBuild"); | ||
private _players = str count(call BIS_fnc_listPlayers); | ||
private _servername = serverName; | ||
if(_servername == "") then { | ||
_servername = "Local"; | ||
}; | ||
private _guid = _servername call _fnc_guid; | ||
missionNamespace setvariable ["A3E_SessionGUID",_guid]; | ||
|
||
// replace with the actual server URL where your API is hosted | ||
|
||
private _baseURL = "http://co10esc.anzp.de/api/session/"; | ||
|
||
|
||
private _uri = _baseURL + "startsession?" | ||
+"uid="+_guid | ||
+"&server="+_servername | ||
+"&missionVersion="+_version | ||
+"&server=" + _servername | ||
+"&build=" + _build | ||
+"&players=" + _players | ||
+"&mod=" + _mod | ||
+"&terrain=" + _island; | ||
|
||
"DummyLayer" cutRsc ["RscTitleDisplayEmpty", "PLAIN"]; | ||
private _emptyDisplay = uiNamespace getVariable "RscTitleDisplayEmpty"; | ||
private _html = _emptyDisplay ctrlCreate ["RscHTML", -1]; | ||
_html ctrlSetBackgroundColor [0,0,0,1]; | ||
_html ctrlSetPosition [0,0,0,0]; | ||
_html ctrlCommit 0; | ||
_html htmlLoad _uri; | ||
_emptyDisplay closeDisplay 1; | ||
|
||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1 @@ | ||
|
||
if(A3E_Param_SendStatistics == 1) then { | ||
|
||
private _island = getText (missionConfigFile >> "EscapeIsland"); | ||
private _mod = getText (missionConfigFile >> "EscapeMod"); | ||
private _version = getText (missionConfigFile >> "EscapeVersion"); | ||
private _release = getText (missionConfigFile >> "EscapeRelease"); | ||
|
||
"DummyLayer" cutRsc ["RscTitleDisplayEmpty", "PLAIN"]; | ||
private _emptyDisplay = uiNamespace getVariable "RscTitleDisplayEmpty"; | ||
private _html = _emptyDisplay ctrlCreate ["RscHTML", -1]; | ||
_html ctrlSetBackgroundColor [0,0,0,1]; | ||
_html ctrlSetPosition [0,0,0,0]; | ||
_html ctrlCommit 0; | ||
private _uri = "http://escape.anzp.de/track.php?event=startmission&map=" + _island + "&mod=" + _mod + "&version=" + _version + "&players="+str count(call BIS_fnc_listPlayers)+"&server="+serverName+"&release="+ _release; | ||
_html htmlLoad _uri; | ||
_emptyDisplay closeDisplay 1; | ||
|
||
private _trigger = createTrigger["EmptyDetector", [0,0,0], false]; | ||
_trigger setTriggerInterval 300; | ||
_trigger setTriggerActivation["NONE","PRESENT",true]; | ||
_trigger setTriggerArea[0, 0, 0, false]; | ||
missionnamespace setvariable ["A3E_var_PingTrg",true,false]; | ||
_trigger setTriggerStatements["A3E_var_PingTrg", "[] spawn A3E_fnc_PingStatistics;A3E_var_PingTrg = false;", "A3E_var_PingTrg=true;"]; | ||
}; | ||
[] call A3E_fnc_StartSession; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters