Skip to content

Commit

Permalink
Begun implementation of TDB
Browse files Browse the repository at this point in the history
  • Loading branch information
jaddie committed Sep 24, 2017
1 parent a9a81d2 commit 9e5c32f
Show file tree
Hide file tree
Showing 63 changed files with 4,577 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Run/Content/Impl/TDB/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
MyUBDInstaller.bat
CONFIGURATION.bat
Binary file added Run/Content/Impl/TDB/7zip-docs/7-zip.chm
Binary file not shown.
502 changes: 502 additions & 0 deletions Run/Content/Impl/TDB/7zip-docs/copying.txt

Large diffs are not rendered by default.

30 changes: 30 additions & 0 deletions Run/Content/Impl/TDB/7zip-docs/license.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
7-Zip Command line version
~~~~~~~~~~~~~~~~~~~~~~~~~~
License for use and distribution
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

7-Zip Copyright (C) 1999-2009 Igor Pavlov.

7za.exe is distributed under the GNU LGPL license

Notes:
You can use 7-Zip on any computer, including a computer in a commercial
organization. You don't need to register or pay for 7-Zip.


GNU LGPL information
--------------------

This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
42 changes: 42 additions & 0 deletions Run/Content/Impl/TDB/7zip-docs/readme.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
7-Zip Command line version 4.65
-------------------------------

7-Zip is a file archiver with high compression ratio.
7za.exe is a standalone command line version of 7-Zip.

7-Zip Copyright (C) 1999-2009 Igor Pavlov.

Features of 7za.exe:
- High compression ratio in new 7z format
- Supported formats:
- Packing / unpacking: 7z, ZIP, GZIP, BZIP2 and TAR
- Unpacking only: Z
- Highest compression ratio for ZIP and GZIP formats.
- Fast compression and decompression
- Strong AES-256 encryption in 7z and ZIP formats.

7za.exe is a free software distributed under the GNU LGPL.
Read license.txt for more information.

Source code of 7za.exe and 7-Zip can be found at
http://www.7-zip.org/

7za.exe can work in Windows 95/98/ME/NT/2000/XP/2003/Vista.

There is also port of 7za.exe for POSIX systems like Unix (Linux, Solaris, OpenBSD,
FreeBSD, Cygwin, AIX, ...), MacOS X and BeOS:

http://p7zip.sourceforge.net/


This distributive packet contains the following files:

7za.exe - 7-Zip standalone command line version.
readme.txt - This file.
copying.txt - GNU LGPL license.
license.txt - License information.
7-zip.chm - User's Manual in HTML Help format.


---
End of document
33 changes: 33 additions & 0 deletions Run/Content/Impl/TDB/CONFIGURATION.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#!/bin/sh
############################################################################
#
# B A S I C U S E R C O N F I G U R A T I O N A R E A
#
############################################################################

#########################################
# server - Base Table host
# user - MySQL username
# pass - MySQL login password
# wdb - Database name
# udbdir - Main UDB directory on your harddisk (note the trailing backslash!, for example C:\Users\Villem\Documents\Kood\UDB\)
# The folder should contain 2 folders: Updates and Full_DB
# Remember not to include FULL_DB on the end of udbdir, only the main directory should be set here.
#########################################

user="changeme"
pass="changeme"
wdb="WCellRealmServer"
#This path cannot use ~ make sure you use full paths!
udbdir="/home/user/Desktop/UDB"
rusdbdir="changeme"

############################################################################
#
# A D V A N C E D U S E R C O N F I G U R A T I O N A R E A
#
############################################################################

server="localhost"
port="3306"
udbmain="UDB_0.12.2_mangos_11792_SD2_2279"
34 changes: 34 additions & 0 deletions Run/Content/Impl/TDB/Data/ATTemplate.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<?xml version="1.0" encoding="utf-8"?>
<DataHolders xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<DataHolder Name="ATTemplate">
<DefaultTable>areatrigger_teleport</DefaultTable>

