RXL-Realms Community

Industria => Development => Servers => Topic started by: Mystera on January 18, 2024, 12:39:17 PM

Title: [Release] TALES WEAVER 天翼之鍊 4.04 版單機板架設 (Solaris 11 / OpenIndiana / OpenSolaris)
Post by: Mystera on January 18, 2024, 12:39:17 PM
===================================
erection environment
============ ======================
Solaris 11 / OpenSolaris / OpenIndiana + VirtualBox + MySql

===================================
OS version download
============ ========================
OpenSolaris 2009 svn 111
http://ftp.nl.freebsd.org/pub/ftp/pub/os/opensolaris/2009/06/osol-0906-x86.iso (http://ftp.nl.freebsd.org/pub/ftp/pub/os/opensolaris/2009/06/osol-0906-x86.iso)
OpenSolaris 2010 svn 134
http://dlc.openindiana.org/isos/archive/opensolaris/osol-dev-134-x86.iso (http://dlc.openindiana.org/isos/archive/opensolaris/osol-dev-134-x86.iso)

OpenIndiana 2018
http://dlc.openindiana.org/isos/hipster/latest/OI-hipster-gui-20180427.iso (http://dlc.openindiana.org/isos/hipster/latest/OI-hipster-gui-20180427.iso)

Solaris 11.3
http://www.oracle.com/technetwork/server-storage/solaris11/downloads/index.html (http://www.oracle.com/technetwork/server-storage/solaris11/downloads/index.html)

In fact, I don't recommend using Solaris 11.3 to set up, because Solaris 11 eats system resources very much and runs very hard.
I would recommend OpenSolaris. The advantage of OpenSolaris is that it is relatively lightweight and runs smoothly.
OpenIndiana uses the Mate desktop, although it runs smoother than Gnome, and it consumes less memory. But the speed is still a bit worse than OpenSolaris.
For the OpenSolaris version, I recommend 2010 svn 134, which is equivalent to Ubuntu 10.04 and runs at the same speed.
If you are running a stand-alone version, it is recommended to install OpenSolaris, if it is a real rack, it is recommended to use OpenIndiana. After all, the driver of OpenIndiana is relatively new.

OpenSolaris has stopped updating and is currently maintained by OpenIndiana, so you must first update the software repository after installing OpenSolaris.
Open the terminal and enter:
pfexec pkg set-publisher -O http://pkg.openindiana.org/legacy (http://pkg.openindiana.org/legacy) opensolaris.org

This will install the kit.

===================================
Preparation tools
============= ======================= The new version of
Oracle VM VirtualBox
under Windows 7 will have startup problems. It is recommended to install the old version
http://download.virtualbox.org/virtualbox (http://download.virtualbox.org/virtualbox) /5.0.8/

Tianyi Chain Japanese 4.04 Server
https://github.com/Mint-Fans/linux-package/raw/Solaris/tw404j.tar.gz (https://github.com/Mint-Fans/linux-package/raw/Solaris/tw404j.tar.gz)

Tianyi Zhilian Chinese Version 4.04 Server (Characters can use Chinese names, and the degree of complexity is 95%)
https://github.com/Mint-Fans/linux-package/raw/Solaris/tw404t.tar.gz (https://github.com/Mint-Fans/linux-package/raw/Solaris/tw404t.tar.gz)

Tianyi Chain Japanese version 4.0.4 client
https://mega.nz/#!2MMHVKaA!AY8igGyuBIIsd2gRSYHBxU6pAcY9UmXaKzVRXtXuNWg (https://mega.nz/#!2MMHVKaA!AY8igGyuBIIsd2gRSYHBxU6pAcY9UmXaKzVRXtXuNWg)

Client Chinese Culture
https://mega.nz/#!nJ1VzDQL!O1kxSnp2sXXB43TtE-wu5yijlXJNWdy3XLkvzz4jQM4 (https://mega.nz/#!nJ1VzDQL!O1kxSnp2sXXB43TtE-wu5yijlXJNWdy3XLkvzz4jQM4)

Login device modified version (Japanese version)
https://mega.nz/#!XFEhyQrI!lTuZ9FdWfjyng4J1_NErtpAWs9G1eYw2F6A-f_jvvTs (https://mega.nz/#!XFEhyQrI!lTuZ9FdWfjyng4J1_NErtpAWs9G1eYw2F6A-f_jvvTs)

Login device modified version (Taiwan version)
https://mega.nz/#!OAlBgC6J!YMxxgKleV39Auhk0iHLFuMAWL7de9EtpMpH3TYI_RPk (https://mega.nz/#!OAlBgC6J!YMxxgKleV39Auhk0iHLFuMAWL7de9EtpMpH3TYI_RPk)

