70b5191fcdb7c5605f6a58a66f2b1872069f7039
FoCAPI
A powrprof.dll hook which adds custom Lua functions to Forces of Corruption.
Usage
Drop powrprof.dll and MinHooks.x64.dll into the /corruption/ folder of your Empire at War installation.
Works with both the debug kit StarWarsI.exe and client version StarWarsG.exe of the Steam version.
Not supported on disc / GoG versions (sorry).
Functions
- Global
WriteToFile(file, text)- Appends a line of text specified file in the game directory.- Parameter
filestring - The file name to append. - Parameter
textstring - The text line to append.
- Parameter
- Global
Get_All_Players()- Returns a 1-based Lua table of all active players, iterable withipairs(). Each entry is the same PlayerWrapper type returned byFind_Player(). - Global
Add_Tutorial_Text(key, text, duration, r, g, b, a)- Adds a line to the tutorial text pane.- Parameter
key: string - The key used to identify this line, later can be used to update or remove the text. - Parameter
text: string - The text to display. - Parameter
durationnumber? - The duration to display the text. Default: -1 (infinite) - Parameter
rnumber? - The red color component. Default: 1 - Parameter
gnumber? - The green color component. Default: 1 - Parameter
bnumber? - The blue color component. Default: 1 - Parameter
anumber? - The alpha component. Default: 1
- Parameter
- Global
Remove_Tutorial_Text(key)- Removes the line associated with the key.- Parameter
keystring - The key used to identify the line when it was added.
- Parameter
Description
Languages
C++
98%
C
2%