├── _Archiv
├── 1.3.0.1
│ └── platzhalter.txt
├── 1.3.0.6
│ └── Platzhalter.txt
├── 1.2.9.0
│ └── FS22_CVT_Addon.zip
└── 1.3.0.0
│ └── FS22_CVT_Addon.zip
├── .github
└── FUNDING.yml
├── FS22_CVT_Addon.zip
├── FS22_CVT_Addon
├── modIcon.dds
├── store.dds
├── modIcon_.dds
├── CVT_Addon_Icon.dds
├── icon_CVT_Addon.dds
├── hud
│ ├── CVTaddon_HUDn.dds
│ ├── CVTaddon_HUDr.dds
│ ├── CVTaddon_HUDv.dds
│ ├── CVTaddon_HUDar1.dds
│ ├── CVTaddon_HUDar2.dds
│ ├── CVTaddon_HUDar3.dds
│ ├── CVTaddon_HUDar4.dds
│ ├── CVTaddon_HUDbg.dds
│ ├── CVTaddon_HUDbr1.dds
│ ├── CVTaddon_HUDbr2.dds
│ ├── CVTaddon_HUDbr3.dds
│ ├── CVTaddon_HUDbr4.dds
│ ├── CVTaddon_HUDfb.dds
│ ├── CVTaddon_HUDfs1.dds
│ ├── CVTaddon_HUDfs2.dds
│ ├── CVTaddon_HUDhg.dds
│ ├── CVTaddon_HUDhg2.dds
│ ├── CVTaddon_HUDhg3.dds
│ ├── CVTaddon_HUDhg4.dds
│ ├── CVTaddon_HUDhg5.dds
│ ├── CVTaddon_HUDhg6.dds
│ ├── CVTaddon_HUDhg7.dds
│ ├── CVTaddon_HUDhg8.dds
│ ├── CVTaddon_HUDhg9.dds
│ ├── CVTaddon_HUDn2.dds
│ ├── CVTaddon_HUDpto.dds
│ ├── CVTaddon_HUDhg10.dds
│ ├── CVTaddon_HUDhydro.dds
│ ├── CVTaddon_HUDmsCOLD.dds
│ ├── CVTaddon_HUDmsCRIT.dds
│ ├── CVTaddon_HUDmsOK.dds
│ ├── CVTaddon_HUDmsWARN.dds
│ └── CVTaddon_HUDptms.dds
├── helpMenu
│ ├── images
│ │ ├── img_HG.dds
│ │ ├── img_HUD.dds
│ │ ├── img_Var1.dds
│ │ ├── img_Var2.dds
│ │ ├── img_cold.dds
│ │ ├── img_tmsP.dds
│ │ ├── img_aDiff.dds
│ │ ├── img_critDmg.dds
│ │ ├── img_warnDmg.dds
│ │ ├── img_critHeat.dds
│ │ ├── img_keysInfo.dds
│ │ └── img_warnHeat.dds
│ └── helpMenuCVTa.xml
├── registerCVT_Addon.lua
├── l10n
│ ├── modDesc_l10n_be.xml
│ ├── modDesc_l10n_es.xml
│ ├── modDesc_l10n_it.xml
│ ├── modDesc_l10n_lu.xml
│ ├── modDesc_l10n_pl.xml
│ ├── offline
│ │ ├── modDesc_l10n_it.xml
│ │ ├── modDesc_l10n_lu.xml
│ │ ├── modDesc_l10n_nl.xml
│ │ ├── modDesc_l10n_pl.xml
│ │ ├── modDesc_l10n_es.xml
│ │ ├── modDesc_l10n_be.xml
│ │ └── modDesc_l10n_cz.xml
│ ├── modDesc_l10n_cz.xml
│ ├── modDesc_l10n_fr.xml.bak
│ ├── modDesc_l10n_en.xml.bak
│ ├── modDesc_l10n_de.xml.bak
│ ├── modDesc_l10n_nl.xml
│ ├── modDesc_l10n_en.xml
│ ├── modDesc_l10n_fr.xml
│ └── modDesc_l10n_de.xml
├── events
│ ├── SyncClientServerEvent.lua
│ └── SyncClientServerEvent.lua.bak
└── CVT_Addon_HUD.lua
├── .gitignore
├── enginebrakingeffect.lua
├── SECURITY.md
├── __ZIP_2_MOD FOLDER.cmd
├── README.md
└── LessMotorBrakeForce.lua
/_Archiv/1.3.0.1/platzhalter.txt:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/_Archiv/1.3.0.6/Platzhalter.txt:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/.github/FUNDING.yml:
--------------------------------------------------------------------------------
1 | custom: https://streamelements.com/sbsh_modasti4n/tip
2 |
--------------------------------------------------------------------------------
/FS22_CVT_Addon.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/s4t4n/FS22-CVT_Addon/HEAD/FS22_CVT_Addon.zip
--------------------------------------------------------------------------------
/FS22_CVT_Addon/modIcon.dds:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/s4t4n/FS22-CVT_Addon/HEAD/FS22_CVT_Addon/modIcon.dds
--------------------------------------------------------------------------------
/FS22_CVT_Addon/store.dds:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/s4t4n/FS22-CVT_Addon/HEAD/FS22_CVT_Addon/store.dds
--------------------------------------------------------------------------------
/FS22_CVT_Addon/modIcon_.dds:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/s4t4n/FS22-CVT_Addon/HEAD/FS22_CVT_Addon/modIcon_.dds
--------------------------------------------------------------------------------
/FS22_CVT_Addon/CVT_Addon_Icon.dds:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/s4t4n/FS22-CVT_Addon/HEAD/FS22_CVT_Addon/CVT_Addon_Icon.dds
--------------------------------------------------------------------------------
/FS22_CVT_Addon/icon_CVT_Addon.dds:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/s4t4n/FS22-CVT_Addon/HEAD/FS22_CVT_Addon/icon_CVT_Addon.dds
--------------------------------------------------------------------------------
/FS22_CVT_Addon/hud/CVTaddon_HUDn.dds:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/s4t4n/FS22-CVT_Addon/HEAD/FS22_CVT_Addon/hud/CVTaddon_HUDn.dds
--------------------------------------------------------------------------------
/FS22_CVT_Addon/hud/CVTaddon_HUDr.dds:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/s4t4n/FS22-CVT_Addon/HEAD/FS22_CVT_Addon/hud/CVTaddon_HUDr.dds
--------------------------------------------------------------------------------
/FS22_CVT_Addon/hud/CVTaddon_HUDv.dds:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/s4t4n/FS22-CVT_Addon/HEAD/FS22_CVT_Addon/hud/CVTaddon_HUDv.dds
--------------------------------------------------------------------------------
/_Archiv/1.2.9.0/FS22_CVT_Addon.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/s4t4n/FS22-CVT_Addon/HEAD/_Archiv/1.2.9.0/FS22_CVT_Addon.zip
--------------------------------------------------------------------------------
/_Archiv/1.3.0.0/FS22_CVT_Addon.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/s4t4n/FS22-CVT_Addon/HEAD/_Archiv/1.3.0.0/FS22_CVT_Addon.zip
--------------------------------------------------------------------------------
/FS22_CVT_Addon/hud/CVTaddon_HUDar1.dds:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/s4t4n/FS22-CVT_Addon/HEAD/FS22_CVT_Addon/hud/CVTaddon_HUDar1.dds
--------------------------------------------------------------------------------
/FS22_CVT_Addon/hud/CVTaddon_HUDar2.dds:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/s4t4n/FS22-CVT_Addon/HEAD/FS22_CVT_Addon/hud/CVTaddon_HUDar2.dds
--------------------------------------------------------------------------------
/FS22_CVT_Addon/hud/CVTaddon_HUDar3.dds:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/s4t4n/FS22-CVT_Addon/HEAD/FS22_CVT_Addon/hud/CVTaddon_HUDar3.dds
--------------------------------------------------------------------------------
/FS22_CVT_Addon/hud/CVTaddon_HUDar4.dds:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/s4t4n/FS22-CVT_Addon/HEAD/FS22_CVT_Addon/hud/CVTaddon_HUDar4.dds
--------------------------------------------------------------------------------
/FS22_CVT_Addon/hud/CVTaddon_HUDbg.dds:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/s4t4n/FS22-CVT_Addon/HEAD/FS22_CVT_Addon/hud/CVTaddon_HUDbg.dds
--------------------------------------------------------------------------------
/FS22_CVT_Addon/hud/CVTaddon_HUDbr1.dds:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/s4t4n/FS22-CVT_Addon/HEAD/FS22_CVT_Addon/hud/CVTaddon_HUDbr1.dds
--------------------------------------------------------------------------------
/FS22_CVT_Addon/hud/CVTaddon_HUDbr2.dds:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/s4t4n/FS22-CVT_Addon/HEAD/FS22_CVT_Addon/hud/CVTaddon_HUDbr2.dds
--------------------------------------------------------------------------------
/FS22_CVT_Addon/hud/CVTaddon_HUDbr3.dds:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/s4t4n/FS22-CVT_Addon/HEAD/FS22_CVT_Addon/hud/CVTaddon_HUDbr3.dds
--------------------------------------------------------------------------------
/FS22_CVT_Addon/hud/CVTaddon_HUDbr4.dds:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/s4t4n/FS22-CVT_Addon/HEAD/FS22_CVT_Addon/hud/CVTaddon_HUDbr4.dds
--------------------------------------------------------------------------------
/FS22_CVT_Addon/hud/CVTaddon_HUDfb.dds:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/s4t4n/FS22-CVT_Addon/HEAD/FS22_CVT_Addon/hud/CVTaddon_HUDfb.dds
--------------------------------------------------------------------------------
/FS22_CVT_Addon/hud/CVTaddon_HUDfs1.dds:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/s4t4n/FS22-CVT_Addon/HEAD/FS22_CVT_Addon/hud/CVTaddon_HUDfs1.dds
--------------------------------------------------------------------------------
/FS22_CVT_Addon/hud/CVTaddon_HUDfs2.dds:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/s4t4n/FS22-CVT_Addon/HEAD/FS22_CVT_Addon/hud/CVTaddon_HUDfs2.dds
--------------------------------------------------------------------------------
/FS22_CVT_Addon/hud/CVTaddon_HUDhg.dds:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/s4t4n/FS22-CVT_Addon/HEAD/FS22_CVT_Addon/hud/CVTaddon_HUDhg.dds
--------------------------------------------------------------------------------
/FS22_CVT_Addon/hud/CVTaddon_HUDhg2.dds:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/s4t4n/FS22-CVT_Addon/HEAD/FS22_CVT_Addon/hud/CVTaddon_HUDhg2.dds
--------------------------------------------------------------------------------
/FS22_CVT_Addon/hud/CVTaddon_HUDhg3.dds:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/s4t4n/FS22-CVT_Addon/HEAD/FS22_CVT_Addon/hud/CVTaddon_HUDhg3.dds
--------------------------------------------------------------------------------
/FS22_CVT_Addon/hud/CVTaddon_HUDhg4.dds:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/s4t4n/FS22-CVT_Addon/HEAD/FS22_CVT_Addon/hud/CVTaddon_HUDhg4.dds
--------------------------------------------------------------------------------
/FS22_CVT_Addon/hud/CVTaddon_HUDhg5.dds:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/s4t4n/FS22-CVT_Addon/HEAD/FS22_CVT_Addon/hud/CVTaddon_HUDhg5.dds
--------------------------------------------------------------------------------
/FS22_CVT_Addon/hud/CVTaddon_HUDhg6.dds:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/s4t4n/FS22-CVT_Addon/HEAD/FS22_CVT_Addon/hud/CVTaddon_HUDhg6.dds
--------------------------------------------------------------------------------
/FS22_CVT_Addon/hud/CVTaddon_HUDhg7.dds:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/s4t4n/FS22-CVT_Addon/HEAD/FS22_CVT_Addon/hud/CVTaddon_HUDhg7.dds
--------------------------------------------------------------------------------
/FS22_CVT_Addon/hud/CVTaddon_HUDhg8.dds:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/s4t4n/FS22-CVT_Addon/HEAD/FS22_CVT_Addon/hud/CVTaddon_HUDhg8.dds
--------------------------------------------------------------------------------
/FS22_CVT_Addon/hud/CVTaddon_HUDhg9.dds:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/s4t4n/FS22-CVT_Addon/HEAD/FS22_CVT_Addon/hud/CVTaddon_HUDhg9.dds
--------------------------------------------------------------------------------
/FS22_CVT_Addon/hud/CVTaddon_HUDn2.dds:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/s4t4n/FS22-CVT_Addon/HEAD/FS22_CVT_Addon/hud/CVTaddon_HUDn2.dds
--------------------------------------------------------------------------------
/FS22_CVT_Addon/hud/CVTaddon_HUDpto.dds:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/s4t4n/FS22-CVT_Addon/HEAD/FS22_CVT_Addon/hud/CVTaddon_HUDpto.dds
--------------------------------------------------------------------------------
/FS22_CVT_Addon/helpMenu/images/img_HG.dds:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/s4t4n/FS22-CVT_Addon/HEAD/FS22_CVT_Addon/helpMenu/images/img_HG.dds
--------------------------------------------------------------------------------
/FS22_CVT_Addon/hud/CVTaddon_HUDhg10.dds:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/s4t4n/FS22-CVT_Addon/HEAD/FS22_CVT_Addon/hud/CVTaddon_HUDhg10.dds
--------------------------------------------------------------------------------
/FS22_CVT_Addon/hud/CVTaddon_HUDhydro.dds:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/s4t4n/FS22-CVT_Addon/HEAD/FS22_CVT_Addon/hud/CVTaddon_HUDhydro.dds
--------------------------------------------------------------------------------
/FS22_CVT_Addon/hud/CVTaddon_HUDmsCOLD.dds:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/s4t4n/FS22-CVT_Addon/HEAD/FS22_CVT_Addon/hud/CVTaddon_HUDmsCOLD.dds
--------------------------------------------------------------------------------
/FS22_CVT_Addon/hud/CVTaddon_HUDmsCRIT.dds:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/s4t4n/FS22-CVT_Addon/HEAD/FS22_CVT_Addon/hud/CVTaddon_HUDmsCRIT.dds
--------------------------------------------------------------------------------
/FS22_CVT_Addon/hud/CVTaddon_HUDmsOK.dds:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/s4t4n/FS22-CVT_Addon/HEAD/FS22_CVT_Addon/hud/CVTaddon_HUDmsOK.dds
--------------------------------------------------------------------------------
/FS22_CVT_Addon/hud/CVTaddon_HUDmsWARN.dds:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/s4t4n/FS22-CVT_Addon/HEAD/FS22_CVT_Addon/hud/CVTaddon_HUDmsWARN.dds
--------------------------------------------------------------------------------
/FS22_CVT_Addon/hud/CVTaddon_HUDptms.dds:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/s4t4n/FS22-CVT_Addon/HEAD/FS22_CVT_Addon/hud/CVTaddon_HUDptms.dds
--------------------------------------------------------------------------------
/FS22_CVT_Addon/helpMenu/images/img_HUD.dds:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/s4t4n/FS22-CVT_Addon/HEAD/FS22_CVT_Addon/helpMenu/images/img_HUD.dds
--------------------------------------------------------------------------------
/FS22_CVT_Addon/helpMenu/images/img_Var1.dds:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/s4t4n/FS22-CVT_Addon/HEAD/FS22_CVT_Addon/helpMenu/images/img_Var1.dds
--------------------------------------------------------------------------------
/FS22_CVT_Addon/helpMenu/images/img_Var2.dds:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/s4t4n/FS22-CVT_Addon/HEAD/FS22_CVT_Addon/helpMenu/images/img_Var2.dds
--------------------------------------------------------------------------------
/FS22_CVT_Addon/helpMenu/images/img_cold.dds:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/s4t4n/FS22-CVT_Addon/HEAD/FS22_CVT_Addon/helpMenu/images/img_cold.dds
--------------------------------------------------------------------------------
/FS22_CVT_Addon/helpMenu/images/img_tmsP.dds:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/s4t4n/FS22-CVT_Addon/HEAD/FS22_CVT_Addon/helpMenu/images/img_tmsP.dds
--------------------------------------------------------------------------------
/FS22_CVT_Addon/helpMenu/images/img_aDiff.dds:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/s4t4n/FS22-CVT_Addon/HEAD/FS22_CVT_Addon/helpMenu/images/img_aDiff.dds
--------------------------------------------------------------------------------
/FS22_CVT_Addon/helpMenu/images/img_critDmg.dds:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/s4t4n/FS22-CVT_Addon/HEAD/FS22_CVT_Addon/helpMenu/images/img_critDmg.dds
--------------------------------------------------------------------------------
/FS22_CVT_Addon/helpMenu/images/img_warnDmg.dds:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/s4t4n/FS22-CVT_Addon/HEAD/FS22_CVT_Addon/helpMenu/images/img_warnDmg.dds
--------------------------------------------------------------------------------
/FS22_CVT_Addon/helpMenu/images/img_critHeat.dds:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/s4t4n/FS22-CVT_Addon/HEAD/FS22_CVT_Addon/helpMenu/images/img_critHeat.dds
--------------------------------------------------------------------------------
/FS22_CVT_Addon/helpMenu/images/img_keysInfo.dds:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/s4t4n/FS22-CVT_Addon/HEAD/FS22_CVT_Addon/helpMenu/images/img_keysInfo.dds
--------------------------------------------------------------------------------
/FS22_CVT_Addon/helpMenu/images/img_warnHeat.dds:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/s4t4n/FS22-CVT_Addon/HEAD/FS22_CVT_Addon/helpMenu/images/img_warnHeat.dds
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # Compiled Lua sources
2 | luac.out
3 |
4 | # luarocks build files
5 | *.src.rock
6 | *.zip
7 | *.tar.gz
8 |
9 | # Object files
10 | *.o
11 | *.os
12 | *.ko
13 | *.obj
14 | *.elf
15 |
16 | # Precompiled Headers
17 | *.gch
18 | *.pch
19 |
20 | # Libraries
21 | *.lib
22 | *.a
23 | *.la
24 | *.lo
25 | *.def
26 | *.exp
27 |
28 | # Shared objects (inc. Windows DLLs)
29 | *.dll
30 | *.so
31 | *.so.*
32 | *.dylib
33 |
34 | # Executables
35 | *.exe
36 | *.out
37 | *.app
38 | *.i*86
39 | *.x86_64
40 | *.hex
41 |
42 |
--------------------------------------------------------------------------------
/enginebrakingeffect.lua:
--------------------------------------------------------------------------------
1 | -- Original version ls13: less engine braking effect
2 | -- by slin2R
3 | -- Vielen Dank für die Freigabe!
4 | -- Modification to: more engine braking effect by twizzle
5 | -- LS 15 by s4t4n less effect
6 | -- LS 17 by s4t4n less effect modhub
7 | -- LS 19 by s4t4n less effect modhub mit Genehmigung an Patar
8 | -- s4t4n Motorbremse auf ein reales Maß erstellt
9 |
10 | -- local version = "1.0.3 beta (02.12.2018)";
11 | -- local version = "1.0.5.0 beta (28.12.2018)";
12 | -- local version = "1.0.6.0 beta (01.01.2019)";
13 | -- local version = "1.0.6.1 beta (02.01.2019)";
14 | -- local version = "0.0.0.1 alpha (15.12.2021)"
15 |
16 | -- NO MORE THIEFS PLEASE !
17 | -- NO MORE THIEFS PLEASE !
18 | -- NO MORE THIEFS PLEASE !
19 | -- NO MORE THIEFS PLEASE !
20 | -- NO MORE THIEFS PLEASE !
21 | -- NO MORE THIEFS PLEASE !
22 | -- NO MORE THIEFS PLEASE !
23 |
--------------------------------------------------------------------------------
/SECURITY.md:
--------------------------------------------------------------------------------
1 | # Security Policy
2 |
3 | ## Supported Versions
4 |
5 | -- @titel LessMotorBrakeforce Script for FarmingSimulator 2022
6 | -- @new titel CVT_Addon Script for FarmingSimulator 2022
7 | -- @author s4t4n
8 | -- @credits Frvetz - ebenso ein riesen Dank an dieser Stelle!
9 | -- @version v1.0.0.0 Release Modhub
10 | -- @version v1.0.0.1 Small Changes(FS22 1.2.0.2)
11 | -- @date 23/07/2022
12 | -- @info CVTaddon Script for FarmingSimulator 2022
13 | -- changed app to pre 23.12.2022 SbSh(s4t4n)
14 | -- changelog Anpassung an FS22_realismAddon_gearbox von modelleicher
15 | -- + Vario Fahrstufen und Beschleunigungsrampen
16 | -- RegisterScript Umstellung, der Dank geht hier an modelleicher!
17 | -- Script Ver 0.2.0.57
18 | -- last update 08.12.23
19 |
20 |
21 | ## Reporting a Vulnerability
22 |
23 | on Github in the tab "issues", there you can report bugs.
24 | https://github.com/s4t4n/FS22_CVT_Addon/issues
25 |
--------------------------------------------------------------------------------
/FS22_CVT_Addon/registerCVT_Addon.lua:
--------------------------------------------------------------------------------
1 | -- @titel CVTaddon regScript for FarmingSimulator 2022
2 | -- @author s4t4n
3 | -- @credits GLOWIN
4 | -- @date 28/10/2023
5 | -- @info CVTaddon regScript for FarmingSimulator 2022
6 |
7 | LMBFRegister = {}
8 | CVTaddonConfigs = {}
9 |
10 | LMBFRegister.done = false
11 |
12 | local specName = g_currentModName..".CVTaddon"
13 |
14 | if g_specializationManager:getSpecializationByName("CVTaddon") == nil then
15 | print("CVTa ModName: ".. g_currentModName)
16 | if g_currentModName ~= "FS22_CVT_Addon" then
17 | if string.find(tostring(g_currentModName), "master") or string.find(tostring(g_currentModName), "main") or string.find(tostring(g_currentModName), "update") then
18 | print("Please download the Github Version from the Releases or repack it correctly. Description at the Wiki.")
19 | print("Or otherwise, download it from the official Modhub.")
20 | else
21 | print("Wrong Modname ".. g_currentModName .. " or you downloaded from a website that has stolen the mod")
22 | print("and did an illegal upload there!")
23 | print("Keep the original download-link from official Giants Modhub!")
24 | print("Thank You.")
25 | end
26 | LMBFRegister.done = false
27 | -- break;
28 | else
29 | g_specializationManager:addSpecialization("CVTaddon", "CVTaddon", g_currentModDirectory.."CVT_Addon.lua", nil)
30 | LMBFRegister.done = true
31 | end
32 | end
33 |
34 | for typeName, typeEntry in pairs(g_vehicleTypeManager.types) do
35 | if
36 | SpecializationUtil.hasSpecialization(Motorized, typeEntry.specializations)
37 | and not SpecializationUtil.hasSpecialization(Locomotive, typeEntry.specializations)
38 | and not SpecializationUtil.hasSpecialization(ConveyorBelt, typeEntry.specializations)
39 | then
40 | g_vehicleTypeManager:addSpecialization(typeName, specName)
41 | end
42 | end
43 |
--------------------------------------------------------------------------------
/FS22_CVT_Addon/l10n/modDesc_l10n_be.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
--------------------------------------------------------------------------------
/FS22_CVT_Addon/l10n/modDesc_l10n_es.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
--------------------------------------------------------------------------------
/FS22_CVT_Addon/l10n/modDesc_l10n_it.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
--------------------------------------------------------------------------------
/FS22_CVT_Addon/l10n/modDesc_l10n_lu.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
--------------------------------------------------------------------------------
/FS22_CVT_Addon/l10n/modDesc_l10n_pl.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
--------------------------------------------------------------------------------
/FS22_CVT_Addon/l10n/offline/modDesc_l10n_it.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
--------------------------------------------------------------------------------
/FS22_CVT_Addon/l10n/offline/modDesc_l10n_lu.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
--------------------------------------------------------------------------------
/FS22_CVT_Addon/l10n/offline/modDesc_l10n_nl.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
--------------------------------------------------------------------------------
/FS22_CVT_Addon/l10n/offline/modDesc_l10n_pl.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
--------------------------------------------------------------------------------
/FS22_CVT_Addon/l10n/modDesc_l10n_cz.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
--------------------------------------------------------------------------------
/FS22_CVT_Addon/l10n/modDesc_l10n_fr.xml.bak:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
--------------------------------------------------------------------------------
/FS22_CVT_Addon/l10n/modDesc_l10n_en.xml.bak:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
--------------------------------------------------------------------------------
/FS22_CVT_Addon/l10n/modDesc_l10n_de.xml.bak:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
--------------------------------------------------------------------------------
/__ZIP_2_MOD FOLDER.cmd:
--------------------------------------------------------------------------------
1 | @echo off & setlocal
2 | REM @echo off
3 | REM @ECHO >> _ZiP_log.txt
4 | REM by sÀtÁñ
5 | REM echo dir_2_zip
6 | REM alle *.bak Dateien werden vor dem Packen entfernt !
7 | REM if not EXIST "%1" goto zipit
8 | REM if EXIST "%1" goto startit
9 | set modname=FS22_RandomFuelsPrices
10 |
11 | set path_self=%~dp0
12 | for %%i in ("%path_self:~0,-1%") do set name_parent=%%~nxi
13 | REM echo %name_parent%
14 | REM echo
15 | goto zipit
16 | REM goto cleanzip
17 |
18 |
19 | :startit
20 | echo ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ >> _ZiP_log.txt
21 | REM DATE /T >> _ZiP_log.txt
22 | REM TIME /T >> _ZiP_log.txt
23 | REM echo %~n1 to %~n1.zip >> _ZiP_log.txt
24 | REM echo. >> _ZiP_log.txt
25 | REM IF EXIST %1.zip goto zipped
26 | REM IF not EXIST %1.zip goto cleanzip
27 | goto end
28 |
29 | :zipped
30 | REM call rundll32.exe cmdext.dll,MessageBeepStub
31 | REM ECHO file %1.zip already exists
32 | REM ECHO file %~n1.zip already exists >> _ZiP_log.txt
33 | echo ###########_______________________DATEI BEREITS VORHANDEN !!!!_____############ %~z1 Bytes
34 | REM echo ###########_______________________DATEI BEREITS VORHANDEN !!!!_____############ %~z1 Bytes >> _ZiP_log.txt
35 | echo.
36 | echo __________________Datei überschreiben? %~z1 (j/n)
37 | REM echo __________________Datei überschreiben? %~z1 (j/n) >> _ZiP_log.txt
38 | SET /P fragen=
39 | if '%fragen%'=='n' goto end
40 | if '%fragen%'=='j' goto repl
41 | timeout /T 0
42 | goto end
43 |
44 | :cleanzip
45 | REM echo _______________ cleaning from .bak files of np++
46 | echo _______________ Aktualisiere...
47 | REM echo _______________ cleaning from .bak files of np++ >> _ZiP_log.txt
48 | REM del %1\*.bak
49 | REM del %1\*.bak /s
50 | REM del %1\*.bak /s >> _ZiP_log.txt
51 | REM setlocal enabledelayedexpansion
52 | REM setlocal DisableDelayedExpansion
53 |
54 | REM set zeileNrAustausch=19
55 | REM set zeileNeu=local scrversion = "0.3.2.5+";
56 |
57 | REM if exist CVT_Addon.tmp del CVT_Addon.tmp
58 |
59 | REM set zeileNr=0
60 |
61 | REM for /f "delims=" %%A in (CVT_Addon.lua) do (
62 | REM ( set /a zeileNr+=1 >NUL)
63 | REM (if !zeileNr!==%zeileNrAustausch% (echo %zeileNeu%>>CVT_Addon.tmp) else (echo %%A>>CVT_Addon.tmp))
64 | REM )
65 |
66 | REM if exist CVT_Addon.akt del CVT_Addon.akt
67 | REM ren CVT_Addon.lua CVT_Addon.akt
68 | REM ren CVT_Addon.tmp CVT_Addon.lua
69 | REM pause
70 |
71 | REM timeout /T 3
72 | goto zipit
73 |
74 | :zipit
75 | echo.
76 | echo.
77 | echo.
78 | echo ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ >> _ZiP_log.txt
79 | C:\Programme\7-Zip\7z.exe a "%~dp0"%name_parent% -w "%~dp0"* -xr!*.cmd -xr!*.bak -xr!*.7z -xr!*.zip -xr!*.png -xr!*.jpg -xr!Old -xr!VCA_modified -xr!log -xr!*.psd -xr!screenshots -xr!_ZiP_log.txt -xr!offline -tzip >> _ZiP_log.txt
80 | echo ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ >> _ZiP_log.txt
81 | echo.
82 | echo.
83 | echo.
84 | REM echo Dir-Size = %~z1 Bytes >> _ZiP_log.txt
85 | if exist "%~dp0"%name_parent%.zip goto moveit
86 | REM echo folder exists, delete again
87 | REM echo folder exists, delete again >> _ZiP_log.txt
88 | goto end
89 |
90 | :repl
91 | del %1.zip
92 | echo lösche %1.zip
93 | REM echo lösche %~n1.zip >> _ZiP_log.txt
94 | REM timeout /T 0 /nobreak
95 | rem C:\Programme\7-Zip\7z.exe a %1 -w %1\* -tzip
96 |
97 | echo ______________############# überschrieben! ##############
98 | echo _______________############# Überschrieben! ##############
99 | echo ________________############# Überschrieben! ##############
100 | echo _________________############# Überschrieben! ##############
101 | echo __________________############# Überschrieben! ##############
102 | echo ___________________############# Überschrieben! ##############
103 | REM echo __________________############# Überschrieben! ############## >> _ZiP_log.txt
104 | goto cleanzip
105 |
106 | :deldir
107 | echo delete directory %1
108 | REM echo delete directory %~n1 >> _ZiP_log.txt
109 | rmdir /s /q %1
110 | timeout /T 0
111 | if exist %1 echo folder exists, delete again
112 | timeout /T 0
113 | goto end
114 |
115 | :moveit
116 | echo MOOOOOOOOOVE
117 | copy /Y "%~dp0"%name_parent%.zip "D:\__LS-MODS\Mod-Sets\G-Portal LUpool" >> _ZiP_log.txt
118 | move /Y "%~dp0"%name_parent%.zip "C:\Users\SbSh\Documents\My Games\FarmingSimulator2022\mods" >> _ZiP_log.txt
119 | echo nach "C:\Users\SbSh\Documents\My Games\FarmingSimulator2022\mods\%name_parent%.zip" >> _ZiP_log.txt
120 | timeout /T 1
121 | REM pause
122 | goto end
123 |
124 | :end
125 | echo ..............ByE bYe...........................
126 | REM call rundll32.exe cmdext.dll,MessageBeepStub
127 | REM %sizecheck% = "%~z1.zip"
128 | REM echo Zipfile has %sizecheck%
129 | REM echo Zipfile has %sizecheck% >> _ZiP_log.txt
130 | REM echo ..............ByE bYe........................... >> _ZiP_log.txt
131 | echo ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ >> _ZiP_log.txt
132 | REM echo. >> _ZiP_log.txt
133 | REM echo. >> _ZiP_log.txt
134 | REM echo. >> _ZiP_log.txt
135 | REM echo. >> _ZiP_log.txt
136 | REM timeout /T 5
137 | goto EOF
138 |
139 |
140 | :ddende
141 |
142 | echo Bitte Verzeichnis per drag and drop auf diesen command ziehen.
143 | timeout /T 20
144 |
--------------------------------------------------------------------------------
/FS22_CVT_Addon/events/SyncClientServerEvent.lua:
--------------------------------------------------------------------------------
1 | -- Date: 28.01.2023
2 | -- edit: 01.10.2023
3 | SyncClientServerEvent = {}
4 |
5 | local SyncClientServerEvent_mt = Class(SyncClientServerEvent, Event)
6 | InitEventClass(SyncClientServerEvent, "SyncClientServerEvent")
7 |
8 | ---Create instance of Event class
9 | -- @return table self instance of class event
10 | function SyncClientServerEvent.emptyNew()
11 | local self = Event.new(SyncClientServerEvent_mt)
12 | return self
13 | end
14 |
15 | ---Create new instance of event
16 | -- @param table vehicle vehicle
17 | -- @param integer state state
18 | function SyncClientServerEvent.new(vehicle, vOne, vTwo, vThree, CVTCanStart, vFive, autoDiffs, isVarioTM, isTMSpedal, CVTconfig, warnHeat, critHeat, warnDamage, critDamage, CVTdamage, HandgasPercent, ClutchInputValue)
19 | local self = SyncClientServerEvent.emptyNew()
20 | self.vOne = vOne
21 | self.vTwo = vTwo
22 | self.vThree = vThree
23 | self.CVTCanStart = CVTCanStart
24 | self.vFive = vFive
25 | self.autoDiffs = autoDiffs
26 | -- self.lastDirection = lastDirection
27 | self.isVarioTM = isVarioTM
28 | self.isTMSpedal = isTMSpedal
29 | -- self.moveRpmL = moveRpmL -- placeholder
30 | -- self.rpmDmax = rpmDmax
31 | -- self.rpmrange = rpmrange
32 | self.CVTconfig = CVTconfig
33 | self.warnHeat = warnHeat
34 | self.critHeat = critHeat
35 | self.warnDamage = warnDamage
36 | self.critDamage = critDamage
37 | self.CVTdamage = CVTdamage
38 | self.HandgasPercent = HandgasPercent --
39 | self.ClutchInputValue = ClutchInputValue
40 | self.vehicle = vehicle
41 | return self
42 | end
43 |
44 |
45 | ---Called on client side on join
46 | -- @param integer streamId streamId
47 | -- @param integer connection connection
48 | function SyncClientServerEvent:readStream(streamId, connection)
49 | self.vehicle = NetworkUtil.readNodeObject(streamId)
50 | self.vOne = streamReadInt32(streamId)
51 | self.vTwo = streamReadInt32(streamId)
52 | self.vThree = streamReadInt32(streamId)
53 | self.CVTCanStart = streamReadBool(streamId)
54 | self.vFive = streamReadInt32(streamId)
55 | self.autoDiffs = streamReadInt32(streamId)
56 | -- self.lastDirection = streamReadInt32(streamId)
57 | self.isVarioTM = streamReadBool(streamId)
58 | self.isTMSpedal = streamReadInt32(streamId)
59 | -- self.moveRpmL = streamReadFloat32(streamId)
60 | -- self.rpmDmax = streamReadInt32(streamId)
61 | -- self.rpmrange = streamReadInt32(streamId)
62 | self.CVTconfig = streamReadInt32(streamId)
63 | self.warnHeat = streamReadInt32(streamId)
64 | self.critHeat = streamReadInt32(streamId)
65 | self.warnDamage = streamReadInt32(streamId)
66 | self.critDamage = streamReadInt32(streamId)
67 | self.CVTdamage = streamReadFloat32(streamId)
68 | self.HandgasPercent = streamReadFloat32(streamId)
69 | self.ClutchInputValue = streamReadFloat32(streamId)
70 | self:run(connection)
71 | end
72 |
73 |
74 | ---Called on server side on join
75 | -- @param integer streamId streamId
76 | -- @param integer connection connection
77 | function SyncClientServerEvent:writeStream(streamId, connection)
78 | NetworkUtil.writeNodeObject(streamId, self.vehicle)
79 | -- streamWriteInt32(streamId, self.vOne, self.vTwo, self.vThree, self.CVTCanStart, self.vFive, self.autoDiffs, self.lastDirection, self.isVarioTM, self.isTMSpedal, self.PedalResolution, self.rpmDmax, self.rpmrange, self.CVTconfig)
80 | streamWriteInt32(streamId, self.vOne)
81 | streamWriteInt32(streamId, self.vTwo)
82 | streamWriteInt32(streamId, self.vThree)
83 | streamWriteBool(streamId, self.CVTCanStart)
84 | streamWriteInt32(streamId, self.vFive)
85 | streamWriteInt32(streamId, self.autoDiffs)
86 | -- streamWriteInt32(streamId, self.lastDirection)
87 | streamWriteBool(streamId, self.isVarioTM)
88 | streamWriteInt32(streamId, self.isTMSpedal)
89 | -- streamWriteFloat32(streamId, self.moveRpmL)
90 | -- streamWriteInt32(streamId, self.rpmDmax)
91 | -- streamWriteInt32(streamId, self.rpmrange)
92 | streamWriteInt32(streamId, self.CVTconfig)
93 | streamWriteInt32(streamId, self.warnHeat) --
94 | streamWriteInt32(streamId, self.critHeat) --
95 | streamWriteInt32(streamId, self.warnDamage) --
96 | streamWriteInt32(streamId, self.critDamage) --
97 | streamWriteFloat32(streamId, self.CVTdamage)
98 | streamWriteFloat32(streamId, self.HandgasPercent)
99 | streamWriteFloat32(streamId, self.ClutchInputValue)
100 | end
101 |
102 |
103 | ---Run action on receiving side
104 | -- @param integer connection connection
105 | function SyncClientServerEvent:run(connection)
106 | if self.vehicle ~= nil and self.vehicle:getIsSynchronized() then
107 | CVTaddon.SyncClientServer(self.vehicle, self.vOne, self.vTwo, self.vThree, self.CVTCanStart, self.vFive, self.autoDiffs, self.isVarioTM, self.isTMSpedal, self.CVTconfig, self.warnHeat, self.critHeat, self.warnDamage, self.critDamage, self.CVTdamage, self.HandgasPercent, self.ClutchInputValue)
108 | if not connection:getIsServer() then --
109 | g_server:broadcastEvent(SyncClientServerEvent.new(self.vehicle, self.vOne, self.vTwo, self.vThree, self.CVTCanStart, self.vFive, self.autoDiffs, self.isVarioTM, self.isTMSpedal, self.CVTconfig, self.warnHeat, self.critHeat, self.warnDamage, self.critDamage, self.CVTdamage, self.HandgasPercent, self.ClutchInputValue), nil, connection, self.vehicle)
110 | end
111 | end
112 | end
113 |
114 |
--------------------------------------------------------------------------------
/FS22_CVT_Addon/events/SyncClientServerEvent.lua.bak:
--------------------------------------------------------------------------------
1 | -- Date: 28.01.2023
2 | -- edit: 01.10.2023
3 | SyncClientServerEvent = {}
4 |
5 | local SyncClientServerEvent_mt = Class(SyncClientServerEvent, Event)
6 | InitEventClass(SyncClientServerEvent, "SyncClientServerEvent")
7 |
8 |
9 |
10 |
11 | ---Create instance of Event class
12 | -- @return table self instance of class event
13 | function SyncClientServerEvent.emptyNew()
14 | local self = Event.new(SyncClientServerEvent_mt)
15 | return self
16 | end
17 |
18 |
19 | ---Create new instance of event
20 | -- @param table vehicle vehicle
21 | -- @param integer state state
22 | function SyncClientServerEvent.new(vehicle, vOne, vTwo, vThree, vFour, vFive, autoDiffs, lastDirection, isVarioTM, isTMSpedal, PedalResolution, rpmDmax, rpmrange, CVTconfig, warnHeat, critHeat, warnDamage, critDamage, CVTdamage, HandgasPercent, ClutchInputValue)
23 | local self = SyncClientServerEvent.emptyNew()
24 | self.vOne = vOne
25 | self.vTwo = vTwo
26 | self.vThree = vThree
27 | self.vFour = vFour
28 | self.vFive = vFive
29 | self.autoDiffs = autoDiffs
30 | self.lastDirection = lastDirection
31 | self.isVarioTM = isVarioTM
32 | self.isTMSpedal = isTMSpedal
33 | self.PedalResolution = PedalResolution -- placeholder
34 | self.rpmDmax = rpmDmax
35 | self.rpmrange = rpmrange
36 | self.CVTconfig = CVTconfig
37 | self.warnHeat = warnHeat
38 | self.critHeat = critHeat
39 | self.warnDamage = warnDamage
40 | self.critDamage = critDamage
41 | self.CVTdamage = CVTdamage
42 | self.HandgasPercent = HandgasPercent --
43 | self.ClutchInputValue = ClutchInputValue
44 | self.vehicle = vehicle
45 | return self
46 | end
47 |
48 |
49 | ---Called on client side on join
50 | -- @param integer streamId streamId
51 | -- @param integer connection connection
52 | function SyncClientServerEvent:readStream(streamId, connection)
53 | self.vehicle = NetworkUtil.readNodeObject(streamId)
54 | self.vOne = streamReadInt32(streamId)
55 | self.vTwo = streamReadInt32(streamId)
56 | self.vThree = streamReadInt32(streamId)
57 | self.vFour = streamReadInt32(streamId)
58 | self.vFive = streamReadInt32(streamId)
59 | self.autoDiffs = streamReadInt32(streamId)
60 | self.lastDirection = streamReadInt32(streamId)
61 | self.isVarioTM = streamReadBool(streamId)
62 | self.isTMSpedal = streamReadInt32(streamId)
63 | self.PedalResolution = streamReadInt32(streamId)
64 | self.rpmDmax = streamReadInt32(streamId)
65 | self.rpmrange = streamReadInt32(streamId)
66 | self.CVTconfig = streamReadInt32(streamId)
67 | self.warnHeat = streamReadInt32(streamId)
68 | self.critHeat = streamReadInt32(streamId)
69 | self.warnDamage = streamReadInt32(streamId)
70 | self.critDamage = streamReadInt32(streamId)
71 | self.CVTdamage = streamReadFloat32(streamId)
72 | self.HandgasPercent = streamReadFloat32(streamId)
73 | self.ClutchInputValue = streamReadFloat32(streamId)
74 | self:run(connection)
75 | end
76 |
77 |
78 | ---Called on server side on join
79 | -- @param integer streamId streamId
80 | -- @param integer connection connection
81 | function SyncClientServerEvent:writeStream(streamId, connection)
82 | NetworkUtil.writeNodeObject(streamId, self.vehicle)
83 | -- streamWriteInt32(streamId, self.vOne, self.vTwo, self.vThree, self.vFour, self.vFive, self.autoDiffs, self.lastDirection, self.isVarioTM, self.isTMSpedal, self.PedalResolution, self.rpmDmax, self.rpmrange, self.CVTconfig)
84 | streamWriteInt32(streamId, self.vOne)
85 | streamWriteInt32(streamId, self.vTwo)
86 | streamWriteInt32(streamId, self.vThree)
87 | streamWriteInt32(streamId, self.vFour)
88 | streamWriteInt32(streamId, self.vFive)
89 | streamWriteInt32(streamId, self.autoDiffs)
90 | streamWriteInt32(streamId, self.lastDirection)
91 | streamWriteInt32(streamId, self.isTMSpedal)
92 | streamWriteInt32(streamId, self.PedalResolution)
93 | streamWriteInt32(streamId, self.rpmDmax)
94 | streamWriteInt32(streamId, self.rpmrange)
95 | streamWriteInt32(streamId, self.CVTconfig)
96 | streamWriteInt32(streamId, self.warnHeat) --
97 | streamWriteInt32(streamId, self.critHeat) --
98 | streamWriteInt32(streamId, self.warnDamage) --
99 | streamWriteInt32(streamId, self.critDamage) --
100 | streamWriteFloat32(streamId, self.CVTdamage)
101 | streamWriteFloat32(streamId, self.HandgasPercent)
102 | streamWriteFloat32(streamId, self.ClutchInputValue)
103 | streamWriteBool(streamId, self.isVarioTM)
104 | end
105 |
106 |
107 | ---Run action on receiving side
108 | -- @param integer connection connection
109 | function SyncClientServerEvent:run(connection)
110 | if self.vehicle ~= nil and self.vehicle:getIsSynchronized() then
111 | CVTaddon.SyncClientServer(self.vehicle, self.vOne, self.vTwo, self.vThree, self.vFour, self.vFive, self.autoDiffs, self.lastDirection, self.isVarioTM, self.isTMSpedal, self.PedalResolution, self.rpmDmax, self.rpmrange, self.CVTconfig, self.warnHeat, self.critHeat, self.warnDamage, self.critDamage, self.CVTdamage, self.HandgasPercent, self.ClutchInputValue)
112 | if not connection:getIsServer() then --
113 | g_server:broadcastEvent(SyncClientServerEvent.new(self.vehicle, self.vOne, self.vTwo, self.vThree, self.vFour, self.vFive, self.autoDiffs, self.lastDirection, self.isVarioTM, self.isTMSpedal, self.PedalResolution, self.rpmDmax, self.rpmrange, self.CVTconfig, self.warnHeat, self.critHeat, self.warnDamage, self.critDamage, self.CVTdamage, self.HandgasPercent, self.ClutchInputValue), nil, connection, self.vehicle)
114 | end
115 | end
116 | end
117 |
118 |
--------------------------------------------------------------------------------
/FS22_CVT_Addon/helpMenu/helpMenuCVTa.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 |
110 |
111 |
112 |
113 |
114 |
115 |
116 |
117 |
118 |
119 |
120 |
121 |
122 |
123 |
124 |
125 |
126 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # FS22_CVT_Addon
2 |
3 |
4 |
5 | ### [latest dev release](https://github.com/s4t4n/FS22_CVT_Addon/releases/latest/download/FS22_CVT_Addon.zip)
6 | ### [Modhub](https://www.farming-simulator.com/mod.php?lang=de&country=de&mod_id=269645&title=fs2022)
7 | ### [Tutorial Videos](https://github.com/s4t4n/FS22_CVT_Addon/wiki/Videos)
8 | ### [CVT Addon Wiki](https://github.com/s4t4n/FS22_CVT_Addon/wiki/Features)
9 | ### [CVT Addon DBL Features](https://github.com/s4t4n/FS22_CVT_Addon/wiki/Dashboard%E2%80%90Live-features#dbl-specs-overview)
10 |
11 |
12 | [](https://github.com/s4t4n/FS22_CVT_Addon/releases/latest/download/FS22_CVT_Addon.zip)
13 | [](https://github.com/s4t4n/FS22_CVT_Addon/releases/latest/download/FS22_CVT_Addon.zip)
14 | [](https://github.com/s4t4n/FS22_CVT_Addon/releases/latest/download/FS22_CVT_Addon.zip)
15 | [](https://github.com/s4t4n/FS22_CVT_Addon/releases/latest/download/FS22_CVT_Addon.zip) \
16 | [](https://www.farming-simulator.com/mod.php?lang=de&country=de&mod_id=269645&title=fs2022)
17 | [](https://www.farming-simulator.com/mod.php?lang=de&country=de&mod_id=269645&title=fs2022)
18 |
19 | [](#)
20 | [](#)
21 | [](#)
22 | [](#)
23 | [](#) \
24 | [](https://github.com/s4t4n/FS22_CVT_Addon/issues)
25 | [](#)
26 | [](#)
27 | [](#) \
28 | [](https://www.tipeeestream.com/sbshs4t4n/donation)
29 |
30 | [](https://discord.gg/mfergkwhDu) \
31 | [ ](https://www.youtube.com/@SbSh-Modastian) \
32 | [](https://www.twitch.tv/sbsh_modasti4n)
33 |
34 | Also you can watch it live in progress at AgrarPlay streams:
35 | [](https://www.twitch.tv/agrarplay)
36 |
37 | Instructions how to download the code and use it as modfile zip here -> [Wiki: How to download and use master code](https://github.com/s4t4n/FS22_CVT_Addon/wiki/How-to-download-and-use-master-code)
38 |
39 |
40 | [#deutsch](#deutsch) [#english](#english) [to the top](#FS22_CVT_Addon)
41 |
42 | ### english
43 |
44 | Known issues:
45 | - Neutral doesnt work correct in multiplayer, because of a bug(giants part), can't sync the lastDirection
46 |
47 | *A very big thanks goes to Glowin, for fixing the mp sync issue.
48 |
49 | LessMotorBrakeforce to new Edition CVT_Addon
50 |
51 | Depending on the setting, this script completely recalculates the engine braking effect
52 |
53 | - engine speed
54 |
55 | - Engine power/hp class (displacement would still be nice, unfortunately not in the LS)
56 |
57 | - wind
58 |
59 | - vehicle condition
60 |
61 |
62 | My script "Reduced engine braking effect" is no longer required with this new edition, and should not be used together.
63 |
64 | EV: 100%
65 | - no restrictions
66 |
67 | VCA: 99%
68 | - update vca to build 130 or higher
69 | - The vca:motor modification should be switched off
70 | - then it's 100%
71 |
72 | realismAddon_Gearbox: 100%
73 | - no restrictions
74 | - Complements each other in the two gear types.
75 |
76 | Important:
77 | - All settings in the LS must be set to manual.
78 | - Manual shift and clutch.
79 | - No automatic controls may be active.
80 | If you want to drive realistically, you do it anyway.
81 | - Together with realismAddon_GearBox from modelleicher, it makes even more sense to set everything as real/manually as possible.
82 | - CVT addon should be used actively and not just a "it runs in the background" mod (adapt for the respective application)
83 | - For the temperature to work in multiplayer, DashboardLive must be active.
84 | - Automatic engine start must be “off”.
85 |
86 |
87 | ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
88 |
89 |
90 |
91 | [goto english](#english)
92 | ### deutsch
93 |
94 | Dieses Skript berechnet je nach Einstellung die Motorbremswirkung völlig neu
95 |
96 | und fügt diverse Optionen für Vario und CVT Getriebe hinzu.
97 |
98 | Die Berechnungen sind von verschiedenen Faktoren abhängig - z.B.:
99 | - Geschwindigkeiten
100 | - Gewicht & Gewicht angangener Geräter und Anhänger und deren Füllung
101 | - Untergrund, Reifen, Reibung
102 | - Motordrehzahl
103 | - Motorleistung/ PS-Klasse (Hubraum wäre noch schön, gibt es leider nicht im LS)
104 | - Wind
105 | - Fahrzeugzustand
106 |
107 |
108 | Mein Skript "Verringerte Motorbremswirkung" wird mit dieser Neuauflage nicht mehr benötigt, bzw. sollte nicht zusammen genutzt werden.
109 |
110 | EV: 100%
111 | - keine Einschränkungen
112 |
113 | VCA: 99%
114 | - Update VCA auf Build 130 oder höher
115 | - Die vca:Motormodifikation sollte ausgeschalten sein
116 | - dann sind es 100%
117 |
118 | realismAddon_Gearbox: 100%
119 | - keine Einschränkungen
120 | - Ergänzt sich Gegenseitig in den zwei Getriebearten.
121 |
122 |
123 | Wichtig:
124 | - Alle Einstellungen im LS müssen auf manuell gesetzt sein.
125 | - Manuelle Schaltung und Kupplung.
126 | - Es dürfen keine Automatiken für die Steuerung aktiv sein.
127 | Wenn man realistisch fahren möchte, macht man das sowieso.
128 | - U.a. zusammen mit realismAddon_GearBox von modelleicher, macht es noch mehr Sinn alles so real/manuell wie möglich einzustellen.
129 | - CVT-Addon sollte aktiv benutzt werden und nicht nur ein "es läuft im Hintergund" mod ( für die jeweilige Anwendung anpassen )
130 | - Damit die Temperatur im Multiplayer funktioniert, muß DashbordLive aktiv sein.
131 | - Automatischer Motorstart muß "aus" sein.
132 |
133 | [nach oben](#FS22_CVT_Addon)
134 |
--------------------------------------------------------------------------------
/LessMotorBrakeForce.lua:
--------------------------------------------------------------------------------
1 | -- @titel LessMotorBrakeforce Script for FarmingSimulator 2022
2 | -- @author s4t4n
3 | -- @version v1.0.0.0 Release Modhub
4 | -- @version v1.0.0.1 Small Changes(FS22 1.2.0.2)
5 | -- @date 23/12/2022
6 | -- @info LessMotorBrakeforce Script for FarmingSimulator 2022
7 | -- changed app to pre 23.12.2022 SbSh(s4t4n)
8 | -- changelog Anpassung an FS22_realismAddon_gearbox von modelleicher
9 | -- + Vario Fahrstufen und Beschleunigungsrampen
10 |
11 | LessMotorBrakeforce = {};
12 |
13 | function LessMotorBrakeforce.prerequisitesPresent(specializations)
14 | return true
15 | end;
16 |
17 | -- function LessMotorBrakeforce:loadMap(...)
18 | function LessMotorBrakeforce:mapLoaded()
19 | vOne = 1 -- start with 1 for default in Vario II.
20 | vTwo = 1 -- make it not nil
21 | currentAccRamp = 4 -- start with acc.ramp 4 as standard
22 | self.eventIdV1, self.eventIdV2 = "", ""
23 | end
24 |
25 | function LessMotorBrakeforce.checkIsManual(motor)
26 |
27 | local isVarioTM = self.spec_motorized.motor.lastManualShifterActive == false and self.spec_motorized.motor.groupType == 1 and self.spec_motorized.motor.gearType == 1
28 | local isManualTransmission = motor.backwardGears ~= nil or motor.forwardGears ~= nil
29 | if isManualTransmission and VehicleMotor.SHIFT_MODE_MANUAL_CLUTCH then
30 | return true
31 | else
32 | return false
33 | end
34 |
35 | end
36 |
37 | function LessMotorBrakeforce:registerActionEvents()
38 | if self.getIsEntered ~= nil and self:getIsEntered() then
39 | _, LessMotorBrakeforce.eventIdV1 = g_inputBinding:registerActionEvent(InputAction.SETVARIOONE, LessMotorBrakeforce, LessMotorBrakeforce.VarioOne, false, true, false, true, 3.2, true) --
40 | _, LessMotorBrakeforce.eventIdV2 = g_inputBinding:registerActionEvent(InputAction.SETVARIOTWO, LessMotorBrakeforce, LessMotorBrakeforce.VarioTwo, false, true, false, true, 1, true) --
41 | end
42 | end
43 |
44 | function LessMotorBrakeforce:VarioOne()
45 | if (LessMotorBrakeforce.vOne == 1) then return end
46 | vOne = 3.2
47 | self.spec_motorized.motor.maxForwardSpeed = self.spec_motorized.motor.maxForwardSpeed / LessMotorBrakeforce.vOne -- test
48 | self.spec_motorized.motor.maxBackwardSpeed = self.spec_motorized.motor.maxBackwardSpeed / LessMotorBrakeforce.vOne -- test
49 |
50 | end
51 | function LessMotorBrakeforce:VarioTwo()
52 | if (LessMotorBrakeforce.vOne ~= 1) then return end
53 | vOne = 1
54 | self.spec_motorized.motor.maxForwardSpeed = self.spec_motorized.motor.maxForwardSpeed / LessMotorBrakeforce.vOne -- test
55 | self.spec_motorized.motor.maxBackwardSpeed = self.spec_motorized.motor.maxBackwardSpeed / LessMotorBrakeforce.vOne -- test
56 |
57 | end
58 |
59 | function LessMotorBrakeforce:onUpdate(dt)
60 | local isEntered = self.getIsEntered ~= nil and self:getIsEntered()
61 | if isEntered then
62 | if self.LessMotorBrakeforce == nil then
63 | self.LessMotorBrakeforce = true
64 |
65 | if self.spec_motorized ~= nil then
66 | if self.spec_motorized.motor ~= nil then
67 | if self.spec_motorized.motor.lowBrakeForceScale ~= nil then
68 | if self.spec_motorized.motor.lastManualShifterActive == false and self.spec_motorized.motor.groupType == 1 and self.spec_motorized.motor.gearType == 1 then
69 | self.spec_motorized.motor.lowBrakeForceScale = self.spec_motorized.motor.lowBrakeForceScale*0.52 -- in % 10 - 120 (0.90 - 1.20) Settings_Menü, einstellbar, save mp/sp
70 | -- self.spec_motorized.motor.lowBrakeForceSpeedLimit = 0.00427 -- 15 km/h -- Standard, 5kmh, 10 kmh, 15 kmh, 20 kmh, 25 kmh Settings_Menü, einstellbar, save mp/sp / Werte müssen noch ermittelt werden
71 | -- 0.00027777777777778 original
72 | -- 0.00127
73 |
74 |
75 | -- -- Beschleunigungsrampen inputbinding toggle 1 - 4
76 | -- -- ramp 1
77 | -- self.spec_motorized.motor.accelerationLimit = 0.50
78 | -- self.spec_motorized.motor.lowBrakeForceSpeedLimit = 0.00027777777777778 -- default
79 | -- self.spec_motorized.motor.lowBrakeForceScale = self.spec_motorized.motor.lowBrakeForceScale*0.37
80 |
81 | -- -- ramp 2
82 | -- self.spec_motorized.motor.accelerationLimit = 1.00
83 | -- self.spec_motorized.motor.lowBrakeForceSpeedLimit = 0.00150 -- ca 4 kmh
84 | -- self.spec_motorized.motor.lowBrakeForceSpeedLimit = 0.00250 -- ca 8 kmh
85 | -- self.spec_motorized.motor.lowBrakeForceScale = self.spec_motorized.motor.lowBrakeForceScale*0.44
86 |
87 | -- -- ramp 3
88 | -- self.spec_motorized.motor.accelerationLimit = 1.50
89 | self.spec_motorized.motor.lowBrakeForceSpeedLimit = 0.00427 -- 15 km/h
90 | -- self.spec_motorized.motor.lowBrakeForceScale = self.spec_motorized.motor.lowBrakeForceScale*0.52
91 |
92 | -- -- ramp 4
93 | -- self.spec_motorized.motor.accelerationLimit = 2.00 -- Standard
94 | -- self.spec_motorized.motor.lowBrakeForceSpeedLimit = 0.00500 -- 17 kmh
95 | -- self.spec_motorized.motor.lowBrakeForceScale = self.spec_motorized.motor.lowBrakeForceScale*0.69
96 | end;
97 |
98 | -- if self.spec_motorized.motor.lastManualShifterActive == true then
99 | -- self.spec_motorized.motor.lowBrakeForceScale = 0.04;
100 | -- end;
101 | end
102 | end
103 | end
104 | end
105 |
106 |
107 | -- -- Fahrstufe I. (Field/heavy weight tranport or work) inputbinding
108 | g_inputBinding:setActionEventActive(LessMotorBrakeforce.eventIdV1, LessMotorBrakeforce.vOne == 1)
109 | g_inputBinding:setActionEventTextVisibility(LessMotorBrakeforce.eventIdV1, LessMotorBrakeforce.vOne == 1)
110 | g_inputBinding:setActionEventTextPriority(LessMotorBrakeforce.eventIdV1, GS_PRIO_VERY_HIGH)
111 | if LessMotorBrakeforce.vOne ~= 1 then
112 | g_currentMission:addExtraPrintText(g_i18n:getText("txt_VarioOne")) -- #l10n
113 | end
114 |
115 | -- -- Fahrstufe II. (Street/light weight transport or work) inputbinding
116 | -- Standard lassen
117 | g_inputBinding:setActionEventActive(LessMotorBrakeforce.eventIdV2, LessMotorBrakeforce.vOne ~= 1)
118 | g_inputBinding:setActionEventTextVisibility(LessMotorBrakeforce.eventIdV2, LessMotorBrakeforce.vOne ~= 1)
119 | g_inputBinding:setActionEventTextPriority(LessMotorBrakeforce.eventIdV2, GS_PRIO_VERY_HIGH)
120 | if LessMotorBrakeforce.vOne == 1 then
121 | g_currentMission:addExtraPrintText(g_i18n:getText("txt_VarioTwo")) -- #l10n
122 | end
123 |
124 | end
125 | -- -- Dev Text Help Zeug
126 | -- g_currentMission:addExtraPrintText("accelerationLimit: " .. self.spec_motorized.motor.accelerationLimit)
127 | -- g_currentMission:addExtraPrintText("accelerationLimitLoadScale: " .. self.spec_motorized.motor.accelerationLimitLoadScale)
128 | -- g_currentMission:addExtraPrintText("lowBrakeForceScale: " .. self.spec_motorized.motor.lowBrakeForceScale)
129 | -- g_currentMission:addExtraPrintText("gearType: " .. tostring(self.spec_motorized.motor.gearType))
130 | -- g_currentMission:addExtraPrintText("isManualTransmission: " .. tostring(isManualTransmission))
131 | g_currentMission:addExtraPrintText("LessMotorBrakeforce.eventIdV1: " .. tostring(LessMotorBrakeforce.eventIdV1))
132 | g_currentMission:addExtraPrintText("self.eventIdV1: " .. tostring(self.eventIdV1))
133 | g_currentMission:addExtraPrintText("eventIdV1: " .. tostring(eventIdV1))
134 | g_currentMission:addExtraPrintText("vOne: " .. tostring(vOne))
135 | g_currentMission:addExtraPrintText("LMBF.vOne: " .. tostring(LessMotorBrakeforce.vOne))
136 | g_currentMission:addExtraPrintText("self.vOne: " .. tostring(self.vOne))
137 | g_currentMission:addExtraPrintText("isEntered: " .. tostring(isEntered))
138 | -- g_currentMission:addExtraPrintText("groupType: " .. tostring(self.spec_motorized.motor.groupType))
139 | -- g_currentMission:addExtraPrintText("lastManualShifterActive: " .. tostring(self.spec_motorized.motor.lastManualShifterActive))
140 | -- g_currentMission:addExtraPrintText("lowBrakeForceSpeedLimit: " .. tostring(self.spec_motorized.motor.lowBrakeForceSpeedLimit))
141 | g_currentMission:addExtraPrintText("maxForwardSpeed: " .. tostring(self.spec_motorized.motor.maxForwardSpeed))
142 | -- print("lowBrakeForceSpeedLimit: " .. tostring(self.spec_motorized.motor.lowBrakeForceSpeedLimit))
143 | -- g_currentMission:addExtraPrintText("lastAcceleratorPedal: " .. self.spec_motorized.motor.gearShiftMode)
144 | -- g_currentMission:addExtraPrintText("minGearRatio: " .. self.spec_motorized.motor.maxGearRatio)
145 | -- g_currentMission:addExtraPrintText("maxClutchTorque: " .. tostring(self.spec_motorized.motor.maxClutchTorque))
146 | -- g_currentMission:addExtraPrintText("constantRpmCharge: " .. tostring(self.spec_motorized.motor.constantRpmCharge))
147 |
148 | end
149 | -- Drivable = true
150 | -- addModEventListener(LessMotorBrakeforce)
151 | Drivable.onUpdate = Utils.appendedFunction(Drivable.onUpdate, LessMotorBrakeforce.onUpdate);
--------------------------------------------------------------------------------
/FS22_CVT_Addon/l10n/offline/modDesc_l10n_es.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
62 |
63 |
64 |
65 |
71 |
83 |
84 |
85 |
96 |
101 |
102 |
103 |
112 |
121 |
122 |
123 |
129 |
130 |
131 |
135 |
136 |
137 |
142 |
143 |
144 |
148 |
149 |
173 |
174 |
185 |
198 |
199 |
200 |
201 |
202 |
206 |
207 |
208 |
209 |
213 |
214 |
215 |
219 |
220 |
221 |
224 |
225 |
226 |
229 |
230 |
231 |
240 |
241 |
242 |
246 |
247 |
248 |
249 |
--------------------------------------------------------------------------------
/FS22_CVT_Addon/l10n/offline/modDesc_l10n_be.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
63 |
64 |
65 |
66 |
72 |
84 |
85 |
86 |
97 |
102 |
103 |
104 |
113 |
122 |
123 |
124 |
130 |
131 |
132 |
136 |
137 |
138 |
143 |
144 |
145 |
149 |
150 |
174 |
175 |
186 |
199 |
200 |
201 |
202 |
203 |
207 |
208 |
209 |
210 |
214 |
215 |
216 |
220 |
221 |
222 |
225 |
226 |
227 |
230 |
231 |
232 |
241 |
242 |
243 |
247 |
248 |
249 |
250 |
--------------------------------------------------------------------------------
/FS22_CVT_Addon/l10n/offline/modDesc_l10n_cz.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
62 |
63 |
64 |
65 |
71 |
83 |
84 |
85 |
96 |
101 |
102 |
103 |
112 |
121 |
122 |
123 |
129 |
130 |
131 |
135 |
136 |
137 |
142 |
143 |
144 |
148 |
149 |
173 |
174 |
185 |
198 |
199 |
200 |
201 |
202 |
206 |
207 |
208 |
209 |
213 |
214 |
215 |
219 |
220 |
221 |
224 |
225 |
226 |
229 |
230 |
231 |
240 |
241 |
242 |
246 |
247 |
248 |
249 |
--------------------------------------------------------------------------------
/FS22_CVT_Addon/CVT_Addon_HUD.lua:
--------------------------------------------------------------------------------
1 | -- @titel LessMotorBrakeforce Script for FarmingSimulator 2022
2 | -- @new titel CVT_Addon Script for FarmingSimulator 2022
3 | -- @author s4t4n
4 | -- @HUD simple Text for the first
5 |
6 | CVTaddonHUD = {}
7 |
8 | function CVTaddonHUD:onDraw(vehicle, dt)
9 | local spec = self.spec_CVTaddon -- need sync with CVT_Addon.lua spec
10 | local storeItem = g_storeManager:getItemByXMLFilename(self.configFileName)
11 | local StI = storeItem.categoryName
12 | local isTractor = StI == "TRACTORSS" or StI == "TRACTORSM" or StI == "TRACTORSL"
13 | local isErnter = StI == "HARVESTERS" or StI == "FORAGEHARVESTERS" or StI == "POTATOVEHICLES" or StI == "BEETVEHICLES" or StI == "SUGARCANEVEHICLES" or StI == "COTTONVEHICLES" or StI == "MISCVEHICLES"
14 | local isLoader = StI == "FRONTLOADERVEHICLES" or StI == "TELELOADERVEHICLES" or StI == "SKIDSTEERVEHICLES" or StI == "WHEELLOADERVEHICLES"
15 | local isPKWLKW = StI == "CARS" or StI == "TRUCKS"
16 | local isWoodWorker = storeItem.categoryName == "WOODHARVESTING"
17 | local isFFF = storeItem.categoryName == "FORKLIFTS"
18 |
19 | if g_currentMission.hud.isVisible and spec.isVarioTM then
20 |
21 |
22 | -- calculate position and size
23 | local uiScale = g_gameSettings.uiScale;
24 | -- render BG
25 | -- h -
26 | -- + nach
27 | -- local D_posX = g_currentMission.inGameMenu.hud.speedMeter.gaugeCenterX - (g_currentMission.inGameMenu.hud.speedMeter.speedIndicatorRadiusY * 1.3) -0.018
28 | local posX = g_currentMission.inGameMenu.hud.speedMeter.gaugeCenterX - (g_currentMission.inGameMenu.hud.speedMeter.speedIndicatorRadiusY * 1) - (0.035*g_gameSettings.uiScale)
29 |
30 | -- v | + hoch
31 | local posY = g_currentMission.inGameMenu.hud.speedMeter.gaugeCenterY
32 |
33 | -- vector2D[1] * self.overlay.scaleWidth * g_aspectScaleX / g_referenceScreenWidth,
34 | -- vector2D[2] * self.overlay.scaleHeight * g_aspectScaleY / g_referenceScreenHeight
35 |
36 | -- function vehicleControlAddon.getUiScale()
37 | -- local uiScale = 1.0
38 | -- if g_gameSettings ~= nil and type( g_gameSettings.uiScale ) == "number" then
39 | -- uiScale = g_gameSettings.uiScale
40 | -- end
41 | -- return uiScale
42 | -- end
43 |
44 |
45 | -- local BG_PosX = g_currentMission.inGameMenu.hud.speedMeter.gaugeCenterY - (g_currentMission.inGameMenu.hud.speedMeter.speedIndicatorRadiusY * 1)
46 | -- local BG_PosY = g_currentMission.inGameMenu.hud.speedMeter.gaugeCenterY - 0.02
47 |
48 | -- local SpeedMeterDisplay = g_currentMission.inGameMenu.hud.speedMeter
49 | -- local width, height = getNormalizedScreenValues(unpack(CVTaddon.BGSIZE.BACKGROUND))
50 | local BGcvt = 1
51 | local overlayP = 1
52 | -- local overlay.overlay = 1
53 | local Transparancy = 0.6
54 | -- local CVTaddon.overlayP = overlayP
55 | -- if CVTaddon.overlay[overlay] == nil then
56 |
57 | local size = 0.014 * g_gameSettings.uiScale
58 |
59 | local drawHgStep = ""
60 | for i=1, spec.vFive-1 do
61 | drawHgStep = drawHgStep .."["
62 |
63 | end
64 | spec.HgScaleX = 0.04 / 9 * (spec.vFive-1)
65 | -- if spec.vOne == 3.2 then
66 | if spec.vOne == 2 then
67 | spec.D_insTextV = "txt_VarioOne" -- ToDo make graphic instead of Text Dots to comp with 4k
68 |
69 | end
70 | -- if spec.vOne == 1 then
71 | if spec.vOne == 1 then
72 | spec.D_insTextV = "txt_VarioTwo" -- ToDo make graphic instead of Text Dots to comp with 4k
73 | end
74 | if spec.vFour == 0 then
75 | spec.N_insTextV = "txt_VarioN"
76 | elseif spec.vFour == 1 then
77 | if self.spec_motorized.motor.currentDirection == 1 then
78 | spec.N_insTextV = "txt_VarioD"
79 | elseif self.spec_motorized.motor.currentDirection == -1 then
80 | spec.N_insTextV = "txt_VarioR"
81 | end
82 | end
83 | -- add current driving level to table
84 | spec.D_genText = tostring(g_i18n:getText(spec.D_insTextV))
85 | spec.N_genText = tostring(g_i18n:getText(spec.N_insTextV))
86 | -- render
87 | if spec.transparendSpd == nil then
88 | spec.transparendSpd = 0.6
89 | spec.transparendSpdT = 1
90 | end
91 | if self:getLastSpeed() > 20 then
92 | spec.transparendSpd = (1- (self:getLastSpeed()/20-1))
93 | spec.transparendSpdT = (1- (self:getLastSpeed()/20-1))
94 | elseif self:getLastSpeed() <= 20 or self:getLastSpeed() == nil then
95 | spec.transparendSpdT = 1
96 | end
97 | setTextColor(0, 0.9, 0, math.max(math.min(spec.transparendSpdT, 1), 0.7))
98 | -- setOverlayColor(CVTaddon.overlayP, 0.5, 1, 0, 0.6)
99 | -- setTextColor(1,1,1,1)
100 | setTextAlignment(RenderText.ALIGN_LEFT)
101 | setTextVerticalAlignment(RenderText.VERTICAL_ALIGN_TOP)
102 | setTextBold(false)
103 |
104 | -- add background overlay box ----------------------------------------------------------------------------------
105 | -- local fontName = self.xmlFile:getValue(spec.D_genText .. "#font", "DIGIT"):upper();
106 | -- local fontMaterial = g_materialManager:getFontMaterial(fontName, self.customEnvironment);
107 | -----------------------------------------------------------------------------------------------------------------
108 | if spec.AR_genText ~= nil and spec.BR_genText ~= nil and spec.D_genText ~= nil then
109 | if not isPKWLKW then
110 | spec.currBGcolor = { 0.01, 0.01, 0.01, math.max(math.min(spec.transparendSpd, 0.6), 0.2) }
111 | CVTaddon.CVTIconBg:setColor(unpack(spec.currBGcolor))
112 | CVTaddon.CVTIconFb:setColor(0, 0, 0, math.max(math.min(spec.transparendSpdT, 1), 0.7))
113 | CVTaddon.CVTIconFs1:setColor(0, 0.9, 0, math.max(math.min(spec.transparendSpdT, 1), 0.7))
114 | CVTaddon.CVTIconFs2:setColor(0, 0.9, 0, math.max(math.min(spec.transparendSpdT, 1), 0.7))
115 | CVTaddon.CVTIconHg:setColor(0, 0.8, 0, math.max(math.min(spec.transparendSpdT-0.3, 0.5), 0.1))
116 | CVTaddon.CVTIconAr1:setColor(0, 0.8, 0, math.max(math.min(spec.transparendSpdT-0.3, 0.5), 0.1)) --
117 | CVTaddon.CVTIconAr2:setColor(0, 0.8, 0, math.max(math.min(spec.transparendSpdT-0.3, 0.5), 0.1))
118 | CVTaddon.CVTIconAr3:setColor(0, 0.8, 0, math.max(math.min(spec.transparendSpdT-0.3, 0.5), 0.1))
119 | CVTaddon.CVTIconAr4:setColor(0, 0.8, 0, math.max(math.min(spec.transparendSpdT-0.3, 0.5), 0.1))
120 | CVTaddon.CVTIconHydro:setColor(0, 0.8, 0, math.max(math.min(spec.transparendSpdT-0.3, 0.5), 0.1))
121 | CVTaddon.CVTIconN:setColor(0, 0.8, 0, math.max(math.min(spec.transparendSpdT-0.3, 0.5), 0.1))
122 | CVTaddon.CVTIconN2:setColor(0, 0.8, 0, math.max(math.min(spec.transparendSpdT-0.3, 0.5), 0.1))
123 | CVTaddon.CVTIconV:setColor(0, 0.8, 0, math.max(math.min(spec.transparendSpdT-0.3, 0.5), 0.1))
124 | CVTaddon.CVTIconR:setColor(0, 0.8, 0, math.max(math.min(spec.transparendSpdT-0.3, 0.5), 0.1))
125 |
126 | CVTaddon.CVTIconBg:setPosition(posX-0.01, posY)
127 | CVTaddon.CVTIconFb:setPosition(posX-0.01, posY)
128 | CVTaddon.CVTIconFs1:setPosition(posX-0.01, posY)
129 | CVTaddon.CVTIconFs2:setPosition(posX-0.01, posY)
130 | CVTaddon.CVTIconHg:setPosition(posX-0.01, posY)
131 | CVTaddon.CVTIconAr1:setPosition(posX-0.01, posY)
132 | CVTaddon.CVTIconAr2:setPosition(posX-0.01, posY)
133 | CVTaddon.CVTIconAr3:setPosition(posX-0.01, posY)
134 | CVTaddon.CVTIconAr4:setPosition(posX-0.01, posY)
135 | CVTaddon.CVTIconHydro:setPosition(posX-0.01, posY)
136 | CVTaddon.CVTIconN:setPosition(posX-0.01, posY)
137 | CVTaddon.CVTIconN2:setPosition(posX-0.01, posY)
138 | CVTaddon.CVTIconV:setPosition(posX-0.01, posY)
139 | CVTaddon.CVTIconR:setPosition(posX-0.01, posY)
140 |
141 | CVTaddon.CVTIconBg:setAlignment(Overlay.ALIGN_VERTICAL_MIDDLE, Overlay.ALIGN_HORIZONTAL_LEFT)
142 | CVTaddon.CVTIconFb:setAlignment(Overlay.ALIGN_VERTICAL_MIDDLE, Overlay.ALIGN_HORIZONTAL_LEFT)
143 | CVTaddon.CVTIconFs1:setAlignment(Overlay.ALIGN_VERTICAL_MIDDLE, Overlay.ALIGN_HORIZONTAL_LEFT)
144 | CVTaddon.CVTIconFs2:setAlignment(Overlay.ALIGN_VERTICAL_MIDDLE, Overlay.ALIGN_HORIZONTAL_LEFT)
145 | CVTaddon.CVTIconHg:setAlignment(Overlay.ALIGN_VERTICAL_MIDDLE, Overlay.ALIGN_HORIZONTAL_LEFT)
146 | CVTaddon.CVTIconAr1:setAlignment(Overlay.ALIGN_VERTICAL_MIDDLE, Overlay.ALIGN_HORIZONTAL_LEFT)
147 | CVTaddon.CVTIconAr2:setAlignment(Overlay.ALIGN_VERTICAL_MIDDLE, Overlay.ALIGN_HORIZONTAL_LEFT)
148 | CVTaddon.CVTIconAr3:setAlignment(Overlay.ALIGN_VERTICAL_MIDDLE, Overlay.ALIGN_HORIZONTAL_LEFT)
149 | CVTaddon.CVTIconAr4:setAlignment(Overlay.ALIGN_VERTICAL_MIDDLE, Overlay.ALIGN_HORIZONTAL_LEFT)
150 | CVTaddon.CVTIconHydro:setAlignment(Overlay.ALIGN_VERTICAL_MIDDLE, Overlay.ALIGN_HORIZONTAL_LEFT)
151 | CVTaddon.CVTIconN:setAlignment(Overlay.ALIGN_VERTICAL_MIDDLE, Overlay.ALIGN_HORIZONTAL_LEFT)
152 | CVTaddon.CVTIconN2:setAlignment(Overlay.ALIGN_VERTICAL_MIDDLE, Overlay.ALIGN_HORIZONTAL_LEFT)
153 | CVTaddon.CVTIconV:setAlignment(Overlay.ALIGN_VERTICAL_MIDDLE, Overlay.ALIGN_HORIZONTAL_LEFT)
154 | CVTaddon.CVTIconR:setAlignment(Overlay.ALIGN_VERTICAL_MIDDLE, Overlay.ALIGN_HORIZONTAL_LEFT)
155 |
156 | -- :setAlignment(self.alignmentVertical, self.alignmentHorizontal)
157 |
158 | CVTaddon.CVTIconBg:setScale(0.04*g_gameSettings.uiScale, 0.094*g_gameSettings.uiScale)
159 | CVTaddon.CVTIconFb:setScale(0.04*g_gameSettings.uiScale, 0.094*g_gameSettings.uiScale)
160 | CVTaddon.CVTIconFs1:setScale(0.04*g_gameSettings.uiScale, 0.094*g_gameSettings.uiScale)
161 | CVTaddon.CVTIconFs2:setScale(0.04*g_gameSettings.uiScale, 0.094*g_gameSettings.uiScale)
162 | CVTaddon.CVTIconHg:setScale(spec.HgScaleX*g_gameSettings.uiScale, 0.094*g_gameSettings.uiScale)
163 | CVTaddon.CVTIconAr1:setScale(0.04*g_gameSettings.uiScale, 0.094*g_gameSettings.uiScale)
164 | CVTaddon.CVTIconAr2:setScale(0.04*g_gameSettings.uiScale, 0.094*g_gameSettings.uiScale)
165 | CVTaddon.CVTIconAr3:setScale(0.04*g_gameSettings.uiScale, 0.094*g_gameSettings.uiScale)
166 | CVTaddon.CVTIconAr4:setScale(0.04*g_gameSettings.uiScale, 0.094*g_gameSettings.uiScale)
167 | CVTaddon.CVTIconHydro:setScale(0.04*g_gameSettings.uiScale, 0.094*g_gameSettings.uiScale)
168 | CVTaddon.CVTIconN:setScale(0.04*g_gameSettings.uiScale, 0.094*g_gameSettings.uiScale)
169 | CVTaddon.CVTIconN2:setScale(0.04*g_gameSettings.uiScale, 0.094*g_gameSettings.uiScale)
170 | -- CVTaddon.CVTIconN2:setBlinking(true)
171 | CVTaddon.CVTIconV:setScale(0.04*g_gameSettings.uiScale, 0.094*g_gameSettings.uiScale)
172 | CVTaddon.CVTIconR:setScale(0.04*g_gameSettings.uiScale, 0.094*g_gameSettings.uiScale)
173 |
174 | -- self.mapHotspot:setPersistent(true)
175 | -- self.mapHotspot:setRenderLast(true)
176 | -- self.mapHotspot:setBlinking(true)
177 |
178 |
179 | -- local HGuvs = {x,y, x,y, x,y, x,y}
180 | -- local HGuvs = {s1s s2e e 3s e 4e}
181 | -- local hgUVs = {0,0, 0,1, 0.5,0, 0.5,1} -- verschiebt nur und cropped nicht
182 | -- Array of UV coordinates as {x, y, width, height}
183 | -- local HGuvs = getNormalizedUVs{0, 0, 108, 512}
184 | -- CVTaddon.CVTIconHg:setUVs(hgUVs)
185 | -- u1, v1, u2, v2, u3, v3, u4, v4
186 | -- -- start x, start y
187 | -- u1 = (u3-u1)*p1 + u1
188 | -- v1 = (v2-v1)*p2 + v1
189 |
190 | -- -- start x, end y
191 | -- u2 = (u3-u1)*p1 + u1
192 | -- v2 = (v4-v3)*p4 + v3
193 |
194 | -- -- end x, start y
195 | -- u3 = (u3-u1)*p3 + u1
196 | -- v3 = (v2-v1)*p2 + v1
197 |
198 | -- -- end x, end y
199 | -- u4 = (u4-u2)*p3 + u2
200 | -- v4 = (v4-v3)*p4 + v3
201 |
202 |
203 | -- CVTaddon.CVTIcon:setDimension(0.4, 0.8)
204 |
205 | CVTaddon.CVTIconBg:render()
206 | CVTaddon.CVTIconFb:render()
207 | if spec.isMotorOn then
208 | CVTaddon.CVTIconHg:render()
209 |
210 | if spec.vOne == 2 then
211 | CVTaddon.CVTIconFs1:render()
212 | elseif spec.vOne == 1 then
213 | CVTaddon.CVTIconFs2:render()
214 | end
215 | if spec.vTwo == 1 then
216 | CVTaddon.CVTIconAr4:render()
217 | elseif spec.vTwo == 2 then
218 | CVTaddon.CVTIconAr1:render()
219 | elseif spec.vTwo == 3 then
220 | CVTaddon.CVTIconAr2:render()
221 | elseif spec.vTwo == 4 then
222 | CVTaddon.CVTIconAr3:render()
223 | end
224 | if spec.vFour == 0 then
225 | CVTaddon.CVTIconN2:render()
226 | end
227 | if self.spec_motorized.motor.currentDirection == 1 then
228 | CVTaddon.CVTIconV:render()
229 | elseif self.spec_motorized.motor.currentDirection == -1 then
230 | CVTaddon.CVTIconR:render()
231 | end
232 | if spec.isHydroState then
233 |
234 | CVTaddon.CVTIconHydro:render()
235 | end
236 |
237 | -- setTextBold(true)
238 | -- renderText(posX, D_posY+0.03, size+0.025, spec.D_genText)
239 | -- renderText(posX-0.01, posY+0.024, size, spec.N_genText)
240 | setTextBold(false)
241 | -- renderText(posX, posY, size, spec.AR_genText)
242 | renderText(posX, posY-0.02, size, spec.BR_genText)
243 | -- setTextAlignment(RenderText.ALIGN_RIGHT)
244 | -- renderText(posX+0.010, posY+0.026, size-0.005, drawHgStep)
245 | -- g_currentMission:addExtraPrintText("uiScale: "..tostring(uiScale))
246 | -- g_currentMission:addExtraPrintText("g_screenAspectRatio: "..tostring(g_screenAspectRatio))
247 | -- g_currentMission:addExtraPrintText("g_aspectScaleX: "..tostring(g_aspectScaleX))
248 | -- g_currentMission:addExtraPrintText("g_aspectScaleY: "..tostring(g_aspectScaleY))
249 | -- g_currentMission:addExtraPrintText("g_referenceScreenWidth: "..tostring(g_referenceScreenWidth))
250 | -- g_currentMission:addExtraPrintText("g_referenceScreenHeight: "..tostring(g_referenceScreenHeight))
251 | end
252 | end
253 | end
254 | -- Back to roots
255 | setTextColor(1,1,1,1)
256 | setTextAlignment(RenderText.ALIGN_LEFT)
257 | setTextVerticalAlignment(RenderText.VERTICAL_ALIGN_BASELINE)
258 | setTextBold(false)
259 | setTextLineHeightScale(RenderText.DEFAULT_LINE_HEIGHT_SCALE)
260 | setTextLineBounds(0, 0)
261 | setTextWrapWidth(0)
262 | end
263 | end
264 | -- addModEventListener(CVTaddonHUD)
265 | -- addModEventListener(CVTaddon)
266 | -- CVTaddonHUD:registerSpecialization()
--------------------------------------------------------------------------------
/FS22_CVT_Addon/l10n/modDesc_l10n_nl.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
74 |
75 |
76 |
77 |
83 |
91 |
92 |
93 |
101 |
106 |
107 |
108 |
114 |
120 |
121 |
122 |
126 |
127 |
128 |
131 |
132 |
133 |
137 |
138 |
139 |
143 |
144 |
157 |
158 |
165 |
177 |
178 |
179 |
180 |
181 |
183 |
184 |
185 |
186 |
191 |
192 |
193 |
197 |
198 |
199 |
202 |
203 |
204 |
207 |
208 |
209 |
216 |
217 |
218 |
222 |
223 |
224 |
225 |
227 |
228 |
229 |
230 |
231 |
232 |
233 |
234 |
235 |
236 |
237 |
238 |
239 |
240 |
241 |
243 |
244 |
245 |
246 |
247 |
248 |
249 |
250 |
251 |
252 |
253 |
254 |
255 |
--------------------------------------------------------------------------------
/FS22_CVT_Addon/l10n/modDesc_l10n_en.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
67 |
68 |
69 |
70 |
76 |
86 |
87 |
88 |
99 |
104 |
105 |
106 |
115 |
124 |
125 |
126 |
132 |
133 |
134 |
138 |
139 |
140 |
145 |
146 |
147 |
151 |
152 |
176 |
177 |
188 |
201 |
202 |
203 |
204 |
205 |
209 |
210 |
211 |
212 |
217 |
218 |
219 |
223 |
224 |
225 |
228 |
229 |
230 |
233 |
234 |
235 |
244 |
245 |
246 |
250 |
251 |
252 |
253 |
255 |
256 |
257 |
258 |
259 |
260 |
261 |
262 |
263 |
264 |
265 |
266 |
267 |
268 |
269 |
272 |
273 |
274 |
--------------------------------------------------------------------------------
/FS22_CVT_Addon/l10n/modDesc_l10n_fr.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
68 |
69 |
70 |
71 |
77 |
87 |
88 |
89 |
100 |
105 |
106 |
107 |
116 |
125 |
126 |
127 |
133 |
134 |
135 |
139 |
140 |
141 |
146 |
147 |
148 |
152 |
153 |
177 |
178 |
189 |
202 |
203 |
204 |
205 |
206 |
210 |
211 |
212 |
213 |
218 |
219 |
220 |
224 |
225 |
226 |
229 |
230 |
231 |
234 |
235 |
236 |
245 |
246 |
247 |
251 |
252 |
253 |
254 |
256 |
257 |
258 |
259 |
260 |
261 |
262 |
263 |
264 |
265 |
266 |
267 |
268 |
269 |
270 |
273 |
274 |
275 |
--------------------------------------------------------------------------------
/FS22_CVT_Addon/l10n/modDesc_l10n_de.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
68 |
69 |
70 |
71 |
77 |
89 |
90 |
91 |
102 |
107 |
108 |
109 |
118 |
127 |
128 |
129 |
135 |
136 |
137 |
141 |
142 |
143 |
148 |
149 |
150 |
154 |
155 |
179 |
180 |
191 |
204 |
205 |
206 |
207 |
208 |
212 |
213 |
214 |
215 |
220 |
221 |
222 |
226 |
227 |
228 |
231 |
232 |
233 |
236 |
237 |
238 |
247 |
248 |
249 |
253 |
254 |
255 |
256 |
258 |
259 |
260 |
261 |
262 |
263 |
264 |
265 |
266 |
267 |
268 |
269 |
270 |
271 |
272 |
275 |
276 |
277 |
278 |
279 |
--------------------------------------------------------------------------------