Difference between revisions of "User:Fulmir"

From BTAWiki
Jump to navigation Jump to search
 
(25 intermediate revisions by the same user not shown)
Line 1: Line 1:
== Windows Installation ==
+
<div id="" class="" style="clear: right; margin: -1em 0 0 10px; float: right; padding: 10px; background: transparent; width: 200px; ">__TOC__</div>
<div style="min-width:600px; width:80%;">
 
1. Download the BattleTech Advanced 3062 Installer from the link provided above.
 
  
2. Make sure you have at least 45GB free space on the drive you're installing BTA to; the launcher cache takes up roughly 30GB and the mod itself takes up about 15GB.
+
This guide assumes you are running the native linux version BattleTech. If you installed the windows version and got it running through wine, parts of this guide may still be helpful, but it won't work exactly step by step.
  
3. Extract '''BTAdvancedLauncher.exe''' to a folder of your choice '''not in your BATTLETECH game folder or User Directory.''' If you're unsure where to put it, create a folder called "BTA_Launcher" in the "C:" drive and place it  there.
+
= 1. Preparation. =
 +
<span style="color:#7d0000;font-weight: bold;font-size: 18px;">All of these steps are necessary. Seriously, don't skip them - you'll get weird errors later on even if installing the mod seems to succeed at first.</span>
  
4. Run the BTA installer. It will open a window with a decorative image and a number of buttons at the bottom.
+
== 1.1. Install Wine and winetricks ==
: 4a. If the default install and cache locations look correct, and this is your first time installing a mod for BATTLETECH, then click the button marked <code>Update/Install BTA</code> in the lower left and move on to Step 5. If they look incorrect or you are unsure continue to step 4b.
+
You'll need to install Wine in order to run the installer. On debian-based systems (such as Ubuntu), you can install it with
<div style="float:right;">[[File:LocalGameFiles.png|225px]]</div>
 
: 4b. If you are unsure about the BATTLETECH folder location, and you are using the Steam version, you can find the install folder by going to your Steam games list, then Right Click the BATTLETECH game and go to "Manage" -> "Browse local files" as shown to the right. If you're using the Paradox or GOG versions of the game then the Mods folder should be something like <code>[..]\Documents\My Games\Battletech\Mods\</code>
 
: 4c. If you need to change the Install or Cache Download locations then click <code>Advanced Mode</code> to unlock the "Browse" buttons. You can now select the Cache and Mods folder locations. The cache location is <code>Checkout workspace:</code> and the Mods folder is <code>Install Target:</code>
 
: 4d. '''If you already have a "Mods" folder, wipe it completely clean. Delete all files and folders within it. This is a critical step, because many third party mods will cause conflicts and break BTA.'''
 
  
5. A few messages will pop up on a fresh install, click "OK" to everything. Details are provided below, but you don't need to do anything else for this step. If nothing seems odd continue to Step 6.
+
$ sudo apt-get install wine winetricks
: 6a. The first message will be about downloading the cache, followed by a large download. The first time you run the installer it may take some time, this is normal. The installer automatically installs the CAB (Community Asset Bundle), you do not need a separate CAB installer.
 
: 6b. After the cache has downloaded you will see a message like "No data could be found at the current target location, New install to be done" followed by "Install Configuration is not valid, Clean Install is required". Click OK to everything and the window for the next step should appear.
 
  
6. In this window select the installation options for BTA. Most importantly select the DLCs you have installed and whether or not to install the [[Community Content]] pack. Only select what you want from those options and '''only select DLC options for DLCs you own or the mod will not function.'''
+
Other distributions will have their own commands along similar lines.
: 7a. If you're running the game through Steam and are unsure which DLCs you have installed find the game in your Steam games list, Right Click -> Properties -> DLC in the list on the left. This shows all installed and active DLCs for the game.
 
  
7. (OPTIONAL) If you have third-party Antivirus (eg: not included with windows) You may need to whitelist the BATTLETECH installation folder in your anti-virus software. Some AV programs flag the critical mod files <code>ModTekInjector.exe</code> and <code>QuickStart.exe</code> as suspicious which will prevent the mod from working. If you are unsure how to do this either google your Antivirus' name followed by "Whitelist folder" or skip this for now and try this if you encounter issues.
+
== 1.2. Install dotnet 4.7.2 ==
 +
