Physics simulator based on Assetto Corsa.
- Windows
- Microsoft Visual Studio 2022
- C++ 20
- C++ desktop app development package
- Windows SDK
- Assetto Corsa
- Detours
- ZeroMQ (libzmq for C)
- acs_cosim_interface (Already included in a submodule)
Detours:
- Clone the repository
- Inside of
Dependencies
create a folderDetours
- Clone the repository Detours inside of
Dependencies/Detours
- Build Detours referring to the documentation, at the end of the process you should be able to find the folder
Dependencies/Detours/lib.X64
ZeroMQ:
- Clone ZeroMQ in the
Dependencies
folder - Build however you want (vcpkg recommended, from the zmqlib README)
Acs_cosim_interface
- Open x64 Native Tools Command Prompt for VS with administrator privileges
- Cd to the
acs_cosim_interface
folder and create anout
folder - Get inside the
out
folder and runcmake ..
- When that has finished run
msbuild INSTALL.vcproj
- Open the
MMR_Simulator_DLL
solution in Visual Studio - Build the solution (Menu -> Build -> Build Solution)
- Open the
Launcher
solution in Visual Studio - Simply start the program by pressing the play button or
Ctrl-F5
Now you should see two terminals being opened and then Assetto Corsa launches, then gets stuck waiting for commands from the Simulator ROS Node.
If building MMR_Simulator_DLL
fails, and the message refers to ZeroMQ, you probably need to change the path of where built ZeroMQ files are:
- go to
acs_cosim_interface
folder - open
CMakeLists.txt
in an editor - change the path of ZeroMQ
If starting the program raises an error requiring for some dll, find the dll path in the build directories and add it to the PATH environment variable.