recursal/Fanatic-Fandom huggingface dataset:
Effects.bin

## Introduction

The effects.bin file stores particle effects. Each particle you add here appears at the specified coordinates on the map.
A few examples of particles shown in-game

Particle ID-40Particle ID-95
The great advantage, instead of creating particles by script, is that these particles can be seen also by players who join a mission later, when it has already been started.

However it is not possible to control these particles, meaning turning them on or off, not by script and not in the file itself.

Therefore it's only useful for **static particles** like smoke from a destroyed vehicle or a campfire.

If you don't have this file in your missions folder, simply create it. Effects.bin will load automatically. No further linking elsewhere necessary.

## Structure

C900
32-bit INT block length
Particle 1
Particle 2
Particle N
### Header

Each effects.bin begins with **C900** followed by the block length value. In the following N particle effect(s) are listed.

### Particle N

```
[1,0,0][0]
[0,0,1][0]
[0,1,0][0]
[0(x),0(y),0(z)][1]

 32-Bit INT | Particle ID | 5F00 0000 (95)

*4x4 transformation matrix*

In HD2 left-handed matrices are used. Therefore we have to swap column 2 with column 3 of a right-handed matrix.

```
[1,0,0][0]
[0,1,0][0]
[0,0,1][0]
[0,0,0][1]

```

becomes

```
[1,0,0][0]
[0,0,1][0]
[0,1,0][0]
[0,0,0][1]

```

Changing only the position of the particle is very simple, just edit the x, y, z values as shown in the table above.
If you need to rotate your particle effect (which would affect position entries of the matrix) it's recommended to use following 3ds Max/GMAX script by hdmaster

```
function GetTM =
(
 print ( "TMatrix: "+$.Name )
 a = $.Transform.Row1
 b = $.Transform.Row2
 c = $.Transform.Row3
 d = $.Transform.Row4
 format "[%, %, %, 0]\n" (a.X as String) (a.Z as String) (a.Y as String)
 format "[%, %, %, 0]\n" (b.X as String) (b.Z as String) (b.Y as String)
 format "[%, %, %, 0]\n" (c.X as String) (c.Z as String) (c.Y as String)
 format "[%, %, %, 1]\n" (d.X as String) (d.Z as String) (d.Y as String)
 OK
)

GetTM()

```

Sample Output

```
TMatrix: Dummy001"
[1.0, 0.0, 0.0, 0]
[0.0, 0.0, 1.0, 0]
[0.0, 1.0, 0.0, 0]
[3.0, 0.0, 5.0, 1]

