Modding: Difference between revisions

From Ara: History Untold Wiki
m Reverted edit by Z0eff (talk) to last revision by Frogboy
Tag: Rollback
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{UnderConstruction}}
[[File:SettingsFile.png|thumb|Example of the Settings_v121.txt file]]
[[File:SettingsFile.png|thumb|Example of the Settings_v121.txt file]]
As of [[Patch_Notes_1.0.4|Patch 1.0.4]] it is possible to create mods. However at the time of writing this is not yet officially supported. That's where this Wiki comes in.


== Steps to start using Mods ==
= Ara Modding Setup Guide =
# First navigate to <code>%LocalAppData%\Ara History Untold</code> on your computer and open <code>Settings_v121.txt</code>. Scroll to the bottom and add <code>EnableMods=1</code> to the end and save it.
This document will show you how to get started with modding Ara: History Untold.
# Find the line with <code>GameCoreMod0Source=</code> and add the name of the mod after the '=' character.
# Next create a new folder called <code>Mods</code> in <code>Documents\My Games\Ara History Untold</code>.


== Creating your own Mods ==
In this initial version of mod support, we provide a copy of our source game data files in the Ara installation directory. You can install these source files as a mod in your Documents folder and enable mod loading in the Ara settings. We will walk through each step below.
# Browse to the game's directory, for Steam users this is often <code>C:\Program Files (x86)\Steam\steamapps\common\Ara History Untold</code>. In the folder <code>assets\SourceMods</code> should be a zip file called <code>GameDataSource_v1.0.4.zip</code> containing .zdata files.
# Exctact these somewhere and open them with your text editor of choice such as Notepad++ and set the language to C++ for easy reading.
# After making the desired changes, place all the contents of the extracted zip file into <code>Documents\My Games\Ara History Untold\Mods\NAMEOFYOURMOD</code>


== Other ==
== QuickStart ==
''From oxide_dan09876 on Discord:''
# Find the game data source mod zip in the Ara installation folder at `assets\SourceMods\GameDataSource_v1.0.4.zip`.
# Extract it into `Documents\My Games\Ara History Untold\Mods\` so that the file `GameCoreData.zdata` is in the `Documents\My Games\Ara History Untold\Mods\GameDataSource_v1.0.4` folder. Create the "Mods" folder first if it does not exist.
# Navigate to `%LOCALAPPDATA%\Ara History Untold` with File Explorer (open File Explorer with WinKey + E) and open the latest settings text file (e.g. `Settings_V122.txt`).
# Set the line `EnableMods=0` to `EnableMods=1`. If this line is missing, add it to the end of the file.
# Set the line `GameCoreMod0Source=` to `GameCoreMod0Source=GameDataSource_v1.0.4`. If this line is missing, add it to the end of the file.
# Start Ara – it will load your modified source files from your Documents folder into the game. Multiplayer and achievements will be disabled while mods are enabled.
== Step 1: Find the game data source zip file ==
If you own the game through Steam, you can get to your installation files quickly through the Steam Library tab. For Windows Store installations (e.g. from Game Pass), you can find the top-level Ara folder by starting at `%LOCALAPPDATA%\Microsoft\WindowsApps`.


<blockquote>
=== Find Ara in your Steam library ===
oh, just be aware that some of the fields are dead - e.g. they were hooked up but then aren't anymore, we didn't have time to purge it. I'm sure the community will figure that out quick enough
Right-click the game in the library list, select Manage -> Browse Local Files.
</blockquote>
 
You should have a File Explorer window (WinKey + E) open with the following folder:
 
Open the `assets\SourceMods` folder and locate the `GameDataSource_v1.0.4.zip` file. Right-click on the `GameDataSource_v1.0.4.zip` file and select the 'Copy' menu item.
 
== Step 2: Unzip into Mods folder ==
Use File Explorer to open your Documents folder and navigate to `My Games` and then, in a separate window, the `Ara History Untold` folder.
 
In `Documents\My Games\Ara History Untold`, create a `Mods` folder (if it does not already exist).
 
Right-click in the Mods folder and select the Paste menu item to make a copy of `GameDataSource_v1.0.4.zip` in the Mods folder. Extract the contents of the .zip file by right-clicking and selecting the 'Extract All' option.
 
You should end up with a folder `GameDataSource_V1.0.4` in the Mods folder, containing all of the game data files.
 
== Step 3: Enable modding in Ara settings ==
Open a File Explorer window and navigate to `%LOCALAPPDATA%\Ara History Untold`.
 
This folder contains a settings file, such as `Settings_v121.txt`. Open the one with the largest version number (the "v121" or similar at the end).
 
You can open this file using a text editor such as Notepad or Visual Studio Code.
 
