Sandbox
Jump to navigation
Jump to search
Debug data:
Zero-K Wiki has been migrated to the new server!
Header
<?php echo "Done!"; ?>
local function foo() print("Hello World") end
Subheader
Sometimes you might want to test things out to see how units and interactions work in-game. Here's how to do this easily:
1. Go to make a single player skirmish game. Press advanced and make yourself spectate the game. Put one inactive AI on both teams. Choose a map you want. The setup should look something like this:
Go ahead and start the game
2. Once you are in-game enable cheats by typing /cheat in chat. Open the handy cheat sheet with the button under the minimap. Check "Global spec control" to get full control of both AIs. There are also a few other useful self-explanatory actions on the cheat sheet.
3. Now you can go ahead and test things out as you wish.
Debug data:
[SQLBagOStuff] MainObjectStash using store ReplicatedBagOStuff
[objectcache] MainWANObjectCache using store EmptyBagOStuff
IP: 216.73.216.207
Start request GET /mediawiki/Sandbox
HTTP HEADERS:
CONTENT-TYPE:
CONTENT-LENGTH: 0
X-ORIGINAL-URL: /mediawiki/Sandbox
X-FORWARDED-FOR: 10.1.4.35
USER-AGENT: Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
HOST: zero-k.info
ACCEPT-ENCODING: gzip, br, zstd, deflate
ACCEPT: */*
VIA: 1.1 squid-proxy-5b5d847c96-m5llr (squid/6.10)
CONNECTION: keep-alive
CACHE-CONTROL: max-age=259200[localisation] LocalisationCache: using store LCStoreDB
[session] SessionManager using store SqlBagOStuff
[DBReplication] Cannot use ChronologyProtector with EmptyBagOStuff
[DBReplication] Wikimedia\Rdbms\LBFactory::getChronologyProtector: request info {
"IPAddress": "216.73.216.207",
"UserAgent": "Mozilla\/5.0 AppleWebKit\/537.36 (KHTML, like Gecko; compatible; ClaudeBot\/1.0; +claudebot@anthropic.com)",
"ChronologyProtection": false,
"ChronologyPositionIndex": 0,
"ChronologyClientId": false
}[DBConnection] Wikimedia\Rdbms\LoadBalancer::lazyLoadReplicationPositions: executed chronology callback.
[DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: connected to database 0 at 'localhost'.
[SQLBagOStuff] Connection mysql object #125 (handle id #119) will be used for SqlBagOStuff
[session] SessionBackend "oig5vbv9rhs9ale5ldvu8h6jaenbvlos" is unsaved, marking dirty in constructor
[session] SessionBackend "oig5vbv9rhs9ale5ldvu8h6jaenbvlos" save: dataDirty=1 metaDirty=1 forcePersist=0
[cookie] already deleted setcookie: "wikidb229_mw__session", "", "1721925322", "/", "", "", "1"
[cookie] already deleted setcookie: "wikidb229_mw_UserID", "", "1721925322", "/", "", "", "1"
[cookie] already deleted setcookie: "wikidb229_mw_Token", "", "1721925322", "/", "", "", "1"
[cookie] already deleted setcookie: "forceHTTPS", "", "1721925322", "/", "", "", "1"
[DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: connected to database 0 at 'localhost'.
Title::getRestrictionTypes: applicable restrictions to [[Sandbox]] are {edit,move}
[ContentHandler] Created handler for wikitext: WikitextContentHandler
[MessageCache] MessageCache using store SqlBagOStuff
[localisation] LocalisationCache::isExpired(en): cache for en expired due to GlobalDependency
[localisation] LocalisationCache::recache: got localisation for en from source
[DBQuery] startAtomic: entering level 0 (LCStoreDB::finishWrite)
[DBQuery] endAtomic: leaving level 0 (LCStoreDB::finishWrite)
[SQLBagOStuff] Connection mysql object #125 (handle id #119) will be used for SqlBagOStuff
[SQLBagOStuff] Connection mysql object #125 (handle id #119) will be used for SqlBagOStuff
[SQLBagOStuff] Connection mysql object #125 (handle id #119) will be used for SqlBagOStuff
[SQLBagOStuff] Connection mysql object #125 (handle id #119) will be used for SqlBagOStuff
[SQLBagOStuff] SqlBagOStuff::lock failed due to timeout for wikidb229-mw_:messages:en.
[SQLBagOStuff] Connection mysql object #125 (handle id #119) will be used for SqlBagOStuff
[SQLBagOStuff] Connection mysql object #125 (handle id #119) will be used for SqlBagOStuff
[MessageCache] MessageCache::load: Loading en... local cache is empty, global cache is expired/volatile, loading from database
ParserFactory: using preprocessor: Preprocessor_Hash
Unstubbing $wgLang on call of $wgLang::_unstub from ParserOptions->__construct
[caches] parser: SqlBagOStuff
Article::view using parser cache: yes
[SQLBagOStuff] Connection mysql object #125 (handle id #119) will be used for SqlBagOStuff
[SQLBagOStuff] Connection mysql object #125 (handle id #119) will be used for SqlBagOStuff
Parser cache options found.
[SQLBagOStuff] Connection mysql object #125 (handle id #119) will be used for SqlBagOStuff
[SQLBagOStuff] Connection mysql object #125 (handle id #119) will be used for SqlBagOStuff
ParserOutput cache found.
Article::view: showing parser cache contents
[DBPerformance] Sub-optimal transaction on DB(s) [localhost (wikidb229-mw_) (TRX#2f8bcb)]:
0 3.435025 query-m: DELETE FROM `mw_l10n_cache` WHERE lc_lang = 'X' [TRX#2f8bcb]
1 0.002970 query-m: INSERT INTO `mw_l10n_cache` (lc_lang,lc_key,lc_value) VALUES ('X') [TRX#2f8bcb]
2 0.003119 query-m: INSERT INTO `mw_l10n_cache` (lc_lang,lc_key,lc_value) VALUES ('X') [TRX#2f8bcb]
3 0.002772 query-m: INSERT INTO `mw_l10n_cache` (lc_lang,lc_key,lc_value) VALUES ('X') [TRX#2f8bcb]
4 0.002772 query-m: INSERT INTO `mw_l10n_cache` (lc_lang,lc_key,lc_value) VALUES ('X') [TRX#2f8bcb]
5 0.002718 query-m: INSERT INTO `mw_l10n_cache` (lc_lang,lc_key,lc_value) VALUES ('X') [TRX#2f8bcb]
6 0.002714 query-m: INSERT INTO `mw_l10n_cache` (lc_lang,lc_key,lc_value) VALUES ('X') [TRX#2f8bcb]
7 0.002678 query-m: INSERT INTO `mw_l10n_cache` (lc_lang,lc_key,lc_value) VALUES ('X') [TRX#2f8bcb]
8 0.002804 query-m: INSERT INTO `mw_l10n_cache` (lc_lang,lc_key,lc_value) VALUES ('X') [TRX#2f8bcb]
9 0.002751 query-m: INSERT INTO `mw_l10n_cache` (lc_lang,lc_key,lc_value) VALUES ('X') [TRX#2f8bcb]
10 0.002980 query-m: INSERT INTO `mw_l10n_cache` (lc_lang,lc_key,lc_value) VALUES ('X') [TRX#2f8bcb]
11 0.003467 query-m: INSERT INTO `mw_l10n_cache` (lc_lang,lc_key,lc_value) VALUES ('X') [TRX#2f8bcb]
12 0.003038 query-m: INSERT INTO `mw_l10n_cache` (lc_lang,lc_key,lc_value) VALUES ('X') [TRX#2f8bcb]
13 0.004013 query-m: INSERT INTO `mw_l10n_cache` (lc_lang,lc_key,lc_value) VALUES ('X') [TRX#2f8bcb]
14 0.002906 query-m: INSERT INTO `mw_l10n_cache` (lc_lang,lc_key,lc_value) VALUES ('X') [TRX#2f8bcb]
15 0.002677 query-m: INSERT INTO `mw_l10n_cache` (lc_lang,lc_key,lc_value) VALUES ('X') [TRX#2f8bcb]
16 0.004522 query-m: INSERT INTO `mw_l10n_cache` (lc_lang,lc_key,lc_value) VALUES ('X') [TRX#2f8bcb]
17 0.001635 query-m: REPLACE INTO `mw_objectcache` (keyname,value,exptime) VALUES ('X')MediaWiki::preOutputCommit: primary transaction round committed
MediaWiki::preOutputCommit: pre-send deferred updates completed
MediaWiki::preOutputCommit: session changes committed
MediaWiki::preOutputCommit: LBFactory shutdown completed
Title::getRestrictionTypes: applicable restrictions to [[Sandbox]] are {edit,move}