|
RigsofRods
Soft-body Physics Simulation
|
Go to the documentation of this file.
310 #ifdef USE_MUMBLE // The class is always forward-declared but only defined if USE_MUMBLE is defined
375 catch (Ogre::Exception& oex)
380 LOG(
fmt::format(
"{}: {}", from, oex.getDescription()));
381 #ifdef USE_ANGELSCRIPT
386 catch (std::exception& stex)
392 #ifdef USE_ANGELSCRIPT
403 #ifdef USE_ANGELSCRIPT
421 Ogre::LogManager::getSingleton().logMessage(msg);
426 char buffer[2000] = {};
430 vsprintf(buffer,
format, args);
@ MSG_EDI_MODIFY_PROJECT_REQUESTED
Payload = RoR::UpdateProjectRequest* (owner)
#define ROR_ASSERT(_EXPR)
Game state manager and message-queue provider.
CVar * io_invert_orbitcam
@ MSG_SIM_LOAD_TERRN_REQUESTED
CVar * diag_rig_log_node_import
@ SANDSTORM
Sandstorm (fastest)
void CreateScriptEngine()
CVar * sim_quickload_dialog
This class represents the angelscript scripting interface.
@ 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
void CreateCameraManager()
@ MSG_SIM_MODIFY_ACTOR_REQUESTED
Payload = RoR::ActorModifyRequest* (owner)
CVar * mp_hide_net_labels
CVar * diag_preset_vehicle
static InputEngine * g_input_engine
CVar * cli_resume_autosave
@ MSG_EDI_RELOAD_BUNDLE_REQUESTED
Payload = RoR::CacheEntryPtr* (owner)
static OverlayWrapper * g_overlay_wrapper
@ MSG_APP_REINIT_INPUT_REQUESTED
static CameraManager * g_camera_manager
@ 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)
static ScriptEngine * g_script_engine
void HandleMsgQueueException(MsgType from)
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
static GameContext g_game_context
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 * app_rendersys_override
System integration layer; inspired by OgreBites::ApplicationContext.
@ MSG_NET_REFRESH_SERVERLIST_FAILURE
Payload = RoR::CurlFailInfo* (owner)
CVar * gfx_fov_external_default
void putMessage(MessageArea area, MessageType type, std::string const &msg, std::string icon="")
CVar * sim_no_self_collisions
static DiscordRpc g_discord_rpc
CVar * gfx_static_cam_fov_exp
void forwardExceptionAsScriptEvent(const std::string &from)
Forwards useful info from C++ try{}catch{} exceptions to script in the form of game event.
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
static GUIManager * g_gui_manager
A content database MOTIVATION: RoR users usually have A LOT of content installed.
CVar * diag_preset_spawn_rot
@ FULL_HQ
Reflection + refraction (quality optimized)
ScriptEngine * GetScriptEngine()
CVar * diag_hide_wheel_info
Ogre::SceneManager * GetSceneManager()
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
Provides a 3D graphical representation of the simulation Idea: simulation runs at it's own constant r...
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
Central setup and event handler for input/windowing/rendering.
CVar * gfx_alt_actor_materials
CVar * io_ffb_camera_gain
CVar * gfx_speedo_digital
@ CAELUM
Caelum (best looking, slower)
static AppContext g_app_context
CVar * diag_log_beam_break
CVar * app_config_long_names
static Terrain * g_sim_terrain
CVar * flexbody_defrag_prog_up_penalty
@ ALL_VEHICLES_ALL_LIGHTS
All vehicles, all lights.
@ MSG_SIM_SEAT_PLAYER_REQUESTED
Payload = RoR::ActorPtr (owner) | nullptr.
A database of user-installed content alias 'mods' (vehicles, terrains...)
@ MSG_APP_MODCACHE_PURGE_REQUESTED
static SoundScriptManager * g_sound_script_manager
CVar * io_arcade_controls
@ MSG_GUI_MP_CLIENTS_REFRESH
CVar * sys_thumbnails_dir
CVar * diag_log_beam_trigger
Facilitates execution of (small) tasks on separate threads.
CVar * io_ffb_center_gain
@ FULL_FAST
Reflection + refraction (speed optimized)
CVar * mp_server_password
CVar * flexbody_defrag_reorder_indices
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
@ MSG_SIM_HIDE_NET_ACTOR_REQUESTED
Payload = ActorPtr* (owner)
CVar * flexbody_defrag_reorder_texcoords
@ 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.
Central state/object manager and communications hub.
@ MSG_NET_OPEN_RESOURCE_SUCCESS
Payload = GUI::ResourcesCollection* (owner)
CVar * mp_hide_own_net_label
static OutGauge g_out_gauge
@ 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
Wrapper class, just for code consistency with other subsystems.
@ 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
static LanguageEngine g_language_engine
@ MSG_EDI_ENTER_TERRN_EDITOR_REQUESTED
@ MSG_EDI_LOAD_BUNDLE_REQUESTED
Payload = RoR::CacheEntryPtr* (owner)
Quake-style console variable, defined in RoR.cfg or crated via Console UI and scripts.
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
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)
static ContentManager g_content_manager
@ MSG_EDI_MODIFY_GROUNDMODEL_REQUESTED
Payload = RoR::ground_model_t* (weak)
Global game console backend.
void DestroyInputEngine()
@ MANUAL_RANGES
Fully manual: stick shift with ranges.
Central game state manager.
@ MSG_SIM_UNHIDE_NET_ACTOR_REQUESTED
Payload = ActorPtr* (owner)
static MumbleIntegration * g_mumble
@ MSG_APP_UNLOAD_SCRIPT_REQUESTED
Payload = RoR::ScriptUnitId_t* (owner)
CVar * diag_preset_veh_enter
CVar * diag_preset_terrain
@ CONSOLE_MSGTYPE_INFO
Generic message.
CVar * sim_terrain_gui_name
CVar * sys_screenshot_dir
static GfxScene g_gfx_scene
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
static ThreadPool * g_thread_pool
ThreadPool * GetThreadPool()
@ MSG_GUI_HIDE_MESSAGE_BOX_REQUESTED
static CacheSystem g_cache_system
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
@ 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)
static ThreadPool * DetectNumWorkersAndCreate()