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 <en>Camera System</en> <de>Kamerasystem</de> @@ -15,64 +15,40 @@ As standard, some of the originally available <a href="https://github.com/4c6573 Change camera system mode (off/on) - "z" key (default) Next/previous camera - "left shift + k/m" keys (default) -Changelog (1.0.0.1): -- added more default in-game vehicles and implements support -- added compatibility with implements -- improved code +Changelog (1.0.0.2): +- fixed game crash in patch 1.13.1.1 (unfortunately the camera quality is slightly worse) -For more information, vehicle integration instructions, help or a bug report, please visit <a href="https://github.com/4c65736975/cameraSystem">GitHub</a>. - -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 <a href="https://github.com/4c65736975/cameraSystem#improvements">GitHub</a>)]]></en> +For more information, vehicle integration instructions, help or a bug report, please visit <a href="https://github.com/4c65736975/cameraSystem">GitHub</a>.]]></en> <de><![CDATA[Diese Modifikation bietet die Möglichkeit, Kameras hinzuzufügen, z. eine Abflussrohrkamera oder eine Rückfahrkamera. Sie können einfach zwischen hinzugefügten Kameras wechseln, die als HUD angezeigt werden. Standardmäßig waren einige der ursprünglich verfügbaren <a href="https://github.com/4c65736975/cameraSystem/blob/main/VEHICLES.md">Fahrzeuge und Anbaugeräte</a> 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 <a href="https://github.com/4c65736975/cameraSystem">GitHub</a>. +Ä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 <a href="https://github.com/4c65736975/cameraSystem#improvements">GitHub</a>)]]></de> +Weitere Informationen, Anweisungen zur Fahrzeugintegration, Hilfe oder einen Fehlerbericht finden Sie auf <a href="https://github.com/4c65736975/cameraSystem">GitHub</a>.]]></de> <fr><![CDATA[Cette modification donne la possibilité d"ajouter des caméras, par ex. un tuyau d"évacuation ou une caméra de recul. Vous pouvez facilement basculer entre les caméras ajoutées qui sont affichées sous forme de HUD. En standard, certains des <a href="https://github.com/4c65736975/cameraSystem/blob/main/VEHICLES.md">véhicules et outils</a> 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 <a href="https://github.com/4c65736975/cameraSystem">GitHub</a>. - -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 <a href="https://github.com/4c65736975/cameraSystem#improvements">GitHub</a>)]]></fr> +Pour plus d"informations, des instructions d"intégration de véhicule, de l"aide ou un rapport de bogue, veuillez visiter <a href="https://github.com/4c65736975/cameraSystem">GitHub</a>.]]></fr> <pl><![CDATA[Modyfikacja ta daje możliwość dodania kamer np. kamery rury wyładowczej lub kamery wstecznej. Z łatwością można przełączać się między dodanymi kamerami które wyświetlane są w postaci HUD. Standardowo część dostępnych oryginalnie <a href="https://github.com/4c65736975/cameraSystem/blob/main/VEHICLES.md">pojazdów oraz narzędzi</a> 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ę <a href="https://github.com/4c65736975/cameraSystem">GitHub</a>. +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 <a href="https://github.com/4c65736975/cameraSystem#improvements">GitHub</a>)]]></pl> +Po więcej informacji, instrukcje integracji pojazdu, pomoc lub zgłoszenie błędu, odwiedź stronę <a href="https://github.com/4c65736975/cameraSystem">GitHub</a>.]]></pl> </description> <iconFilename>icon_cameraSystem.png</iconFilename> <multiplayer supported="true"/> @@ -207,4 +183,4 @@ UWAGA! <extraSourceFiles> <sourceFile filename="src/main.lua"/> </extraSourceFiles> -</modDesc> +</modDesc> \ 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)