Skip to content

Instantly share code, notes, and snippets.

View badosu's full-sized avatar

Amadeus Folego badosu

View GitHub Profile
@badosu
badosu / how_to_send_messages_from_synced_to_ui.markdown
Last active May 19, 2025 23:03
Badosus list of random guides

I'll use an example from BAR, BAR in this example in many places has code that does what you need on a higher level, this is not a problem in fact it's a good thing. I just want you to keep in mind this is not exactly what we'd do in terms of pure Recoil usage, the important bit is identifying the problem ("I need to send a notification something happened in synced code to UI") and what kind of things are involved in getting a solution.

  • BAR wants to notify UI that it received from engine that units were given from a team to another here
  • To do that, in the synced part of the gadget, it uses SendToUnsynced("NotificationEvent", "UnitsReceived", tostring(player)), I won't explain this usage, read the second link I sent you on the recoil engine guide. Or look for other places in BAR code where this is used.
  • Notice in the unsynced part of the gadget it does
@badosu
badosu / how-to-tweak.md
Last active June 1, 2025 16:55
Tweak Options Guide
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"
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
[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
[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

[Editor]
FontFamily = "Iosevka Term"
FontSize = 14
Linespace = 3
ExtCmdline = false
ExtPopupmenu = false
ExtTabline = true
DrawBorder = true
IndentGuide = true
/**
* 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);
/**
* 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);