In the file, you should find two lines: `EnableMods=0` and `GameCoreMod0Source=`. If you haven't run the game since the last update, you may need to do so for these to show up. Alternatively, you can also add them to the end of the file manually.
 
Change these lines to: EnableMods=1 GameCoreMod0Source=GameDataSource_v1.0.4
 
Save and close the file.
 
== Step 4: Run Ara ==
If you launch Ara again, you should now start with mods enabled and the source files from `GameDataSource_v1.0.4` loaded as your active game rules.
 
If there are errors loading the mod files, you will receive a data error popup, and the game will proceed loading only its built-in, un-modded data.
 
(Note: Pressing 'Ctrl-C' will copy all the text from the error popup)
 
`%LOCALAPPDATA%\Ara History Untold\logs\Ara.log` contains a diagnostic log of the mods loaded (if any) and errors found.
 
While you are running with mods enabled, achievements and multiplayer will be disabled.
 
== Guides ==
 
* [[Modding for fun and profit]]

Revision as of 00:03, 11 October 2024

Example of the Settings_v121.txt file

Ara Modding Setup Guide

This document will show you how to get started with modding Ara: History Untold.

In this initial version of mod support, we provide a copy of our source game data files in the Ara installation directory. You can install these source files as a mod in your Documents folder and enable mod loading in the Ara settings. We will walk through each step below.

QuickStart

  1. Find the game data source mod zip in the Ara installation folder at `assets\SourceMods\GameDataSource_v1.0.4.zip`.
  2. Extract it into `Documents\My Games\Ara History Untold\Mods\` so that the file `GameCoreData.zdata` is in the `Documents\My Games\Ara History Untold\Mods\GameDataSource_v1.0.4` folder. Create the "Mods" folder first if it does not exist.
  3. Navigate to `%LOCALAPPDATA%\Ara History Untold` with File Explorer (open File Explorer with WinKey + E) and open the latest settings text file (e.g. `Settings_V122.txt`).
  4. Set the line `EnableMods=0` to `EnableMods=1`. If this line is missing, add it to the end of the file.
  5. Set the line `GameCoreMod0Source=` to `GameCoreMod0Source=GameDataSource_v1.0.4`. If this line is missing, add it to the end of the file.
  6. Start Ara – it will load your modified source files from your Documents folder into the game. Multiplayer and achievements will be disabled while mods are enabled.

Step 1: Find the game data source zip file

If you own the game through Steam, you can get to your installation files quickly through the Steam Library tab. For Windows Store installations (e.g. from Game Pass), you can find the top-level Ara folder by starting at `%LOCALAPPDATA%\Microsoft\WindowsApps`.

Find Ara in your Steam library

Right-click the game in the library list, select Manage -> Browse Local Files.

You should have a File Explorer window (WinKey + E) open with the following folder:

Open the `assets\SourceMods` folder and locate the `GameDataSource_v1.0.4.zip` file. Right-click on the `GameDataSource_v1.0.4.zip` file and select the 'Copy' menu item.

Step 2: Unzip into Mods folder

Use File Explorer to open your Documents folder and navigate to `My Games` and then, in a separate window, the `Ara History Untold` folder.

In `Documents\My Games\Ara History Untold`, create a `Mods` folder (if it does not already exist).

Right-click in the Mods folder and select the Paste menu item to make a copy of `GameDataSource_v1.0.4.zip` in the Mods folder. Extract the contents of the .zip file by right-clicking and selecting the 'Extract All' option.

You should end up with a folder `GameDataSource_V1.0.4` in the Mods folder, containing all of the game data files.

Step 3: Enable modding in Ara settings

Open a File Explorer window and navigate to `%LOCALAPPDATA%\Ara History Untold`.

This folder contains a settings file, such as `Settings_v121.txt`. Open the one with the largest version number (the "v121" or similar at the end).

You can open this file using a text editor such as Notepad or Visual Studio Code.

In the file, you should find two lines: `EnableMods=0` and `GameCoreMod0Source=`. If you haven't run the game since the last update, you may need to do so for these to show up. Alternatively, you can also add them to the end of the file manually.

Change these lines to: EnableMods=1 GameCoreMod0Source=GameDataSource_v1.0.4

Save and close the file.

Step 4: Run Ara

If you launch Ara again, you should now start with mods enabled and the source files from `GameDataSource_v1.0.4` loaded as your active game rules.

If there are errors loading the mod files, you will receive a data error popup, and the game will proceed loading only its built-in, un-modded data.

(Note: Pressing 'Ctrl-C' will copy all the text from the error popup)

`%LOCALAPPDATA%\Ara History Untold\logs\Ara.log` contains a diagnostic log of the mods loaded (if any) and errors found.

While you are running with mods enabled, achievements and multiplayer will be disabled.

Guides