===================================
Solaris installation settings
============ ========================
Solaris installation notes:
Example: Oracle VM VirtualBox
* Settings -> Network -> Attach to: Bridge Interface Card
* Settings Value -> Shared Folder (The shared folder must be set to facilitate file transfer)

===================================
Solaris system configuration
============ =======================
* Install VBoxGuestAdditions Modules
virtual machine menu -> Device -> "Insert Guest Additions CD Image"
and open the terminal:
sudo pkgadd -d VBoxSolarisAdditions.pkg all

After the installation is complete, restart, you can use the shared folder.

* sudo-free password
# Openindiana / Solaris 11
sudo groupadd $USER
sudo groupadd sudo
sudo usermod -G sudo $USER
sudo /usr/gnu/bin/sed -i's/^# %sudo/%sudo/' /etc/sudoers
sudo /usr/gnu/bin/sed -i'/%
sudo/s/ ALL=.*/ALL=(ALL) NOPASSWD: ALL/' /etc/sudoers sudo /usr/gnu/bin/sed -i /" $USER"/d /etc/sudoers
sudo /usr/gnu/bin/sed -i's/ALL).*/ALL) NOPASSWD: ALL/g' /etc/sudoers.d/svc-system-config-user

# OpenSolaris
su-root -c "groupadd $USER"
su-root -c "groupadd sudo"
su-root -c "usermod -G sudo $USER"
su-root -c "echo'%sudo ALL=(ALL) NOPASSWD : ALL' >> /etc/sudoers"

* Automatic login
# Solaris 11 / OpenSolaris 2010 svn 134
sudo /usr/gnu/bin/sed -i /AutomaticLogin/d /etc/gdm/custom.conf
sudo /usr/gnu/bin/sed -i /AllowRoot/d / etc/gdm/custom.conf
sudo /usr/gnu/bin/sed -i'/daemon]/a AutomaticLoginEnable=true' /etc/gdm/custom.conf
sudo /usr/gnu/bin/sed -i'/daemon ]/a AutomaticLogin='"$USER"'' /etc/gdm/custom.conf
sudo /usr/gnu/bin/sed -i'/security]/a AllowRoot=true' /etc/gdm/custom.conf

# Openindiana 2018
sudo sh -c'echo "[Seat:*]"> /etc/lightdm/lightdm.conf'
sudo sh -c'echo "autologin-guest=false" >> /etc/lightdm/lightdm.conf'
sudo sh -c'echo "autologin-user='"$USER"'" >> /etc/lightdm/lightdm.conf'
sudo sh -c'echo "autologin-user-timeout=0" >> /etc/lightdm /lightdm.conf'
sudo sh -c'echo "greeter-show-manual-login=true" >> /etc/lightdm/lightdm.conf'

# OpenSolaris 2009 svn 111
sudo /usr/gnu/bin/sed -i /AutomaticLogin/d /etc/X11/gdm/custom.conf
sudo /usr/gnu/bin/sed -i /AllowRoot/d /etc/X11/ gdm/custom.conf
sudo /usr/gnu/bin/sed -i'/daemon]/a AutomaticLoginEnable=true' /etc/X11/gdm/custom.conf
sudo /usr/gnu/bin/sed -i'/daemon ]/a AutomaticLogin='"$USER"'' /etc/X11/gdm/custom.conf
sudo /usr/gnu/bin/sed -i'/security]/a AllowRoot=true' /etc/X11/gdm/ custom.conf

* PS1 theme
echo'export PS1="\[\\033[1;34m\]\u\[\\033[1;32m\]@\[\\033[1;32m\]\h\[\ \033[1;32m\]: \[\\033[1;36m\]\w \[\\033[1;33m\]\$ \[\\033[0m\]"'> ~/. bashrc
sudo -s
echo'export PS1="\[\\033[1;31m\]\u\[\\033[1;32m\]@\[\\033[1;32m\]\h\[ \\033[1;32m\]: \[\\033[1;36m\]\W \[\\033[1;33m\]# \[\\033[0m\]"'> /root/ .bashrc

* Nautilus link for Solaris 11 / OpenSolaris
# Convenient for Solaris / OpenSolaris to open the directory with root privileges
sudo ln -s /usr/bin/nautilus /usr/bin/fm

===================================
Compile and install the required package
========== =========================
* Compile BerkeleyDB
https://github.com/Mint-Fans/linux-package/raw/Solaris/build-berkeleydb.txt (https://github.com/Mint-Fans/linux-package/raw/Solaris/build-berkeleydb.txt)

