Modifying caches in ExaGear: Difference between revisions

Second part of the page
(New page(translated))
 
(Second part of the page)
Line 41: Line 41:
In a terminal, mount the /dev, /proc, and /sys virtual file systems by issuing the following commands:
In a terminal, mount the /dev, /proc, and /sys virtual file systems by issuing the following commands:


# <code>sudo mount proc -
# <code>sudo mount proc - proc ./proc</code>
# <code>sudo mount sys -t sysfs ./sys</code>
# <code>sudo mount --bind /dev ./dev</code>
# <code>sudo mount --bind /dev/pts ./dev/pts</code>
 
Switch to the cache filesystem terminal you are using:
 
<code>sudo chroot ./ /usr/bin/env -i HOME=/root TERM="$TERM" /bin/bash --login</code>
----Before using the apt package manager, you need to update the PATH environment variable, which for some strange reason gets corrupted. Enter the command <code>echo $PATH</code>, copy its output, and export it back: <code>export PATH="****"</code> (Instead of parentheses, the output of the previous command should be specified.)
 
==== Downloading, decompressing the cache and entering it with Exagear-For-Termux(Android, Termux) ====
Download the ExaGear cache you want to modify, terminal emulator [https://f-droid.org/en/packages/com.termux/ Termux], install it and enter the following commands to install Exagear-For-Termux (modified Exagear, which can be use in Termux):
 
# <code>pkg update -y</code>
# <code>pkg install tar git wget zip unzip -y</code>
# <code>git clone [https://github.com/ZhymabekRoman/Exagear-For https://github.com/ZhymabekRoman/Exagear-For-Termux] ~/ExaTermux</code>
# <code>cd ~/ExaTermux</code>
# <code>git submodule init</code>
# <code>git submodule update</code>
 
Detailed explanations of these commands can be found in the Github repository Exagear-for-Termux(English)
----Enter the command <code>termux-setup-storage</code> (in order for Termux to access the /sdcard partition on your mobile device) and in the window that appears, allow access to the memory.
 
Create an exagear-fs folder (it stores the Exagear-For-Termux filesystem): <code>mkdir ~/ExaTermux/exagear-fs</code> and extract the .obb cache file to this folder: <code>unzip /sdcard/ Download/obbname.obb -d ~/Exagear-for-Termux/exagear-fs</code>
 
Go to the Exagear-For-Termux folder again and go to the guest system: <code>./start-exagear.sh</code> and check that you are in the <code>arch</code> command, the architecture should be specified <code>i386</code>.
 
==== Replacing Wine version ====
Check the package manager with the <code>apt-get update</code> command, the packages should be updated. If there is an error that the command is not found or that the .so libraries are not found, then apt is removed from your cache.
 
Remove Wine which was cached by default by default and install wget && apt-transport-https && software-properties-common (for downloading over https and adding repositories).
 
# <code>apt remove wine-stable wine-stable-i386 winehq-stable -y && apt install wget apt-transport-https software-properties-common</code>
 
And add the official Wine repository:
 
# <code>wget -nc <nowiki>https://dl.winehq.org/wine-builds/winehq.key</nowiki></code>
# <code>apt-key add winehq.key</code>
# <code>rm -R winehq.key</code>
# <code>apt-add-repository 'deb <nowiki>https://dl.winehq.org/wine-builds/ubuntu/</nowiki> bionic main'</code>(other version may be required instead of bionic, check command <code>lsb_release -a</code>)
 
----Update the packages: <code>apt update</code>, and install the version of Wine you need (up to version 7, latest stable 7.0): <code>apt install wine-stable-i386=version~bionic wine-stable =version~bionic winehq-stable=version~bionic</code>
 
After installing Wine, you can remove unnecessary packages: <code>apt remove software-properties-common apt-transport-https wget -y && apt autoremove -y</code>
 
==== Repacking cache to .obb ====
If chroot is used, reboot the system to unmount virtual /dev, /proc /sysfs /dev/pts.
 
If using Exagear-For-Termux on Android, enter the exit command.
----To create an archive in the folder with the unpacked cache, enter the command <code>sudo zip --symlinks -r main.30.com.eltechs.ed.obb .</code> (for computers, laptops with Linux distributions) or <code>zip --symlinks -r main.30.com.eltechs.ed.obb .</code> (if using Termux.)
 
After the archive is created, move it to the /sdcard folder on your phone (in Termux it is done by the command <code>cp main.30.com.eltechs.ed.obb /sdcard</code> and try to run ExaGear with this .obb if the cache will unpack and work, Wine will install <code>wine-mono and wine-gecko</code> when starting ExaGear and then updating the configuration, if the cache did not start (given an error), then Wine may not have been installed correctly.
 
== Modifying ExaGear RPG/Strategies caches ==
The file system in the outdated '''ExaGear RPG/Strategies''' is truncated as much as possible, so updating Wine in the above way will not work. Also, there is no explorer there, so adding something to the Start menu will also not work with the method above.
 
It is possible to modify by very complex methods, but there is practically no point in this.
 
Author of the original instruction '''GFOXSH'''
 
== Links ==
[https://www.winehq.org/ Official website of Wine(winehq)]