Solutions for common crashes you may run into while playing A Hat in Time on a Linux system through Steam Play.
Before Following This Guide
Si tu’re experiencing trouble running the game, tu devrais ajouter
PROTON_LOG=1
à ton jeu’s launch options. This will create a logfile (steam-253230.log) in your home directory, containing everything that the game/Proton is doing while running the game. This should help if the crash is something that doesn’t happen in Windows.
Be sure to take this launch option out if you’re not using it – the log file size can grow quickly while playing.
Gardez également à l'esprit:
- Many of the commands in this guide assume you have root/superuser access to your system
Crash when using lots of mods, or several large mods
If you are having trouble loading the game or entering a level with certain mods installed, or going over a certain amount of mods, check your logfile for a line like this:
se tromper:virtual:try_map_free_area mmap() error cannot allocate memory, range 0xf4f60000-0x8ad0000, unix_prot 0x3
In this case the range doesn’ça n'a pas d'importance.
If this shows up a lot in your logs, you may have a low vm.max_map_count.
What is vm.max_map_count?
In Linux, system parameters can control various behaviors of the underlying system, regardless of what distribution you’je cours. vm.max_map_count controls OS limits on the maximum number of memory map (mmap) areas a process can have. If a process cannot allocate enough memory map areas, the process may crash.
Par défaut, vm.max_map_count is about 65530 ou 65535 in most Linux distributions (1 per 128kb of system memory, or about 8gb of memory by default). The Steam Deck, pourtant, ships with a value of 2147483642 (ou, MAX_INT – 5) for maximum compatibility with Windows games, donc ça devrait’t run into this issue.
A more sensible value to set it to may be 262144 (32FR).
You can check the current value on your system by running this terminal command (example output included):
sudo sysctl vm.max_map_count [sudo] password for root: vm.max_map_count = 65530
Changing vm.max_map_count temporarily
Even if you want to fix it permanently, try this first.
To change the value of vm.max_map_count, run this terminal command, remplacement <nobs> with the number you wish to use.
sudo sysctl -w vm.max_map_count=<nobs>
This should take effect instantly. Try running A Hat in Time again, and see if it will boot now!
Si cela s'est produit’ça ne marche pas pour toi, you can either set the value back yourself, or reboot the system.
Changing vm.max_map_count permanently
Found a value that works for you? Super! Laisser’s now set it up so your system will apply it automatically on boot.
The place to set this is in /etc/sysctl.conf, but if you have a /etc/sysctl.d folder, it may be preferred to create /etc/sysctl.d/99-steamplay.conf instead.
In whichever file you decide, Ajouter la ligne suivante, again replacing <nobs> with your number of choice:
vm.max_map_count=<nobs>
Be sure to save the file, and when you reboot, the new value should be applied automatically!
C'est tout ce que nous partageons aujourd'hui pour cela Un chapeau dans le temps guide. Ce guide a été initialement créé et rédigé par Splatsune Miku. Si nous ne parvenons pas à mettre à jour ce guide, vous pouvez trouver la dernière mise à jour en suivant ceci lien.