Skip to content

Instantly share code, notes, and snippets.

View gnalvesteffer's full-sized avatar

Gavin Alvesteffer gnalvesteffer

View GitHub Profile
@gnalvesteffer
gnalvesteffer / Exanima-MoreItemsInPracticeArena.cs
Last active February 6, 2022 09:07
Exanima Mod | Adds more items to the practice arena
void Main()
{
// Get process.
var gameProcess = Process.GetProcessesByName("Exanima").First();
var externalMemory = new ExternalMemory(gameProcess);
var textSectionBaseAddress = 0x401000; // Exanima.exe.text
// Arsenal info.
var totalItemsToLoad = ArsenalItemIds.Length;
@gnalvesteffer
gnalvesteffer / main.lua
Created March 20, 2021 02:22
Teardown Message Scheduler
message_scheduler = {
messages = {},
tick = function()
local current_time = GetTime()
local next_messages_state = {}
for _, timed_message in ipairs(message_scheduler.messages) do
if current_time >= timed_message.time then
DebugPrint(timed_message.message)
else
@gnalvesteffer
gnalvesteffer / main.lua
Created March 16, 2021 23:14
Punished Bernadetta's Minimap w/ Positional Color Caching
function init()
grassColors = {
{99 / 255, 146 / 255, 103 / 255},
{84 / 255, 127 / 255, 86 / 255},
{70 / 255, 107 / 255, 69 / 255}
}
map_cache = {}
resolution = 32
@gnalvesteffer
gnalvesteffer / main.lua
Last active February 25, 2021 18:48
Teardown | Actively Awaken Bodies Near Player
function init()
-- configuration
bodies_to_process_per_tick = 10 -- bodies to process per tick
chunk_refresh_interval = 10 -- the interval (in seconds) to refresh the chunk (only if current chunk has finished processing)
is_debug = true
-- chunk state
chunk_position = GetPlayerTransform().pos
chunk_bodies = {}
chunk_size = 50
Game (0.6.2 (patch 1)): "teardown.exe"+41CB00
0x0 // Window Width (int)
0x4 // Window Height (int)
0x18 // Loading Screen Duration (float -- setting this while already ingame will show the loading screen for the specified seconds)
0x40 // Scene (pointer)
0x88 // Diagnostics Debug UI
0xA0 // Player (pointer)
0x144 // Simulation Interval (float -- default to 0.016 (60hz))
Diagnostics Debug UI: Game+0x88
@gnalvesteffer
gnalvesteffer / All Referenced Strings For Kingdom Come: Deliverance
Created February 25, 2018 22:23
All Referenced Strings For Kingdom Come: Deliverance
This file has been truncated, but you can view the full file.
Found by Zooloo75 (http://steamcommunity.com/id/zooloo75/)
You can find console commands in this table. Search for strings that start with "wh_" for example to find Warhorse commands.
----------------------------------------------------------------------------------------------------------------------------
Address Disassembly String
00007FFD6AA89930 lea rdx,qword ptr ds:[7FFD6BDE4358] " uvOrigin.x = %f, uvOrigin.y = %f\n"
00007FFD6AAB1B15 lea rdx,qword ptr