# Widescreen

A Gibberlings Three Mod
Authors: the_bigg

Version 3.08
Languages: English, French, Italian, Brazilian Portuguese, Russian, Spanish
Platforms: Windows and Linux
On the web: website and discussion forum
GitHub: Gibberlings3/widescreen

## Note

This mod will work on BG TotSC, BG2 SoA, BG2 ToB and IWD HoW (BG and IWD without expansions do not work), as well as on IWD2 and Ps:T. "Game" will be used to reference either of these games. "Game executable" is either torment.exe, bgmain2.exe, bgmain.exe, idmain.exe or iwd2.exe, depending on which game we're talking about.

## Overview

This mod allows you to play the game at any desired resolution. The games currently support the following resolutions:
BG and Ps:T: X >= 640 and Y >= 480.
BG2 SoA, BG2 ToB, IWD HoW and IWD2 using the standard client: X >= 640 (but not X = 641) and Y >= 482.

Non-standard resolutions (E.G. 801 by 632) are not supported in fullscreen, but can work in windowed mode.

## Troubleshooting

This post (and the posts it links) contain the most up-to-date troubleshooting information. Please refer to it if you are running into problems.

Questions that are already answered in that post will be ignored.

## Compatibility

This mod is designed to work with Baldur's Gate with the Tales of the Sword Coast expansion pack, Baldur's Gate II: Shadows of Amn with or without the Throne of Bhaal expansion pack, Icewind Dale with the Heart of Winter & Trials of the Loremaster expansion pack, Icewind Dale II, or with Planescape: Torment. The mod should be compatible with all WeiDU mods under the sun. It can be installed in any order relative to most non GUI-related mods. GUI mods for BG2, IWD1 and IWD2 must be installed BEFORE Widescreen, whereas BG1 GUI and Ghostdog's PST UI mods must be installed AFTER Widescreen.

It is possible to load an earlier save with BG2, TotL and IWD2. As of 3.0, save games for TotSC and Ps:T are updated, but all areas will be set as 'unexplored'. To make the process less painful (if you are switching between two computers or somesuch), you also have the option to save your games at a common resolution, indipendent of the actual screen resolution.

TotSC and Ps:T require a full install of the game to work. Refer to this guide for information on how to perform a full install of Ps:T.

Luren created IWD2 GUI files for a few preset resolutions, which replace the generated black bars with custom art. The mod must be installed AFTER Widescreen. You can find it at Interfaces pour Widescreen (the installer is also available in English).

More info is available in this post.

## Installation

Windows
The Widescreen mod is packaged and installed with WeiDU and is distributed as a self-extracting archive. To install, simply double-click the archive and follow the instructions on screen.

Alternatively the files can be extracted from the archive using WinRAR. If properly extracted, you should have a widescreen folder and setup-widescreen.exe in your game folder. To install, simply double-click setup-widescreen.exe and follow the instructions on screen.

Please run setup-widescreen.exe in your game folder to reinstall, uninstall or otherwise change settings.

Linux

- Download the latest version of WeiDU for Linux from weidu.org and extract (at least) the WeiDU, weinstall and tolower executables in a $PATH directory (E.G. /usr/bin).
- If you installed the game via Wine, first create a link to its directory without any uppercase letters in the path and then use that directory in the following instructions. You can create it by eg.
  `ln -s "~/GOG Games/Planescape Torment/prefix/drive_c/GOG Games/Planescape Torment" ~/pst`
  (adapt the path to match your install!)