Installing BTA also requires dotnet 4.7.2. If you fail to install dotnet, you won't notice issues until you try to actually run the game. '''Do not skip this step'''.
  
8. You're done! Click <code>Launch BTA 3062</code> in the launcher to run the game, or run it from Steam or your launcher of choice. We recommend using the BTA launcher as it will prompt you with new updates!
+
$ winetricks dotnet472
 +
== 1.3. Raising the open files limit ==
 +
Most distributions default to a limit of 1024 open files at once, but you'll need to raise this for your user by editing /etc/security/limits.conf
  
'''Note:''' It is strongly advised that you check out the [[Performance Tips]] page to improve your experience.
+
$ sudo nano /etc/security/limits.conf
 +
 
 +
Insert these lines at the bottom of the file:
 +
 
 +
*              hard    nofile          32768
 +
*              soft    nofile          32768
 +
 
 +
You'll need to log out and log back in, or restart your computer for this change to take effect.
 +
 
 +
= 2. Install BTA =
 +
== 2.1. Locate your BattleTech install and create the Mods directory ==
 +
 
 +
For Steam on Debian-based distributions, BattleTech is installed at ~/.steam/debian-installation/steamapps/common/BATTLETECH.
 +
 
 +
For GOG installs, the path will be something like `~/GOG Games/BATTLETECH/game`.
 +
 
 +
You want the folder containing the BattleTech binary and a folder for BattleTech_Data. For example, on my system:
 +
 
 +
$ ls -l ~/Games/BATTLETECH/game
 +
total 27788
 +
-rwxrwxr-x  1 <owner> <group_owner> 27147344 <modified_date> BattleTech
 +
drwx------  8 <owner> <group_owner>    20480 <modified_date> BattleTech_Data
 +
...more stuff...
 +
 
 +
In this directory, you'll need to create a Mods folder.
 +
 
 +
$ mkdir ~/Games/BATTLETECH/game/Mods
 +
 
 +
== 2.2. Setup an installer directory and download the installer. ==
 +
You will need a directory to host the installer and cache '''outside the game directory'''. For purposes of this guide, we'll use BTAInstaller in your home directory, but feel free to use any other location outside of the game directory (and outside of .steam).
 +
 
 +
This location will need at least 40gb of free space. The cache is big.
 +
 
 +
$ mkdir ~/BTAInstaller
 +
$ cd ~/BTAInstaller
 +
 
 +
Download the installer into this directory and unzip it, either using [this link](https://www.bta3062.com/files/BTAdvancedLauncher.php) or by running:
 +
 
 +
$ wget https://www.bta3062.com/files/BTAdvancedLauncher.php -O BTAdvancedLauncher.zip
 +
$ unzip BTAdvancedLauncher.zip
 +
 
 +
You should end up with BTAdvancedLauncher.exe in your install folder.
 +
 
 +
$ ls -l ~/BTAInstaller
 +
 
 +
-rw-rw-rw- 1 bluewinds bluewinds 42516095 Jan  6 17:14 BTAdvancedLauncher.exe
 +
-rw-rw-r-- 1 bluewinds bluewinds 42295941 Feb  3 13:57 BTAdvancedLauncher.zip
 +
 
 +
== 2.3 Configure the installer ==
 +
Run the BTAInstaller:
 +
 
 +
$ wine ~/BTAInstaller/BTAdvancedLauncher.exe
 +
 
 +
At the bottom left of the installer, click "Advanced Mode".
 +
 
 +
You can then edit the "Install Target". Hit "Browse", and navigate to the location of the Mods folder you created in step 2.1.
 +
Also edit the "Checkout Workspace". Hit "Browse", and navigate to the installer directory you created in step 2.2.
 +
 
 +
== 2.4 Install! ==
 +
You can now click "Update/Install BTA" to start the process.
 +
 
 +
When prompted to configure your game, be sure to select "Old Fire / Linux" at the bottom. Select *only* the addons for DLC you own - enabling addons for DLC you haven't installed will lock up the game when you try to play. Multithreading and Corgi's Perfix can improve performance.
 +
 
 +
When it asks for the location of the BattleTech Binary ("Unable to locate BattleTech.exe"), navigate to your BattleTech install (see step 2.1) and select the "BattleTech" file.
 +
 
 +
== 2.5 Enable ModTek 3.x ==
 +
=== Steam on Linux ===
 +
 
 +
    Note These instructions are based on the Steam Guide for BepInEx.
 +
 
 +
Instead of running the run.sh script directly, you need to ask Steam to run it for you.
 +
 
 +
Right mouse click on the game in the Steam library -> Properties... -> SET LAUNCH OPTIONS.
 +
 
 +
Launch options for Linux:
 +
 
 +
    ./run.sh %command%
 +
 
 +
=== GOG on Linux ===
 +
 
 +
Modify the start.sh script from GOG to execute the run.sh script from ModTek/UnityDoorstop instead of BattleTech.
 +
 
 +
    #chmod +x "BattleTech"
 +
    #./"BattleTech"
 +
    ./run.sh
 +
 
 +
=== Proton/Wine on Linux ===
 +
 
 +
Using Proton or Wine is also supported, make sure the winhttp.dll from UnityDoorstop is loaded by setting the override to native, builtin.
 +
 
 +
= Troubleshooting =
 +
== Issue: The BTA Launcher will not run at step 2.1 and you get error message "MESA-INTEL:warning: processor code name Vulkan Support is incomplete" ==
 +
Likely cause: Older hardware that OpenGL struggles with.
 +
 
 +
Solution: Run the following command in terminal before running the BTA Launcher with wine:
 +
 
 +
$ export MESA_GL_VERSION_OVERRIDE=4.5
 +
== Issue: The Launcher gives you the error message "non-folder object in selection" when trying to point the Install Target to the correct folder through the Launcher's "browse" button ==
 +
Likely cause: Unknown
 +
 
 +
Solution: Edit the BTALauncherSettings.xml to apply the correct path, then restart the launcher to load up the correct path.
 +
 
 +
== Issue: The game loads but the main menu doesn’t say “BattleTech ADVANCED - 3062” and the ModTek version doesn’t show up under the game version next to the CREDITs button ==
 +
 
 +
Likely cause: ModTek isn’t patched into the game correctly.
 +
 
 +
This can happen if dotnet is incorrectly installed or was not installed before the BTA installer was run.
 +
 
 +
Solution: Install dotnet472 with winetricks and (re)run the installer.
 +
 
 +
$ winetricks dotnet472
 +
Run the installer, and "Update/Install BTA" again.
 +
== Issue: BattleTech refuses to launch/crashes to desktop immediately ==
 +
 
 +
Likely cause: Libc library conflict. The system libc is likely newer than, and incompatible with, the libc included in BattleTech’s native Linux distribution.
 +
 
 +
Solution: Remove libc.so.6 from the BattleTech game directory. This forces BattleTech to use the system libc.
 +
 
 +
$ mkdir -p "${BTA_ROOT}/../BattleTech_Data/Plugins/x86_64/"
 +
$ mv "${BT_ROOT}/BattleTech_Data/Plugins/x86_64/libc.so.6" "${BTA_ROOT}/../BattleTech_Data/Plugins/x86_64/"
 +
== Issue: My Battletech directory is hidden, and I can't select it in the installer ==
 +
 
 +
Likely cause: Wine is not configured to show hidden paths, such as those beginning with a dot.
 +
 
 +
Solution: Run winecfg and select the Drives tab. Check "Show dot files" at the bottom. Now hidden folders (such as ~/.steam) will be visible in the installer.
 +
 
 +
== Issue: The game wont run, or briefly runs and quits. ==
 +
 
 +
Open a terminal in the BattleTech dir where your binary for the game is located, you should see the run.sh there.  Run this command to convert the line endings from windows to unix
 +
 
 +
    sed -i -e 's/\r$//' run.sh
 +
 
 +
and mark the script as executable, and finally run the game.
 +
 
 +
== Issue: Not listed here ==
 +
 
 +
There are a few Linux users on the [https://discord.com/invite/g5nCYAV BTA Discord channel], you can ask for help in General Chat, message Indigo#8200 directly or open a support ticket with #ticketbot to get help resolving issues with BTA. For general issues with BattleTech on Linux, there are several forums available by searching your favorite search engine.

Latest revision as of 23:39, 5 June 2023

This guide assumes you are running the native linux version BattleTech. If you installed the windows version and got it running through wine, parts of this guide may still be helpful, but it won't work exactly step by step.

1. Preparation.

All of these steps are necessary. Seriously, don't skip them - you'll get weird errors later on even if installing the mod seems to succeed at first.

1.1. Install Wine and winetricks

You'll need to install Wine in order to run the installer. On debian-based systems (such as Ubuntu), you can install it with

$ sudo apt-get install wine winetricks

Other distributions will have their own commands along similar lines.

1.2. Install dotnet 4.7.2

Installing BTA also requires dotnet 4.7.2. If you fail to install dotnet, you won't notice issues until you try to actually run the game. Do not skip this step.

$ winetricks dotnet472

1.3. Raising the open files limit

Most distributions default to a limit of 1024 open files at once, but you'll need to raise this for your user by editing /etc/security/limits.conf

$ sudo nano /etc/security/limits.conf

Insert these lines at the bottom of the file:

*               hard    nofile          32768
*               soft    nofile          32768

You'll need to log out and log back in, or restart your computer for this change to take effect.

2. Install BTA

2.1. Locate your BattleTech install and create the Mods directory

For Steam on Debian-based distributions, BattleTech is installed at ~/.steam/debian-installation/steamapps/common/BATTLETECH.

For GOG installs, the path will be something like `~/GOG Games/BATTLETECH/game`.

You want the folder containing the BattleTech binary and a folder for BattleTech_Data. For example, on my system:

$ ls -l ~/Games/BATTLETECH/game
total 27788
-rwxrwxr-x   1 <owner> <group_owner> 27147344 <modified_date> BattleTech
drwx------   8 <owner> <group_owner>    20480 <modified_date> BattleTech_Data
...more stuff...

In this directory, you'll need to create a Mods folder.

$ mkdir ~/Games/BATTLETECH/game/Mods

2.2. Setup an installer directory and download the installer.

You will need a directory to host the installer and cache outside the game directory. For purposes of this guide, we'll use BTAInstaller in your home directory, but feel free to use any other location outside of the game directory (and outside of .steam).

This location will need at least 40gb of free space. The cache is big.

$ mkdir ~/BTAInstaller
$ cd ~/BTAInstaller

Download the installer into this directory and unzip it, either using [this link](https://www.bta3062.com/files/BTAdvancedLauncher.php) or by running:

$ wget https://www.bta3062.com/files/BTAdvancedLauncher.php -O BTAdvancedLauncher.zip
$ unzip BTAdvancedLauncher.zip

You should end up with BTAdvancedLauncher.exe in your install folder.

$ ls -l ~/BTAInstaller
-rw-rw-rw- 1 bluewinds bluewinds 42516095 Jan  6 17:14 BTAdvancedLauncher.exe
-rw-rw-r-- 1 bluewinds bluewinds 42295941 Feb  3 13:57 BTAdvancedLauncher.zip

2.3 Configure the installer

Run the BTAInstaller:

$ wine ~/BTAInstaller/BTAdvancedLauncher.exe

At the bottom left of the installer, click "Advanced Mode".

You can then edit the "Install Target". Hit "Browse", and navigate to the location of the Mods folder you created in step 2.1. Also edit the "Checkout Workspace". Hit "Browse", and navigate to the installer directory you created in step 2.2.

2.4 Install!

You can now click "Update/Install BTA" to start the process.

When prompted to configure your game, be sure to select "Old Fire / Linux" at the bottom. Select *only* the addons for DLC you own - enabling addons for DLC you haven't installed will lock up the game when you try to play. Multithreading and Corgi's Perfix can improve performance.

When it asks for the location of the BattleTech Binary ("Unable to locate BattleTech.exe"), navigate to your BattleTech install (see step 2.1) and select the "BattleTech" file.

2.5 Enable ModTek 3.x

Steam on Linux

   Note These instructions are based on the Steam Guide for BepInEx.

Instead of running the run.sh script directly, you need to ask Steam to run it for you.

Right mouse click on the game in the Steam library -> Properties... -> SET LAUNCH OPTIONS.

Launch options for Linux:

   ./run.sh %command%

GOG on Linux

Modify the start.sh script from GOG to execute the run.sh script from ModTek/UnityDoorstop instead of BattleTech.

   #chmod +x "BattleTech"
   #./"BattleTech"
   ./run.sh

Proton/Wine on Linux

Using Proton or Wine is also supported, make sure the winhttp.dll from UnityDoorstop is loaded by setting the override to native, builtin.

Troubleshooting

Issue: The BTA Launcher will not run at step 2.1 and you get error message "MESA-INTEL:warning: processor code name Vulkan Support is incomplete"

Likely cause: Older hardware that OpenGL struggles with.

Solution: Run the following command in terminal before running the BTA Launcher with wine:

$ export MESA_GL_VERSION_OVERRIDE=4.5

Issue: The Launcher gives you the error message "non-folder object in selection" when trying to point the Install Target to the correct folder through the Launcher's "browse" button

Likely cause: Unknown

Solution: Edit the BTALauncherSettings.xml to apply the correct path, then restart the launcher to load up the correct path.

Issue: The game loads but the main menu doesn’t say “BattleTech ADVANCED - 3062” and the ModTek version doesn’t show up under the game version next to the CREDITs button

Likely cause: ModTek isn’t patched into the game correctly.

This can happen if dotnet is incorrectly installed or was not installed before the BTA installer was run.

Solution: Install dotnet472 with winetricks and (re)run the installer.

$ winetricks dotnet472

Run the installer, and "Update/Install BTA" again.

Issue: BattleTech refuses to launch/crashes to desktop immediately

Likely cause: Libc library conflict. The system libc is likely newer than, and incompatible with, the libc included in BattleTech’s native Linux distribution.

Solution: Remove libc.so.6 from the BattleTech game directory. This forces BattleTech to use the system libc.

$ mkdir -p "${BTA_ROOT}/../BattleTech_Data/Plugins/x86_64/"
$ mv "${BT_ROOT}/BattleTech_Data/Plugins/x86_64/libc.so.6" "${BTA_ROOT}/../BattleTech_Data/Plugins/x86_64/"

Issue: My Battletech directory is hidden, and I can't select it in the installer

Likely cause: Wine is not configured to show hidden paths, such as those beginning with a dot.

Solution: Run winecfg and select the Drives tab. Check "Show dot files" at the bottom. Now hidden folders (such as ~/.steam) will be visible in the installer.

Issue: The game wont run, or briefly runs and quits.

Open a terminal in the BattleTech dir where your binary for the game is located, you should see the run.sh there. Run this command to convert the line endings from windows to unix

   sed -i -e 's/\r$//' run.sh

and mark the script as executable, and finally run the game.

Issue: Not listed here

There are a few Linux users on the BTA Discord channel, you can ask for help in General Chat, message Indigo#8200 directly or open a support ticket with #ticketbot to get help resolving issues with BTA. For general issues with BattleTech on Linux, there are several forums available by searching your favorite search engine.