Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| user:fishou [2021/05/31 23:04] – ↷ Links adapted because of a move operation 68.39.76.51 | user:fishou [2022/09/26 19:18] (current) – just pasting the ports page to my page so I can see if I can edit stuff around without ruining the existing page fishou | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | This page is a draft for a potential new functionnality in [[systems:windows|Windows games]], to be put below the " | + | <WRAP group> |
| + | <WRAP round box twothirds column> | ||
| + | {{ https://raw.githubusercontent.com/ | ||
| - | Keep in mind those infos are not related to the current working of Wine in batocera stable. | + | ====== Ports (native to Linux) ====== |
| - | ==== Manually put some dependencies | + | Ports are great. You can just straight up run Linux games on Batocera, if the game itself carries all of its dependencies. Fun fact: most don't. You'll typically need to refer to the game's documentation or scour around the internet (the [[https:// |
| - | The other way to install dependencies inside a wineprefix | + | If the game is available as an AppImage, try that as it has the highest chances of working out of the box. |
| - | | + | <WRAP center round help> |
| - | * '' | + | In Batocera |
| + | </WRAP> | ||
| - | * **2015 Visual C++ Redistributable** : for missing files '' | + | This system scrapes metadata |
| - | * 32-bit: https:// | + | |
| - | * '' | + | |
| - | * 64-bit: https:// | + | |
| - | * '' | + | |
| - | * **2013 Visual C++ Redistributable** : for missing files '' | + | Grouped |
| - | * 32-bit: https:// | + | </WRAP> |
| - | * '' | + | |
| - | * 64-bit: https:// | + | |
| - | * '' | + | |
| - | * **2012 Visual C++ Redistributable** : for missing files '' | + | <WRAP third column> |
| - | * 32-bit: | + | {{ https://raw.githubusercontent.com/fabricecaruso/es-theme-carbon/master/art/consoles/ports.png? |
| - | * '' | + | </WRAP> |
| - | * 64-bit: https:// | + | </WRAP> |
| - | * '' | + | |
| - | * **2010 Visual C++ Redistributable** : for missing files '' | + | ==== Quick reference ==== |
| - | * 32-bit: https:// | + | |
| - | * '' | + | |
| - | * 64-bit: https:// | + | |
| - | * '' | + | |
| - | * **2008 Visual C++ Redistributable** : for missing files '' | + | * **Accepted ROM formats:** '' |
| - | * 32-bit: https:// | + | * **Folder:** ''/ |
| - | | + | |
| - | | + | |
| - | | + | |
| - | * **2005 Visual C++ Redistributable** : for missing | + | ===== Program |
| - | * 32-bit: https:// | + | |
| - | * '' | + | |
| - | * 64-bit: https:// | + | |
| - | * '' | + | |
| - | wget https:// | + | <WRAP center round tip> |
| - | wget https:// | + | In many cases a physical (USB) keyboard is required to configure the native Linux game for the first time (most times to set up the physical controller once in-game if not automatically configured). |
| + | </WRAP> | ||
| - | Once you have put the required .exe for the game, you can launch the game, and the dependencies will install themselves silently, once you closed the game, you need to rename the ''/ | + | Place the data of the game (whatever that may be) into '' |
| - | ==== Manually put a registry | + | Then create an appropriate SH file to launch the game's actual executable file with. Take the file below and fill it as appropriate: |
| + | |||
| + | <file bash Your game name here.sh> | ||
| + | # These events will be executed before the game begins. | ||
| + | # Read the current directory this script is being executed from and save to variable DIR. | ||
| + | DIR=" | ||
| + | |||
| + | # Change the current directory to that of the game's data folder. | ||
| + | cd " | ||
| + | |||
| + | # Show the mouse cursor. It's a good idea to first show it when setting up the game, in case it's needed. | ||
| + | unclutter-remote -s | ||
| + | ./< | ||
| + | |||
| + | # These events will be executed once the game terminates. | ||
| + | # Hide the mouse cursor as we are going back to ES. | ||
| + | unclutter-remote -h | ||
| + | </ | ||
| + | |||
| + | Refresh the game list, and then launch your game. Most 3D games will spend some time generating shader caches when first booting up, so be patient at least on the first launch. For sanity' | ||
| + | |||
| + | If you'd like to see the actual files, you can install some native Linux ports in the [[: | ||
| + | |||
| + | <WRAP center round todo> | ||
| + | Todo: Example of a freeware game so users can test it out! | ||
| + | </ | ||
| + | |||
| + | ==== Self-contained itch.io game example: Skatebird ==== | ||
| + | |||
| + | [[https:// | ||
| + | |||
| + | - Once downloaded, extract and then copy the '' | ||
| + | - Download the following script and save it to '' | ||
| + | DIR=" | ||
| + | |||
| + | cd " | ||
| + | |||
| + | unclutter-remote -s | ||
| + | ./ | ||
| + | unclutter-remote -h | ||
| + | </ | ||
| + | The '' | ||
| + | </ | ||
| + | - Press '' | ||
| + | - Navigate to the " | ||
| + | |||
| + | <WRAP center round important> | ||
| + | This game in particular may take a very long time to initially load with its default settings (which are at maximum fidelity), during which time you'll only see a blank, grey screen. Once in-game these can be lowered down, resulting in much faster launch times in the future. | ||
| + | </ | ||
| + | |||
| + | ==== Complicated itch.io game example: Celeste ==== | ||
| + | |||
| + | As already mentioned above, the ''/ | ||
| + | |||
| + | First of all, you will have to buy/ | ||
| + | |||
| + | Now [[: | ||
| + | < | ||
| + | |||
| + | <WRAP center round tip> | ||
| + | In most cases, depending on where you've downloaded your Celeste game sources, the game is well " | ||
| + | </ | ||
| + | |||
| + | Now check the content of the game's directory... | ||
| + | < | ||
| + | ...which should give you the following similiar output: | ||
| + | |||
| + | {{: | ||
| + | |||
| + | For Celeste, in his case, the correct executable file to start the game is ''/ | ||
| + | |||
| + | < | ||
| + | |||
| + | Now paste the following content: | ||
| + | |||
| + | <code bash Celeste.sh> | ||
| + | # | ||
| + | cd / | ||
| + | </ | ||
| + | |||
| + | Save the file and quit the editor. | ||
| + | |||
| + | As you may have mentioned on the screenshot above, none of the executable files are marked as executable yet, which will be required to run " | ||
| + | < | ||
| + | |||
| + | <WRAP center round tip> | ||
| + | The required executables are different for every native Linux game. There' | ||
| + | </ | ||
| + | |||
| + | Now update the gamelist via the Batocera GUI and the game should show up in the " | ||
| + | |||
| + | ==== Vulkan dependent game example: " | ||
| + | |||
| + | Some games are dependent on the Vulkan graphics API which can get enabled by command line when starting the game's executable as shown in the following example game's startup script. | ||
| + | |||
| + | <WRAP center round tip> | ||
| + | Note that a game is dependent on Vulkan, the graphics card needs to support it. In other words: If a graphics card doesn' | ||
| + | </ | ||
| + | |||
| + | <code bash TNMT.sh> | ||
| + | # | ||
| + | export LC_ALL=C | ||
| + | export MONO_IOMAP=all | ||
| + | # Move to the game directory | ||
| + | cd " | ||
| + | # Run the game | ||
| + | chmod +x ./ | ||
| + | exec ./ | ||
| + | exit 0 | ||
| + | </ | ||
| + | |||
| + | Make the script executable: | ||
| + | < | ||
| + | Update the gamelist and start the game via the ES its " | ||
| + | |||
| + | ==== Library-dependent game: Final Fight LNS Ultimate ==== | ||
| + | |||
| + | Final Fight LNS Ultimate is a game which is dependent on the libvpx library package that is not included with Batocera by default. This can be provided alongside the game. | ||
| + | |||
| + | Copy the contents of the game's data to the '' | ||
| + | |||
| + | Back in the '' | ||
| + | |||
| + | <file bash Final Fight Ultimate.sh> | ||
| + | # | ||
| + | |||
| + | export LC_ALL=C | ||
| + | export LD_LIBRARY_PATH=$LD_LIBRARY_PATH: | ||
| + | |||
| + | # Move to the game directory | ||
| + | cd " | ||
| + | |||
| + | # Run the game | ||
| + | chmod +x "Final Fight Ultimate" | ||
| + | exec " | ||
| + | </ | ||
| + | |||
| + | The final file structure should look like this (your installation may have more or less, but overall structure should be similar): | ||
| + | |||
| + | < | ||
| + | roms/ | ||
| + | └─ ports/ | ||
| + | | ||
| + | ├─ LIBS/ | ||
| + | │ └─ libvpx.so.5 | ||
| + | ├─ Logs/ | ||
| + | ├─ Paks/ | ||
| + | ├─ Saves/ | ||
| + | ├─ ScreenShots/ | ||
| + | ├─ 1920.ini | ||
| + | ├─ Final Fight Ultimate | ||
| + | ├─ Instrucciones.txt | ||
| + | ├─ leeme.txt | ||
| + | ├─ opengl32.dll | ||
| + | └─ Final Fight Ultimate.sh | ||
| + | </ | ||
| + | |||
| + | Update gamelists and launch! | ||
| + | |||
| + | ===== Installing the Java runtime environment ===== | ||
| + | |||
| + | Some games may require the Java runtime environment. Ordinarily, this would just be installed from the operating system' | ||
| + | |||
| + | Download the JRE appropriate to your system from [[https:// | ||
| + | |||
| + | Either the executable can be pointed toward this location (if it has the appropriate arguments), or run the following SSH command to allow '' | ||
| + | |||
| + | <code bash> | ||
| + | export PATH=/ | ||
| + | batocera-save-overlay | ||
| + | </ | ||
| + | |||
| + | This will be required to be run every update. | ||
| + | |||
| + | In case the latest version of JRE is required (or your exact platform isn't available from the prepared packages above), refer to the manual method: | ||
| + | |||
| + | --> Manual method (click to expand)# | ||
| + | |||
| + | Instructions taken and modified from https:// | ||
| + | |||
| + | - Go to https:// | ||
| + | - Scroll down and download the latest '' | ||
| + | - Extract the '' | ||
| + | - Run ''< | ||
| + | - Add the file to ''/ | ||
| + | |||
| + | If you’d like a single line command that does all of this automatically: | ||
| + | * **For aarch64:** '' | ||
| + | |||
| + | <-- | ||
| + | |||
| + | ===== A note about integrated ports ===== | ||
| + | |||
| + | Batocera-integrated ports (recognized as their own unique system, but are grouped under the " | ||
| + | |||
| + | ===== Troubleshooting ===== | ||
| + | |||
| + | ==== My game isn't launching ==== | ||
| + | |||
| + | Native Linux games not running on Batocera can have many different reasons. The simplest solution is usually revealed in the error log located at '' | ||
| + | |||
| + | <WRAP center round help> | ||
| + | You may need to enable the executable bit for the game in question when launching outside of ES. To do so: | ||
| + | - Back in Batocera, hit '' | ||
| + | - Press '' | ||
| + | </ | ||
| + | |||
| + | If no meaningful error message comes from that, you can instead use [[: | ||
| + | |||
| + | <WRAP center round info> | ||
| + | Alternatively, | ||
| + | </ | ||
| + | |||
| + | For example: | ||
| + | |||
| + | < | ||
| + | export DISPLAY=: | ||
| + | cd "/ | ||
| + | /bin/sh Celeste.sh | ||
| + | </ | ||
| + | |||
| + | Sometimes there are multiple executable files involved in the process of running a game, so in many cases there may be only permission issues causing the game not to start, which would give you similar output to this: | ||
| + | |||
| + | {{: | ||
| + | |||
| + | In such a case, just set the required permission(s) ('' | ||
| + | |||
| + | ==== I'm confident I'm launching it correctly but the game still isn't booting ==== | ||
| + | |||
| + | It could be that the game is searching for a particular library on the system, but is failing to find it. Batocera includes most libraries for 64-bit and 32-bit games, but it is possible that the game itself is using an outdated name or a different method altogether. | ||
| + | |||
| + | If you've found an appropriate replacement library, or have found that it exists in Batocera just under a different name to what the game is searching for, you can (usually) tell the game to search for that particular library by adding the following to before the game is executed in its SH script: | ||
| + | |||
| + | <code bash> | ||
| + | export LD_LIBRARY_PATH=$LD_LIBRARY_PATH: | ||
| + | </ | ||
| + | |||
| + | For example, it's common for 32-bit games to incorrectly search in the '' | ||
| + | |||
| + | <code bash> | ||
| + | export LD_LIBRARY_PATH=/ | ||
| + | </ | ||
| + | |||
| + | An example SH file for a game requiring library packages stored in a subfolder of the game would look like: | ||
| + | |||
| + | <file sh game.sh> | ||
| + | # | ||
| + | |||
| + | export LD_LIBRARY_PATH=$LD_LIBRARY_PATH: | ||
| + | |||
| + | exec " | ||
| + | </ | ||
| + | |||
| + | Batocera' | ||
| + | |||
| + | ==== I'm stuck and I can't quit the game! ==== | ||
| + | |||
| + | Most native games should offer an option in the menu to "Quit back to desktop" | ||
| + | |||
| + | Such cases can usually be escaped with good ol' trusty '' | ||
| + | |||
| + | ==== My game runs really slowly/ | ||
| + | |||
| + | Is your hardware powerful enough? You can usually find " | ||
| + | |||
| + | If you're confident that your hardware is powerful enough and your slowdown/ | ||
| + | |||
| + | ==== Further troubleshooting | ||
| + | |||
| + | For further troubleshooting, | ||
| + | |||
| + | If you need further help, feel free to ask on our [[https:// | ||
| - | To apply specific registry values for a given game, you can create a folder in ''/ | ||
user/fishou.1622502299.txt.gz · Last modified: by 68.39.76.51