- IsCharPrintable
- WidthOfTextLine
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
### FUNCTION START ### | |
void UndefinedFunction_1000a950(void) | |
{ |
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 t2 = debug.getregistry()[2] | |
-- consul.log:info(consul.pretty(debug.getfenv(t2))) | |
{ | |
["BOOL_Stop_All_Attacking_Closest"] = false, | |
["Battle_Manager_Battle_Results"] = "function: 569B8978", | |
["CONST_WATCH_INTERVAL"] = 2000, | |
["Esc_Key_Pressed"] = "function: 569B88D0", | |
["PATROL_MANAGER_COULDNT_FIND_TARGET"] = 12, | |
["PATROL_MANAGER_DEFAULT_GUARD_RADIUS"] = 0, | |
["PATROL_MANAGER_DEFAULT_INTERCEPT_TIME"] = 10000, |
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
function log_ui_tree(component, depth) | |
depth = depth or 0 | |
local indent = string.rep("\t", depth) | |
-- Log component name with indentation | |
consul.log:_write_to_file(indent .. tostring(component:Id())) | |
-- Get child count | |
local count = component:ChildCount() |
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
=============== | |
Sets up cindy live playback | |
cindy_playback <cindy_xml_path> <clear_animated_scenes on completion true/false> <expire_camera_on_completion true/false> | |
cindy live | |
cindy_playback | |
=============== | |
record frame times to a file | |
frame_rate_log <log filename> | |
battle | |
frame_rate_log |
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 re | |
from time import sleep | |
import ghidra | |
import ghidra.util.UndefinedFunction.findFunction | |
def collect_and_print_matches(): | |
pattern = r'L"([^"]+)"' # Regex to capture wide string literals | |
refs = getReferencesTo(toAddr(0x112A7EB0)) | |
decomp = ghidra.app.decompiler.DecompInterface() |
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
-- Helper function to get the faction list from the game model | |
function getFactionList() | |
return scripting.game_interface:model():world():faction_list() | |
end | |
-- Helper function to get the region list from a faction | |
function getRegionList(faction) | |
return faction:region_list() | |
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
# pc | |
[Unit] | |
Description=AutoSSH tunnel for PC1 to EC2 | |
After=network.target | |
[Service] | |
User=buk | |
ExecStart=/usr/bin/autossh -i /home/buk/.ssh/ec2.pem -M 0 -N -R 2222:localhost:22 ec2-user@<ip> -o ServerAliveInterval=60 -o ServerAliveCountMax=3 -o ExitOnForwardFailure=yes | |
Restart=always | |
RestartSec=1min |
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
find_library(NCURSES_LIB NAMES ncursesw PATHS /mingw64/lib REQUIRED) | |
find_library(PANEL_LIB NAMES panelw PATHS /mingw64/lib REQUIRED) |
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
############################################################################################################### | |
##### ProFi, a lua profiler. This profile was generated on: 02/03/25 23:45:27 | |
##### ProFi is created by Luke Perkin 2012 under the MIT Licence, www.locofilm.co.uk | |
##### Version 1.3. Get the most recent version at this gist: https://gist.github.com/2838755 | |
############################################################################################################### | |
| TOTAL TIME = 75.074005 | |
| FILE : FUNCTION : LINE : TIME : RELATIVE : CALLED | | |
| [C] : remove_effect_bundle_from_characters_force : -1 : 17.858 : 23.79% : 24019 | | |
| [string "c:\gam |
NewerOlder