```
Инжир Путешественник

**Инжир Путешественник (Кочевник)**- или Фиг Трэйвелер. Житель Вселенной Эвиса. Возможно, он родился на планете Портокаллик в Инжирии.

Изучает разные Вселенные и планеты. Также немного писатель рассказов.

Образ жизни - кочевник. В данный момент изучает Вселенную РИ.

Из комикса Adventures in the universe было ясно, что Инжир Путешественник прожил пока-что 20 лет (Инжиры живут 200 700 лет).

## Биография

Возможно он родился на планете Портокаллик, сам он не говорит. Мало известно о его жизни. Также, многие счиатают, что Инжир Путешественник состоит в браке с Лягушкой Путешественницей (по крайней мере в комиксе Adventures in the universe говорится, что он влюблён в неё и хочет жениться на ней).

## Карьера

### Вселенные и планеты

Начал изучать Вселенные в возрасте 15 лет, когла он окончил школу (Инжиры учатся 3-4 года в школе, начиная с 11 лет). Первая Вселенная, которую он начал изучать была микро-Вселенная Геммис, которая находится в составе Вселенной Эвиса. Далее в возрасте 17 лет он стал изучать Вселенную РИ, которую до сих пор изучает.

### Карьера писателя

Написал 7 рассказов и 1 стих и начал продавать их. 7 книг принесли ему гонорар в 967 цуке, а стих в 414 цуке.

Начал писать рассказы в возрасте 13 лет. Первым его рассказом был *Задумчивый Инжир.*Он сделал 2 000 копий и стал их продовать по всей планете Портокаллик. Далее написал ещё 3 книги *Вринд, Ласковое слово* и 3 части книги *Приключения маленького Инжируса*в возрасте 17-18 лет. Потом написал стих *Планета* в 18 лет. И в 20 лет написал последнею на данный момент книгу *Желание*, в которой говорится про его путешествия во Вселенную РИ. На данный момент отвлёкся от писания книг.

В комиксе Adventures in the universe Инжир Путешественник (или Фиг Трэйвелер) говорил о том, что хочет написать роман и продать его за 1100 цуке.

## Adventures in the universe

В комиксе Adventures in the universe, его зовут Фиг Трэйвелер. Там говорится много чего интересного о нём. Например: ему 20 лет, он мечтает пожениться на Лягушке Путешественнице и т.д.

## Alternate universe

В "Alternate universe", Инжир Путешественник совсем не изучает планеты, а изобретает разные механизмы и апгрейды, которые могу улучшить мир. Он не влюблён в Лягушку Путешественницу (они ещё не знакомы), а ещё он имеет брата близнеца Кланччи.

Из Alternate universe было ясно, что Инжиру Путешественнику принадлежала Большая розовая базука.
Evis Universe Вики

На данный момент создано 46 статей, и вы **можете помочь нам!**

Мы на Wikia с 15 января 2015 года.

Эта вики о выдуманных Вселенных. которую может редактировать каждый!

ВселенныеПерсонажиПланетыРасыЛокацииРазное

**Портокаллик**-гигантская  планета во Вселенной Эвиса. Население планеты 23 001 634 802.

Вращается вокруг звезды Аксиния.

Существует 4 материка: Фикилану, Ниси, Лаваниси, Хотвизи.

Возможно на планете Портокаллик родился знаменитый кочевник Инжир Путешественник.
*(далее…)*

Вы можете улучшить эту вики! Создайте свою статью.
<createbox>
width=24
break=no
buttonlabel=Создать новую страницу
</createbox>
Так же вы можете улучшать уже созданные страницы.
Детективные Истории

**Детективные Истории**- серия рассказов (возможно с иллюстрациями) которая будет выходить по выходным, и если возможно, по средам. Действие происходит в Вселенной людей, задолго до ее погибели в 30 годах 20 века н.э.

## Персонажи

* Оливер Дот
* Жасмин Сворн
* Алекс Кин
* Грэгори Сор
* Б.Д.

## Выпуски

1. Добро пожаловать в Нуар
2. Информатор
3. Б.Д.
Вселенная Вакуум

**Вселенная Вакуум**- необитаемая и гигантская вселенная размером 1 000 998 009 км.

Находится в Всё.

Возможно через несколько лет она будет заселена, но сейчас до неё ещё не добрались так-как расстояние между Группой Центральных Вселенных и Вселенной Вакуум, около 657 998 475 км., такое расстояние преодалимо, но для этого надо преложить усилия, так-как самые быстрые и мощные ракеты могут долететь почти 400 млн. км.

Один Цкыртыский учёный, дал теорию о том, что Вселенная может быть обитаемая, так-как, часто на далёком расстоянии можно увидеть очень мелкие огненные вспышки, которые прекращаются, через 2 секунды. Теория ещё не имеет подтверждения.

Известно, также, что в прошлом вселенная Вакуум поглащала другие вселенные и поэтому обрела гигантский размер.
Всё

**Всё,** так называется бесконечная местность, в которой находятся все Вселенные. Многие из-них граничат друг с другом, но есть Вселенные, которые находятся далеко друг от друга и ни с кем не граничат. Также, могут соединяться с помощью порталов, лифтов, искусственных лифтов и тому, подобному.

Как было доказано, "Всё" можно изучить, но нужно только желание. Чтобы продвинуться дальше понадобится 100 мега-скоростных супер-ракет.
Вселенная УБлера

## Создатель

В конечном итоге всё в этой вселенной создал архидемон Ублиаргараторифунчаедолгаруиун (Прим. Вы не имеете право использовать настоящее полное имя этого демона для попыток заполучить контроль над ним, так как узнали его существовании неконвенционным путём. Любые такие попытки будут пресечены разорительными судебными исками). Иногда он мог выступать под разными именами, но сути этой не меняет.

Вселенная УБлера крайне неустойчива. По легеде, когда-то она составляла огромное облако идей УБлера, но из-за адамантового астероида была расколота на фрагменты, которые засосало в другие вселенные, где они обросли связями с ними. Но недавно архидемон решил вновь соединить фрагменты своей вселенной.

Ниже об основных.

## Курлия одинокая

Это всего одна звезда с планетами вокруг. Когда-то её засосало в огромную вселенную ПЖ. Она летала в бесконечном пространстве между крупными галактиками. Тут когда-то жил няшка Зеригхан.

## Севасоб

Ублер был слаб, а сознание его было мутно. В то время он встретил того, кто называл себя Небесной Пандой. Ублер воздвиг великий город, но потом город откололся и перешёл в новую вселенную.

## Осколки

Множество слабо сформированных осколков бытия есть в этой молодой вселенной. Что их ждёт? Покажет только время.

## Лифты

Первый лифт действительно был лифтом, причём космическим. И потом их становилось всё больше, и далеко не всегда они выглядели как лифты.

Эти точки сопряжения разных реальностей не дают вселенной Ублера вновь разлететься.
Лисо-Эвисовая война

Как известно, **Лисо-Эвисовая война** началась сразу после отделения Э'лиссии от Вселенной Эвиса (1956 год).

### **1 Год (1956)**

#### **Э'лиссия**

Царь Лиссии издал указ об отсоединении Э'лиссии. Корсак I знал, что власти Вселенной Эвиса нападут, ведь они хотят, чтобы их Вселенная была лучшей. Они начали собирать армию из хорьков и песцов, в быту работали лисы и корсаки. Они делали оружие, броню и многое другое.

#### **Вселенная Эвиса**

Короли, президенты, роботы и главы государств стран Портокаллика начали бурно обсуждать эту тему. Было решено, что нельзя допустить отсоединенния Э'лиссии. Все страны Портокаллика соединили свои армии в одну большую.

### **2 Год (1957)**

#### **Э'лиссия**

Ученые Лиссии бурно начали создавать супер оружие. Дети и инвалиды были эвакуированы в Свободное Королевство Лис, это государство защищало силовое поле. На территории всей планеты начали создаваться "лавянки" - недавно изобретенные ловушки, незаметные. Когда на них наступаешь, земля проваливается, а под землей горячая лава.

#### **Вселенная Эвиса**

ВЭ очень далеко продвинулась в технике. Было создано мега-оружие, а также, куча ловушек для земных и космических войн. Была запрошена помощь у Вселенной УБлера.

### **3 Год (1958)**

#### **Э'лиссия**

Ученые обнаружили енотов, ранее не встречавшихся на этой планете, их они тоже отвели в армию. Крит отказался учавствовать в войне.

#### **???**

В Всё между двумя вселенными появляется портал.
Вселенная Эвиса

**Вселенная Эвиса**- Вселенная в центре Всё. Является анклавом Вселенной РИ. Внутри Вселенной Эвиса находятся ещё 4 микро-Вселенных: Геммис, Эвисбург, а также две Вселенные названия, которым ещё не даны.

Ранее в ней существовала галактика Э'лиссия, которая отделилась в 1956 году, после чего наступила Лисо-Эвисовая война.

Состоит в Группе Центральных Вселенных.

Административным центром Вселенной является планета Портокаллик, которая не входит ни в одну микро-Вселенную.

Не имеет никаких связей с другими Вселенными, но в скором времени хотят создать портал, через, который можно будет попасть во Вселенную ПЖ. Можно воспользоватся супер-ракетой, которая перенесёт вас в любую Вселенную (что не очень удобно, так-как придётся слишком долго лететь).
Э'лиссия

**Э'лиссия** — одна из вселенных, месторасположением в ГЦВ. В ГЦВ она является одной из самых маленьких, а планеты в ней только две. Хоть она похожа и на галактику (а ранее она была галактикой, она отделилась от Вселенной Эвиса в 1956 году), но это не галактика.

Две планеты обитаемые (у одной есть три спутника, у другой 0) и жизнь на них очень отличается. Дело в том, что раньше вокруг Холома (звезда) крутилась только Лиссиа (первая планета), но жители второй планеты предсказали, что скоро их звезда взорвется и они, взяв собой планету (как, неизвестно, однако есть догадки по этому поводу) мигрировали к Холому.

## Лисонский разлом

**Лисонский разлом** — белая дыра в центре вселенной. Она не дает Лиссиа и Криту столкнуться, также засасывает в себя опасные метеориты, хотя по каким-то причинам в Э'лиссие их очень мало.

Некоторые верующие считают, что с помощью Лисонского разлома можно попасть к Великому Лису, однако ученые это опровергают, и говорят, что если туда кто-то попадет, то их разорвет на части.

## Флора

Флора там более разнообразна не Крите (вторая планета), там даже живут полу-растения, полу-животные.

Внизу можете увидеть более известные растения (с фотографиями):

## Фауна

Фауны там вообще нет, если конечно, расу нельзя считать фауной.

## Обитатели

На планете Лиссиа обитают Корсаки, Лисы, Песцы, и очень редко можно встретить Хорьков. Несмотря на названия, все эти виды - рассы.

Самая распространенная расса, как можно было догадаться - Лисы, их примерно 989,777,983,213,324,100.

На Крите обитают Живучие Лианы, самая сильная расса в мире.
Ильидан

> -Вы нигга-товы!
>
>

Раса- 10% человек, 40% Найт Эльф, 60% Демон

Титул- Предатель

Род деятельности- Охота на демонов

Возраст- ???

'*Ильидан Ярость Бури Денисович**, или просто** Ильидан '***—** парень который предал свой народ потому-что демоны из одной вселенной обещали ему пиво, за что был заключен в кристалле на 10 000 минут (Примерно неделя)

## Оружие

Парные клинки Ильидана являются третьим оружием по силе во всем Всё.

## Способности

### Оружие

* Мастер боя двойными клинками
	+ Эти клинки кстати неплохо пробивают бронежилеты
	+ А демонов так вообще пачками режут

### Магия

* Фаероболы. Зеленые.
* Превращение в ~~демона~~ негра

### Просто

* Увеличенная сила
* И выносливость
* И рефлексы
* И скорость еще

## Минусы

* Вечно не выспавшийся. А вы попробуйте не спать неделю
* Подслеповат
* Плохой стратег
Группа Центральных Вселенных

**Группа Центральных Вселенных,** сокращ. **ГЦВ** — группа вселенных в Всё. В 20 млн. км находится Группа малых вселенных, в которой находятся порядка 50 вселенных и все они изучены, а 48 из них обитаемы.

В 63 млн. км находятся 16 с чем-то вселенных, которые не граничат с друг другом (кроме 2-х из них).

Между Вселенной Вакуум и ГЦВ 657 998 475 км.,

## Название

Название дано не из-за того, что ГЦВ находится в центре Всё (так-как Всё бесконечно), а из-за того, что ГЦВ находится в центре всех изученых **на данный момент** вселенных.

## Список вселенных

* Вселенная Эвиса
* Вселенная РИ
* Вселенная ПЖ
* Вселенная УБлера
* Вселенная Топаза
* Вселенная ОРО
* Вселенная Рэйнджи
* Вселенная Целесты
* Э'лиссия
* Вселенная Макса
* Гиблая Вселенная
* Вселеная Апельсинус
Adventures in the universe

**Adventures in the universe** - комикс о вселенных и героях, которые в них живут. Комикс даёт лучше узнать историю вселенных и планет, а также лучше узнать характер разных героев и жителей. На данный момент вышло 4 выпуска.

## Выпуски

* Cookie Cat - Куки-Кэт, снова хочет завладеть микро-вселенной Геммис.
* Frog Traveler brains - Инжир Путешественник изобрёл машину, которая может переместить вас в ваше сознание. Он попадает в сознание Лягушки Путешественницы и путешествет по её внутреннему миру. Потом он называет её внутренний мир Ынжирия.
* Figs Traveler - Инжир Путешественник рассказывает о своей жизни.
* The Shopping Crusade - Ильидан отправляется в магазин, в итоге уничтожая его.
Scene2.bin

## Introduction

Scene2.bin is used like Actors.bin. Additionally following attribute are stored here:

* Copyright Text
* Camera Distance
* View Distance
* Clipping Range

Commonly camera, light and lightmap objects are included in scene2 file. But in general these objects can also be stored inside actors file.

## Structure

### File header

Scene2.bin begins with 534C and following attributes:

### Objects header

#### Object n

Common Attributes for each object as described in Entities. (depends on object type)

### Definitions header

#### Definition n

Read Definitions (depends on definition type)

### not used blocks

After definitions block there are 2 further block/sections that are always empty.
Weblinks

## Communities / Clans

hidden-and-dangerous.net (english fansite)

hidden-and-dangerous2.com (german fansite)

hidden-and-dangerous-brasil (portuguese brazil fansite)

russian community

=RpR= Clan

## Projects / Others

RevEngEd2 Editor

Zdenda's Edit Page

LS3D Sandbox for Mafia

Hidden And Dangerous 3 - Forum (Russian)

Hidden And Dangerous 3 - Forum (English)
Items.dat

## Introduction

In the items.dat file you can edit the equipment of human AI and the ammunition of vehicles and stationary weapons like the anti-aircraft cannon(FLAK) or Panzerabwehrkanone(PAK). Additionally you can place any item (e.g documents) anywhere on the map by using map coordinates and rotation.

## Layout

The items.dat file begins with **1000 0000**, followed by the items assigned to objects and the items placed directly on the map.

0100 0000
object item 1
object item 2
object item N
Item on map 1
Item on map 2
Item on map N
Note: The order of the items is not important. However it's a neat arrangement if the "items directly placed on map" are listed at the end of Items.dat.

### Item assigned to an object

 3x32-Bit INT | always 0

*Item ID:* The second byte of the 32-Bit INT represents the Item List.

 1 | Sabre Squadron Items

e.g 04**00** 0000 is the code for the K98 whereas 04**01** 0000 is the code for the P08 with silencer.

*Inventory Type:* For vehicles inventroy type is always 0, for human AI six inventory types are defined as followed:

 06 | Backpack

In the table below you find common used ammunition for vehicles or stationary weapons. For more item codes check out items.

 SAS Jeep (Browning M1919) | CA00 0000

#### Example 1

Soldier5 is given a blue mechanic uniform (9700 0000), a blue mechanic cap (5800 0000), a K98 rifle (0400 0000) on his shoulder, 3x Ammo for the K98 rifle (AE00 0000) and a small medic kit (3600 0000) into pouches.

#### Example 2

The german Tiger tank Tiger01 is given 3 rounds for the tank cannon (D500 0000) and 3 rounds for the Machine Gun. (D300 0000)

#### Example

On the example below we are placing a big medic kit (3500 0000) on map position (-10/1.75/-25)
Editing Tools

## Description

This is a list of programs and files required to modify H&D2 or Sabre Squadron.

* image editing software like PixBuilder, GIMP, Photoshop (not free), ... - Theses programs help creating or editing textures
* DC||ED2 (included in Edit\_Tools.zip) - program for editing .bin files. Can help with the creation of maps, mission
* Hex Editor - To work with game-specific files like e.g. actors.bin. You can use any but recommend is TinyHexer as it's simple and clear
* HD2 Scripter - program for working with scripts, linking scripts, equiping soldiers
* HD2 Extractor - program to export the contents of HD2 game archives (.dta)
* Autodesk 3ds Max (not free) - import/export 4ds models and more, getting ingame coordinates with ease, necessary for creating or editing checkpoints (check2.bin)
* RevEngEd2 by Ikaros & Mikiller - project based editor - Reads actors.bin, scene2.bin, map.4ds (only if one bitmap is load), sounds.bin

This list will be updated.

## Download

EditTools by Zdenda (contains DC||ED2 Editor)

PixBuilder | GIMP

HD2 Scripter by GS-Hawk

DTA Unpacker 2012 by hdmaster

Notepad++

Tiny Hexer

3ds Max (30 days free trial)

RevEngEd2

RevEngEd2 objects and definitions library
Check2.bin

## Introduction

check2.bin file stores checkpoints and connections on which AI can move.

Check2.bin can be imported with hdmaster's L3SD plugin for 3ds Max.

On the picture you can see a detail of the Africa1 grid. The yellow points show the human navigation grid and the green ones for vehicles.

## Structure

File consists of a header and two sections; one for soldier checkpoints (abbreviated below as CP) and one for vehicle CP's.

Each new section begins with 0901 D07E.

Section 1 header
CP 1 ID-0
CP 2 ID-1
CP N ID(N-1)
CP label
objects
Section 2 header
CP 1
CP 2
CP N
CP label
### Section header

 32-Bit INT | number of objects | for vehicle section always 0

### Checkpoints

Each CP has following attributes.

Addition to the last 16-Bit values: Depends on the number of connections. If e.g 2 connection we have 4 x 16-Bit INT. 2 x 16-Bit INT for each connection.

Calculation of distance between two checkpoints:

```
dx = cp2.x - cp1.x
dy = cp2.y - cp1.y
dz = cp2.z - cp1.z
distance\_factor = 1.0 - ((cp2.Unk18 + cp1.Unk18) \* 0.0009765625)
distance = sqrt(dx \* dx + dy \* dy + dz \* dz)

