From 5038744ea5d2b7c9e429259615de0d0093fa7d56 Mon Sep 17 00:00:00 2001
From: 4c65736975 <107006334+4c65736975@users.noreply.github.com>
Date: Sat, 27 Jan 2024 21:40:50 +0100
Subject: [PATCH] Bug game closes automatically (#35)
* Added changelog
* fixed game crash in patch 1.13.1.1
* Version update
* corrected description
---
.github/ISSUE_TEMPLATE/bug-report.yml | 3 +-
CHANGELOG.md | 15 ++++++++
README.md | 17 +--------
modDesc.xml | 54 ++++++++-------------------
src/vehicles/VehicleRenderCamera.lua | 7 ++--
5 files changed, 38 insertions(+), 58 deletions(-)
create mode 100644 CHANGELOG.md
diff --git a/.github/ISSUE_TEMPLATE/bug-report.yml b/.github/ISSUE_TEMPLATE/bug-report.yml
index 18064d0..7a99b84 100644
--- a/.github/ISSUE_TEMPLATE/bug-report.yml
+++ b/.github/ISSUE_TEMPLATE/bug-report.yml
@@ -15,6 +15,7 @@ body:
label: Version
description: What version of the modification does the problem apply to?
options:
+ - 1.0.0.2
- 1.0.0.1
- 1.0.0.0
default: 0
@@ -25,7 +26,7 @@ body:
id: game
attributes:
label: Game Version
- description: Check the bottom right corner of the game's main menu.
+ description: Check the top left corner of the game's main menu.
options:
- Farming Simulator 22 (1.13.1.1)
- Farming Simulator 22 (1.13.1.0)
diff --git a/CHANGELOG.md b/CHANGELOG.md
new file mode 100644
index 0000000..a373294
--- /dev/null
+++ b/CHANGELOG.md
@@ -0,0 +1,15 @@
+# Changelog
+
+## 1.0.0.2
+
+Fix:
+
+- fixed game crash in patch 1.13.1.1 (unfortunately the camera quality is slightly worse)
+
+## 1.0.0.1
+
+Features:
+
+- added more default in-game vehicles and implements support
+- added compatibility with implements
+- improved code
\ No newline at end of file
diff --git a/README.md b/README.md
index 1df9691..4bf4e56 100644
--- a/README.md
+++ b/README.md
@@ -12,6 +12,8 @@
Report Bug
·
Request Feature
+ ·
+ Changelog
@@ -61,11 +63,6 @@ Change camera system mode (off/on) - "z" key (default)
Next/previous camera - "left shift + k/m" keys (default)
-ATTENTION!
-- to activate the camera system, the vehicle must have their configuration added,
-- some cameras can cause fps drops, unfortunately this is due to the game engine so I can't do anything about it,
-- the image quality of the cameras is the highest I could set, so please bear with me. (The quality of the camera also depends on your graphics settings, it is also possible to manually improve it, details are below)
-
↑ back to top
## Getting started
@@ -97,16 +94,6 @@ or
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.
-### Improvements
-
-You can improve camera quality (dust, effects) by changing the code as shown below. Note that with this change you will get a lua error from time to time, but the game will run fine.
-
-```lua
-src/vehicles/VehicleRenderCamera.lua
-
-local development = false -- change to true
-```
-
### 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)
diff --git a/modDesc.xml b/modDesc.xml
index cce9c80..bf76ce2 100644
--- a/modDesc.xml
+++ b/modDesc.xml
@@ -1,7 +1,7 @@
-
+
VertexFloat
- 1.0.0.1
+ 1.0.0.2
Camera System
Kamerasystem
@@ -15,64 +15,40 @@ As standard, some of the originally available GitHub.
-
-ATTENTION!
-* to activate the camera system, the vehicle must have their configuration added,
-* the image quality of the cameras is the highest I could set, so please bear with me. (The quality of the camera also depends on your graphics settings, it is also possible to manually improve it, details are also on GitHub)]]>
+For more information, vehicle integration instructions, help or a bug report, please visit GitHub.]]>
Fahrzeuge und Anbaugeräte mit Kamerakonfigurationen ausgestattet.
Kamerasystemmodus ändern (aus/ein) – „z“-Taste (Standard)
Nächste/vorherige Kamera – Tasten „linke Umschalttaste + k/m“ (Standard)
-Änderungsprotokoll (1.0.0.1):
-- Unterstützung für weitere Standardfahrzeuge und -geräte im Spiel hinzugefügt
-- Implementierungskompatibilität hinzugefügt
-- verbesserter Code
-
-Weitere Informationen, Anweisungen zur Fahrzeugintegration, Hilfe oder einen Fehlerbericht finden Sie auf GitHub.
+Änderungsprotokoll (1.0.0.2):
+- Spielabsturz in Patch 1.13.1.1 behoben (leider ist die Kameraqualität etwas schlechter)
-AUFMERKSAMKEIT!
-* um das Kamerasystem zu aktivieren, muss dem Fahrzeug seine Konfiguration hinzugefügt werden,
-* Die Bildqualität der Kameras ist die höchste, die ich einstellen konnte, also haben Sie bitte etwas Geduld. (Die Qualität der Kamera hängt auch von Ihren Grafikeinstellungen ab, es ist auch möglich, sie manuell zu verbessern, Details finden Sie auch auf GitHub)]]>
+Weitere Informationen, Anweisungen zur Fahrzeugintegration, Hilfe oder einen Fehlerbericht finden Sie auf GitHub.]]>
véhicules et outils disponibles à l'origine étaient équipés de configurations de caméra.
Changer le mode système de la caméra (off/on) - touche "z" (par défaut)
Appareil photo suivant/précédent - touches "shift gauche + k/m" (par défaut)
-Journal des modifications (1.0.0.1) :
-- ajout de la prise en charge de plus de véhicules et d'outils par défaut dans le jeu
-- ajout de la compatibilité des outils
-- code amélioré
+Journal des modifications (1.0.0.2) :
+- Correction d'un crash du jeu dans le patch 1.13.1.1 (malheureusement, la qualité de la caméra est légèrement pire)
-Pour plus d"informations, des instructions d"intégration de véhicule, de l"aide ou un rapport de bogue, veuillez visiter GitHub.
-
-ATTENTION!
-* pour activer le système de caméra, le véhicule doit avoir sa configuration ajoutée,
-* la qualité d'image des caméras est la plus élevée que je puisse définir, alors soyez indulgent avec moi. (La qualité de la caméra dépend aussi de vos paramètres graphiques, il est aussi possible de l'améliorer manuellement, les détails sont aussi sur GitHub)]]>
+Pour plus d"informations, des instructions d"intégration de véhicule, de l"aide ou un rapport de bogue, veuillez visiter GitHub.]]>
pojazdów oraz narzędzi została wyposażona w konfiguracje kamer.
Zmień tryb systemu kamer (wyłączony/włączony) - klawisz "z" (standardowo)
Następna/poprzednia kamera - klawisze "lewy shift + k/m" (standardowo)
-Dziennik zmian (1.0.0.1):
-- dodano wsparcie dla większej ilości domyślnych pojazdów w grze i narzędzi
-- dodano kompatybilność z narzędziami
-- ulepszony kod
-
-Po więcej informacji, instrukcje integracji pojazdu, pomoc lub zgłoszenie błędu, odwiedź stronę GitHub.
+Dziennik zmian (1.0.0.2):
+- naprawiono awarię gry w patchu 1.13.1.1 (niestety jakość kamery jest nieco gorsza)
-UWAGA!
-* żeby aktywować system kamer, pojazd musi mieć dodaną ich konfigurację,
-* jakość obrazu kamer, jest najwyższa jaką miałem możliwość ustawić, więc proszę o wyrozumiałość. (Jakość kamery zależy również od twoich ustawień graficznych, jest również możliwość manualnego poprawienia jej, szczegóły są również na GitHub)]]>
+Po więcej informacji, instrukcje integracji pojazdu, pomoc lub zgłoszenie błędu, odwiedź stronę GitHub.]]>
icon_cameraSystem.png
@@ -207,4 +183,4 @@ UWAGA!
-
+
\ No newline at end of file
diff --git a/src/vehicles/VehicleRenderCamera.lua b/src/vehicles/VehicleRenderCamera.lua
index 91e1bcb..eedd7f5 100644
--- a/src/vehicles/VehicleRenderCamera.lua
+++ b/src/vehicles/VehicleRenderCamera.lua
@@ -1,8 +1,9 @@
-- @author: 4c65736975, All Rights Reserved
--- @version: 1.0.0.0, 09|08|2023
+-- @version: 1.0.0.1, 27|01|2024
-- @filename: VehicleRenderCamera.lua
-local development = false -- if true, better quality but throws lua error (game works fine)
+-- Changelog (1.0.0.1):
+-- fixed game crash in patch 1.13.1.1
VehicleRenderCamera = {}
@@ -84,7 +85,7 @@ function VehicleRenderCamera:createRender()
local resolutionY = (g_screenHeight * .2) * 2
local aspectRatio = resolutionX / resolutionY
- self.overlay = createRenderOverlay(self.camera, aspectRatio, resolutionX, resolutionY, true, development and 4294967295 or 4278255488, 4294967295, false, 5, false, 0, getCloudQuality())
+ self.overlay = createRenderOverlay(self.camera, aspectRatio, resolutionX, resolutionY, true, 4294967295, 4294967295)
end
function VehicleRenderCamera:update(dt)