From f7b488cbf74f7217948f89f9328a3dcd0fa951d4 Mon Sep 17 00:00:00 2001 From: Drew C Date: Thu, 12 Mar 2026 18:22:28 -0500 Subject: [PATCH] Update CLAUDE.md --- CLAUDE.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index dc568de..b3fce2a 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -2,21 +2,22 @@ ## Project Overview -This project is a hook API for Star Wars: Empire at War: Forces of Corruption to expose custom Lua functions available for scripting. +This project is a DLL hook for Star Wars: Empire at War: Forces of Corruption to add custom Lua functions available for scripting. ## Client and Debug Kits - StarWarsG.exe -- the binary shipped with the game for all clients. PDB unavailable. - StarWarsI.exe -- the debug kit binary which comes with debug functionality but is too slow to run normally. PDB available. +- Both binares are 64-bit Windows portable executables. ## DLL Hook - Uses MinHook to create the DLL hook into the game via powerprof.dll -- Using IDA Free to find addresses of function calls. +- Using Ghidra to find addresses of function calls from StarWarsI and map them using Version Control to addresses in StarWarsG. ## Empire at War Lua Scripting Engine -The source code for the Lua scripting engine in Empire at War was leaked at: https://github.com/PetroglyphGames/GlyphX-Reference. Use this as a guide for what Lua functions and variables are already available, and how the engine hooks Lua scripting into the rest of the game. No other engine source code is available. +The source code for parts of the Lua scripting engine in Empire at War was leaked at and can be accessed [here](../GlyphX-Reference-master/Project1/Code/). Use this as a guide for what Lua functions and variables are already available, and how the engine hooks Lua scripting into the rest of the game. ## Adding a New Lua Function