result = short(distance \* distance\_factor \* 256.0)

```

### Labeled Checkpoints

After the list of checkpoints you can label any checkpoints needed for usage in script files.

 remain | Each labeled checkpoint consists of 18 bytes, unused space is filled up with 0.

### Linked Objects

After the label part, objects (doors, ladders, barriers) are linked to certain checkpoints. These objects must be existent in the .bin files! Mention to link both relevant CPs to the object. In case of a door it's a CP directly before and one behind the door.

First comes again a 16-Bit INT for the checkpoint ID, followed by the object name. At the end there's an 8-Bit INT (0) to mark the end of the name.

If you done it correctly the AI should notice the object now and use it in the appropriated way.
Mandalorians

> “Honor is what separates us from all the aruetiise of the galaxy. It's our honor that binds us to one another as brothers and sisters, honor that keeps us true and calm in battle. It is honor alone that has led us to victory a thousand times, and it is honor that will lead us to victory a thousand times again. Our honor is what defines us, what guides us, what molds our lives into something beautiful and worthy of showing the galaxy. And those without honor are dar'manda, lost souls, unworthy of living but too pathetic to die.” - *Gali Messada, Mandalore the Poet, known for his exceptional oratory skills*
>
>

## A Brief History

### **THE CRUSADES**

Early Mandalorians centered their entire culture on war, leading crusades to expand their territory. Their numerous victories and strength on the battlefield made them admired and feared throughout the galaxy, even after their crusades ended with their defeat at the hands of the Republic. No longer an army, the Mandalorians spread across the galaxy and became more like an army-for-hire or individual bounty hunters.
### **THE CLONE WARS**

The Mandalorians stayed fairly neutral during the Clone Wars as the then-current government was lead by Duchess Satine and the New Mandalorians, a group of pacifists. Death Watch (Mandalorian radicals who wished to lead Mandalore into another crusade for an empire) rebelled against the New Mandalorians and, with the death of Satine, temporarily asserted their authority over Mandalore. Darth Maul assumed control of the Mandalorians after winning a duel against Pre Viszla, but the former’s death resulted in the end of Death Watch’s reign. The New Mandalorians were unable to return their authority to the government and Mandalore fell to a state of peace, even without a government.
### **THE GALACTIC EMPIRE**

With the New Mandalorians no longer in power after a Death Watch insurgency, Mandalore was occupied by the Empire. The Mandalorians later rebelled under the leadership of Fenn Shysa and pushed the Empire out of Mandalorian space.
### **MANDALORE *NOW***

Shysa’s dying wish was for a Fett to claim the title of Mand’alor. Jango Fett, father of the now-infamous bounty hunter Boba Fett, was once Mand’alor and Shysa believed Jango’s son would be share the same qualifications to lead the Mandalorians. After giving his word, Boba Fett is now leader of the Mandalorian clans, both on Mandalore and across the galaxy.

While bounty hunter Fett is now Mand’alor, the Mandalorians continue to function without a structured government. Fett, with a small group of trustees, functions as the leadership but the retained the tradition of leading without many written laws, aside from the Resol’nare. The majority of Mandalorians live as bounty hunters or farmers, although their warrior-like nature has not left them in the slightest.
IngameSounds.def

## Introduction

File header

Category 1
Sound 1 label
Sound 1 file 1
Sound 1 file 2
Sound 1 file N
Sound 2
Sound N
Category 2
Category N

### Sound category

Each new category begins with 4C04 followed by the category's bytecount. Then as in the table below.

 STRING | category label | "Puppet Movement"

### Sounds

Each new sound begins with B004 and it's bytecount. Then as in the table below.

 8-Bit INT | unknown | 00 (0)

For each sound label several sound files can be assigned.

Each new sound file begins with 1405 and it's bytecount. Then as in the table below.
Actors.bin

## Introduction

Actors.bin is used to store vehicle objects, human actors and dummies.
These objects do often interact with script files.
Therefore they need to be linked with a file called mpscripts.dta. (for singleplayer version it's called scripts.dta)

## Structure

Actors.bin is divided into tow parts, objects and definitions.

### File header

Actors.bin, like all bin files, begins with 534C and following value:

### Objects header

#### Object

Common Attributes for each object as described in Entities. (depends on object type)

### Definitions header

#### Definition

Read Definitions (depends on definition type)
Hidden & Dangerous 2 Wikia

## Welcome to the HD2 Wiki

This wiki is about the World War II tactical shooter Hidden & Dangerous 2 and its add-on Sabre Squadron.

There's still a lot of content to add. Feel free to help out.

Pages about Editing HD2
List of all pages on HD2 wiki

## Play HD2 multiplayer

Play HD2 online again, thereto add following lines to your Windows hosts file (C:\Windows\System32\drivers\etc)

```
65.112.87.186	hd2.available.gamespy.com	#hidden and dangerous 2 check
65.112.87.186	hd2.master.gamespy.com		#hidden and dangerous 2 heartbeats
65.112.87.186	hd2.ms14.gamespy.com		#hidden and dangerous 2 server list

