Skip to main content
Main menu
Home
Projects
Articles
Media
Patches
Forums
Wiki
Chat
Secondary menu
Calendar
Search form
Search this site
Username or e-mail
*
Password
*
Remember me
Create new account
Request new password
Awards
0
No votes yet
Active Servers
Discord Chat
Navigation
Recent content
Contribs
Quick jump
Polls
About
Who
Conduct
Guidelines
New Modules
At a Distant Shore - A module in the A Strange World universe
The Texts of Thaan - Chapter 1
Goblins & Steel
Mountain of Power - Redux
Shadewood Enhanced Edition
Arpelagos Chronicles: The Strain is Strong (DEMO)
Almraiven Enhanced Edition
Siege of Shadowdale Enhanced Edition
Shaper of Dreams: Chapter 4 and 5
Swordflight Chapter Five
You are here
Home
Hakpack and 2da Merging (Tutorial)
Submitted by:
Submitted by
Migrate Wizard
on 2014-07-08 16:08.
Last modified:
2014-08-29 13:35
Author:
Ryuujin
Version:
1.0
Old Vault Category:
other
Old Vault ID:
740
Game:
NwN1
Category:
Other
Requirements:
OC
Language:
English
Tags:
Tutorial
Top Modules
NWN
NWN 2
IceBlink
Aribeth's Redemption - Chapter Two
93.1%
Gladiatrix
88%
Gladiatrix III - The Hand of Destiny
86.7%
The Aielund Saga Act IV - The Fall of Aielund (Part One)
95.3%
Bloodright - The Blood Royal
90.4%
Snow Hunt
91.3%
Vampire – Heaven Defied
82.2%
Lords of Darkness 4 - For Crown and Country (V1.2)
94.5%
Black Thorn
86.7%
Prophet - Chapter II - The Century of Sorrow
93.8%
A Tangled Web - Part 1 & 2
93.8%
Aribeth's Redemption - Chapter Three
93.9%
The HeX Coda 01 (Canceled Premium Module)
92.9%
Demonheart - Prelude
98.2%
The Accursed Tower
89.4%
Trial and Terror
83.3%
Dark Avenger Chapter 1
90%
From This Comes Strength
98.9%
The Crystalmist Campaign Chapter 1: Against the Cult of the Reptile God
85%
FRW Character Creator
98.6%
Dark Avenger Chapter 2
88.6%
Lanterna
78%
UNDERMOUNTAIN- Maddgoth's Castle
82.5%
A Fairy Tale
80%
Winds of Change
78%
The Raventhal
The Raventhal
Hearkenwold
Hearkenwold
Red Carnival
Red Carnival
The Exile - IceBlink
The Exile - IceBlink
Curse of the Wailing Death Prelude
The Elderin Stone
The tutorial correctly describes how to merge two haks into one.
TOP HAK METHOD
These days, builders often choose to merge the 2da files (so that the haks play nice with each other) but leave the other files in the original haks. The merged 2da files are placed in a "top hak", so called because it is placed at the top of the hak list in module properties. For example, if the original haks are X and Y, and the merged 2da files are in hak XYcombo, the hak order is
XYcombo
X
Y
The benefits of doing this are
2DA LINE NUMBERS
It often happens that both haks are using the same line number in a 2da file for different purposes.
It's normally safe to copy the content of one of those lines to a new, unused line number, but only before creating templates or instances in the module, because the line number is stored as a reference in the template or instance.
If a hak ships with an erf (allowing templates to be imported to the module), the old 2da line number will be embedded in those templates, so don't change the 2da line number unless you have to.
SAFE 2DA LINES
When choosing new 2da lines, it helps to avoid those reserved for future official purposes or major projects. There is a list on the wiki.
FILE NAME CONFLICTS
It may happen that two haks contain a file with the same name, but different content, which is not a 2da file. Typically, these will be models or textures. If the builder does nothing, the version in the higher hak (in the module properties hak order) is used in game.
If the file is a model (.mdl etc) it is possible to rename one version, but it's not simply a question of changing the file name. The model has to be decompiled first, then every instance of the model name inside the model needs to be changed using a text editor. The model name also needs to be changed in the top hak 2da line.
If the file is a texture (.dds, .tga etc) it can be renamed. To get a model to use the new texture name, decompile it, then change any BITMAP directives that refer to the texture.
CAVEAT
These notes are generally correct, but there are various exceptions, which can be discussed in the Vault forum.