<Flat Name="Id" Column="id" />
<Flat Name="Name" Column="name" />
<Flat Name="Name" Table="areatrigger_tavern" Column="name" />
<Flat Name="RequiredLevel" Column="required_level" />
<Flat Name="RequiredItemId" Column="required_item" />
<Flat Name="RequiredItem2Id" Column="required_item2" />
<Flat Name="RequiredHeroicKeyId" Column="heroic_key" />
<Flat Name="RequiredHeroicKey2Id" Column="heroic_key2" />
<Flat Name="RequiredQuestId" Column="required_quest_done" />

<Flat Name="RequiredFailedText" Column="required_failed_text" />
<Flat Name="TargetMap" Column="target_map" />
<Nested Name="TargetPos">
<Flat Name="X" Column="target_position_x" />
<Flat Name="Y" Column="target_position_y" />
<Flat Name="Z" Column="target_position_z" />
</Nested>
<Flat Name="TargetOrientation" Column="target_orientation" />

<Flat Name="TriggerQuestId" Table="areatrigger_involvedrelation" Column="quest" />
<!--extra in UDB
required_quest_done_heroic
-->
<!--not in UDB
<Flat Name="TargetScreen" Column="" />
<Flat Name="Type" Column="" />
-->
</DataHolder>
</DataHolders>
10 changes: 10 additions & 0 deletions Run/Content/Impl/TDB/Data/AchievementCriteriaRequirement.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<DataHolders xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<DataHolder Name="AchievementCriteriaRequirement">
<DefaultTable>achievement_criteria_requirement</DefaultTable>
<Flat Name="CriteriaId" Column="criteria_id" />
<Flat Name="Type" Column="type" />
<Flat Name="Value1" Column="value1" />
<Flat Name="Value2" Column="value2" />
</DataHolder>
</DataHolders>
35 changes: 35 additions & 0 deletions Run/Content/Impl/TDB/Data/AchievementReward.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<?xml version="1.0" encoding="utf-8"?>
<DataHolders xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<DataHolder Name="AchievementReward">
<DefaultTable>achievement_reward</DefaultTable>
<Flat Name="AchievementEntryId" Column="entry" />
<Flat Name="Gender" Column="gender" />
<Flat Name="AllianceTitle" Column="title_A" />
<Flat Name="HordeTitle" Column="title_H" />
<Flat Name="Item" Column="item" />
<Flat Name="Sender" Column="sender" />

<FlatArray Name="Subjects">
<Column Name="subject" />
<Column Name="subject_loc1" Table="locales_achievement_reward" />
<Column Name="subject_loc2" Table="locales_achievement_reward" />
<Column Name="subject_loc3" Table="locales_achievement_reward" />
<Column Name="subject_loc4" Table="locales_achievement_reward" />
<Column Name="subject_loc5" Table="locales_achievement_reward" />
<Column Name="subject_loc6" Table="locales_achievement_reward" />
<Column Name="subject_loc7" Table="locales_achievement_reward" />
</FlatArray>

<FlatArray Name="Bodies">
<Column Name="text" />
<Column Name="text_loc1" Table="locales_achievement_reward" />
<Column Name="text_loc2" Table="locales_achievement_reward" />
<Column Name="text_loc3" Table="locales_achievement_reward" />
<Column Name="text_loc4" Table="locales_achievement_reward" />
<Column Name="text_loc5" Table="locales_achievement_reward" />
<Column Name="text_loc6" Table="locales_achievement_reward" />
<Column Name="text_loc7" Table="locales_achievement_reward" />
</FlatArray>

