Skip to content

Commit

Permalink
Merge pull request PhlexPlexico#48 from PhlexPlexico/0.13-updates
Browse files Browse the repository at this point in the history
0.13 updates
  • Loading branch information
PhlexPlexico authored Mar 4, 2023
2 parents 62781da + 2b454a3 commit fca465a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion get5
Submodule get5 updated 77 files
+0 −18 .github/ISSUE_TEMPLATE
+46 −0 .github/ISSUE_TEMPLATE/bug-report.yml
+5 −0 .github/ISSUE_TEMPLATE/config.yml
+33 −0 .github/ISSUE_TEMPLATE/feature-request.yml
+2 −2 .github/workflows/build.yml
+6 −0 configs/get5/commands.cfg
+42 −0 configs/get5/tests/custom_veto.json
+42 −0 configs/get5/tests/custom_veto_invalid.json
+61 −0 configs/get5/tests/default_valid.cfg
+52 −0 configs/get5/tests/default_valid.json
+30 −0 configs/get5/tests/default_valid_team1t.json
+18 −0 configs/get5/tests/fromfile_maplist_empty.json
+18 −0 configs/get5/tests/fromfile_maplist_empty_string.json
+20 −0 configs/get5/tests/fromfile_maplist_invalid.cfg
+18 −0 configs/get5/tests/fromfile_maplist_not_array.json
+18 −0 configs/get5/tests/fromfile_maplist_not_found.json
+21 −0 configs/get5/tests/fromfile_maplist_valid.cfg
+16 −0 configs/get5/tests/fromfile_maplist_valid.json
+1 −0 configs/get5/tests/invalid_config.cfg
+1 −0 configs/get5/tests/invalid_config.json
+1 −0 configs/get5/tests/maplist_empty.json
+6 −0 configs/get5/tests/maplist_invalid.cfg
+4 −0 configs/get5/tests/maplist_invalid_not_array.json
+6 −0 configs/get5/tests/maplist_valid.cfg
+5 −0 configs/get5/tests/maplist_valid.json
+11 −0 configs/get5/tests/missing_maplist.cfg
+8 −0 configs/get5/tests/missing_maplist.json
+13 −0 configs/get5/tests/missing_team1.cfg
+10 −0 configs/get5/tests/missing_team1.json
+13 −0 configs/get5/tests/missing_team2.cfg
+10 −0 configs/get5/tests/missing_team2.json
+2 −0 configs/get5/tests/readme.txt
+13 −0 configs/get5/tests/team2.cfg
+11 −0 configs/get5/tests/team2.json
+12 −0 configs/get5/tests/team2_array.json
+39 −0 documentation/docs/backup.md
+54 −5 documentation/docs/commands.md
+50 −10 documentation/docs/configuration.md
+4 −3 documentation/docs/gotv.md
+1 −1 documentation/docs/index.md
+42 −31 documentation/docs/match_schema.md
+26 −24 documentation/docs/translations.md
+97 −30 documentation/docs/veto.md
+1 −1 documentation/mkdocs.yml
+1 −1 misc/import_stats.sql
+221 −96 scripting/get5.sp
+262 −67 scripting/get5/backups.sp
+114 −0 scripting/get5/chatcommands.sp
+11 −22 scripting/get5/events.sp
+119 −15 scripting/get5/http.sp
+0 −19 scripting/get5/jsonhelpers.sp
+2 −2 scripting/get5/kniferounds.sp
+156 −196 scripting/get5/mapveto.sp
+558 −379 scripting/get5/matchconfig.sp
+26 −3 scripting/get5/natives.sp
+16 −7 scripting/get5/pausing.sp
+6 −7 scripting/get5/readysystem.sp
+68 −110 scripting/get5/recording.sp
+42 −59 scripting/get5/stats.sp
+4 −4 scripting/get5/surrender.sp
+0 −8 scripting/get5/teamlogic.sp
+781 −44 scripting/get5/tests.sp
+139 −27 scripting/get5/util.sp
+1 −1 scripting/get5/version.sp
+9 −6 scripting/get5_mysqlstats.sp
+31 −3 scripting/include/get5.inc
+4 −9 scripting/include/restorecvars.inc
+19 −19 translations/chi/get5.phrases.txt
+41 −33 translations/da/get5.phrases.txt
+28 −20 translations/de/get5.phrases.txt
+28 −20 translations/es/get5.phrases.txt
+28 −20 translations/fr/get5.phrases.txt
+40 −31 translations/get5.phrases.txt
+20 −20 translations/hu/get5.phrases.txt
+20 −12 translations/pl/get5.phrases.txt
+37 −29 translations/pt/get5.phrases.txt
+37 −29 translations/ru/get5.phrases.txt
6 changes: 4 additions & 2 deletions scripting/G5WS.sp
Original file line number Diff line number Diff line change
Expand Up @@ -656,6 +656,7 @@ public Action Command_LoadBackupUrl(int client, int args) {

public void Get5_OnRoundStart(const Get5RoundStartedEvent event) {
char matchId[64];
char serverId[65];
char backupFile[PLATFORM_MAX_PATH];
event.GetMatchId(matchId, sizeof(matchId));
Handle req = CreateRequestNoKey(k_EHTTPMethodPUT, "match/%s/map/%d/round/%d/backup",
Expand All @@ -664,9 +665,10 @@ public void Get5_OnRoundStart(const Get5RoundStartedEvent event) {
AddStringHeader(req, "key", g_APIKey);
char backupDirectory[PLATFORM_MAX_PATH];
GetConVarStringSafe("get5_backup_path", backupDirectory, sizeof(backupDirectory));
Get5_GetServerID(serverId, sizeof(serverId));
ReplaceString(backupDirectory, sizeof(backupDirectory), "{MATCHID}", matchId);
Format(backupFile, sizeof(backupFile), "%sget5_backup%d_match%s_map%d_round%d.cfg", backupDirectory,
Get5_GetServerID(), matchId, event.MapNumber, event.RoundNumber);
Format(backupFile, sizeof(backupFile), "%sget5_backup%s_match%s_map%d_round%d.cfg", backupDirectory,
serverId, matchId, event.MapNumber, event.RoundNumber);
SteamWorks_SetHTTPRequestRawPostBodyFromFile(req, "application/octet-stream", backupFile);
SteamWorks_SendHTTPRequest(req);
delete req;
Expand Down

0 comments on commit fca465a

Please sign in to comment.