﻿Fate-REX (Fate - Resource EXtractor):
'Fate-REX' is able to extract (almost) all resources(Images, Sprites, Sounds & the Fate-Theme) from the game 'Fate - Gates of Dawn'.
Animations are not provided yet, due to unknown Fileformat & Algorithm.



Requirements:
This program requires the game: 'Fate - Gates of Dawn' (any Master-Version).
But it has to be the HD-installed Version (Disk-Versions or WHD-Load Versions won´t work here).
Download: 
- v1.4 (German)  : https://www.mightandmagicworld.de/filebase/fate_1_game-f196/index.html#
- v1.6 (English) : https://www.mightandmagicworld.de/phpbb/ftopic24741.html


Dependencies:
The program 'Fate-REX' is a so-called 'stand-alone executable'. Meaning that you don´t need any additional runtime libraries (e.g. VisualBasic, VisualC) or Frameworks (e.g. JavaSE or DotNet), to run this program.
But for playing Sounds/Fate-Theme you´ll need DirectX 9 (The program itself will also work without DirectX 9).



Systems:
Tested: 	Windows XP(x86), Windows 7(x64), Windows 10(x32, x64)
Untested: 	Windows Vista, Windows 8



Installation:
To install you just have to create a folder of any valid name you want, and copy all the files from the archive into it.
With the first start of 'Fate-REX', a folder with the name 'FateRex' is created inside the User-directory: 

WinXP: 'C:\Documents and Settings\USERNAME\Application Data' 
Win7+: 'C:\Users\USERNAME\AppData\Roaming'

Inside the folder 'FateRex' an ini-file with the name 'fate_rex.ini' is created. This ini-file holds the program-settings.


This procedure has the following advantages:
- No Administrator-Rights needed to run this program.
- No changes/modifications are made inside the Registry.

But some disadvantages too:
- You have to remove the program-files manually (except fate_rex.ini).
- There is no entry created inside the 'Start' menu.
- There is no link created on the Desktop.



Operations manual:
Intro->Search
The button 'Search' opens the Path-Requester. Here you have to select the folder, where the game 'Fate - Gates of Dawn' resides.
If you´ve downloaded the game from the Link above, this folder is called 'GatesOfDawn' and contains the folders '0' to 'x'.
When the correct folder was selected, the Import-Process starts automatically.
Info: The german versions (1.4 & 1.7) have 4 images less than the english version. During import they are noticed as 'Not loaded'.

Misc->Worldmap: The data for the Worldmap is spread to 160 files. To not loading all the files with every start of this program, i decided to give the user that option if and when the Worldmap should be loaded.

Export Palette::
The Palette of the currently displayed ímage will be saved in a 256-Color 'JASC-Format'.

Images->Save::
The currently displayed image will be saved in Bitmap-Format (Original-Size).

Images->Clipboard::
The currently displayed image will be copied to the Clipboard (Original-Size).
From there, you can paste it into a Graphics-Program of your choice(i.e. IrfanView, Paint, Gimp, etc.).
Attention: 
- This won´t work with 'Windows-Store Apps'!
- IrfanView: IrfanView has a problem with pasting 8Bit-images, which results in a "upside-down" display of the image. To correct this, simply press the 'v' key and the image gets displayed correctly. 

Sounds->Save
The currently selected sound will be saved in Wave-Format.

Theme->Save:
The Fate-Theme will be saved in Mod-Format.

Options->Images Clipboard::
Here you can set the Bit-Format in which the images are copied to the Clipboard.
8Bit -> 256 Colors, 24Bit -> 16.7 Mio. Colors.

Options->Images Save::
Here you can set the Bit-Format in which the images are saved.
This setting is for 'Bulk-Export' too.
8Bit -> 256 Colors, 24Bit -> 16.7 Mio. Colors.

Options->Bulk-Export::
With 'Bulk-Export' you can export all images/sounds of the selected categories at once.
The Directory-Scheme will be created automatically.
The button 'Directory' opens the Path-Requester. There you should select/create an empty folder, wherein the exported data will be saved.

Options->Uninstall::
The button 'Uninstall' will only remove the folder 'FateRex'(and the file 'fate_rex.ini' inside) from the User-directory.
The program-files must be removed manually.
Attention: If you restart the program after an 'Uninstall', the folder 'FateRex' is created again.

Tip:
The number of items inside the Dropdown-Boxes can be numerous, so it could become a little cumbersome to click through them with the mouse. To bypass this you can set the focus on a Dropdown-Box(by clicking on it with the mouse) and then navigate through the items with the 'Arrow-Up' & 'Arrow-Down' Keys.



Terms and Conditions:
Fate-REX
Copyright (c) 2018  Dragonfly

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

This program 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 General Public License for more details. 

You should have received a copy of the GNU General Public License along with this program; if not, see <http://www.gnu.org/licenses/>.



Third-parties:
The files 'Fate-REX_32.exe' & 'Fate-REX_64.exe' contain the following library:

- libmodplug (Public Domain)



Images:
The Imagefile 'fate_rex.bmp' was created by Dragonfly and is Public Domain. 



Code:
The sourcecode in file: 'sources/DPI_Aware.pbi' is originally Public Domain, was modified by Dragonfly and still remains Public Domain.



Thank you for reading!
