Allow DMAPI Validation to be fully skipped

Fuck you @AffectedArc07
This commit is contained in:
Jordan Dominion
2024-09-07 18:41:30 -04:00
parent a7a73b514b
commit 4570a20a3a
28 changed files with 4879 additions and 116 deletions
+1 -1
View File
@@ -1,3 +1,3 @@
#define TGS_INFO_LOG(message) world.log << "Info: [##message]"
#define TGS_ERROR_LOG(message) world.log << "Err: [##message]"
#define TGS_ERROR_LOG(message) TgsError("[##message]")
#define TGS_V3_API
+13
View File
@@ -10,6 +10,19 @@
set waitfor = FALSE
Run()
/proc/TgsError(message)
world.log << "TGS Error: [message]"
var/ibf = message == "Failed initial bridge request!"
if(ibf || message == "Failed bridge request, bad json: null" || findtext(message, "byond_world_export: Failed request: ") || message == "Failed to activate API!")
if(ibf)
text2file("yes", "initial_bridge_failed.txt")
del(world)
sleep(1)
return
FailTest("DMAPI Error: [message]")
/proc/Run()
world.log << "sleep"
sleep(50)
@@ -0,0 +1,18 @@
// Hand crafted DME, will not work if saved with DreamMaker
// BEGIN_INTERNALS
// END_INTERNALS
// BEGIN_FILE_DIR
#define FILE_DIR .
// END_FILE_DIR
// BEGIN_PREFERENCES
// END_PREFERENCES
// BEGIN_INCLUDE
#include "Config.dm"
#undef TGS_V3_API
#include "../test_prelude.dm"
#include "Test.dm"
// END_INCLUDE