This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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]) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- 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") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream> | |
| #include <stdio.h> | |
| #define WIN32_LEAN_AND_MEAN | |
| #include <windows.h> | |
| #include <bcrypt.h> | |
| #include <ntstatus.h> | |
| void check(NTSTATUS status) | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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" |
This file has been truncated, but you can view the full file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <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" |