Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QUICKSTART define #11912

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions _maps/_basemap.dm
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
//#define LOWMEMORYMODE //uncomment this to load centcom and runtime station and thats it.
//#define QUICKSTART // uncomment this to start the round immidiately when ready and automatically spawn players with debug outfit

// uncomment this for a map you need to use
// #define FORCE_MAP "corgstation"
Expand Down
5 changes: 5 additions & 0 deletions code/_compile_options.dm
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,11 @@
#endif
#endif

//#define QUICKSTART
#ifdef QUICKSTART
#warn WARNING: Compiling with QUICKSTART.
#endif

//TODO Remove the SDMM check when it supports 1568
#if !defined(SPACEMAN_DMM) && (DM_VERSION < MIN_COMPILER_VERSION || DM_BUILD < MIN_COMPILER_BUILD) && !defined(FASTDMM)
//Don't forget to update this part
Expand All @@ -104,7 +109,7 @@
#define MAX_COMPILER_VERSION 514
#define MAX_COMPILER_BUILD 1589
#if DM_VERSION > MAX_COMPILER_VERSION || DM_BUILD > MAX_COMPILER_BUILD
#warn WARNING: Your BYOND version is over the recommended version (514.1589)! Stability is not guaranteed.

Check warning on line 112 in code/_compile_options.dm

View workflow job for this annotation

GitHub Actions / Run Linters

OD1201: #warn WARNING: Your BYOND version is over the recommended version (514.1589)! Stability is not guaranteed.
#endif
//Log the full sendmaps profile on 514.1556+, any earlier and we get bugs or it not existing
#if DM_VERSION >= 514 && DM_BUILD >= 1556
Expand Down
3 changes: 3 additions & 0 deletions code/controllers/subsystem/job.dm
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,9 @@ SUBSYSTEM_DEF(job)

/datum/controller/subsystem/job/proc/AssignRole(mob/dead/new_player/player, rank, latejoin = FALSE)
JobDebug("Running AR, Player: [player], Rank: [rank], LJ: [latejoin]")
#ifdef QUICKSTART
rank = "Debug Job"
#endif
if(player?.mind && rank)
var/datum/job/job = GetJob(rank)
if(!job || job.lock_flags)
Expand Down
4 changes: 4 additions & 0 deletions code/controllers/subsystem/ticker.dm
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ SUBSYSTEM_DEF(ticker)
var/emergency_start = FALSE

/datum/controller/subsystem/ticker/Initialize()
#ifdef QUICKSTART
start_immediately = TRUE
#endif

load_mode()

var/list/byond_sound_formats = list(
Expand Down
11 changes: 11 additions & 0 deletions code/modules/jobs/job_types/assistant.dm
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,14 @@ Assistant
if (SSatoms.initialized == INITIALIZATION_INSSATOMS)
H.w_uniform?.update_greyscale()
H.update_inv_w_uniform()

#ifdef QUICKSTART

/datum/job/assistant/debug
title = "Debug Job"
outfit = /datum/outfit/debug

/datum/job/assistant/debug/get_access()
return get_all_accesses()

#endif
3 changes: 3 additions & 0 deletions code/modules/mob/dead/new_player/new_player.dm
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
var/ineligible_for_roles = FALSE

/mob/dead/new_player/Initialize(mapload)
#ifdef QUICKSTART
ready = TRUE
#endif
if(client && SSticker.state == GAME_STATE_STARTUP)
var/atom/movable/screen/splash/S = new(null, client, TRUE, TRUE)
S.Fade(TRUE)
Expand Down
Loading