hry-core is a small framework that provides many useful tools for creating plugins for Euro Truck Simulator 2 and American Truck Simulator
-
UI and custom rendering based on Dear ImGui (supports DirectX 11 and OpenGL renderer)
-
Easy API for creating settings and keybinds
-
SCS telemetry wrapped with modern C++
-
Access to channels for truck, multiple trailer and job
-
Gameplay events
-
Configuration callback for truck, multiple trailers and more
-
-
Logger
-
Easy access to mouse, keyboard and joystick (but I suggest using keybinds instead)
-
API for creating detour and hooks
-
And much more!
The idea was to create a simple tool (only for me) which provides simple API for rendering and inputs. In the process of developing it, I was feeling that I can do better so I keep adding more and more features. Now I am in a point where I'm almost satisfied with the API, and I'm ready to publish first alpha.
SDK you can download here.
Basic documentation is in hpp files, HTML version is here
Usage of API you can find here: example and hry-sic
Tutorials are in progress
This mod isn't like FiveM or MTA:SA, you still have to reverse engineer and hook the game on your own, to help you with that, hry-core provides some useful tools (Detour, Pattern scanning, vtable hooks)
(This section isn't complete)
hry-core publicly available is compiled with clang-cl (Clang 11 rc5 and MSVC 19.27), so you can link with it
- Refactor the API and code
- Documentation and tutorials
- support for loading images
- Support for XInput (figure out how to identify devices)
- API for controller's axis (easy binding and usage like keybinds)