Skip to content

Commit

Permalink
Bug game closes automatically (#35)
Browse files Browse the repository at this point in the history
* Added changelog

* fixed game crash in patch 1.13.1.1

* Version update

* corrected description
  • Loading branch information
4c65736975 committed Jan 27, 2024
1 parent 6847ed0 commit 5038744
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 58 deletions.
3 changes: 2 additions & 1 deletion .github/ISSUE_TEMPLATE/bug-report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)
Expand Down
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
17 changes: 2 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
<a href="https://github.com/4c65736975/cameraSystem/issues">Report Bug</a>
·
<a href="https://github.com/4c65736975/cameraSystem/issues">Request Feature</a>
·
<a href="https://github.com/4c65736975/cameraSystem/blob/main/CHANGELOG.md">Changelog</a>
</p>
</div>
<details>
Expand Down Expand Up @@ -61,11 +63,6 @@ Change camera system mode (off/on) - "z" key (default)
<br/>
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)

<p align="right">&#x2191 <a href="#top">back to top</a></p>

## Getting started
Expand Down Expand Up @@ -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 <font color="#f54040">changing</font> the code as shown below. <font color="#f54040">Note that with this change you will get a lua error from time to time, but the game will run fine.</font>

```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. (<a href="https://github.com/4c65736975/cameraSystem/blob/main/VEHICLES.md">Here</a> you will find a list of vehicles integrated by default)
Expand Down
54 changes: 15 additions & 39 deletions modDesc.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<modDesc descVersion="77">
<modDesc descVersion="79">
<author>VertexFloat</author>
<version>1.0.0.1</version>
<version>1.0.0.2</version>
<title>
<en>Camera System</en>
<de>Kamerasystem</de>
Expand All @@ -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"/>
Expand Down Expand Up @@ -207,4 +183,4 @@ UWAGA!
<extraSourceFiles>
<sourceFile filename="src/main.lua"/>
</extraSourceFiles>
</modDesc>
</modDesc>
7 changes: 4 additions & 3 deletions src/vehicles/VehicleRenderCamera.lua
Original file line number Diff line number Diff line change
@@ -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 = {}

Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 5038744

Please sign in to comment.