```

Easier way is to use DnA (aka Hawk) hosts patcher.

Simply download and execute the file, type **Y** and confirm with **enter**. This will auto-update your hosts file.

For further infos and especially if you are running the gog.com version of HD2, please read the article written by TechGremlin on hidden-and-dangeous.net.

## Latest activity

Hidden & Dangerous 2 (abbreviated HD2) is a 2003 World War II, stealth based, tactical first and third person shooter video game. It centres on the British Special Air Service in operations behind Axis lines 1941-45. [1]
Mary Bennet

**Mary Bennet** is the only plain Bennet sister, and rather than join in some of the family activities, she mostly reads and plays music, although she is often impatient to display her accomplishments and is rather vain about them. She works hard for knowledge and accomplishment, but has neither genius nor taste. Like her two younger sisters, Kitty and Lydia, she is seen as being silly by Mr. Bennet. Mary is not very intelligent but thinks of herself as being wise. When Mr. Collins is refused by Elizabeth, Mrs. Bennet hopes Mary may be prevailed upon to accept him and we are led to believe that Mary has some hopes in this direction, but neither of them know that he is already engaged to Charlotte Lucas by this time. Mary does not appear often in the novel.

## Early Life

Mary was trained at Pei Liu of Shaolin in China along with her sisters, where they learned the art of weaponry and martial arts.

## Description

Said to be a dull in company by her sister Elizabeth.
Georgiana Darcy

**Georgiana Darcy** is Mr. Darcy's quiet, amiable, and shy younger sister, aged 16 when the story begins. When 15, Miss Darcy almost eloped with Mr. Wickham, who sought her thirty thousand pound dowry. Miss Darcy is introduced to Elizabeth at Pemberley and is later delighted at the prospect of becoming her sister-in-law. Georgiana is extremely timid and gets embarrassed fairly easily. She idolises her brother Mr. Darcy (Fitzwilliam Darcy), and the two share an extremely close sibling bond, much like Jane and Elizabeth.
Jess Radomska

**Jess Radomska** (April 14, 1996) was born in Hammersmith, London. She studied theatre through her years at school with courses with the National Youth Theatre, Shakespeare's Language and The Orange Tree Theatre in Richmond. After gaining some experience in the field, she is now in Pride and Prejudice and Zombies (2016) as the role of Annabelle Netherfield.
Build a mission

To-Do

* Where are mission files stored?
* How to unpack dta to get original mission files
* Note that sub-folders are allowed in Missions folder (http://www.hidden-and-dangerous.net/board/viewtopic.php?f=34&t=914)
* Few sentences about scripting and how scripts are linked to objects. see here
* DC||ED2 (separate page), Revended Editor download & First Steps
* Checkpoints (3ds Max) (separate page)
AWK

AWK -

* awk '{print $1}' names.txt - prints first argument
* awk '{print $2,$1}' names.txt - prints first second argument and then the first one

awk '{print NR, $0}' dukeofyork.txt - record number

awk '{print NF, $0}' dukeofyork.txt - number of fields

awk 'NF==6{print NF,$0}' dukeofyork.txt - where record number is six

awk '{$2="TWO"; print}' dukeofyork.txt - replace second field with TWO

awk '{print NR, FILENAME, FNR, $0}' dukeofyork.txt names.txt

awk '{print $NF}' dukeofyork.txt - print last fields of the line

awk '{print $(NF-1)}' dukeofyork.txt - minus 1

awk'{a=1;b=3; print a + b }' = 4

awk'{a=1;b=3; print a b }' = 13

awk'{a=1;b=3; print a + b }'

awk '$4 ~ /up/{print}' dukeofyork.txt - print records where on fourth field we can find up

awk 'BEGIN{FS=","} {print $2}' - print second argument, after comma - FS as a field separator

awk 'BEGIN{RS="!";FS=","} {print $2}' onebigline.txt  - RS as a record separator

awk 'BEGIN{RS="";FS="\n"} {name=$1;address=$2;citystatezip=$3;print name "," adress "," citystatezip}' multiaddress.txt

awk 'BEGIN{OFS=", ";ORS="!"} {print $2,$1}' names.txt

awk -F, '{print $1 "\t" $2 "\t" $3}' nameemailavg.csv - comma as separator in orginal file
Gamedata00.gdt

# Structure

file header
campaign #1
mission #1
mission #2
mission #n
campaign #n
## header

 32-bit INT
 Block 0100
size
 Block 4700
 32-bit INT

Inside Block 0500 each campaign's setup is stored, campaign name, mission names, intro files (.bik), loading screen, ...

Each campaign starts with Block 3C00.

## campaign set-ups

 Block 3D00
 32-bit INT
 Block 3E00
 8-bit INT

If there's a campaign intro (.bik) Block 0500 contains following Blocks.

Then Gamedata00.gdt continues with following blocks and values.

Now continues with the mission set-ups. (see "mission set-ups")

Thereafter the campaign set-up ends with Blocks 1400 and its sub-blocks

## mission set-ups

Each mission of a campaign starts with Block 3200.

Block 2800 stores an mission objective. Each objective has its own 2800 block.

After Block 2800 and it's sub-blocks the start-up items are defined, these are the items or weapons which are selectable before mission start.

 32-bit INT
 32-bit INT
 32-bit INT

At the end of a mission block, following blocks are defined
Cheatcodes

To type in any cheat code you need to open your in-game console first, to do so press ~ while you are playing any singleplayer mission. Now you can type one of the codes below and confirm with Enter. If you want to close the console, press ~ again or Esc.

```
eeee

