-------------------------------------------------------------------------------------------------
			        HIGH RESOLUTION PATCH FOR DUNE 2000 
-------------------------------------------------------------------------------------------------
					     INSTALL
-------------------------------------------------------------------------------------------------
0)	Make sure your Dune 2000 game is working and version 1.06. 
	This means no old hi-res patches or unfinished mods!
	It is possible to run this patcher as often as you like.

1) 	Extract the complete folder 'High Resolution Patch' from the zip file into the main 
	Dune 2000 folder. This is the folder containing DUNE2000.EXE.

2) 	Run from within the 'High Resolution Patch' folder the file 'd2k_patch.exe'.

3) 	Choose your resolution.

4) 	Start DUNE2000.EXE.
-------------------------------------------------------------------------------------------------
					    QUICK INFO
-------------------------------------------------------------------------------------------------
* Keep a fresh/vanilla Dune 2000 as backup (zipped) in case the patch fails or you want
  to install a mod in the future.

* If you want to install a mod, first install the mod on a fresh/vanilla Dune 2000 and then
  run this patcher.

* The patcher will automatically determine the glitch free resolutions that work on your 
  system. This could mean that the highest resolution on your system is not available.
  
* Get mods and more stuff at http://d2kplus.com/ , like the mission select patch/mod. 
-------------------------------------------------------------------------------------------------
					     WORKINGS
-------------------------------------------------------------------------------------------------
This patcher contains two executables (.exe) that are both needed to get proper high 
resolution. You only need to run d2k_patch.exe, because this one will also use the other 
executable. You could however only run the dat_patcher_*.exe to experiment with ANY resolution 
you want since d2k_patch.exe will show you only those resolutions compatible with Dune 2000. 
Run dat_patcher_*.exe and read the description on how to setup any resolution. 
Use unsupported resolutions at your own risk. Many things might look wrong but still playable.

The following things are being changed in Dune 2000:

1) Where possible menu background images centered (some *.TGA files in data/UI_GFX/)
2) All menu location's centered (most *.uil files in data/UI_DATA/)
3) Gameplay menu background image cut in parts, copied and put back together (UIBB.R16 in data/)
4) Gameplay buttons locations aligned and graphics 'resized' (UI_***.R16 in data/)
5) Viewport mechanism adjusted in .dat file, this also contains:
	a) Relocation of spice amount, building icons, tactical map and energy bar. 
	b) Letterbox mode removed (black borders around gameplay view)
	c) Number of unit/building icons adjusted to fit new resolution.
	d) Various crash fixes which appeared out of high resolution changes.
6) Mission maps, that are too small to fit gameplay resolutions higher than 1024x768, are 
   made larger with unreachable black tiles.

-------------------------------------------------------------------------------------------------
				             CREDITS
-------------------------------------------------------------------------------------------------
Credits go to N.Kindt (for .DAT patcher), mvi (for hacking information) at forum.dune2k.com. 
Of course also the others who helped, see: forum.dune2k.com/topic/19636-dune2k-high-resolution/
-------------------------------------------------------------------------------------------------
				            DISCLAIMER
-------------------------------------------------------------------------------------------------
This patch comes with ABSOLUTELY NO WARRANTY!
Please report all problems or suggestions at the forums: forum.dune2k.com. Thanks.
-------------------------------------------------------------------------------------------------
				             AUTHOR
-------------------------------------------------------------------------------------------------
Made by D2k Sardaukar at forum.dune2k.com.
-------------------------------------------------------------------------------------------------
				            HISTORY
-------------------------------------------------------------------------------------------------

Version 1.4
	
	1) Improved readme to explain how the patcher works.
	2) Removed resolutions smaller than original.
	3) Tileset bugged resolutions fixed by adjusting viewport size (small border required).
	4) Added undo patch option.

Version 1.3.5
	
	1) Improved error messaging.
	2) Updated N.Kindt's .DAT patcher: 
		a) Checksum includes subhouses-fix-version.
		b) Spice amount location fixed; 10px to the right.
	3) Removed checksum notice, included in N.Kindt's .DAT patcher.
	4) Updated UI_***.R16 patcher to support other languages.
	5) Rewritten parts of readme.

Version 1.3.4

	1) Fixed bug in patching when missions folder is not in root folder.
	2) Python error(s) when patcher fails are longer visible.
	3) Added icon to patcher.


Version 1.3.3
	
	1) Fixed bug in reading .uil files with capital letters.
	2) Convert script to python27 and into one .exe with PyInstaller (thanks to Refaim).

Version 1.3.2

	1) Fixed bug in script auto-add-sand for small maps.
	2) Changed sand in auto-add-sand to black unreachable area.
	3) Updated N.Kindt's .DAT patcher, this gives:
		a) Check for data integrity and size of .dat file to warn users.
	4) Updated readme to make clear only English version of Dune 2000 is supported.
	5) Updated .uil patcher to include files with capital letters.

Version 1.3.1

	1) Fixed bug that prevented selecting resolutions with higher index number than 15.

Version 1.3

	1) Updated N.Kindt's .DAT patcher, this gives:
		a) Fixed starport mouse movement crash below starport area.
		b) Fixed starport right mouse button crash below starport area.
		c) Fixed tooltip display below starport area (nothing displayed).
	2) Improved selecting resolution menu and auto-detect correct working resolutions.
	3) Set patching messages to a minimum.
	4) Auto-add sand to small campaign/mission maps.

Version 1.2:

	1) Updated N.Kindt's .DAT patcher, this gives:
		a) Fixed upgrade right mouse button crash.
		b) Removed resolution limit (clamped at 4K).
		c) Adjusted buildings icons width - 139.

Version 1.1.3:

	1) Starport purchase button placed back below 4th building icon (to prevent
		moving mouse over buggy area and getting a crash).
	2) Unusable building icons hidden when in upgrade and starport menu.
	3) Allow only supported resolutions (no more tileset bug resolutions).

Version 1.1.2:

	1) Power bar at bottom and style fixed.
	2) Unusable building icons hidden when in starport menu (dark overlay image works 
		as purchase button also).
	3) Starport purchase button placed at bottom.... should it stay there?
	4) Improved image editing "algorithm" makes patching way faster.
	5) Removed 8 bit support.
	6) Width and height check before patching.

Version 1.1.1:

	1) Purchase button for 'starport menu' visible and working.
	2) Compressed .exe and .dll with UPX.
	3) R8 files also supported.

Version 1.1:

	1) Support for any resolution.
	2) Automatically replace .dat file with N.Kindt's patch.
	3) Fixed world map crash.

Version 1.0:

	1) Centering menu's for 1024x768 (.uil files).
	2) Patching background images for 1024x768.
