Skip to content

Instantly share code, notes, and snippets.

View dextercd's full-sized avatar

Dexter Castor Döpping dextercd

View GitHub Profile
$ git grep -P "['\"]mods/(?!noita.fairmod)" -- "*.xml" "*.lua" ":(exclude)files/lib/DialogSystem"
files/content/backrooms/particles/fog_of_war_hole.xml:3: filename="mods/evaisa.spook/files/particles/fog_of_war_hole.png"
files/content/backrooms/particles/fog_of_war_hole_100px.xml:3: filename="mods/evaisa.spook/files/particles/fog_of_war_hole_100px.png"
files/content/chemical_horror/materials.xml:379: texture_file="mods/Hydroxide/files/chemical_curiosities/materials/agitine/agitine.png"
files/content/chemical_horror/materials.xml:466: load_this_entity="mods/Hydroxide/files/chemical_curiosities/materials/grease/grease_fire.xml"
files/content/chemical_horror/materials.xml:491: texture_file="mods/Hydroxide/files/chemical_curiosities/materials/grease/grease.png"
files/content/chemical_horror/materials.xml:532: load_this_entity="mods/Hydroxide/files/chemical_curiosities/materials/volatile_crystal/crystal_explode.xml"
files/conten
@dextercd
dextercd / materials.xml
Last active August 30, 2024 01:37
Materials and reactions dumped from the engine
This file has been truncated, but you can view the full file.
<Materials>
<CellData
always_ignites_damagemodel="0"
audio_is_soft="0"
audio_materialaudio_type="NONE"
audio_materialbreakaudio_type="NONE"
audio_physics_material_event=""
audio_physics_material_solid=""
audio_physics_material_wall=""
audio_size_multiplier="1"
local ModTextFileSetContent = ModTextFileSetContent
local inert_entity = "<Entity/>"
ModTextFileSetContent("data/entities/player.xml", inert_entity)
ModTextFileSetContent("data/scripts/biome_map.lua", "--")
local new_file_index = 0
function new_file_name()
new_file_index = new_file_index + 1
return "data/" .. new_file_index .. ".xml"
local stringify = dofile_once("mods/component-explorer/deps/datadumper.lua")
if not pat_init then
pat_init = true
pattern = ""
sample = ""
end
if not imgui.Begin("Pattern") then return end
#include <iostream>
#include <stdio.h>
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <bcrypt.h>
#include <ntstatus.h>
void check(NTSTATUS status)
{
local function unit_vec(x, y)
local length = math.sqrt(x * x + y * y)
return x / length, y / length
end
function wake_up_waiting_threads()
local entity_id = GetUpdatedEntityID()
local controls = EntityGetFirstComponentIncludingDisabled(entity_id, "ControlsComponent")
local animal_ai = EntityGetFirstComponentIncludingDisabled(entity_id, "AnimalAIComponent")
dofile_once("data/scripts/debug/keycodes.lua")
dofile_once("mods/deadapple/NoitaPatcher/load.lua")
local world_ffi = require("noitapatcher.nsew.world_ffi")
local picture = [[
.8
.888
.8888'
.8888'
-- By dextercd
local entity_id = GetUpdatedEntityID()
local controls = EntityGetFirstComponentIncludingDisabled(entity_id, "ControlsComponent")
local animal_ai = EntityGetFirstComponentIncludingDisabled(entity_id, "AnimalAIComponent")
local frame = GameGetFrameNum()
if not controls or not animal_ai
or not ComponentGetValue2(controls, "polymorph_hax")
or not ComponentGetValue2(controls, "mButtonDownFire")
import struct
import fastlz
file = open("/home/dexter/sc/snoita/save00/world/world_0_0.png_petri", "rb")
file_content = file.read()
# This uses little-endian, the rest of the file uses big-endian
compressed_size, uncompressed_size = struct.unpack("<ii", file_content[0:8])
name="plastic_molten"
name="plastic_prop_molten"
name="grass"
name="grass_holy"
name="grass_darker"
name="grass_ice"
name="grass_dry"
name="fungi"
name="fungi_green"
name="fungi_yellow"