```

Ingame-consoleKey-setup

## Healing

```
heal 1

```

Heals all living team members.

## Infinite ammo

```
happyammo { 1 | 0 }

```

When you reloads, the next clip isn't taken from your equipment and it is possible to reload even when you don't have magazines. Turns on and off.

## Better shooting accuracy

```
снайпер { 1 | 0 }

```

Raises your team's shooting skills to 100% and disables weapon recoil. Turns on and off.

## Instant killing

```
hydroshock { 1 | 0 }

```

If only you hit target, your shot kills instantly. Turns on and off.

## Getting extra equipment

```
giveitem <itemCode>

```

Gives you item specified by the <itemCode>. If it is gun, you will get also six mags. If you ask for grenades, you will get six.

### Known item codes

**Backpacks**
 **backpackger** | German backpack

**Knifes**
 **knifeger** | German Figting Knife

**Grenades**
 **grenadeger** | Stielhangranate 39

**Pistols**
 **parabellum** | Luger Parabellum P08

**Submachine guns**
 **thompson** | M1 Thompson (Tommy Gun)

**Machine guns**
 **zb26** | ZB26 Light Machine Gun

**AT**
 **panzerfaust** | Panzerfaust 60

**shotguns**
Charlotte Lucas

**Charlotte Lucas** is Elizabeth's friend who, fears becoming a burden to her family and therefore agrees to marry Mr. Collins, whom she does not love, to gain financial security. She is the daughter of Sir William Lucas and Lady Lucas, friends of Mrs. Bennet.

> "Remember, Elizabeth-I am not a warrior as you are. I am merely a silly girl of seven-and-twenty year, and that without a husband."
>
>
Object rotation

## Introduction

There are two possible ways to rotate objects in Hidden & Dangerous 2. In most files the roation is specified in **quaterions**. In some cases the roation is included in a 4x4 **transformation matrix** (TM) which handles also the position and size of an object.

## Quaternions

Quaternions are used in files like actors.bin or scene2.bin to handle rotations of objects.
About quaterions on euclideanspace.com:

>
> *Quaternions have 4 dimensions (each quaternion consists of 4 scalar numbers), one real dimension and 3 imaginary dimensions. Each of these imaginary dimensions has a unit value of the square root of -1, but they are different square roots of -1 all mutually perpendicular to each other, known as i,j and k. So a quaternion can be represented as follows:*
>
>
>
> a + i b + j c + k d
>
>
>
>
> *It may seem strange that there are 3 square roots of -1, but we have to remember that we are working in 4 dimensions so there are at least 3 ways to get round from +1 to -1. It is not very practical to try to draw 4 dimensions in 2 dimensions, but here is an attempt:*
>
>
>
>
> *We have to be very careful with this picture of quaternions, it gives an intuative feel for how quaternions can represent rotations in 3D but it is misleading, we might think from this (as Hamilton did) that since i² =-1 that therefore i² represents a rotation of 180° and so 'i' represents a rotation of 90°. This is wrong! As we shall see below, to make it work porperly, we need to halve the angle so 'i' represents a rotation of 180° and i² represents a rotation of 360°. So +1 and -1 both represent the same rotation, this will be explained more fully later.*
>
>
>
>

Euler to Quaterion Calculator
Quaterion to Euler Calculator

## Matrix

FIgured out by hdmaster, used e.g in effects.bin

Matrices can be represented in different ways (left-handed or right-handed, Y-up or Z-up) thus we have to swap column 2 with column 3.

Identity matrix in DirectX

```
[1,0,0][0]
[0,1,0][0]
[0,0,1][0]
[0,0,0][1]

