Compare commits
1 Commits
v0.1.3
...
f7b488cbf7
| Author | SHA1 | Date | |
|---|---|---|---|
| f7b488cbf7 |
@@ -2,21 +2,22 @@
|
|||||||
|
|
||||||
## Project Overview
|
## 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
|
## Client and Debug Kits
|
||||||
|
|
||||||
- StarWarsG.exe -- the binary shipped with the game for all clients. PDB unavailable.
|
- 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.
|
- 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
|
## DLL Hook
|
||||||
|
|
||||||
- Uses MinHook to create the DLL hook into the game via powerprof.dll
|
- 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
|
## 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
|
## Adding a New Lua Function
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user