Skip to content

Instantly share code, notes, and snippets.

Avatar

Amadeus Folego badosu

View GitHub Profile
View Snippet to live test tweaks.md

The following lua code can be pasted onto a repl service to test your changes, for example: https://replit.com/languages/lua

The following example defines a UnitDefs containing only the banisher defs for testing, but you can include others:

local _tl_compat; if (tonumber((_VERSION or ''):match('[%d.]*$')) or 0) < 5.3 then local p, m = pcall(require, 'compat53.module'); if p then _tl_compat = m end end; local math = _tl_compat and _tl_compat.math or math; local string = _tl_compat and _tl_compat.string or string; local table = _tl_compat and _tl_compat.table or table
local inspect = {Options = {}, }

inspect.KEY = setmetatable({}, { __tostring = function() return 'inspect.KEY' end })
inspect.METATABLE = setmetatable({}, { __tostring = function() return 'inspect.METATABLE' end })
View error
This file has been truncated, but you can view the full file.
[t=00:00:00.147770] Warning: [OPENGL_DEBUG] id=1 source=SHADER_COMPILER type=OTHER severity=UNKNOWN msg="Shader Stats: SGPRS: 8 VGPRS: 32 Code Size: 16 LDS: 0 Scratch: 0 Max Waves: 8 Spilled SGPRs: 0 Spilled VGPRs: 0 PrivMem VGPRs: 0"
[t=00:00:00.147933] Warning: [OPENGL_DEBUG] id=1 source=SHADER_COMPILER type=OTHER severity=UNKNOWN msg="Shader Stats: SGPRS: 24 VGPRS: 12 Code Size: 248 LDS: 0 Scratch: 0 Max Waves: 8 Spilled SGPRs: 0 Spilled VGPRs: 0 PrivMem VGPRs: 0"
[t=00:00:00.231972] Warning: [OPENGL_DEBUG] id=1 source=SHADER_COMPILER type=OTHER severity=UNKNOWN msg="Shader Stats: SGPRS: 16 VGPRS: 8 Code Size: 40 LDS: 0 Scratch: 0 Max Waves: 8 Spilled SGPRs: 0 Spilled VGPRs: 0 PrivMem VGPRs: 0"
[t=00:00:00.232192] Warning: [OPENGL_DEBUG] id=1 source=SHADER_COMPILER type=OTHER severity=UNKNOWN msg="Shader Stats: SGPRS: 8 VGPRS: 28 Code Size: 20 LDS: 0 Scratch: 0 Max Waves: 8 Spilled SGPRs: 0 Spilled VGPRs: 0 PrivMem VGPRs: 0"
View gist:286ac26e182111cb9ff5a5b2440f907c
This file has been truncated, but you can view the full file.
[t=00:00:00.006935] [DataDirLocater::FindWriteableDataDir] using writeable data-directory "/home/badosu/Documents/Beyond All Reason/"
[t=00:00:00.006936] Using writeable configuration source: "/home/badosu/Documents/Beyond All Reason/springsettings.cfg"
[t=00:00:00.006937] Using additional read-only configuration source: "/home/badosu/Documents/Beyond All Reason/engine/104.0.1-1759-g77857fe bar/springsettings.cfg"
[t=00:00:00.006938] LogOutput initialized. Logging to /home/badosu/Documents/Beyond All Reason/infolog.txt
[t=00:00:00.006965] ============== <Log Sections ([A]vailable, [E]nabled)> ==============
[t=00:00:00.006971]
[A] ArchiveScanner
[A] AutohostInterface
[A] BumpWater
View gist:2db81d96df5a147516ad32974db0a2c7
[t=00:00:00.005081] [DataDirLocater::FindWriteableDataDir] using writeable data-directory "/home/badosu/Documents/Beyond All Reason/"
[t=00:00:00.005081] Using writeable configuration source: "/home/badosu/Documents/Beyond All Reason/springsettings.cfg"
[t=00:00:00.005082] Using additional read-only configuration source: "/home/badosu/Documents/Beyond All Reason/engine/104.0.1-1759-g77857fe bar/springsettings.cfg"
[t=00:00:00.005082] LogOutput initialized. Logging to /home/badosu/Documents/Beyond All Reason/infolog.txt
[t=00:00:00.005100] ============== <Log Sections ([A]vailable, [E]nabled)> ==============
[t=00:00:00.005104]
[A] ArchiveScanner
[A] AutohostInterface
[A] BumpWater
[A] CSMFGroundTextures
View gist:67ebe9f8db03128de9d7d4ca2e7bfbf9
[t=00:00:00.005670] [DataDirLocater::FindWriteableDataDir] using writeable data-directory "/home/badosu/Documents/Beyond All Reason/"
[t=00:00:00.005671] Using writeable configuration source: "/home/badosu/Documents/Beyond All Reason/springsettings.cfg"
[t=00:00:00.005671] Using additional read-only configuration source: "/home/badosu/Documents/Beyond All Reason/engine/104.0.1-1758-g3223197 bar/springsettings.cfg"
[t=00:00:00.005672] LogOutput initialized. Logging to /home/badosu/Documents/Beyond All Reason/infolog.txt
[t=00:00:00.005697] ============== <Log Sections ([A]vailable, [E]nabled)> ==============
[t=00:00:00.005702]
[A] ArchiveScanner
[A] AutohostInterface
[A] BumpWater
[A] CSMFGroundTextures
View gist:093cab42c783b95b020b1494403f445b
[Editor]
FontFamily = "Iosevka Term"
FontSize = 14
Linespace = 3
ExtCmdline = false
ExtPopupmenu = false
ExtTabline = true
DrawBorder = true
IndentGuide = true
View lobby.js
/**
* Used for the gamelist-filtering.
*/
const g_MapSizes = prepareForDropdown(g_Settings && g_Settings.MapSizes);
/**
* Used for the gamelist-filtering.
*/
const g_MapTypes = prepareForDropdown(g_Settings && g_Settings.MapTypes);
View lobby.js
/**
* Used for the gamelist-filtering.
*/
const g_MapSizes = prepareForDropdown(g_Settings && g_Settings.MapSizes);
/**
* Used for the gamelist-filtering.
*/
const g_MapTypes = prepareForDropdown(g_Settings && g_Settings.MapTypes);
View session.js
const g_IsReplay = Engine.IsVisualReplay();
const g_CivData = loadCivData(false, true);
const g_Ceasefire = prepareForDropdown(g_Settings && g_Settings.Ceasefire);
const g_MapSizes = prepareForDropdown(g_Settings && g_Settings.MapSizes);
const g_MapTypes = prepareForDropdown(g_Settings && g_Settings.MapTypes);
const g_PopulationCapacities = prepareForDropdown(g_Settings && g_Settings.PopulationCapacities);
const g_StartingResources = prepareForDropdown(g_Settings && g_Settings.StartingResources);
const g_VictoryDurations = prepareForDropdown(g_Settings && g_Settings.VictoryDurations);