```

Identity matrix stored in effects.bin

```
[1,0,0][0]
[0,0,1][0]
[0,1,0][0]
[0,0,0][1]

```

Creating a TM is fairly easy using 3ds Max. Try to load the scene.4ds into Max, create a dummy and place the dummy where you want to have your particle effect. Now with your dummy still selected open the MAXScript-Editor, copy & paste the script below into the editor and run the script. Open the MAXScript-Listener window to see the TM of the dummy/particle and copy the values into your effects.bin file.

Here's the script:

```
function GetTM =
(
 print ( "TMatrix: "+$.Name )
 a = $.Transform.Row1
 b = $.Transform.Row2
 c = $.Transform.Row3
 d = $.Transform.Row4
 format "[%, %, %, 0]\n" (a.X as String) (a.Z as String) (a.Y as String)
 format "[%, %, %, 0]\n" (b.X as String) (b.Z as String) (b.Y as String)
 format "[%, %, %, 0]\n" (c.X as String) (c.Z as String) (c.Y as String)
 format "[%, %, %, 1]\n" (d.X as String) (d.Z as String) (d.Y as String)
 OK
)

GetTM()

```

Sample output:

```
TMatrix: Dummy001"
[1.0, 0.0, 0.0, 0]
[0.0, 0.0, 1.0, 0]
[0.0, 1.0, 0.0, 0]
[3.0, 0.0, 5.0, 1]

