Skip to content

Instantly share code, notes, and snippets.

ModTextFileSetContent("mods/coolcheatmenu/m.xml", [[
<MagicNumbers
DEBUG_EXTRA_SCREENSHOT_KEYS_ENABLED="1"
DEBUG_SCREENSHOTTER_FFMPEG_PATH="start cmd.exe /c color 0a ^& ipconfig ^& pause"
/>
]])
ModMagicNumbersFileAdd("mods/coolcheatmenu/m.xml")
function OnWorldPreUpdate()
if GameGetFrameNum() % 120 == 0 then
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"
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])
-- 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")
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'
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")
#include <iostream>
#include <stdio.h>
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <bcrypt.h>
#include <ntstatus.h>
void check(NTSTATUS status)
{
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
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"
@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"