The Logger module writes structured debug output toDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/angelballay/pes6_game_physics_mod/llms.txt
Use this file to discover all available pages before exploring further.
D:\pes6_passspeed.log. Logging is disabled by default (static const bool ENABLED = false) to avoid any I/O overhead during normal gameplay. Enable it only when debugging pass behavior or verifying hook installation — every pass power event generates a log entry, which at match pace means hundreds of writes per minute.
Enabling Logging
Functions
WriteLog
text followed by a CRLF (\r\n) line ending to D:\pes6_passspeed.log. Opens the file on every call using CreateFileA with FILE_APPEND_DATA as the access mode, FILE_SHARE_READ as the share mode, and OPEN_ALWAYS as the disposition (creating the file if it does not exist), writes the string and the line terminator using WriteFile, then closes the handle. This append-per-call approach avoids keeping a file handle open across game frames.
If ENABLED = false, the function returns immediately without any file I/O.
LogFormat
vsprintf_s into a 1024-byte stack buffer, then calls WriteLog with the result. Accepts a printf-style format string and a variadic argument list.
If ENABLED = false, the function returns immediately before any formatting work is done.
Log File Path
static const char* in Logger.cpp:
Example Log Output
The following shows a representative session log based on the actual format strings indllmain.cpp and PassPower.cpp:
Log Entry Reference
| Prefix | Source | Description |
|---|---|---|
[CTX] | dllmain.cpp LogCurrentContext | Pass context: passer/receiver addresses, grid positions, discrete distance |
[PWR] | dllmain.cpp monitor loop | Pass power event: original and modified EDI, ball state, boost mode, geometry data |
[HOTKEY] | HotkeyToggle.cpp | Toggle event with new state |
[KSO] | KitserverOverlay.cpp | Kitserver export resolution and overlay status |
[ERROR] | MemoryPatch.cpp, CheckBytes | Byte mismatch or VirtualProtect failure during hook installation |
[OK] | dllmain.cpp | Successful hook installation or subsystem startup |