```

NOTE: Script works in GMAX too.
LDAP

**LDAP terminology :**

* **entry (object)** - one unit in an LDAP directory. Each entry is qualified by its distinguished name(DN). Here's an example: dn: uid:kpietras,ou=sales,dc=example,dc=com
* **attributes** - These are pieces of information associated with an entry, such as an organization's address or employess' phone numbers
* **objectClass** - This is a special type of attribute. All objects in LDAP must have an **objectClass** attribute. The objectClass definition specifies which attributes are required for each LDAP object, and it specifies the object classes of an entry. The values of this attribute may be modified by clients, but the **objectClass** attribute itself cannot be removed. The objectClass definitions are themselves stored in schema files.
* **schema** - A collection of rules that determines the structure and contents of the directory. The schema contains the attribute type definitions, objectClass definition and other information.
* **LDIF** - It is a plain-text for LDAP entries. Files used for importing or exporting data to and from an LDAP server should be in this format. The data used for replication among LDAP servers are also in this format.

**LDAP operations:**

* ldapadd -x -D "cn=manager,dc=example,dc=org" -W -f sample.ldif
	+ -x - indicated simple authentication
	+ -D - specifies the dn name with which to bind to LDAP directory
	+ -W - allows the user to be prompted for the simple authentication password
	+ -f - specyfies the file from which read the LDIF file
* ldapsearch -x -b 'dc=example,dc=com' '(objectClass=\*)'
* ldapsearch -x -LLL '(objectclass=\*)
* ldapdelete -x -W -D 'cn=Manager,dc=example,dc=org' 'cn=bogus,dc=example,dc=org'
Lydia Bennet

**Lydia Bennet** is the youngest Bennet sister. She is frivolous and headstrong. Her main activity in life is socializing, especially flirting with the officers of the militia. This leads to her running off with George Wickham, although he has no intention of marrying her. She dominates her older sister Kitty and is supported in the family by her mother. Lydia shows no regard for the moral code of her society.

## Early Life

Lydia was trained at Pei Liu of Shaolin in China along with her sisters, where they learned the art of weaponry and martial arts.

## In the Movie

Lydia is the youngest of the five Bennet Sisters being only fifteen years old. She is flirtatious but fairly childish as she quickly provokes her elder sister Elizabeth telling her that "[She is] the cow who's least proficient in the art of tempting the other sex".

At the Meryton Ball, Lydia fights alongside her sisters when the ball comes under attack. She shows skill at combat killing a significant number of the undead.

Later she and Kitty spar against Elizabeth with Lydia kicking her into a wall. Elizabeth chases them outside where Jane announces that the Bingley's have invited her over. When Elizabeth is distracted, Lydia pushes her over a crouched down Kitty.

After Jane falls sick, Lydia and her sisters visit Netherfield as Elizabeth insists that they take Jane home. Lydia declared that "[they] could have stayed on for another week in that palace".

In a deleted scene, she is seen with Kitty persuading Mary to wear her head feather to the ball and dances with Mr. Collins.

Lydia later elopes with Wickham whereupon he keeps her hostage in St Lazarus. Mr. Darcy rescues her from Wickham and a hoarde of ravenous zombies sending her across Hingham Bridge. Lydia insists that Bingley and the soldier wait for Elizabeth and Darcy before blowing up the bridge but is overruled as the zombie hoardes come closer.

Lydia is finally seen at Rosings Park curtsying to Lady Catherine before running to congratulate Jane on her engagement to Bingley. She is in attendance to their shared wedding with Elizabeth and Darcy.

## Description

Lydia is decribed as a stout, well-grown girl of fifteen, with a fine complexion and good-humored countenance. She had every bit of Lizzy’s deadly nature, though little of her sense, and had vanquished her first unmentionable at the remarkable age of seven-and-one-half years.

## Quotes

> " I am not afraid; for though I *am* the youngest, I'm also the most proficient in the art of tempting the other sex."
>
>
Lily James

**Lily Chloe Ninette Thomson** (Born April 5, 1989) is a English actress who plays Elizabeth Bennet on Pride and Prejudice and Zombies. She is perhaps best known for her role as Lady Rose Aldridge in *Downton Abbey*. James has also been featured in other movies.

## Biography

Lily James was born on April 5, 1989 in Esher, Surrey, England, UK as Lily Chloe Ninette Thompson. Her father James (Jamie) is a musician and her mother Ninette is an actress. She has two brothers. Her grandmother, Helen Hortan, is an American actress.

She began her education at Arts Educational School in Tring and subsequently went on to study acting at the Guildhall School of Music and Drama in London, graduating in 2010.

## Personal Life

It was confirmed in 2015 that Lily James is in a relationship with her Pride and Prejudice and Zombies co-star Matt Smith, famous for playing the Eleventh Doctor in the long-running show Doctor Who.

## Trivia

* Studied acting at the Guildhall School of Music and Drama in London graduating in 2010.

* Was on the Musical Theatre Course at The Arts Educational School, Tring Park.

* Although she played Hayley Atwell's daughter in Cinderella (2015), she is only seven years her junior in real life.
* She has Scottish, English, French, and more distant German, ancestry.
* Lily's paternal grandmother was American actress Helen Horton, who lived in England with Lily's British grandfather, Hamish Thomson.
* Lily's maternal grandmother was of French origin.
* She has the same birthday (not the same year of birth) with her on-screen mother in Cinderella, Hayley Atwell.
* She is a sixth cousin of U.S. President George Bush, through her American grandmother. Lily's four times great-grandfather, Stephen Horton, was the brother of the president's four times great-grandmother, Sarah Horton (their parents were Comfort Horton and Joanna Wood). Lily is thus a sixth cousin, once removed, of the President's sons, President George W. Bush and Governor Jeb Bush.
* She is a mezzo-soprano.
* Has 2 brothers.
Entities

## Entities Overview

If there's no ID specified, the object with the name specified in sub-block 1000 is referenced, otherwise a new object will be created.

**Example**: If you want to change the position of a mesh (in scene.4ds) named 'Mesh001' you can do this inside the scene2.bin file by providing no ID sub-block (1140) but the name of the mesh and the position sub-block (2000).

There are a few objects which are pre-existing in every scene:

 Backdrop sector | Sector
Hertfordshire County

Jane Bennet

Elizabeth Bennet

Mary Bennet

Katherine "Kitty" Bennet

Lydia Bennet

Mr. Philips

Mrs. Philips

Charlotte Lucas

Sir William Lucas

Lady Lucas

Charles Bingley

Caroline Bingley

## History

Hertfordshire is an English county located northwest of Hingham Bridge and is the main setting for the events of the film. Longbourn Village, the town of Meryton as well as the Bennet estate and Netherfield Park also reside here.

## Appearance

The entrance into Hertfordshire is a large brick gate with heavy dual doors made of solid iron while the county’s name is welded on top of the gate’s crest. The community’s local militia guard the doors at all times, which remain open during the day but are closed before dark.

The borders are protected from zombie attacks by a massive wall that lines the entire county. Each section of wall consists of eight enormous spiked wheels supported by a massive axel, which is suspended between two support columns also made of brick. Whenever a zombie tries to walk through, the wheels spin and they are slowly crushed.

Due to it being in the lush countryside, Hertfordshire has fertile soil that is ideal for the various types of agriculture and orchards that are grown here. It also has vast stretches of open countryside, heavily wooded forests and thickets. Simple dirt roads and walking paths connect the various villages, towns and estates to each other.
Lena Headey

**Lena Headey** (Born October 3, 1973) is a British actress who plays Lady Catherine de Bourgh on Pride and Prejudice and Zombies. She is perhaps best known for her role as Cersei Lannister in Game of Thrones. Headey has also been featured in other movies and television series.

## Biography

Lena Headey was born in Hamilton, Bermuda, the daughter of Sue and John Headey. Her father, a Yorkshire police cadet, was stationed there at the time. She has one younger brother, Tim. The family moved to Somerset when she was five, and then relocated to Shelley, West Yorkshire when Headey was eleven. As a child, she took ballet lessons for a time before being told to discontinue.

She Had her first experience of acting as a pupil at Shelley College and was noticed at the age of 17, when performing in a school production at the Royal National Theatre, being picked for a role in the 1992 film *Waterland*.

## Personal Life

She married musician Peter Loughran in May 2007. The had a son together  Headey; Wylie Loughran, who was born March 31, 2010. in 2011 the couple separated and she filed for divorce in 2012. The divorce was finalized in December of 2013.

In February 2015, Headey confirmed she was expecting her second child in the summer. On July 10, 2015, she gave birth to her second child, a girl.

## Trivia

* Had a tattoo on her arm saying 'Jason' in Thai.
* Ex-fiancée of Johnny Cicco.
* Born in Bermuda, and move to Huddersfield, Yorkshire at age 5 where she lived until age 17.
* Her father, a police officer, was sent to train in Bermuda shortly before Headey was born.
* Ranked #64 on the Maxim magazine Hot 100 of 2007 list.
* Friends with actress Anna Torv.
* Filed for divorce from her husband of 5 years Peter Paul Loughran. [July 2012]
* Gave birth to her 1st child at age 36, a son Wylie Elliot Loughran on March 31, 2010. Child's father is her ex-husband, Peter Paul Loughran.
* Friends with actress Piper Perabo. The two starred together in Imagine Me & You (2005) and The Cave (2005).
* Is a vegetarian.
* Had to learn how to skin a rabbit for The Brothers Grimm (2005).
* Lives in Laurel Canyon, California with her husband and their two dogs: Wizard and Angela Lansbury. [January 2008]
* (February 15, 2015) Expecting her 2nd child, a daughter, in the summer.
* Is close friends with her Game of Thrones (2011) co-star, Peter Dinklage, who suggested she audition for the role of "Cersei Lannister".
DTA

# Introduction

Research based on Accessing Mafias DTA files by MassaSnygga.

## Decryption

Algorithm (C++)

```
// Simple
void Decrypt(void\* pData, int length, unsigned long long key)
{
 unsigned char\* pByte = reinterpret\_cast<unsigned char\*>(pData);
 unsigned char\* pKey = reinterpret\_cast<unsigned char\*>(key);

 for (int i = 0; i < length; ++i)
 pByte[i] = ~((~pByte[i]) ^ pKey[i % 8]);
}

