|
RigsofRods
Soft-body Physics Simulation
|
Go to the documentation of this file.
34 #include <fmt/format.h>
35 #include <OgreStringConverter.h>
40 #define ROR_ASSERT(_EXPR) assert(_EXPR)
42 #define CHARACTER_ANIM_NAME_LEN 10 // Restricted for networking
45 #define RGN_TEMP "Temp"
46 #define RGN_CACHE "Cache"
47 #define RGN_REPO "Repo"
48 #define RGN_CONFIG "Config"
49 #define RGN_CONTENT "Content"
50 #define RGN_SAVEGAMES "Savegames"
51 #define RGN_MANAGED_MATS "ManagedMaterials"
52 #define RGN_SCRIPTS "Scripts"
53 #define RGN_LOGS "Logs"
56 #define TOSTRING(x) Ogre::StringConverter::toString(x)
57 #define PARSEINT(x) Ogre::StringConverter::parseInt(x)
58 #define PARSEREAL(x) Ogre::StringConverter::parseReal(x)
59 #define HydraxLOG(msg) Ogre::LogManager::getSingleton().logMessage("[Hydrax] " + Ogre::String(msg));
564 void Log(
const char* msg);
569 inline void LOG(
const char* msg) {
RoR::Log(msg); }
570 inline void LOG(std::string
const & msg) {
RoR::Log(msg.c_str()); }
@ MSG_EDI_MODIFY_PROJECT_REQUESTED
Payload = RoR::UpdateProjectRequest* (owner)
CVar * io_invert_orbitcam
@ MSG_SIM_LOAD_TERRN_REQUESTED
CVar * diag_rig_log_node_import
@ SANDSTORM
Sandstorm (fastest)
void CreateScriptEngine()
CVar * sim_quickload_dialog
@ MSG_SIM_REMOVE_FREEFORCE_REQUESTED
Payload = RoR::FreeForceID_t* (owner)
CVar * cli_force_cache_update
ContentManager * GetContentManager()
SoundScriptManager * GetSoundScriptManager()
@ MSG_GUI_SHOW_MESSAGE_BOX_REQUESTED
Payload = MessageBoxConfig* (owner)
CVar * sim_replay_stepping
CVar * diag_warning_texture
LanguageEngine * GetLanguageEngine()
CVar * gfx_speedo_imperial
Global forward declarations.
void CreateCameraManager()
@ MSG_SIM_MODIFY_ACTOR_REQUESTED
Payload = RoR::ActorModifyRequest* (owner)
CVar * mp_hide_net_labels
CVar * diag_preset_vehicle
CVar * cli_resume_autosave
@ MSG_EDI_RELOAD_BUNDLE_REQUESTED
Payload = RoR::CacheEntryPtr* (owner)
@ MSG_APP_REINIT_INPUT_REQUESTED
@ MSG_SIM_SCRIPT_CALLBACK_QUEUED
Payload = RoR::ScriptCallbackArgs* (owner)
@ MSG_NET_USER_DISCONNECT
CameraManager * GetCameraManager()
CVar * app_skip_main_menu
GUIManager * GetGuiManager()
CVar * diag_hide_broken_beams
@ MSG_EDI_CREATE_PROJECT_REQUESTED
Payload = RoR::CreateProjectRequest* (owner)
CVar * sim_soft_reset_mode
@ MSG_EDI_UNLOAD_BUNDLE_REQUESTED
Payload = RoR::CacheEntryPtr* (owner)
void HandleMsgQueueException(MsgType from)
@ HANDLEGENERICEXCEPTION_DEFAULT
CVar * gfx_fixed_cam_tracking
@ MSG_SIM_UNLOAD_TERRN_REQUESTED
CVar * gfx_skidmarks_mode
CVar * cli_preset_vehicle
AppContext * GetAppContext()
@ MSG_GUI_CLOSE_SELECTOR_REQUESTED
CVar * sim_live_repair_interval
Hold EV_COMMON_REPAIR_TRUCK to enter LiveRepair mode. 0 or negative interval disables.
Truck file format(technical spec)
@ MSG_SIM_UNPAUSE_REQUESTED
CVar * diag_simple_materials
@ MSG_NET_CONNECT_STARTED
@ MSG_GUI_DOWNLOAD_PROGRESS
CVar * app_force_cache_update
void HandleGenericException(const std::string &from, BitMask_t flags)
CVar * mp_join_on_startup
CVar * gfx_particles_mode
CVar * gfx_flexbody_cache
@ EDITOR_MODE
Hacky, but whatever... added by Ulteq, 2016.
CVar * gfx_enable_videocams
void CreateSoundScriptManager()
OverlayWrapper * GetOverlayWrapper()
const char * MsgTypeToString(MsgType type)
void LogFormat(const char *format,...)
Improved logging utility. Uses fixed 2Kb buffer.
CVar * gfx_enable_rtshaders
CVar * io_analog_sensitivity
CVar * diag_trace_globals
CVar * app_rendersys_override
@ MSG_NET_REFRESH_SERVERLIST_FAILURE
Payload = RoR::CurlFailInfo* (owner)
CVar * gfx_fov_external_default
CVar * sim_no_self_collisions
CVar * gfx_static_cam_fov_exp
CVar * cli_preset_spawn_rot
@ MSG_APP_LOAD_SCRIPT_REQUESTED
Payload = RoR::LoadScriptRequest* (owner)
CVar * diag_hide_beam_stress
CVar * app_disable_online_api
CVar * gfx_texture_filter
@ MSG_NET_CONNECT_REQUESTED
CVar * app_extra_mod_path
CVar * io_ffb_master_gain
@ MSG_APP_DISPLAY_WINDOWED_REQUESTED
CVar * diag_preset_spawn_rot
@ FULL_HQ
Reflection + refraction (quality optimized)
ScriptEngine * GetScriptEngine()
CVar * diag_hide_wheel_info
CVar * mp_cyclethru_net_actors
Include remote actors when cycling through with CTRL + [ and CTRL + ].
@ ALL_VEHICLES_HEAD_ONLY
All vehicles, main lights.
@ HANDLEGENERICEXCEPTION_SCRIPTEVENT
CVar * audio_enable_creak
CVar * sim_tuning_enabled
@ MSG_APP_DISPLAY_FULLSCREEN_REQUESTED
@ MSG_NET_REFRESH_SERVERLIST_SUCCESS
Payload = GUI::MpServerInfoVec* (owner)
@ MSG_GUI_DOWNLOAD_FINISHED
@ MANUAL_STICK
Fully manual: stick shift.
CVar * audio_master_volume
CVar * flexbody_defrag_enabled
@ MSG_NET_FETCH_AI_PRESETS_FAILURE
Description = message.
std::string ToLocalizedString(SimGearboxMode e)
CVar * gfx_window_videocams
CVar * gfx_alt_actor_materials
CVar * io_ffb_camera_gain
CVar * gfx_speedo_digital
@ CAELUM
Caelum (best looking, slower)
CVar * diag_log_beam_break
CVar * app_config_long_names
CVar * flexbody_defrag_prog_up_penalty
@ ALL_VEHICLES_ALL_LIGHTS
All vehicles, all lights.
@ MSG_SIM_SEAT_PLAYER_REQUESTED
Payload = RoR::ActorPtr (owner) | nullptr.
@ MSG_APP_MODCACHE_PURGE_REQUESTED
CVar * io_arcade_controls
@ MSG_GUI_MP_CLIENTS_REFRESH
CVar * sys_thumbnails_dir
CVar * diag_log_beam_trigger
CVar * io_ffb_center_gain
@ FULL_FAST
Reflection + refraction (speed optimized)
CVar * mp_server_password
CVar * flexbody_defrag_reorder_indices
@ BOOTSTRAP
Initial state.
void DestroyOverlayWrapper()
@ MSG_NET_REFRESH_REPOLIST_FAILURE
Payload = RoR::CurlFailInfo* (owner)
CVar * ui_show_live_repair_controls
@ MSG_GUI_OPEN_SELECTOR_REQUESTED
Payload = LoaderType* (owner), Description = GUID | empty.
CVar * diag_log_beam_deform
CVar * cli_custom_scripts
CVar * flexbody_defrag_reorder_texcoords
@ MSG_SIM_HIDE_NET_ACTOR_REQUESTED
Payload = ActorPtr* (owner)
LoaderType
< Search mode for ModCache::Query() & Operation mode for GUI::MainSelector
@ MSG_GUI_REFRESH_TUNING_MENU_REQUESTED
@ MSG_SIM_ADD_FREEFORCE_REQUESTED
Payload = RoR::FreeForceRequest* (owner)
MsgType
Global gameplay message loop, see struct Message in GameContext.h.
@ MSG_NET_OPEN_RESOURCE_SUCCESS
Payload = GUI::ResourcesCollection* (owner)
CVar * mp_hide_own_net_label
@ SEMI_AUTO
Manual shift with auto clutch.
@ CURR_VEHICLE_HEAD_ONLY
Only current vehicle, main lights.
@ MSG_APP_MODCACHE_LOAD_REQUESTED
GameContext * GetGameContext()
@ MSG_APP_SCREENSHOT_REQUESTED
CVar * gfx_fov_internal_default
@ MSG_NET_REFRESH_REPOLIST_SUCCESS
Payload = GUI::ResourcesCollection* (owner)
CVar * gfx_envmap_enabled
CVar * io_ffb_stress_gain
@ MSG_SIM_TELEPORT_PLAYER_REQUESTED
Payload = Ogre::Vector3* (owner)
void CreateOverlayWrapper()
CVar * flexbody_defrag_invert_lookup
@ MSG_EDI_ENTER_TERRN_EDITOR_REQUESTED
@ MSG_EDI_LOAD_BUNDLE_REQUESTED
Payload = RoR::CacheEntryPtr* (owner)
CVar * diag_log_console_echo
@ MSG_NET_CONNECT_SUCCESS
@ MANUAL
Fully manual: sequential shift.
CVar * cli_preset_terrain
CVar * diag_preset_spawn_pos
DiscordRpc * GetDiscordRpc()
CVar * gfx_shadow_quality
CVar * io_input_grab_mode
@ MSG_NET_FETCH_AI_PRESETS_SUCCESS
Description = JSON string.
CVar * sim_realistic_commands
CVar * io_blink_lock_range
CacheSystem * GetCacheSystem()
@ SKYX
SkyX (best looking, slower)
CVar * ui_show_vehicle_buttons
CVar * gfx_sky_time_speed
CVar * app_screenshot_format
CVar * diag_preset_veh_config
CVar * app_recent_scripts
@ MSG_EDI_DELETE_PROJECT_REQUESTED
Payload = RoR::CacheEntryPtr* (owner)
@ MSG_SIM_ACTOR_LINKING_REQUESTED
Payload = RoR::ActorLinkingRequest* (owner)
@ MSG_GUI_OPEN_MENU_REQUESTED
CVar * diag_auto_spawner_report
CVar * io_analog_smoothing
CVar * diag_rig_log_node_stats
@ DISABLED
Not connected for whatever reason.
CVar * cli_preset_spawn_pos
@ MSG_EDI_LEAVE_TERRN_EDITOR_REQUESTED
@ MSG_SIM_SPAWN_ACTOR_REQUESTED
Payload = RoR::ActorSpawnRequest* (owner)
@ MSG_APP_MODCACHE_UPDATE_REQUESTED
InputEngine * GetInputEngine()
CVar * cli_preset_veh_config
@ MSG_NET_CONNECT_FAILURE
CVar * diag_allow_window_resize
@ MSG_SIM_DELETE_ACTOR_REQUESTED
Payload = RoR::ActorPtr* (owner)
@ MSG_APP_SCRIPT_THREAD_STATUS
Payload = RoR::ScriptEventArgs* (owner)
@ MSG_EDI_MODIFY_GROUNDMODEL_REQUESTED
Payload = RoR::ground_model_t* (weak)
void DestroyInputEngine()
@ MANUAL_RANGES
Fully manual: stick shift with ranges.
@ MSG_SIM_UNHIDE_NET_ACTOR_REQUESTED
Payload = ActorPtr* (owner)
@ MSG_APP_UNLOAD_SCRIPT_REQUESTED
Payload = RoR::ScriptUnitId_t* (owner)
CVar * diag_preset_veh_enter
CVar * diag_preset_terrain
CVar * sim_terrain_gui_name
CVar * sys_screenshot_dir
CVar * gfx_vegetation_mode
CVar * flexbody_defrag_prog_down_penalty
CVar * app_custom_scripts
@ MSG_GUI_CLOSE_MENU_REQUESTED
@ MSG_NET_CONNECT_PROGRESS
MumbleIntegration * GetMumble()
CVar * diag_terrn_log_roads
@ MSG_SIM_MODIFY_FREEFORCE_REQUESTED
Payload = RoR::FreeForceRequest* (owner)
@ MSG_SIM_PAUSE_REQUESTED
ThreadPool * GetThreadPool()
@ MSG_GUI_HIDE_MESSAGE_BOX_REQUESTED
CVar * gfx_sky_time_cycle
@ MSG_SIM_LOAD_SAVEGAME_REQUESTED
@ HANDLEGENERICEXCEPTION_LOGFILE
@ NO_LIGHTSOURCES
No light sources.
CVar * gfx_reduce_shadows
void Log(const char *msg)
The ultimate, application-wide logging function. Adds a line (any length) in 'RoR....
CVar * app_force_cache_purge
CVar * flexbody_defrag_const_penalty
@ MSG_APP_SHUTDOWN_REQUESTED
CVar * gfx_surveymap_icons
@ HANDLEGENERICEXCEPTION_CONSOLE
HandleGenericExceptionFlags
< Flags for HandleGenericException()
@ MSG_NET_DISCONNECT_REQUESTED
CVar * sim_replay_enabled
CVar * mp_pseudo_collisions
CVar * cli_preset_veh_enter
@ MSG_SIM_SCRIPT_EVENT_TRIGGERED
Payload = RoR::ScriptEventArgs* (owner)