Help:Setting up tools and LevelSensor.byml: Difference between pages

From ZeldaMods (Breath of the Wild)
(Difference between pages)
Jump to navigation Jump to search
imported>Leoetlino
 
imported>Leoetlino
No edit summary
 
Line 1: Line 1:
''Breath of the Wild'' uses a very flexible, custom game engine. Many aspects of the game are not hardcoded and are instead configured by a large amount of files. To edit these files, a certain number of tools are required.
<onlyinclude>
{{resloc|path=Ecosystem/LevelSensor.byml|locations=[[Bootup.pack]]}}
'''LevelSensor.byml''' is the main configuration file for the LevelSensor subsystem (which handles parts of [[difficulty scaling]]). Its file format is [[BYML]].
</onlyinclude>
All information related to difficulty (enemy and weapon) scaling is stored in this configuration file. Human-readable versions dumped from [[Renotesfiles:game files/1.0.0 LevelSensor.yml|1.0.0]] and [[Renotesfiles:game files/1.5.0 LevelSensor.yml|1.5.0]] are included in the [https://github.com/leoetlino/botw-re-notes botw-re-notes] repo. A [[Renotesfiles:game files/1.0.0 1.5.0 LevelSensor.yml.diff|diff between 1.0.0 and 1.5.0]] is also provided in the repo.


== A note about file formats ==
[1.4.0] Flag entries for Golden enemies, Igneo Talus Titan and Monk Maz Koshia were added to the kill point table. Weapon entries for the One-Hit Obliterator and Weapon_Sword_503 were also added to the weapon scaling list. They cannot receive any modifier. (Yes, the developers forgot to add golden enemies to the config in 1.3.0.)
The most common formats that one would want to be able to decode and also modify are:


* [[AAMP]] for [[actor parameters]], [[normal.bwinfo|world config (climate, lighting, ...)]], etc.
[[Category:Content (BotW)]]
* [[BFRES]] for cosmetic (textures, models, ...) changes
* [[BFEVFL]] for in-game events (which includes things like talking to people and also full-blown cutscenes)
* [[BYML]] for [[actor]]s, [[map unit]]s, [[difficulty scaling]] config, etc.
* [[RSTB]] when adding new resources or making existing files larger because of how the game works internally
* [[SARC]] for archives since many resource files are packed
 
== Installing tools ==
In general, there are several tools you can use for a given file format. This guide will only mention the recommended tools; a more complete list of utils can be found in the article for each [[:Category:File formats|file format]].
 
Some are unfortunately Windows-only, but many &mdash; especially the newer ones &mdash; are cross platform and work on Windows, macOS and Linux (with Linux even being the best supported platform for some tools).
 
=== Common requirements ===
Many of the tools for these formats require [[wikipedia:Python (programming language)|Python]] 3.6+ ('''64 bit version''') to be installed.
 
'''On Linux''', Python 3 is almost surely already installed. Just make sure you have a recent enough version (3.6+). Ubuntu 16.04 and Debian stretch are too old; The latest Ubuntu LTS (18.04) and rolling distros such as Arch as Debian sid have 3.6+ in their repos.
 
'''On Windows''', follow the below instructions for installing Python:
# Uninstall any existing Python 3 version to avoid conflicts.
# Download the [https://www.python.org/ftp/python/3.7.0/python-3.7.0-amd64.exe Python 3.7 installer] (latest version as of September 2018).
# Run the installer: do a ''system-wide install'' and tick the "''add Python to environment variables / PATH''" option.
# Verify that <code>py -3 --version</code> works and gives the correct version (3.6 or higher). {{CLI help}}
 
=== AAMP ===
Two choices: [https://github.com/Zer0XoL/BotW-aampTool aamptool] or [https://github.com/leoetlino/aamp aamp].
 
'''Warning''': aamptool does not handle child parameter lists properly. This means some files will appear to have an incorrect structure. Additionally, Nintendo sometimes starts parameter structure names with numbers. aamptool converts structures into XML tags; however leading numbers in tag names are explicitly disallowed by the XML specification. As a result files with such nodes cannot be converted back to XML correctly as of September 2018.
 
For ''aamptool'':
# Download the tool from [https://github.com/Zer0XoL/BotW-aampTool/releases GitHub] (note: only built for Windows).
 
For ''aamp'':
# Install the <code>aamp</code> package. {{Install py package help|package=aamp}}
 
=== BFRES ===
{{empty section}}
 
=== BFEVFL ===
# Install PyQt5. (If you're on Windows, install the <code>PyQt5</code> package. {{Install py package help|package=PyQt5}})
# Install the <code>eventeditor</code> package. {{Install py package help|package=eventeditor}}
 
=== BYML ===
Two choices: [https://github.com/arbiter34/ninten-file-tool ninten-file-tool] (for Wii U '''only''') or [https://github.com/leoetlino/byml-v2 byml-v2] (Wii U and Switch, and supports all new node types)
 
For ''ninten-file-tool'':
# Install the Java runtime environment (JRE).
# Download the [https://github.com/arbiter34/ninten-file-tool/releases latest release from GitHub].
 
For ''byml-v2'':
# Install the <code>byml</code> package. {{Install py package help|package=byml}}
 
=== RSTB ===
# Install the <code>rstb</code> package. {{Install py package help|package=rstb}}
 
=== SARC ===
Three choices: [https://github.com/Shadsterwolf/BotWUnpacker BotW Unpacker] (for Wii U '''only''') or [https://github.com/leoetlino/sarc sarc] (Wii U and Switch, heavily tested on BotW archives) or [https://github.com/aboood40091/SARC-Tool SARC Tool] (Wii U and Switch). '''We strongly advise against using other tools because they do not handle file alignment properly.'''
 
For ''BotW Unpacker'':
# Download the [https://github.com/Shadsterwolf/BotWUnpacker/releases latest release from GitHub].
 
For ''sarc'':
# Install the <code>sarc</code> package. {{Install py package help|package=sarc}}
 
For ''SARC Tool'':
# Install the <code>sarclib</code> package. {{Install py package help|package=sarclib}}
# Install the <code>libyaz0</code> package. {{Install py package help|package=libyaz0}}
# Download the [https://github.com/aboood40091/SARC-Tool/releases latest release from GitHub].
 
== Reverse engineering ==
To reverse engineer the game [[executable]], it is strongly recommended to have a copy of IDA Pro 7.0+ because the main executable is fairly large and IDA is as of September 2018 the only serious option for analysing such binaries. It is also the only tool with a usable decompiler for AArch64 (Switch).
 
To get a copy of an IDC for Switch 1.5.0, ping [[User:leoetlino|leoetlino]].
 
[[Category:Guides]]

Revision as of 22:52, 21 October 2018

This resource is found in Bootup.pack.

Its canonical resource path is "Ecosystem/LevelSensor.byml".

LevelSensor.byml is the main configuration file for the LevelSensor subsystem (which handles parts of difficulty scaling). Its file format is BYML.

All information related to difficulty (enemy and weapon) scaling is stored in this configuration file. Human-readable versions dumped from 1.0.0 and 1.5.0 are included in the botw-re-notes repo. A diff between 1.0.0 and 1.5.0 is also provided in the repo.

[1.4.0] Flag entries for Golden enemies, Igneo Talus Titan and Monk Maz Koshia were added to the kill point table. Weapon entries for the One-Hit Obliterator and Weapon_Sword_503 were also added to the weapon scaling list. They cannot receive any modifier. (Yes, the developers forgot to add golden enemies to the config in 1.3.0.)