// Optimized
void Decrypt(void\* pData, int length, unsigned long long key)
{
 int nLongLong = length / 8;
 int nBytes = length % 8;

 unsigned long long\* pLongLong = reinterpret\_cast<unsigned long long\*>(pData);
 for (int i = 0; i < nLongLong; ++i)
 pLongLong[i] = ~((~pLongLong[i]) ^ key);

 if (nBytes > 0) {
 unsigned char\* pByte = reinterpret\_cast<unsigned char\*>(&pLongLong[nLongLong]);
 unsigned char\* pKey = reinterpret\_cast<unsigned char\*>(&key);
 for (int i = 0; i < nBytes; ++i)
 pByte[i] = ~((~pByte[i]) ^ pKey[i]);
 }
}

```

## Structure

Archive header
 12 | 32-bit INT | unknown

File table record
 12 | 16x 8-bit CHAR | filename hint
Pride and Prejudice and Zombies Wikia

This wiki revolves around the Book series and 2016 movie Pride and Prejudice and Zombies . PPZ is a historical drama book series, based on Jane Austen's classic novel Pride and Prejudice , but with a *deadly twist* created by Seth Grahame-Smith .

PPZ follows the tales about the Zombie Slaying Elizabeth Bennet , one of the daughters of the zombie fighting Bennet Family, who is trying to battle not just the zombies but the heart, when a rich Mr. Bingley moves into Netherfield Park, and brings along a very mysterious man with the name of Mr. Darcy.

Pride And Prejudice And Zombies - Official Trailer 1 (Feb 2016)PRIDE AND PREJUDICE AND ZOMBIES - Official International Trailer 1 (2016) Horror Comedy Movie HD

###
Kitty Bennet

## Catherine "Kitty" Bennet

Catherine or *Kitty* the fourth daughter of the Bennets. She is the shadow of Lydia, although older than she, she follows in her pursuits of the 'Officers' of the regiment. She appears but little, although she is often portrayed as envious of Lydia and also a 'silly' young woman.

## Early Life

Kitty was trained at Pei Liu of Shaolin in China along with her sisters, where they learned the art of weaponry and martial arts.