### Example Make Install Output - Text Source: https://github.com/osrsbox/osrsbox.github.io/blob/master/_posts/2019-04-13-installing-a-wow-vanilla-server-on-ubuntu-linux.md Displays the output from the 'make install' command, listing the various components and targets that are being installed. This confirms that the installation process is completing successfully. ```plaintext manager@ubuntu:~/wow/mangos-classic/build$ make install [ 2%] Built target detour [ 4%] Built target recast [ 5%] Built target gsoap [ 13%] Built target g3dlite [ 14%] Built target mpqlib [ 14%] Built target framework [ 19%] Built target shared [ 89%] Built target game [ 91%] Built target mangosd [ 92%] Built target realmd [ 93%] Built target ad [ 95%] Built target vmap_extractor [ 96%] Built target vmap_assembler [ 98%] Built target vmaplib [100%] Built target MoveMapGen ``` -------------------------------- ### Example CMake Configuration Output - Text Source: https://github.com/osrsbox/osrsbox.github.io/blob/master/_posts/2019-04-13-installing-a-wow-vanilla-server-on-ubuntu-linux.md Displays typical output from a successful CMake configuration run. It summarizes the system detected, dependencies found (like MySQL), the source code revision, the installation path, and the build options selected. ```plaintext manager@ubuntu:~/wow/mangos-classic/build$ cmake .. -DCMAKE_INSTALL_PREFIX=\../run -DBUILD_EXTRACTORS=ON -DPCH=1 -DDEBUG=0 -DBUILD_PLAYERBOT=ON -- Detected 64-bit platform -- UNIX: Configuring uninstall target -- UNIX: Created uninstall target -- UNIX: Detected compiler: /usr/bin/cc -- GCC: SFMT enabled, SSE2 flags forced -- cotire 1.7.9 loaded. -- Boost version: 1.58.0 -- Found the following Boost libraries: -- system -- program_options -- thread -- regex -- chrono -- date_time -- atomic -- Using mysql-config: /usr/bin/mysql_config -- Found MySQL library: /usr/lib/x86_64-linux-gnu/libmysqlclient.so -- Found MySQL headers: /usr/include/mysql -- CMaNGOS-Core revision : c60db72179967a66de06d5b88f14c2bde54dc765 -- Revision time stamp : "2018-11-09T12:41:21+03:00" -- Install server to : /home/manager/wow/mangos-classic/run -- Use PCH : Yes (default) -- Build in debug-mode : No (default) -- Build game server : Yes (default) -- Build login server : Yes (default) -- Build ScriptDev : Yes (default) -- Build Playerbot : Yes -- Build extractors : Yes -- Configuring done -- Generating done -- Build files have been written to: /home/manager/wow/mangos-classic/build ``` -------------------------------- ### Example Directory Listing - Shell Output Source: https://github.com/osrsbox/osrsbox.github.io/blob/master/_posts/2019-04-13-installing-a-wow-vanilla-server-on-ubuntu-linux.md Shows the expected output when listing the contents of the '~/wow' directory after cloning the repositories. It confirms that the 'classic-db' and 'mangos-classic' folders have been successfully created. ```plaintext manager@ubuntu:~/wow$ ls -la total 16 drwxr-xr-x 4 manager manager 4096 Jan 7 09:44 . drwxr-xr-x 39 manager manager 4096 Jan 7 09:41 .. drwxr-xr-x 3 manager manager 4096 Jan 7 09:44 classic-db drwxr-xr-x 9 manager manager 4096 Jan 7 09:44 mangos-classic ``` -------------------------------- ### Example Logs Directory Setting in Mangosd Config - Plaintext Source: https://github.com/osrsbox/osrsbox.github.io/blob/master/_posts/2019-04-13-installing-a-wow-vanilla-server-on-ubuntu-linux.md Shows an example of setting the `LogsDir` configuration option in `mangosd.conf` to specify the directory where server logs will be written. The path provided (`/home/manager/wow/mangos-classic/run/logs`) points to the directory created earlier. Setting this allows the server to output logs to a designated location. ```plaintext LogsDir = "/home/manager/wow/mangos-classic/run/logs" ``` -------------------------------- ### Example Make Compilation Output - Text Source: https://github.com/osrsbox/osrsbox.github.io/blob/master/_posts/2019-04-13-installing-a-wow-vanilla-server-on-ubuntu-linux.md Shows a snippet of the output produced by the Make command during the compilation phase. This output typically indicates which source files are being compiled into object files. ```plaintext [ 53%] Building CXX object src/game/CMakeFiles/game.dir/AI/ScriptDevAI/scripts/kalimdor/ashenvale.cpp.o [ 53%] Building CXX object src/game/CMakeFiles/game.dir/AI/ScriptDevAI/scripts/kalimdor/darkshore.cpp.o [ 53%] Building CXX object src/game/CMakeFiles/game.dir/AI/ScriptDevAI/scripts/kalimdor/feralas.cpp.o [ 54%] Building CXX object src/game/CMakeFiles/game.dir/AI/ScriptDevAI/scripts/kalimdor/winterspring.cpp.o [ 54%] Building CXX object src/game/CMakeFiles/game.dir/AI/ScriptDevAI/scripts/kalimdor/ungoro_crater.cpp.o [ 54%] Building CXX object src/game/CMakeFiles/game.dir/AI/ScriptDevAI/scripts/kalimdor/dustwallow_marsh.cpp.o ``` -------------------------------- ### Setup Base Directory Structure - Shell Source: https://github.com/osrsbox/osrsbox.github.io/blob/master/_posts/2019-04-13-installing-a-wow-vanilla-server-on-ubuntu-linux.md Creates a dedicated directory named 'wow' in the user's home folder to store all server files and data. It then changes the current directory to the newly created 'wow' directory. ```plaintext cd ~ mkdir wow cd wow ``` -------------------------------- ### Running Database Installation Script (First Run) - Plaintext Source: https://github.com/osrsbox/osrsbox.github.io/blob/master/_posts/2019-04-13-installing-a-wow-vanilla-server-on-ubuntu-linux.md Executes the `InstallFullDB.sh` script found in the `classic-db` directory. The first run of this script typically generates a configuration file (`InstallFullDB.config`) that needs to be edited with database credentials before the full installation can proceed. This is the initial step in populating the world database. ```plaintext ./InstallFullDB.sh ``` -------------------------------- ### Displaying Current Extraction Settings (Output) Source: https://github.com/osrsbox/osrsbox.github.io/blob/master/_posts/2019-04-13-installing-a-wow-vanilla-server-on-ubuntu-linux.md This snippet shows an example of the output displayed by the `ExtractResources.sh` script before it begins the extraction process. It confirms the user's selected settings for extracting DBCs/maps, vmaps, and mmaps, along with the number of processes to be used. ```plaintext Current Settings: Extract DBCs/maps: 1, Extract vmaps: 1, Extract mmaps: 1 on 4 processes If you don't like this settings, interrupt with CTRL+C ``` -------------------------------- ### Batch File Content to Start Official OSRS Client Source: https://github.com/osrsbox/osrsbox.github.io/blob/master/_posts/2019-02-20-running-osrs-client-on-a-usb-thumb-drive.md This Batch command is designed to be saved as a `.bat` file (`OfficialClient_start.bat`) to simplify launching the official OSRS client from a portable drive. It executes the client JAR via a portable Java setup, configuring the user home, classpath, configuration URL, main class, and icon directory. Running this batch file automates the process described in the previous snippet. Requires a portable Java installation and the `jagexappletviewer.jar` and `jagexappletviewer.png` files in the specified locations. ```Batch CommonFiles\Java\bin\java.exe -Duser.home=client-home -Djava.class.path=client-official\jagexappletviewer.jar -Dcom.jagex.config=http://oldschool.runescape.com/jav_config.ws jagexappletviewer client-official ``` -------------------------------- ### Example OSRS Java Client Execution (Bash) Source: https://github.com/osrsbox/osrsbox.github.io/blob/master/_posts/2019-01-25-installing-official-osrs-client-on-ubuntu-linux.md This is a sample output from running the minimal OSRS Java client command in a bash terminal, showing the command itself, attempts to load the icon, loader initialization steps, config URL logging, and typical Java warnings about reflective access. ```Bash ph01l@ubuntu:~$ java -Duser.home=$HOME -Djava.class.path=/usr/local/bin/jagexappletviewer.jar -Dcom.jagex.config=http://oldschool.runescape.com/jav_config.ws jagexappletviewer /usr/local/share/ Trying to load icon file: /usr/local/share/jagexappletviewer.png Loader init Init 1 Init 2 Init 3 Init 4 Init 5 Init 6 Init 7 Init 8 Loader show Loader set message Config url:http://oldschool.runescape.com/jav_config.ws Config URL is http://oldschool.runescape.com/jav_config.ws WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by app.u (file:/usr/local/bin/jagexappletviewer.jar) to field java.lang.ClassLoader.scl WARNING: Please consider reporting this to the maintainers of app.u WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations WARNING: All illegal access operations will be denied in a future release ``` -------------------------------- ### Setting Up Development Environment with Virtual Environment Source: https://github.com/osrsbox/osrsbox.github.io/blob/master/projects/osrsbox-db/index.md This sequence of commands clones the repository recursively, navigates into the directory, creates and activates a Python virtual environment, and installs project dependencies listed in `requirements.txt` using `pip`. Assumes `git` and `python3` are installed. ```bash git clone --recursive https://github.com/osrsbox/osrsbox-db.git cd osrsbox-db python -m venv venv source venv/bin/activate pip3 install -r requirements.txt ``` -------------------------------- ### Running the Extraction Script Source: https://github.com/osrsbox/osrsbox.github.io/blob/master/_posts/2019-04-13-installing-a-wow-vanilla-server-on-ubuntu-linux.md This command executes the `ExtractResources.sh` script located in the current directory. The script will prompt the user for configuration options (like which data types to extract and number of processors) before starting the process. ```plaintext ./ExtractResources.sh ``` -------------------------------- ### Example Database Connection Strings in Mangosd Config - Plaintext Source: https://github.com/osrsbox/osrsbox.github.io/blob/master/_posts/2019-04-13-installing-a-wow-vanilla-server-on-ubuntu-linux.md Provides examples of setting the `LoginDatabaseInfo`, `WorldDatabaseInfo`, and `CharacterDatabaseInfo` connection strings in `mangosd.conf`. These lines configure how the world server connects to the login, world, and character databases, respectively, using a custom password (`sneakfeetpanda`). Configuring these connections is essential for the server to operate. ```plaintext LoginDatabaseInfo = "127.0.0.1;3306;mangos;sneakfeetpanda;classicrealmd" WorldDatabaseInfo = "127.0.0.1;3306;mangos;sneakfeetpanda;classicmangos" CharacterDatabaseInfo = "127.0.0.1;3306;mangos;sneakfeetpanda;classiccharacters" ``` -------------------------------- ### Opening RuneLite Launcher File with Gedit Shell Source: https://github.com/osrsbox/osrsbox.github.io/blob/master/_posts/2018-10-05-installing-runelite-on-ubuntu-linux.md Provides an example command using `sudo gedit` to create and open the `runelite.desktop` file in the system-wide applications directory (`/usr/share/applications/`). This file defines the application launcher entry in the Linux menu. Requires superuser privileges (`sudo`). ```shell sudo gedit /usr/share/applications/runelite.desktop ``` -------------------------------- ### Complete Minimal Example: Loading and Printing OSRSBox Monsters Source: https://github.com/osrsbox/osrsbox.github.io/blob/master/_posts/2019-09-27-using-the-osrsbox-db-monsters-database.md Combines the import of `monsters_api`, loading the database, and iterating through the monsters to print their IDs and names into a single runnable Python script. This serves as a quick start example. ```python from osrsbox import monsters_api all_db_monsters = monsters_api.load() # Loop the monster database, and print names of monsters for monster in all_db_monsters: if monster.name is not None: print(monster.id, monster.name) ``` -------------------------------- ### Installing MSITools on Ubuntu - Bash Source: https://github.com/osrsbox/osrsbox.github.io/blob/master/_posts/2019-01-25-installing-official-osrs-client-on-ubuntu-linux.md Installs the `msitools` package using the apt package manager. This package provides command-line utilities for inspecting and extracting files from Windows Installer (.msi) files, which is needed to get the JaGeX Applet Viewer from the Windows client installer. Requires root privileges. ```bash sudo apt install msitools ``` -------------------------------- ### Installing mwparserfromhell Library - Plaintext Source: https://github.com/osrsbox/osrsbox.github.io/blob/master/_posts/2018-12-14-scraping-the-osrs-wiki-part3.md Provides the command to install the `mwparserfromhell` library using pip, specifying `pip3.7` as an example. Notes that the pip executable version may vary based on the Python installation. ```plaintext pip3.7 install mwparserfromhell ``` -------------------------------- ### Changing Directory to cMaNGOS Root (Bash) Source: https://github.com/osrsbox/osrsbox.github.io/blob/master/_posts/2019-04-13-installing-a-wow-vanilla-server-on-ubuntu-linux.md Navigates to the root directory of the cMaNGOS source code repository, which is the prerequisite location for running subsequent database setup scripts. ```Bash cd ~/wow/mangos-classic ``` -------------------------------- ### Full Working Tooltip Example Page HTML Source: https://github.com/osrsbox/osrsbox.github.io/blob/master/projects/osrsbox-tooltips/index.md This complete HTML page provides a runnable example demonstrating the integration and use of the OSRSBox tooltip library. It includes the required script and stylesheet links in the header and shows both text-based and image-based tooltip triggers in the body. ```html OSRSBOX | Simple HTML Example using OSRS Tooltips by PH01L [Rune platebody (g)] ``` -------------------------------- ### Listing WoW Client Directory Contents Source: https://github.com/osrsbox/osrsbox.github.io/blob/master/_posts/2019-04-13-installing-a-wow-vanilla-server-on-ubuntu-linux.md This snippet shows example output from listing the contents of the WoW 1.12 client directory using the 'ls -la' command. It illustrates the typical file and directory structure expected. ```plaintext manager@ubuntu:~$ ls -la ~/wow-client/ drwxrwxr-x 10 manager manager 4096 . drwxr-xr-x 40 manager manager 4096 .. -rwxrwxrwx 1 manager manager 762116 BackgroundDownloader.exe -rwxrwxrwx 1 manager manager 294912 BNUpdate.exe drwxrwxr-x 3 manager manager 4096 Data -rwxrwxrwx 1 manager manager 1038848 dbghelp.dll -rwxrwxrwx 1 manager manager 413696 DivxDecoder.dll drwxrwxr-x 7 manager manager 4096 Documentation drwxrwxr-x 2 manager manager 4096 Errors -rwxrwxrwx 1 manager manager 162816 fmod.dll drwxrwxr-x 2 manager manager 4096 Fonts -rwxrwxrwx 1 manager manager 372736 ijl15.dll drwxrwxr-x 3 manager manager 4096 Interface -rwxrwxrwx 1 manager manager 1196292 Launcher.exe drwxrwxr-x 2 manager manager 4096 Logs -rwxrwxrwx 1 manager manager 36 realmlist.bku -rwxrwxrwx 1 manager manager 24 realmlist.wtf -rwxrwxrwx 1 manager manager 720896 Repair.exe -rwxrwxrwx 1 manager manager 46852 Scan.dll -rwxrwxrwx 1 manager manager 245408 unicows.dll drwxrwxr-x 2 manager manager 4096 WDB -rwxrwxrwx 1 manager manager 4775986 WoW.exe drwxrwxr-x 3 manager manager 4096 WTF ``` -------------------------------- ### Launch RuneLite Client JAR | Bash Source: https://github.com/osrsbox/osrsbox.github.io/blob/master/_posts/2019-12-06-multiple-osrs-accounts-made-easy-using-runelite-profiles.md The standard Bash command used to launch the RuneLite client by executing its Java JAR file. The specific path `/usr/local/bin/runelite/RuneLite.jar` is an example and may need adjustment based on the user's installation. The `--mode=OFF` argument is included in this example. ```Bash java -jar /usr/local/bin/runelite/RuneLite.jar --mode=OFF ``` -------------------------------- ### Example Data Directory Setting with Specific Username - Plaintext Source: https://github.com/osrsbox/osrsbox.github.io/blob/master/_posts/2019-04-13-installing-a-wow-vanilla-server-on-ubuntu-linux.md Provides an example of setting the `DataDir` configuration option in `mangosd.conf` using the specific username `manager`. This demonstrates how to provide the absolute path to the server's run directory for data files. Correctly setting this path is crucial for the server to find its data. ```plaintext DataDir = "/home/manager/wow/mangos-classic/run" ``` -------------------------------- ### Installing Compiled cMaNGOS Binaries - Shell Source: https://github.com/osrsbox/osrsbox.github.io/blob/master/_posts/2019-04-13-installing-a-wow-vanilla-server-on-ubuntu-linux.md Executes the 'make install' command to copy the successfully compiled cMaNGOS binaries, libraries, and configuration files to the installation directory specified earlier with CMAKE_INSTALL_PREFIX. ```plaintext make install ``` -------------------------------- ### Managing realmd Systemd Service (Shell) Source: https://github.com/osrsbox/osrsbox.github.io/blob/master/_posts/2019-04-14-configuring-a-wow-vanilla-server-on-ubuntu-linux.md Specific examples of `systemctl` commands used to manage the `realmd` systemd service. Shows how to stop, start, restart, and check the status of the realmd server component. These commands require root privileges (`sudo`). ```plaintext sudo systemctl stop realmd # Stop the realm sudo systemctl start realmd # Start the realm sudo systemctl restart realmd # Restart the realm sudo systemctl status realmd # Check the status of realm ``` -------------------------------- ### Compiling cMaNGOS Code - Shell Source: https://github.com/osrsbox/osrsbox.github.io/blob/master/_posts/2019-04-13-installing-a-wow-vanilla-server-on-ubuntu-linux.md Starts the compilation process for the cMaNGOS server code using the Make command. Make reads the build files generated by CMake and compiles the source code into executable binaries and libraries. ```plaintext make ``` -------------------------------- ### Running Database Installation Script (Second Run) - Plaintext Source: https://github.com/osrsbox/osrsbox.github.io/blob/master/_posts/2019-04-13-installing-a-wow-vanilla-server-on-ubuntu-linux.md Executes the `InstallFullDB.sh` script again after the configuration file (`InstallFullDB.config`) has been edited with the correct database credentials. This second run uses the updated configuration to connect to the database and populate it with world data (NPCs, quests, etc.). This completes the database population step. ```plaintext ./InstallFullDB.sh ``` -------------------------------- ### Full Tooltip Head Inclusion Example HTML Source: https://github.com/osrsbox/osrsbox.github.io/blob/master/projects/osrsbox-tooltips/index.md This example provides a complete HTML `` section demonstrating the correct way to include both the necessary OSRSBox tooltip CSS stylesheet and JavaScript library files by referencing their hosted URLs. ```html ``` -------------------------------- ### List of CMake Configuration Options - Text Source: https://github.com/osrsbox/osrsbox.github.io/blob/master/_posts/2019-04-13-installing-a-wow-vanilla-server-on-ubuntu-linux.md Lists common configuration options available when using CMake to prepare the cMaNGOS server build. These options control aspects like installation prefix, debugging, precompiled headers, and which server components or tools to build. ```plaintext Options that can be used in order to configure the process: CMAKE_INSTALL_PREFIX Path where the server should be installed to PCH Use precompiled headers DEBUG Include additional debug-code in core WARNINGS Show all warnings during compile DEBUG Include additional debug-code in core POSTGRESQL Use PostgreSQL instead of mysql BUILD_GAME_SERVER Build game server (core server) BUILD_LOGIN_SERVER Build login server (auth server) BUILD_EXTRACTORS Build map/dbc/vmap/mmap extractor BUILD_SCRIPTDEV Build scriptdev. (Disable it to speedup build in dev mode by not including scripts) BUILD_PLAYERBOT Build Playerbot mod ``` -------------------------------- ### Starting Mangosd Game Server - Plaintext Source: https://github.com/osrsbox/osrsbox.github.io/blob/master/_posts/2019-04-14-configuring-a-wow-vanilla-server-on-ubuntu-linux.md Executes the `mangosd` program, the game server component of cMaNGOS, from its run directory. It loads the main configuration file (`mangosd.conf`) and optionally a playerbot configuration (`playerbot.conf`). This command starts the core game server and presents the interactive `mangos>` console. ```bash cd ~/wow/mangos-classic/run ./bin/mangosd -c etc/mangosd.conf -a etc/playerbot.conf ``` -------------------------------- ### Configuring Maven Build Command (Plaintext) Source: https://github.com/osrsbox/osrsbox.github.io/blob/master/_posts/2018-08-10-writing-runelite-plugins-part-1-building.md Sets the command line options for the Maven build configuration in IntelliJ IDEA. The `install` goal compiles and installs the project artifacts into the local Maven repository. The `-DskipTests` option skips test execution to significantly speed up the build process, while `-U` forces an update of snapshots and releases from remote repositories. ```plaintext install -DskipTests -U ``` -------------------------------- ### Editing Database Installation Config File with Vim - Plaintext Source: https://github.com/osrsbox/osrsbox.github.io/blob/master/_posts/2019-04-13-installing-a-wow-vanilla-server-on-ubuntu-linux.md Opens the `InstallFullDB.config` file, generated by the initial run of `InstallFullDB.sh`, using the `vim` text editor. This file contains settings for the database installation process, primarily the database password. Editing this file is required to provide the correct password for database access. ```plaintext vim ~/wow/classic-db/InstallFullDB.config ``` -------------------------------- ### Locating RuneLite Plugins Source Path (plaintext) Source: https://github.com/osrsbox/osrsbox.github.io/blob/master/_posts/2018-08-12-writing-runelite-plugins-part-2-structure.md Identifies the specific directory within the client source code where the source code for all individual RuneLite plugins is stored, recommending it as a starting point for browsing existing plugin examples. ```plaintext runelite\runelite-client\src\main\java\net\runelite\client\plugins\ ``` -------------------------------- ### Installing OSRSBox Python API Source: https://github.com/osrsbox/osrsbox.github.io/blob/master/_posts/2019-09-27-using-the-osrsbox-db-monsters-database.md Provides the command-line instruction to install the necessary `osrsbox` package from PyPi using the pip package manager. This step is a prerequisite for using the API. ```plaintext pip install osrsbox ``` -------------------------------- ### Creating Temporary Directory and Navigating (Bash) Source: https://github.com/osrsbox/osrsbox.github.io/blob/master/_posts/2019-01-25-installing-official-osrs-client-on-ubuntu-linux.md This command sequence first creates a directory named `osrs` within the `/tmp` directory. It then changes the current working directory to the newly created `/tmp/osrs` directory. This is done to contain the temporary files needed for downloading and extracting the OSRS installer components. ```bash mkdir /tmp/osrs # Make a folder named osrs cd /tmp/osrs # Move into the new folder ``` -------------------------------- ### Changing Directory to Classic-DB Repository - Plaintext Source: https://github.com/osrsbox/osrsbox.github.io/blob/master/_posts/2019-04-13-installing-a-wow-vanilla-server-on-ubuntu-linux.md Navigates the terminal session to the directory containing the `mangos-classic-db` repository. This directory holds the scripts and database files needed to populate the world database. Changing to this directory is necessary to execute the database installation script. ```plaintext cd ~/wow/classic-db ``` -------------------------------- ### OSRS Java Client Command Structure Source: https://github.com/osrsbox/osrsbox.github.io/blob/master/_posts/2019-01-25-installing-official-osrs-client-on-ubuntu-linux.md This snippet shows the general structure of the command used to launch the OSRS Java client, indicating where Java options, the main class name (jagexappletviewer), and client-specific arguments are placed. Java options often start with -D or -X. ```Plaintext java ``` -------------------------------- ### Installing osrsbox Python Package Source: https://github.com/osrsbox/osrsbox.github.io/blob/master/projects/osrsbox-db/index.md This command uses the `pip` package manager to install the `osrsbox` library from the Python Package Index (PyPI). It is the standard way to make the library available in a Python environment. Requires `pip` to be installed and configured. ```Shell pip install osrsbox ``` -------------------------------- ### Installing cMaNGOS Build Dependencies (Plaintext) Source: https://github.com/osrsbox/osrsbox.github.io/blob/master/_posts/2019-04-13-installing-a-wow-vanilla-server-on-ubuntu-linux.md This command installs a comprehensive list of packages necessary for building cMaNGOS from source on Ubuntu Server 16.04. It includes compilers (gcc, g++), build tools (cmake, make, automake, autoconf, libtool), version control systems (git-core, subversion), database development libraries (libmysql++-dev, mysql-server), and other essential libraries (libssl-dev, libboost-all-dev, etc.). Root privileges via `sudo` are required. ```plaintext sudo apt install build-essential gcc g++ automake git-core autoconf make patch libmysql++-dev mysql-server libtool libssl-dev grep binutils zlibc libc6 libbz2-dev cmake subversion libboost-all-dev ``` -------------------------------- ### Building RuneLite Project | Maven Shell Source: https://github.com/osrsbox/osrsbox.github.io/blob/master/_posts/2019-06-29-building-and-running-runelite-on-the-terminal-using-maven.md Builds the entire RuneLite project using the Maven `install` lifecycle goal. This compiles the code, packages it into JAR files, and installs them into the local Maven repository. The `-DskipTests` option skips running unit tests to speed up the build process. Requires Maven to be installed and executed within the project's root directory. ```Shell mvn install -DskipTests ``` -------------------------------- ### Configuring cMaNGOS Build with CMake - Shell Source: https://github.com/osrsbox/osrsbox.github.io/blob/master/_posts/2019-04-13-installing-a-wow-vanilla-server-on-ubuntu-linux.md Runs the CMake command from the 'build' directory to configure the compilation process. It sets the installation prefix to '../run', enables building extractors and player bots, and disables debug mode. ```plaintext cmake .. -DCMAKE_INSTALL_PREFIX=\../run -DBUILD_EXTRACTORS=ON -DPCH=1 -DDEBUG=0 -DBUILD_PLAYERBOT=ON ``` -------------------------------- ### Downloading OSRS MSI Installer with Wget (Bash) Source: https://github.com/osrsbox/osrsbox.github.io/blob/master/_posts/2019-01-25-installing-official-osrs-client-on-ubuntu-linux.md This command uses the `wget` tool to download the `OldSchool.msi` file from the specified URL. The `-O` option saves the downloaded file directly to the `/tmp/osrs/OldSchool.msi` path, ensuring it's placed within the temporary directory created earlier. ```bash wget -O /tmp/osrs/OldSchool.msi http://www.runescape.com/downloads/oldschool.msi ``` -------------------------------- ### Installing Wine Package (apt) Source: https://github.com/osrsbox/osrsbox.github.io/blob/master/_posts/2019-04-14-configuring-a-wow-vanilla-server-on-ubuntu-linux.md Installs the necessary Wine software package on a Debian/Ubuntu-based Linux distribution using the apt package manager. Wine is required to run the Windows-based World of Warcraft client. This command requires root privileges. ```bash sudo apt install wine ``` -------------------------------- ### Build RuneLite Cache Project Maven Bash Source: https://github.com/osrsbox/osrsbox.github.io/blob/master/_posts/2020-06-28-osrs-cache-archive.md Executes the Maven `install` goal to compile, package, and install the RuneLite cache project into the local Maven repository. This command builds the necessary components, including the test setup that downloads a specific cache version. Requires Java and Maven installed. ```bash mvn install ``` -------------------------------- ### Example Login Database Connection String with Custom Password - Plaintext Source: https://github.com/osrsbox/osrsbox.github.io/blob/master/_posts/2019-04-13-installing-a-wow-vanilla-server-on-ubuntu-linux.md Provides an example of the `LoginDatabaseInfo` setting where the default password has been changed to `sneakfeetpanda`. This illustrates how to modify the connection string to match a custom database user password. Updating this line is necessary if the default database password was changed during setup. ```plaintext LoginDatabaseInfo = "127.0.0.1;3306;mangos;sneakfeetpanda;classicrealmd" ``` -------------------------------- ### Updating Ubuntu System Packages (Plaintext) Source: https://github.com/osrsbox/osrsbox.github.io/blob/master/_posts/2019-04-13-installing-a-wow-vanilla-server-on-ubuntu-linux.md This command updates the list of available packages from the repositories and then upgrades all currently installed packages on the Ubuntu system to their latest versions. It's a crucial first step before installing new software to ensure system dependencies are up-to-date. Requires root privileges via `sudo`. ```plaintext sudo apt update && sudo apt upgrade ``` -------------------------------- ### Changing Directory and Setting Script Permissions Source: https://github.com/osrsbox/osrsbox.github.io/blob/master/_posts/2019-04-13-installing-a-wow-vanilla-server-on-ubuntu-linux.md These commands first navigate into the WoW client directory and then grant execute permissions to the `ExtractResources.sh` script for the user. This is necessary to run the extraction script. ```plaintext cd ~/wow-client chmod u+x ExtractResources.sh ``` -------------------------------- ### SQL User Creation Default (SQL) Source: https://github.com/osrsbox/osrsbox.github.io/blob/master/_posts/2019-04-13-installing-a-wow-vanilla-server-on-ubuntu-linux.md Displays the default SQL command found in `db_create_mysql.sql` for creating the 'mangos' database user with a default password, shown for context before modification. ```SQL CREATE USER 'mangos'@'localhost' IDENTIFIED BY 'mangos'; ``` -------------------------------- ### Running RuneLite JAR from System Directory - Shell Source: https://github.com/osrsbox/osrsbox.github.io/blob/master/_posts/2018-10-05-installing-runelite-on-ubuntu-linux.md Executes the RuneLite launcher JAR file located in the `/usr/local/bin/` directory using the installed Java runtime environment. This command will launch the RuneLite client application. ```shell java -jar /usr/local/bin/RuneLite.jar ``` -------------------------------- ### Path to Desktop Entry File Source: https://github.com/osrsbox/osrsbox.github.io/blob/master/_posts/2019-01-25-installing-official-osrs-client-on-ubuntu-linux.md This snippet shows the standard system path for application desktop entry files in Linux, specifically for the JaGeX Applet Viewer launcher. ```bash /usr/share/applications/jagexappletviewer.desktop ``` -------------------------------- ### Minimum Batch Command to Run Official OSRS Client Source: https://github.com/osrsbox/osrsbox.github.io/blob/master/_posts/2019-02-20-running-osrs-client-on-a-usb-thumb-drive.md This command demonstrates the minimal arguments required to launch the official Old School RuneScape client using its JAR file with a portable Java installation. It specifies the user home directory, sets the classpath to the client JAR, provides the necessary configuration URL (`jav_config.ws`), indicates the main class (`jagexappletviewer`), and points to the directory containing the client icon. Requires a portable Java installation and the `jagexappletviewer.jar` and `jagexappletviewer.png` files. ```Batch CommonFiles\Java\bin\java.exe -Duser.home=client-home -Djava.class.path=client-official\jagexappletviewer.jar -Dcom.jagex.config=http://oldschool.runescape.com/jav_config.ws jagexappletviewer client-official ``` -------------------------------- ### Listing MySQL Databases (Output) Source: https://github.com/osrsbox/osrsbox.github.io/blob/master/_posts/2019-04-14-configuring-a-wow-vanilla-server-on-ubuntu-linux.md Shows an example of the output generated by executing the `SHOW DATABASES;` command within the MySQL command prompt. This command lists all available databases on the connected server instance, including the game's character, mangos, and realm databases. ```plaintext mysql> SHOW DATABASES; +--------------------+ | Database | +--------------------+ | classiccharacters | | classicmangos | | classicrealmd | +--------------------+ 3 rows in set (0.04 sec) ``` -------------------------------- ### Uninstalling RuneLite Files Linux Shell Source: https://github.com/osrsbox/osrsbox.github.io/blob/master/_posts/2018-10-05-installing-runelite-on-ubuntu-linux.md Removes the three main files installed during the tutorial: the RuneLite JAR, the icon file, and the application launcher `.desktop` file. This effectively uninstalls the RuneLite client as described in the guide. Requires superuser privileges (`sudo`). ```shell sudo rm /usr/local/bin/RuneLite.jar sudo rm /usr/local/share/RuneLite.png sudo rm /usr/share/applications/runelite.desktop ``` -------------------------------- ### Starting Realmd Login Server - Plaintext Source: https://github.com/osrsbox/osrsbox.github.io/blob/master/_posts/2019-04-14-configuring-a-wow-vanilla-server-on-ubuntu-linux.md Executes the `realmd` program, the login server component of cMaNGOS, from its run directory using a specific configuration file. This command starts the service that handles user logins and realm selection and should be kept running. ```bash cd ~/wow/mangos-classic/run ./bin/realmd -c etc/realmd.conf ``` -------------------------------- ### Updating Ubuntu Package Lists - Bash Source: https://github.com/osrsbox/osrsbox.github.io/blob/master/_posts/2019-01-25-installing-official-osrs-client-on-ubuntu-linux.md Updates the local package list from the configured repositories using apt-get. This is a standard first step before installing or upgrading software using apt-get to ensure you get the latest package information. It requires root privileges. ```bash sudo apt-get update ``` -------------------------------- ### Listing mangosd Console Commands (Output) Source: https://github.com/osrsbox/osrsbox.github.io/blob/master/_posts/2019-04-14-configuring-a-wow-vanilla-server-on-ubuntu-linux.md Provides an example of the output seen after successfully connecting to the mangosd remote administration console and executing the `commands` command. This output lists all available administration commands that can be used to manage the running game server. ```plaintext Welcome to the Continued Massive Network Game Object Server. Username: Password: +Logged in. mangos>commands Commands available to you: account ... ahbot ... character ... debug ... gm ... guild ... instance ... list ... lookup ... pet ... pool ... pdump ... reload ... reset ... server ... tele ... announce notify commands revive help saveall kick ban ... unban ... banlist ... ticket delticket pinfo send ... loadscripts mute unmute repairitems ``` -------------------------------- ### Importing Realmd Database (Bash) Source: https://github.com/osrsbox/osrsbox.github.io/blob/master/_posts/2019-04-13-installing-a-wow-vanilla-server-on-ubuntu-linux.md Imports the base structure and data for the realmd database using the `realmd.sql` script into the `classicrealmd` database. Requires the MySQL root password. ```Bash sudo mysql -uroot -p classicrealmd < ~/wow/mangos-classic/sql/base/realmd.sql ``` -------------------------------- ### Applying Example Values to Base Max Hit Formula - Plaintext Source: https://github.com/osrsbox/osrsbox.github.io/blob/master/_posts/2019-01-22-calculating-melee-dps-in-osrs.md Demonstrates the base melee max hit formula with the previously calculated example values for effective level (153) and equipment bonus (133) substituted into the equation, showing the numerical setup before calculation. ```plaintext max_hit = 0.5 + 153 * (133 + 64) / 640 ``` -------------------------------- ### Extracting MSI File Contents with msiextract (Bash) Source: https://github.com/osrsbox/osrsbox.github.io/blob/master/_posts/2019-01-25-installing-official-osrs-client-on-ubuntu-linux.md This command uses the `msiextract` utility to extract all files contained within the `OldSchool.msi` file located in the current directory (`/tmp/osrs`). It creates a new subdirectory (typically `jagexlauncher`) containing the extracted files, including the target `jagexappletviewer.jar`. Requires the `msiextract` tool to be installed. ```bash msiextract OldSchool.msi ``` -------------------------------- ### Installing RuneLite Dependencies | Ubuntu Shell Source: https://github.com/osrsbox/osrsbox.github.io/blob/master/_posts/2019-06-29-building-and-running-runelite-on-the-terminal-using-maven.md Installs the required software packages - `openjdk-8-jdk` (Java Development Kit 8), `maven` (Maven build tool), and `git` (version control) - using the `apt` package manager on Ubuntu. Requires superuser privileges (`sudo`). These are necessary prerequisites for cloning and building the RuneLite project. ```Shell sudo apt install openjdk-8-jdk maven git ``` -------------------------------- ### Listing MySQL Tables (classicrealmd Output) Source: https://github.com/osrsbox/osrsbox.github.io/blob/master/_posts/2019-04-14-configuring-a-wow-vanilla-server-on-ubuntu-linux.md Provides an example of the output from the `SHOW TABLES;` command when executed within the `classicrealmd` database context. This output lists all tables present in the selected database, showing various tables related to accounts, realms, and server status. ```plaintext mysql> SHOW TABLES; +-------------------------+ | Tables_in_classicrealmd | +-------------------------+ | account | | account_banned | | ip_banned | | realmcharacters | | realmd_db_version | | realmlist | | uptime | +-------------------------+ 7 rows in set (0.00 sec) ``` -------------------------------- ### Build OSRS Flatcache Project Maven Bash Source: https://github.com/osrsbox/osrsbox.github.io/blob/master/_posts/2020-06-28-osrs-cache-archive.md Executes the Maven `clean install` goals for the `osrs-flatcache` project, skipping checkstyle validation. This command compiles the project and produces the executable JAR file needed to process `.flatcache` files. Requires Java and Maven installed in the directory containing the project's `pom.xml`. ```bash mvn clean install -Dcheckstyle.skip=false ``` -------------------------------- ### Importing Characters Database (Bash) Source: https://github.com/osrsbox/osrsbox.github.io/blob/master/_posts/2019-04-13-installing-a-wow-vanilla-server-on-ubuntu-linux.md Imports the base structure and data for the characters database using the `characters.sql` script into the `classiccharacters` database. Requires the MySQL root password. ```Bash sudo mysql -uroot -p classiccharacters < ~/wow/mangos-classic/sql/base/characters.sql ``` -------------------------------- ### Listing Configuration Files for Verification - Plaintext Source: https://github.com/osrsbox/osrsbox.github.io/blob/master/_posts/2019-04-13-installing-a-wow-vanilla-server-on-ubuntu-linux.md Executes the `ls -la` command to list files and directories in the `run/etc` directory with detailed information. This is used to confirm that the `.conf` files were successfully created by copying the `.conf.dist` files. The output shows the presence of both original and copied files. ```plaintext manager@ubuntu:~/wow/mangos-classic/run$ ls -la ~/wow/mangos-classic/run/etc/ total 200 drwxrwxr-x 2 manager manager 4096 Mar 24 12:24 . drwxrwxr-x 4 manager manager 4096 Mar 24 12:12 .. -rw-r--r-- 1 manager manager 58718 Mar 24 12:24 mangosd.conf -rw-r--r-- 1 manager manager 58718 Mar 24 11:51 mangosd.conf.dist -rw-r--r-- 1 manager manager 3249 Mar 24 12:24 playerbot.conf -rw-r--r-- 1 manager manager 3249 Mar 24 11:50 playerbot.conf.dist -rw-r--r-- 1 manager manager 4757 Mar 24 12:24 realmd.conf -rw-r--r-- 1 manager manager 4757 Mar 24 11:50 realmd.conf.dist ``` -------------------------------- ### Setting Database Password in Installation Config - Plaintext Source: https://github.com/osrsbox/osrsbox.github.io/blob/master/_posts/2019-04-13-installing-a-wow-vanilla-server-on-ubuntu-linux.md Provides an example of setting the `PASSWORD` variable within the `InstallFullDB.config` file. This variable must be updated to match the password used for the database user (e.g., `mangos`) during the database initialization step. Setting the correct password is essential for the script to connect to the database. ```plaintext PASSWORD="sneakfeetpanda" ``` -------------------------------- ### Importing Initial Database Structure (Bash) Source: https://github.com/osrsbox/osrsbox.github.io/blob/master/_posts/2019-04-13-installing-a-wow-vanilla-server-on-ubuntu-linux.md Executes the `db_create_mysql.sql` script using the MySQL client with root privileges to create the initial mangos, characters, and realmd databases and set up user permissions. Requires the MySQL root password. ```Bash sudo mysql -uroot -p < ~/wow/mangos-classic/sql/create/db_create_mysql.sql ``` -------------------------------- ### SQL User Creation Modified Password (SQL) Source: https://github.com/osrsbox/osrsbox.github.io/blob/master/_posts/2019-04-13-installing-a-wow-vanilla-server-on-ubuntu-linux.md Shows an example of modifying the SQL command in `db_create_mysql.sql` to change the default password for the 'mangos' database user to 'sneakfeetpanda'. ```SQL CREATE USER 'mangos'@'localhost' IDENTIFIED BY 'sneakfeetpanda'; ``` -------------------------------- ### Example OSRS jav_config.ws Content - Configuration Data Source: https://github.com/osrsbox/osrsbox.github.io/blob/master/_posts/2018-08-03-osrs-cache-research-determine-client-version.md This snippet shows an example of the configuration content found in the `jav_config.ws` file downloaded from an Old School RuneScape server. It includes crucial parameters like the `codebase` (base URL for downloads) and `initial_jar` (the name of the main game client JAR file), which are needed to locate and download the client JAR. ```bash title=Old School RuneScape adverturl=http://www.runescape.com/g=oldscape/bare_advert.ws codebase=http://oldschool87.runescape.com/ cachedir=oldschool storebase=0 initial_jar=gamepack_4515750.jar initial_class=client.class termsurl=http://www.jagex.com/g=oldscape/terms/terms.ws privacyurl=http://www.jagex.com/g=oldscape/privacy/privacy.ws viewerversion=124 win_sub_version=1 mac_sub_version=2 other_sub_version=2 browsercontrol_win_x86_jar=browsercontrol_0_-1928975093.jar browsercontrol_win_amd64_jar=browsercontrol_1_1674545273.jar download=1322814 window_preferredwidth=800 window_preferredheight=600 advert_height=96 applet_minwidth=765 applet_minheight=503 applet_maxwidth=5760 applet_maxheight=2160 msg=lang0=English msg=tandc=This game is copyright 1999 - 2018 Jagex Ltd.\Use of this game is subject to our ["http://www.runescape.com/terms/terms.ws"Terms and Conditions] and ["http://www.runescape.com/privacy/privacy.ws"Privacy Policy]. msg=options=Options msg=language=Language msg=changes_on_restart=Your changes will take effect when you next start this program. msg=loading_app_resources=Loading application resources msg=err_verify_bc64=Unable to verify browsercontrol64 msg=err_verify_bc=Unable to verify browsercontrol msg=err_load_bc=Unable to load browsercontrol msg=loading_app=Loading application msg=err_create_target=Unable to create target applet msg=err_create_advertising=Unable to create advertising msg=err_save_file=Error saving file msg=err_downloading=Error downloading msg=ok=OK msg=cancel=Cancel msg=message=Message msg=copy_paste_url=Please copy and paste the following URL into your web browser msg=information=Information msg=err_get_file=Error getting file msg=new_version=Update available! You can now launch the client directly from the OldSchool website.\nGet the new version from the link on the OldSchool homepage: http://oldschool.runescape.com/ msg=new_version_linktext=Open OldSchool Homepage msg=new_version_link=http://oldschool.runescape.com/ param=4=1 param=2=ElZAIrq5NpKN6D3mDdihco3oPeYN2KFy2DCquj7JMmECPmLrDP3Bnw param=6=0 param=18=true param=13=41141 param=7=387 param=1=https://auth.jagex.com/ param=17= param=8=5 param=14=http://www.runescape.com/g=oldscape/slr.ws?order=LPWM param=10=true param=11=0 param=3=0 param=15=0 param=5=.runescape.com param=16=https://payments.jagex.com/operator/v1/ param=9=1 param=12=false ``` -------------------------------- ### RuneLite Desktop Entry Configuration Source: https://github.com/osrsbox/osrsbox.github.io/blob/master/_posts/2018-10-05-installing-runelite-on-ubuntu-linux.md The configuration content for the `runelite.desktop` file. This defines how the RuneLite application launcher appears and behaves in the Linux applications menu, specifying the execution command, name, icon path, and category. ```ini [Desktop Entry] Encoding=UTF-8 Type=Application Exec=java -jar /usr/local/bin/RuneLite.jar Name=RuneLite Comment=RuneLite launcher Icon=/usr/local/share/RuneLite.png Categories=Game ``` -------------------------------- ### Running a Java JAR File - Shell Source: https://github.com/osrsbox/osrsbox.github.io/blob/master/_posts/2018-10-05-installing-runelite-on-ubuntu-linux.md General command syntax to execute a Java application packaged as a JAR file using the `java -jar` command. Replace `/path/to/RuneLite.jar` with the actual file system path to the JAR. ```shell java -jar /path/to/RuneLite.jar ``` -------------------------------- ### Running OSRS Java Client - Minimal Command Source: https://github.com/osrsbox/osrsbox.github.io/blob/master/_posts/2019-01-25-installing-official-osrs-client-on-ubuntu-linux.md This command executes the jagexappletviewer.jar client with the minimum required parameters, including setting the user home, classpath to the jar, and the URL for the client configuration file. It also specifies the main class name and a directory for the client icon. ```Plaintext java -Duser.home=$HOME -Djava.class.path=/usr/local/bin/jagexappletviewer.jar -Dcom.jagex.config=http://oldschool.runescape.com/jav_config.ws jagexappletviewer /usr/local/share/ ``` -------------------------------- ### Enabling XRender Performance - Dsun.java2d.xrender Source: https://github.com/osrsbox/osrsbox.github.io/blob/master/_posts/2019-01-25-installing-official-osrs-client-on-ubuntu-linux.md This Java system property (-Dsun.java2d.xrender) enables the XRender pipeline, which can offer improved graphics performance on modern Linux systems using X11 desktops. ```Plaintext -Dsun.java2d.xrender=True ``` -------------------------------- ### Preparing Build Directory - Shell Source: https://github.com/osrsbox/osrsbox.github.io/blob/master/_posts/2019-04-13-installing-a-wow-vanilla-server-on-ubuntu-linux.md Navigates into the cloned 'mangos-classic' source directory. It then creates a new directory named 'build' within it and changes the current directory into this new 'build' folder, which is the standard location for running CMake. ```plaintext cd mangos-classic mkdir build cd build ``` -------------------------------- ### Copying Extractor Scripts to Client Directory Source: https://github.com/osrsbox/osrsbox.github.io/blob/master/_posts/2019-04-13-installing-a-wow-vanilla-server-on-ubuntu-linux.md This command copies all necessary extractor scripts from the cMaNGOS contribution directory to the WoW client directory. These scripts are prerequisites for running the extraction process. ```plaintext cp ~/wow/mangos-classic/contrib/extractor_scripts/* ~/wow-client ``` -------------------------------- ### Clone OSRS Cache Related Git Repositories Bash Source: https://github.com/osrsbox/osrsbox.github.io/blob/master/_posts/2020-06-28-osrs-cache-archive.md Clones two Git repositories, `osrs-flatcache` and `osrs-cache`, from GitHub into the current directory. These repositories contain the tool for handling `.flatcache` files and the archived `.flatcache` files themselves, respectively. Requires Git installed. ```bash git clone https://github.com/abextm/osrs-flatcache.git git clone https://github.com/abextm/osrs-cache.git ``` -------------------------------- ### Running WoW Client (Wine) Source: https://github.com/osrsbox/osrsbox.github.io/blob/master/_posts/2019-04-14-configuring-a-wow-vanilla-server-on-ubuntu-linux.md Demonstrates the command sequence to launch the World of Warcraft client using Wine from the Linux command line. It first changes the current directory to the Wine C: drive equivalent and then executes the `Wow.exe` program with the `-openglv` argument to force the use of OpenGL for graphics rendering. ```bash cd ~/.wine/drive_c wine "C:\Program Files\World of Warcraft\Wow.exe" -openglv ``` -------------------------------- ### Data Directory Setting Template in Mangosd Config - Plaintext Source: https://github.com/osrsbox/osrsbox.github.io/blob/master/_posts/2019-04-13-installing-a-wow-vanilla-server-on-ubuntu-linux.md Shows the template for the `DataDir` setting in `mangosd.conf`, indicating where the server should look for data files. The `` placeholder must be replaced with the actual system username. This setting tells the server the base path for necessary data files. ```plaintext DataDir = "/home//wow/mangos-classic/run" ```