- Following that, open a terminal, cd to your game installation directory, run `tolower' and answer Y to both queries.
- You can avoid running the second option (linux.ini) if you've already ran it once in the same directory. To save time, the archive is already tolowered, so there's no need to run the first option (lowercasing file names) either if you've extracted only this mod since the last time you lower cased file name.
- If you're unsure, running tolower and choosing both options is the safe bet.
- After that, run 'weinstall widescreen' from your game installation directory to install or uninstall the mod.

Mac
It is not currently possible to install the mod on Mac OSX. If you want to either figure out the offsets or give me a Mac and a copy of all IE games for that platform, I'd be happy to oblige.

## Contact Information

This mod is in minimal maintenance mode and will not see further development, unless a new maintainer steps up. Visit the mod forum for more information or to ask for help from the community.

## Thanks and Acknowledgements

Special thanks to:

- CamDawg and the rest of the Gibberlings for hosting this mod.
- weak-ling the original 1440x900 modification for BG2, as well as further information on BG2 and offsets for BG.
- Avenger for doing offset-hunting for Ps:T, SoA, HoW and IWD2.
- Lordrea for the (now obsolete) TutuGUI compatibility fix.
- ghostdog for another couple of offsets.
- scient for further offsets.
- pb1866 for doing offset hunting on patch 5521 of BG.
- AL|EN for Project Infinity support.
- Other contributors and translators for their improvements.

Beta Testers:

- Isayia - tested all TotSC areas and motivated me to finish the work on area expansion.

Tools Used in Creation
WeiDU by Wes Weimer, the_bigg, Wisp and others
Near Infinity
IESDP

## Credits and Copyright Information

This mod is made available under the LGPL license, version 2.1.

The preferred method for contributing code, fixes and/or translations is using Git. Instructions for using Git are available here.

## Version History

Version 3.08 - July, 2021

- Added Project Infinity and .iemod support (AL|EN).
- Updated Brazlian Portuguese translation (Felipefpl).
- Bumped license from LGPL 2 to 2.1 (Mike1072)
- Removed obsolete GemRB mode (lynx)
- Updated to latest best practices and g3 style (lynx)
- Updated documentation, shepherded the new release (lynx)

Version 3.07 - February X, 2015

- Fetch TIS name from WED files in PST and TotSC (thanks: Mike1072 and CrevsDaak).

Version 3.06 - August X, 2014

- Fixed search map regession in PST and TotSC (thanks: Aqrit).
- Rebuild WallGroup table in PST and TotSC (thanks: Aqrit and Scient).
- Fixed cursor scrolling in TotSC (thanks: Acra).
- Portoguese translation (thanks: Felipe).
- French translation update (thanks: Isaya).

Version 3.05 - April 28, 2011

- Italian translation.
- Support for some weird version of Chinese PST (made by hopecape, yyfeng and maoliyuanjiu).

Version 3.04 - January 23, 2011

- Russian translation (by Prowler & Njkzy (arcanecoast.ru)).

Version 3.03 - January 21, 2011

- Can install over Auril's Bane on IWD.
- WeiDU 227 (fixes regression that prevented [R]einstallation on BG1 and PST).

Version 3.02 - December 31, 2010

- Fixed bug that prevented installation at some resolutions on IWD2.
- Print detailed error message if on HoW without TotLM.

Version 3.01 - December 27, 2010

- Fixed bug that caused the install to loop in BG2.

Version 3.00 - December 25, 2010

- SoA, ToB, TotLM and IWD2 support resolutions as small as 640x480 (if using GemRB).
- Keep 'save' and 'game' resolutions separate on TotSC and PST, so that you can switch between resolutions seamlessly if you set it up beforehand.
- Save updating on TotSC and PST. Will clear the explored bitmask (still less destructive than being 100% incompatible).

Version 2.60 - September 24, 2010

- Works with Baldur's Gate patch 5521 (including the version available from gog.com). Thanks to pb1866 for researching the offsets.

Version 2.50 - August 24, 2010

- Fix search maps in PST and BG1.
- Some fixes to the French readme.
- Can install on the GemRB version of PST and BG1.

Version 2.40 - January 19, 2010

- Couldn't install previously because I accepted code from somebody who didn't know better.
- Fixed some areas not being redrawn in PST (and maybe BG1 too).

Version 2.30 - January 13, 2010

- Fixed doors not turning up in their open status in PST/BG1 (thanks to Qwinn for finding the problem).
- French and Spanish translation.
- GemRB version (doesn't patch the executable, uses different names for the CHUs).

Version 2.20 - July 14, 2009

- WeiDU 211.
- Various fixes to the installation process (most notably installing under IWD1).

Version 2.10 - February 24, 2009

- WeiDU 210.
- Various fixes.
- Fixed the scrolling in PST. Thanks: scient.

Version 2 - December X, 2008

- WeiDU 209.
- Doesn't patch the INI file anymore.
- Doesn't block the game in certain areas in HoW.
- Cutscenes and pressing 'H' in IWD2 isn't broken. Thanks: weak-ling.
- Can do windowed mode in TotSC and PST. This, however, requires a reinstall if you switch fullscreen <-> windowed. Thanks: weak-ling, Avenger.
- Dialogue view correctly centered in PST. Thanks: ghostdog.
- Action Menu in PST isn't forced to the NW corner. Thanks: weak-ling, Avenger.

Version 1 - February 16, 2008

- Fixes to the readme.
- WeiDU 204.
- Traify-ied.

Version 0.8 beta - December 2, 2007

- TotSC playable, Ps:T maybe.
- WeiDU 202.23

Version 0.7 beta - November X, 2007

- Progress on removing crashes in BG and Ps:T.

Version 0.6 beta - October X, 2007

- Better game selection if Tutu with SoA only.
- Fixes (?) to pure SoA.
- Works with Ps:T 2CD edition.

Version 0.5 beta - October 11, 2007

- Ps:T support.

Version 0.4 beta - October 10, 2007

- TotSC support.
- (untested) SoA support.
- 1280xY, 800xY works in ToB.

Version 0.3 beta - October 08, 2007

- Improvements to GUI patching.
- IWD2 support.

Version 0.2 beta - October 07, 2007

- Readme typoes fixed.
- HoW support.

Version 0.1 beta - September 29, 2007

- Initial release