Mod

NameWork Camera
Version1.1.0.9
Authornulda
FilenameFS25_WorkCamera.zip
Size0.06 MB
ActiveYes
MapNo
DescriptionWork Camera: shows the cameras of your vehicle and attached implements in a window on the HUD. Works without any DLC. Cameras are already defined for the base game vehicles; mod vehicles can add their own with vehicle.workCameras.workCamera in their XML. Keys: Left Shift + C turn on / off, Left Ctrl + C next camera, Left Alt + C settings menu. Changelog 1.1.0.9: - New render mode "Map + nearby vehicles" (may close the game): draws the map (the mode that works everywhere) and on top each nearby vehicle and implement as a separate transparent layer, without drawing the whole root node that closed the game on some PCs. Up to 6 vehicle parts within 60 m in front of the camera. There is no depth between layers (a vehicle behind a building is drawn over it) and traffic cars are not included. Automatic tries it after Full and Vehicles, before Safe. - A vehicle being drawn as a layer is removed from the image before it is deleted (sold or reset). Changelog 1.1.0.8: - New "Render mode" option in the menu: Automatic (shows in brackets the mode it is using), Full (may close the game), Vehicles (may close the game) and Safe. - If a mode chosen by hand closes the game, the next time the option goes back to Automatic by itself, so the camera cannot keep closing the game before the menu can be opened. Changelog 1.1.0.7: - Automatic render mode: the camera first tries the most complete mode (world, vehicles and all their lights, so headlights light up the image at night). While the camera draws with a mode that is not the safe one, a mark is kept in modSettings/FS25_WorkCamera/WorkCameraRenderTest.xml; if the game closes with the camera on, that mode is disabled on that PC the next time and the next one is used: full, vehicles (limited lights), safe (map only). Each PC finds its own working mode. - Console: wcRenderReset forgets the failed modes and tests again (for example after a graphics driver update). - Manual mode is still available with in WorkCameraGeneralSettings.xml. The log line shows the mode used. Changelog 1.1.0.6: - Added the Spanish (Latin America, "ea") translation: with that game language the mod showed English. - Advanced settings in modSettings/FS25_WorkCamera/WorkCameraGeneralSettings.xml: . scene 1 = map (safe, default), 2 = whole root node (shows vehicles, but closed the game on some PCs). The log line now shows scene and masks. Changelog 1.1.0.5: - Fixed "attempt to index nil with 'workCameras'" repeated every frame in the shop: a preview vehicle deleted before it finished loading (changing configurations quickly) made the camera script fail and the deletion never finished. All camera functions now handle vehicles whose loading was cancelled. Changelog 1.1.0.4: - A camera without "fov" in the XML now uses 80 degrees as intended (before the default was read as 80 radians and the image looked wrong). - The GIANTS Editor export script (GESCRIPT/workCamera) now recognises FS25 paths and fills itemXml (before it looked for FS22 paths and left it empty). Changelog 1.1.0.3: - Fixed the game closing when turning the camera on, even with few mods: the camera now renders the map scene with the camera outside of it, limited object and light masks and the official 13-parameter call, the same method used by the base game and by FS25_ProductionInfoHud. Before it rendered the whole game root node with every light, which crashed the engine on the first render. - Shaders are compiled the same way as in those working examples. - High quality no longer uses a bloom value outside the usual range. Changelog 1.1.0.2: - Fixed the game freezing and closing when turning the camera on in big maps (16x) with many mods: shaders for the camera image are now compiled in the background, so the game keeps running. The first time, the window can stay black for a few seconds. - The camera image is no longer created and drawn in the same frame. - If the image cannot be created, it is not retried every frame. - Short log lines when the camera image is created and first drawn (with quality and resolution), to find problems quickly. Changelog 1.1.0.1: - Removed the test messages written to the log (one line per camera of every vehicle when loading, and on every attach / detach). - Multiplayer: the camera image is no longer recreated when any other player attaches or detaches an implement; only changes in the vehicle you drive update it. - Fixed a possible error when the vehicle or implement of the camera you are watching is deleted (sold or reset). - New 'Image quality' option in the menu (Low / Medium / High). Medium is the default: no shadows, 20 updates per second and 75% resolution. High is the previous behaviour. - FOV, clips and horizontal flip changed in the menu apply right away without recreating the image. - Trailers and implements with cameras are selectable as normal again (the mod no longer changes the selection). - The camera script is only added to vehicles that can have cameras (drivable or attachable), no longer to pallets and other objects. - New texts translated into every language of the mod. First release: 1.1.0.0