mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-22 20:47:28 +01:00
Allow DMAPI Validation to be fully skipped
Fuck you @AffectedArc07
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user