* OpenSolaris installation and configuration MySQL 5.0
https://github.com/Mint-Fans/linux-package/raw/Solaris/install-mysql-5.0-opensolaris.txt (https://github.com/Mint-Fans/linux-package/raw/Solaris/install-mysql-5.0-opensolaris.txt)

* OpenIndiana 2018 / Solaris 11 compile and configure MySQL 5.0
https://github.com/Mint-Fans/linux-package/raw/Solaris/build-mysql-5.0-solaris.txt (https://github.com/Mint-Fans/linux-package/raw/Solaris/build-mysql-5.0-solaris.txt)

# Since each time you start the Server, you must set the time before MySQL starts, so it is not recommended to start MySQL automatically when you start it.

===================================
Tianyi Chain Server Setup
========= ==========================
Put the downloaded tw404j.tar.gz into the Home directory, then unzip
cd ~
/usr/gnu/bin /tar zxvf tw404j.tar.gz

* Create a game database for
details, please see tw404/docs/db-inst.txt

* Modify Server IP
cd ~/tw404
./change-ip

* Specify HOSTS
cd ~/tw404
./change-hosts

For the stand-alone version, just select "2". If you have a private server, select "3" to specify the external network IP and Hostname.


* Modify the client version number allowed to log in
# ~/tw404/jtales*/table/Patches.jtales
# Example: Allow 4.04 clients to log in to
Patch 2 404 R PatchNotice NoName 1 ftp://patch.nexon.co.kr/softmax/talesweaver/update (http://ftp://patch.nexon.co.kr/softmax/talesweaver/update)

* Create an account
# Initialize the account directory
cd ~/tw404
./twsrv-init

# Create an account
cd ~/tw404
./create-accounts


* Start Server
* Start method 1:
Automatically modify the server date and automatically start MySQL
cd ~/tw404
./start-twsrv

* Start method 2:
manually modify the server date and manually start MySQL

# Modify the server time (prevent the game from being dropped)
sudo date 0101000003

# MySQL start
sudo /etc/init.d/mysql.server start
or
sudo /usr/local/mysql/bin/mysqld_safe --user=mysql &

Open the first terminal (account database)
cd ~/tw404/db
./db

# Open the second terminal or tab (login to the server)
cd ~/tw404/jtales0
./jtales -d 12 jtales0

# Open the third terminal or label (World Map One)
cd ~/tw404/jtales1
./jtales -d 12 jtales1

# Open the fourth terminal or label (World Map Two)
cd ~/tw404/jtales2
./jtales -d 12 jtales2

Note: If you use Method 2 to set
manually, you will be disconnected after entering the game. Close the Server, close Mysql, and then execute ~/tw404/clear-logs to clear the records, and then restart the Server according to the steps.
It is recommended to use method one to execute start-twsrv.


* Stop Server
cd ~/tw404
./stop-twsrv

===================================
Display Manager enable/disable
========= =========================
cd ~/tw404
./dm-manager

The graphical interface always eats more memory, freely choose to open or close the display manager.
If you need to operate in text mode, use it before starting Server.
To close the display manager, enter text mode, select 2) Disable Display Manager

===================================
Client setting
============ =======================
Decompress the downloaded modified version of the login device and place it in the game directory, then modify the IP.INI content and specify the virtual machine Host IP of Solaris Server, for example: 192.168.1.XXX.
Check the IP command under Solaris: ifconfig -a
and then start the login device to enter the game.

* Japanese client garbled problem
Download Locale-Emulator
https://mega.nz/#!OZsSxRbC!J7wlfds8z7XCcY9YQvvgCuyIk4bXnJVkB-2OVWJl62w (https://mega.nz/#!OZsSxRbC!J7wlfds8z7XCcY9YQvvgCuyIk4bXnJVkB-2OVWJl62w)

Unzip it and place it in the Program Files directory.
Execute LEInstaller.exe in the directory and click "Install for currnet user".
Then right-click on the modified version of the login browser "TalesWeaver-xx.exe" and select "Locale Emulator" -> "Run in Japanese" to start the game.

===================================
Client Chinese culture
=========== ========================

* Client Chinese Culture
Unzip the downloaded tw404-client-cht.zip to the game directory.

(https://rxlrealms.com/img/forum/dev/RZ/talesweaver/n9aQZey.jpg)
(https://rxlrealms.com/img/forum/dev/RZ/talesweaver/nbSv2lg.jpg)
(https://rxlrealms.com/img/forum/dev/RZ/talesweaver/O1ChYDb.jpg)
(https://rxlrealms.com/img/forum/dev/RZ/talesweaver/XVWEimt.jpg)