</DataHolder>
</DataHolders>
27 changes: 27 additions & 0 deletions Run/Content/Impl/TDB/Data/Archetype.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="utf-8"?>
<DataHolders xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<DataHolder Name="Archetype">
<DefaultTable>playercreateinfo</DefaultTable>
<Flat Name="RaceId" Column="race" />
<Flat Name="ClassId" Column="class" />
<Flat Name="StartMapId" Column="map" />
<Flat Name="StartZoneId" Column="zone" />
<Nested Name="StartPosition">
<Flat Name="X" Column="position_x" />
<Flat Name="Y" Column="position_y" />
<Flat Name="Z" Column="position_z" />
</Nested>
<!--not in UDB
<Flat Name="StartOrientation" Column="" />
<Flat Name="IntroductionMovie" Column="" />
<Flat Name="StartLevel" Column="" />
These data are in player_levelstats, table has different primary keys so I'm not sure if it is able to locate them this way
<Flat Name="BaseAgility" Table="player_levelstats" Column="agi" />
<Flat Name="BaseIntellect" Table="player_levelstats" Column="inte" />
<Flat Name="BaseSpirit" Table="player_levelstats" Column="spi" />
<Flat Name="BaseStamina" Table="player_levelstats" Column="sta" />
<Flat Name="BaseStrength" Table="player_levelstats" Column="str" />
-->
</DataHolder>
</DataHolders>
13 changes: 13 additions & 0 deletions Run/Content/Impl/TDB/Data/BattlegroundTemplate.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<DataHolders xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<DataHolder Name="BattlegroundTemplate">
<DefaultTable>battleground_template</DefaultTable>
<Flat Name="Id" Column="id" />
<Flat Name="MinPlayersPerTeam" Column="MinPlayersPerTeam" />
<Flat Name="MaxPlayersPerTeam" Column="MaxPlayersPerTeam" />
<Flat Name="AllianceStartPosIndex" Column="AllianceStartLoc" />
<Flat Name="HordeStartPosIndex" Column="HordeStartLoc" />
<Flat Name="AllianceStartOrientation" Column="AllianceStartO" />
<Flat Name="HordeStartOrientation" Column="HordeStartO" />
</DataHolder>
</DataHolders>
8 changes: 8 additions & 0 deletions Run/Content/Impl/TDB/Data/BattlemasterRelation.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<DataHolders xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<DataHolder Name="BattlemasterRelation">
<DefaultTable>battlemaster_entry</DefaultTable>
<Flat Name="BattleMasterId" Column="entry" />
<Flat Name="BattlegroundId" Column="bg_template" />
</DataHolder>
</DataHolders>
10 changes: 10 additions & 0 deletions Run/Content/Impl/TDB/Data/ClassLevelSetting.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<DataHolders xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<DataHolder Name="ClassLevelSetting">
<DefaultTable>player_classlevelstats</DefaultTable>
<Flat Name="ClassId" Column="class" />
<Flat Name="Health" Column="basehp" />
<Flat Name="Mana" Column="basemana" />
<Flat Name="Level" Column="level" />
</DataHolder>
</DataHolders>
27 changes: 27 additions & 0 deletions Run/Content/Impl/TDB/Data/FishingLootItemEntry.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="utf-8"?>
<DataHolders xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<DataHolder Name="FishingLootItemEntry">
<DefaultTable>fishing_loot_template</DefaultTable>
<Flat Name="EntryId" Column="entry" />
<Flat Name="ItemId" Column="item" />
<!--http://wiki.udbforums.org/index.php/Fishing_loot_template#ChanceOrQuestChance-->
<Flat Name="DropChance" Column="ChanceOrQuestChance" />
<Flat Name="GroupId" Column="groupid" />
<!--http://wiki.udbforums.org/index.php/Fishing_loot_template#MinCountOrRef-->
<Flat Name="MinAmountOrRef" Column="MinCountOrRef" />
<Flat Name="MaxAmount" Column="maxcount" />
<!--not in UDB
<Flat Name="LootType" Column=""/>
<Flat Name="IsFFA" Column="" />
I don't really think fishing loot is different on heroic
<Flat Name="HeroicDropChance" Column="" />
-->
<!--extra in UDB
http://wiki.udbforums.org/index.php/Fishing_loot_template#lootcondition
lootcondition
condition_value1
condition_value2
-->
</DataHolder>
</DataHolders>
37 changes: 37 additions & 0 deletions Run/Content/Impl/TDB/Data/GOEntry.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<?xml version="1.0" encoding="utf-8"?>
<DataHolders xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<DataHolder Name="GOEntry">
<DefaultTable>gameobject_template</DefaultTable>
<Flat Name="Id" Column="entry" />
<Flat Name="Type" Column="type" />
<Flat Name="DisplayId" Column="displayId" />
<!--locales_* tables are mostly empty in UDB -->
<FlatArray Name="Names">
<Column Name="name" />
<Column Name="name_loc1" Table="locales_gameobject" />
<Column Name="name_loc2" Table="locales_gameobject" />
<Column Name="name_loc3" Table="locales_gameobject" />
<Column Name="name_loc4" Table="locales_gameobject" />
<Column Name="name_loc5" Table="locales_gameobject" />
<Column Name="name_loc6" Table="locales_gameobject" />
<Column Name="name_loc7" Table="locales_gameobject" />
<!--<Column Name="name_loc8" Table="locales_gameobject" />-->
</FlatArray>
<Flat Name="Scale" Column="size" />
<Flat Name="Flags" Column="flags" />
<Flat Name="FactionId" Column="faction" />
<FlatArray Name="Fields" Pattern="data{#}" Offset="0" />
<!--extra in UDB
mingold
maxgold
IconName
castBarCaption
unk1 (string)
questItem1
questItem2
questItem3
questItem4
scriptname
-->
</DataHolder>
</DataHolders>
12 changes: 12 additions & 0 deletions Run/Content/Impl/TDB/Data/GOLootItemEntry.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<DataHolders xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<DataHolder Name="GOLootItemEntry">
<DefaultTable>gameobject_loot_template</DefaultTable>
<Flat Name="EntryId" Column="entry" />
<Flat Name="ItemId" Column="item" />
<Flat Name="DropChance" Column="ChanceOrQuestChance" />
<Flat Name="GroupId" Column="groupid" />
<Flat Name="MinAmountOrRef" Column="MinCountOrRef" />
<Flat Name="MaxAmount" Column="maxcount" />
</DataHolder>
</DataHolders>
10 changes: 10 additions & 0 deletions Run/Content/Impl/TDB/Data/GOQuestGiverRelation.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<DataHolders xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<DataHolder Name="GOQuestGiverRelation">
<DefaultTable>gameobject_questrelation</DefaultTable>
<DefaultTable>gameobject_involvedrelation</DefaultTable>
<Flat Name="RelationType"/>
<Flat Name="QuestGiverId" Column="id" />
<Flat Name="QuestId" Column="quest" />
</DataHolder>
</DataHolders>
25 changes: 25 additions & 0 deletions Run/Content/Impl/TDB/Data/GOSpawnEntry.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="utf-8"?>
<DataHolders xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<DataHolder Name="GOSpawnEntry">
<DefaultTable>gameobject</DefaultTable>
<Flat Name="Id" Column="guid" />
<Flat Name="EntryId" Column="id" />
<Flat Name="MapId" Column="map" />
<Nested Name="Position">
<Flat Name="X" Column="position_x" />
<Flat Name="Y" Column="position_y" />
<Flat Name="Z" Column="position_z" />
</Nested>
<Flat Name="Orientation" Column="orientation" />
<FlatArray Name="Rotations" Pattern="rotation{#}" Offset="0" />
<Flat Name="State" Column="state" />
<Flat Name="AnimProgress" Column="animprogress" />
<Flat Name="Phase" Column="phaseMask" />
<Flat Name="RespawnSeconds" Column="spawntimesecs" />

<Flat Name="_eventId" Table="game_event_gameobject" Column="event"/>
<!--extra in UDB
spawnMask
-->
</DataHolder>
</DataHolders>
10 changes: 10 additions & 0 deletions Run/Content/Impl/TDB/Data/GOSpawnPoolTemplate.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<DataHolders xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<DataHolder Name="SpawnPoolTemplate">
<DefaultTable>pool_template</DefaultTable>

<Flat Name="PoolId" Column="entry" />
<Flat Name="MaxSpawnAmount" Column="max_limit" />

</DataHolder>
</DataHolders>
Loading

0 comments on commit 9e5c32f

Please sign in to comment.