Giter Site home page Giter Site logo

vitalii2011 / camerasystem Goto Github PK

View Code? Open in Web Editor NEW

This project forked from vertexfloat/camerasystem

0.0 0.0 0.0 65.04 MB

Camera System mod for Farming Simulator

Home Page: https://www.farming-simulator.com/mod.php?mod_id=274634&title=fs2022

License: GNU General Public License v3.0

Lua 100.00%

camerasystem's Introduction


Logo

Camera System

Farming Simulator 22 Modification

Report Bug · Request Feature · Changelog

Table of Contents
  1. About The Project
  2. Getting Started
  3. Usage
  4. License
  5. Acknowledgments

About the project

screenshot

This modification gives the possibility of adding cameras, e.g. a discharge pipe camera or a rear view camera. You can easily switch between added cameras which are displayed as HUD. As standard, some of the originally available vehicles and implements were equipped with camera configurations.

Change camera system mode (off/on) - "z" key (default)
Next/previous camera - "left shift + k/m" keys (default)

back to top

Getting started

If you want to install latest official version, you can download it like other mods.

Prerequisites

Installation

  1. Clone the repo
git clone https://github.com/4c65736975/cameraSystem
  1. Open cloned folder.
  2. Run modInstaller.exe.
  3. That"s it, if everything went as it should, you can delete cloned folder.
  4. Run the game and have a nice time.

or

  1. Click code, download zip.
  2. Extract downloaded file.
  3. Run modInstaller.exe.
  4. That"s it, if everything went as it should, you can delete downloaded folder and zip file.
  5. Run the game and have a nice time.

Vehicle Integration

You can just copy code below and fill it with appropriate data type. (Here you will find a list of vehicles integrated by default)

<cameraSystem>
  <cameraConfigurations>
    <cameraConfiguration name="string" price="integer">
      <camera node="node" name="string" fov="float" nearClip="float" farClip="float" activeFunc="string" rotation="x y z" translation="x y z"/>
    </cameraConfiguration>
  </cameraConfigurations>
</cameraSystem>
Tag Attribute Description Default isRequired
cameraConfiguration name translation key for configuration name or configuration name - -
cameraConfiguration price price of configuration - -
camera node node where camera will be linked, node index or i3dMapping - true
camera name translation key for camera name or camera name Untitled false
camera fov camera field of view 60 false
camera nearClip camera near clip 0.01 false
camera farClip camera far clip 10000 false
camera activeFunc function which return boolean whether camera is active or not - false
camera rotation camera rotation - false
camera translation camera translation - false

By default, the available camera names are:

Key Text
$l10n_ui_cameraSystem_nameRear Rear
$l10n_ui_cameraSystem_namePipe Pipe
$l10n_ui_cameraSystem_nameWork Work area

The available activation functions are:

Name Description Required Specialization
getCameraSystemIsReverse if the vehicle is going backwards, it returns true Drivable
getCameraSystemIsLowered if the vehicle is lowered, it returns true Attachable
getCameraSystemIsUnfolded if the vehicle is unfolded, it returns true Foldable
getCameraSystemIsPipeUnfolded if the vehicle pipe is unfolded, it returns true Pipe

You can also add an objectChange to configuration

<objectChange node="node" visibilityActive="boolean" visibilityInactive="boolean"/>
Tag Attribute Description Default isRequired
objectChange node object node which visibility will be affect, node index or i3dMapping - true
objectChange visibilityActive whether or not object is visible in this configuration - -
objectChange visibilityInactive whether or not object is visible all time - -

You can add configurations to mods/internalMods/dlcs/inGame to default integration file CameraSystemDefaultVehicleData.xml as shown below

<cameraSystemDefaultVehicleData>
  <vehicles>
    <vehicle xmlFilename="string" price="integer">
      <cameras>
        <camera nodeName="string" visibilityNodeName="string" name="string" fov="float" nearClip="float" farClip="float" activeFunc="string" rotation="x y z" translation="x y z"/>
      </cameras>
    </vehicle>
  </vehicles>
</cameraSystemDefaultVehicleData>

Rest of camera attributes are the same as shown above

Tag Attribute Description Default isRequired
vehicle xmlFilename path to vehicle xml file - true
vehicle price price of configuration 500 -
camera nodeName name of i3dMapping where camera will be linked - true
camera visibilityNodeName name of i3dMapping node that visibility is needed - -

Prefixes for specific paths:

Path Prefix Example isRequired
mods mod mod/FS22_caseIHMagnum7240Pro/magnum7240Pro.xml true
dlcs dlc dlc/claasSaddleTracPack/vehicles/claas/xerion4000.xml true
internalMods internal internal/arena/caseIH/axialFlow250/axialFlow250.xml true
inGame data data/vehicles/claas/arion600/arion600.xml true

back to top

Usage

screenshot

screenshot

screenshot

screenshot

screenshot

back to top

License

Distributed under the GPL-3.0 license. See LICENSE for more information.

back to top

Acknowledgments

back to top

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.