diff options
author | Darkvater <darkvater@openttd.org> | 2007-02-27 16:51:49 +0000 |
---|---|---|
committer | Darkvater <darkvater@openttd.org> | 2007-02-27 16:51:49 +0000 |
commit | 285c068aae98e4a9b0fc346ed57232da13161f3e (patch) | |
tree | 27656704015d8cd84fe6e672393ffba0dc677989 | |
parent | 8877ef7478f253a22d6f2b2a45cccc2501eb3ada (diff) | |
download | openttd-285c068aae98e4a9b0fc346ed57232da13161f3e.tar.xz |
(svn r8926) -Merge: Release changes from the 0.5 branch back to trunk. This ensures an updated changelog, readme, etc.
-rw-r--r-- | COPYING | 39 | ||||
-rw-r--r-- | changelog.txt | 49 | ||||
-rw-r--r-- | docs/openttd.6 | 10 | ||||
-rw-r--r-- | known-bugs.txt | 12 | ||||
-rw-r--r-- | os/debian/README.Debian | 8 | ||||
-rw-r--r-- | os/debian/changelog | 47 | ||||
-rw-r--r-- | os/debian/control | 3 | ||||
-rw-r--r-- | os/debian/copyright | 8 | ||||
-rw-r--r-- | os/debian/po/POTFILES.in | 1 | ||||
-rw-r--r-- | os/debian/po/ca.po | 35 | ||||
-rw-r--r-- | os/debian/po/templates.pot | 32 | ||||
-rw-r--r-- | os/debian/postinst | 36 | ||||
-rw-r--r-- | os/debian/postrm | 41 | ||||
-rw-r--r-- | os/debian/templates | 8 | ||||
-rw-r--r-- | os/win32/installer/cdfinder.ini (renamed from os/win32/installer/CDFinder.ini) | 12 | ||||
-rw-r--r-- | os/win32/installer/gpl.txt | 340 | ||||
-rw-r--r-- | os/win32/installer/install.nsi | 271 | ||||
-rw-r--r-- | os/win32/installer/notice.ini | 54 | ||||
-rw-r--r-- | readme.txt | 4 |
19 files changed, 406 insertions, 604 deletions
@@ -1,12 +1,12 @@ - GNU GENERAL PUBLIC LICENSE - Version 2, June 1991 + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 - Copyright (C) 1989, 1991 Free Software Foundation, Inc. - 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + Copyright (C) 1989, 1991 Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. - Preamble + Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public @@ -15,7 +15,7 @@ software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by -the GNU Library General Public License instead.) You can apply it to +the GNU Lesser General Public License instead.) You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not @@ -55,8 +55,8 @@ patent must be licensed for everyone's free use or not licensed at all. The precise terms and conditions for copying, distribution and modification follow. - - GNU GENERAL PUBLIC LICENSE + + GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License applies to any program or other work which contains @@ -110,7 +110,7 @@ above, provided that you also meet all of these conditions: License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.) - + These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in @@ -168,7 +168,7 @@ access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code. - + 4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is @@ -225,7 +225,7 @@ impose that choice. This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. - + 8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License @@ -255,7 +255,7 @@ make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. - NO WARRANTY + NO WARRANTY 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN @@ -277,9 +277,9 @@ YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - END OF TERMS AND CONDITIONS - - How to Apply These Terms to Your New Programs + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it @@ -303,10 +303,9 @@ the "copyright" line and a pointer to where the full notice is found. 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, write to the Free Software - Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. Also add information on how to contact you by electronic and paper mail. @@ -336,5 +335,5 @@ necessary. Here is a sample; alter the names: This General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the -library. If this is what you want to do, use the GNU Library General +library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. diff --git a/changelog.txt b/changelog.txt index 8dabd000d..9e59833c8 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,33 +1,34 @@ +0.5.0 (2007-02-27) +------------------------------------------------------------------------ +- Feature: Add the ability to load newer TTDP games (the tile information for coasts has changed) (r8738) +- Feature: Selecting "end of orders" and deleting will delete all the vehicle's orders (shared mode unchanged) (r8685) +- Codechange: Call GetFirstVehicleInChain only for trains thus increasing performance in large games (r8744) +- Fix: Possible crashes, problems with aircraft and airport removal (r8921) +- Fix: Do not show the 'edit sign' window for spectators (r8808) +- Fix: Adhere order types for ship order insertion to determine destination type (r8802) +- Fix: It was possible to take over buoys by building a station next to them (r8794) +- Fix: Cloning unaware of articulated locomotives that could refit without refitting the front unit (r8777) +- Fix: Loading times for overhanging trains are miscomputed (r8709) + + 0.5.0-RC5 (2007-02-08) ------------------------------------------------------------------------ -- Feature: requery gameservers that did not respond to their first query (r8520, r8542) -- Feature: check for NewGRF compatability before actually downloading the map from a game server when connecting from the command prompt and internal console (r8459, r8461) -- Feature: logging of the IP address and port of invalid/illegal UDP packets (r8490) +- Feature: Requery gameservers that did not respond to their first query (r8520, r8542) +- Feature: Logging of the IP address and port of invalid/illegal UDP packets (r8490) +- Codechange: Replace missing sprites with a red question mark (r8634) - Codechange: Add Korean, Simplified Chinese and Traditional Chinese languages as an official translation (r8286, r8324, r8616) - Codechange: Increase the size of the sound/video/music-drivers to 32 bytes (instead of 16) so their actual parameters can be passed. Sound has for example bufsize' and 'hz' (r8497) - Codechange: Be more strict about language generation and fail any languages not having the mandatory ##name, ##ownname and ##isocode pragma's (r8253) -- Codechange: Rename the 'New <vehtype>' button of the global vehicle lists to 'Available <vehtype>' as it is a view-only list, not one from which you can purchase (rolling) stock. (r8420, r8421) -- Codechange: replace missing sprites with a red question mark (8634) -- Regression: Help window was empty for UNICODE builds (r8239) -- Regression: When the latest news was deleted, the news queue wrapped back to the oldest item, showing all news again (r8409) -- Regression: ShowLastNewsMessage could show an out-of-bounds news item because it did not checked if a previous item actually existed the first time it is called (forced news is INVALID_NEWS) [FS#573] (r8409) -- Fix: deleting a vehicle with shared orders, but no orders would fail to reset prev_shared and next_shared (r8294) -- Fix: GenerateVehicleSortList()/CmdMassStartStopVehicle() tried to put a TileIndex into an uint16 (r8296) -- Fix: [YAPF] Assert when buoy is placed on NE or NW map edge (r8540) -- Fix: a road vehicle that is very close after another (slower) road vehicle gets its speed reset to 0 when entering a tunnel, which causes a traffic jam outside of the tunnel (r8609) -- Fix: Road Vehicles now can obtain a slot even if the station is very spread out [FS#577] (r8536) -- Fix: bridges do not get destroyed when the bridge head gets flooded and there is a vehicle on the bridge [FS#564] (r8593) -- Fix: you were unable to build roads in the scenario editor when there is no town 0, even though there are other towns (r8608) -- Fix: store the ownership of a water tile in the buoy tile and set the ownership of the water tile when the buoy is removed. This solves the issue of removing ownership from canal tiles thus making is possible for other players to remove the canal tile (r8619) -- Fix: buoys on canal tiles do not flood anymore (r8620) -- Fix: Put the output of -h to stdout and not to stderr (through ShowInfo) (r8240) -- Fix: use ShowInfo over fprintf(stderr, as Windows doesn't always have a stderr visible/available (r8315) -- Fix: return value from clamp was ignored (r8273) +- Fix: Draw canal edges under buoys that are in a canal (r8635) +- Fix: Buoys on canal tiles do not flood anymore (r8620) +- Fix: Store the ownership of a water tile in the buoy tile and set the ownership of the water tile when the buoy is removed. Prevents certain abuses (r8619) - Fix: When the currently selected player in the performance details window is no longer active, choose the first active player instead of the first player as that may also be inactive [FS#582] (r8612) -- Fix: segmentation fault when the toolbar gets removed and you have selected one of the items in a submenu of the toolbar (r8533) -- Fix: [OSX] freetype and fontconfig detection (r8500) -- Fix: draw canal edges under buoys that are in a canal (8635) -- Fix: CTRL-clicking on a hangar in the order list segfaulted as hangars are part of a station instead of real depots (8637) +- Fix: Road vehicle very close after another (slower) road vehicle gets its speed reset to 0 when entering a tunnel, which causes a traffic jam outside of the tunnel (r8609) +- Fix: Bridges do not get destroyed when the bridge head gets flooded and there is a vehicle on the bridge [FS#564] (r8593) +- Fix: Road Vehicles now can obtain a slot even if the station is very spread out [FS#577] (r8536) +- Fix: Segmentation fault when the toolbar gets removed and you have selected one of the items in a submenu of the toolbar (r8533) +- Fix: Deleting a vehicle with shared orders, but no orders would fail to reset prev_shared and next_shared (r8294) + 0.5.0-RC4 (2007-01-18) ------------------------------------------------------------------------ diff --git a/docs/openttd.6 b/docs/openttd.6 index 448d2f9bc..4f7aa22d9 100644 --- a/docs/openttd.6 +++ b/docs/openttd.6 @@ -1,6 +1,6 @@ .\" Hey, EMACS: -*- nroff -*- .\" Please adjust this date whenever revising the manpage. -.Dd February 8, 2007 +.Dd February 27, 2007 .Dt OPENTTD 6 .Sh NAME .Nm openttd @@ -11,14 +11,14 @@ .Op Fl G Ar seed .Op Fl d Ar [level | cat=lvl[, ...]] .Op Fl g Ar [savegame] -.Op Fl n Ar [host[#player][:port]] +.Op Fl n Ar host[:port][#player] .Op Fl r Ar widthxheight .Op Fl t Ar date .Op Fl m Ar driver .Op Fl s Ar driver .Op Fl v Ar driver .Sh OPTIONS -.Bl -tag -width ".Fl n Ar host[#player][:port]" +.Bl -tag -width ".Fl n Ar host[:port][#player]" .It Fl D Start a dedicated server .It Fl G Ar seed @@ -45,9 +45,7 @@ Force to use the DOS palette (use this if you see a lot of magenta) .It Fl m Ar driver Set the music driver, see .Fl h -.It Fl n -Start a network server -.It Fl n Ar host[#player][:port] +.It Fl n Ar host[:port][#player] Join a network game, optionally specify player to play as and port to connect to .It Fl r Ar widthxheight Set the resolution diff --git a/known-bugs.txt b/known-bugs.txt index bca2e8045..4ce3112a9 100644 --- a/known-bugs.txt +++ b/known-bugs.txt @@ -21,30 +21,24 @@ URL: http://bugs.openttd.org -601 airports can't get flooded when they have planes in them -599 reloaded game lost company passwords --596 Cloning Maglev in UKRS forgets Mail refit -595 Sort by max cargo rating does not sort correctly -594 terraforming wipes out canals -591 Autorenew fails under certain conditions --585 Huge losses with transfer -583 Fatal fault or crash during startup -578 No loading at my industrial centre -574 Open TTD overiding Power Warnings -571 Problems with vehicle purchase lists with NewGRFs --569 'Game Load Failed' when trying to open scenarios -559 Front-/Rear-facing engines don't line up with each other -553 Autorenew doesn't warn when replacement isn't available -546 [0.5.0 RC3] Inflation overflow --542 Assertion with Vehicle list -540 Planes vanished when offered exclusive -539 Trains can cash the same cargo multiple times -529 newairport's sprite issue -522 overflow on vehicle costs --519 Bridge building results in 'missing' pieces -508 Destroying trees and replanting => raised rating -502 OSX can incorrectly print "dbg: [sl] Cannot open savegame 'data/opntitle.dat' for saving/loading." -501 Mouse pointer gets hidden, when draging out of window and back again. Only affects Wacom etc. -494 Get free money abusing a stock bug --489 [0.5.0rc1] Sound choppy on Vista -474 Overtaking car doesn't hit the against-riding car. -459 Merging is buggy -458 Crash when changing Resolution on Mac OS X (x86) @@ -52,7 +46,6 @@ URL: http://bugs.openttd.org -442 Alt-tab behaviour flawed whilst full screen (win32) -441 Transparent stuff -435 Assertion window doesn't show when in fullscreen on Mac OS X --431 failure to autorenew (core/GUI desync) -423 Improved loading causes high CPU use with long trains -410 Openttd in dedicated mode don't run without data files -404 Cargo never delivered to station after bribe and before first pickup @@ -64,7 +57,7 @@ URL: http://bugs.openttd.org -339 Crash in Quicktime when exiting game -299 disable 90 deg turns patch - AI builds 90 deg turns -290 NPF - no path to depot from tunnel --282 layers do not clear loans as soon as they could +-282 AI Players do not clear loans as soon as they could -274 Autoclean ignores any share holdings -265 Subsidy awarded detection bug -259 AIs start unnamed companies that do nothing @@ -72,7 +65,6 @@ URL: http://bugs.openttd.org -202 2 Locomotives in 1 Train - Selling one results in Age of the other one Being 0 -193 Inconsistent directory usage on Mac OS X -165 vehicle length not taken into account --163 Cargo: Station destroyed / High payment -153 Language crash with app renaming OSX -119 Clipping problems with vehicles on slopes -115 inactive logins do not get auto kicked @@ -105,7 +97,6 @@ URL: http://sourceforge.net/tracker/?atid=669662&group_id=103924&func=browse -1382782 Loan interest calculated 'wrong' -1201284 permanent hilight in a depot -1185852 Scrollbars get arbitrarily small --1184634 Replace vehicles window bug -1160732 little bug with transparency -1117731 Editor-StartingDate -1108046 game freezes @@ -113,7 +104,6 @@ URL: http://sourceforge.net/tracker/?atid=669662&group_id=103924&func=browse -1084620 Minor bug considering buses/trucks -1034310 color mauve in diagrams -1030661 It's possible to build a tunnel under oil wells -- 993516 Canal + bouy -> wrong graphics. - 987891 Large UFO destruction bug - 987883 Aircraft landing/taking off - 987880 company league table updating diff --git a/os/debian/README.Debian b/os/debian/README.Debian index f7225a22a..6e861ebb5 100644 --- a/os/debian/README.Debian +++ b/os/debian/README.Debian @@ -23,10 +23,10 @@ You should copy the data files from the original TTD into the data directory mixing. My VIA AC97 device cannot do hardware mixing, for example. -Scenarios - There are a few scenarios included in this release. When you start openttd - it will look for scenarios in ~/.openttd/scenario, while the premade - scenarios are in /usr/share/games/openttd/data/scenario. You have two - options to use the scenarios. + There are a few scenarios included in this release. When you start + openttd it will look for scenarios in ~/.openttd/scenario, while the + premade scenarios are in /usr/share/games/openttd/data/scenario. You + have two options to use the scenarios. * Navigate to /usr/share/games/openttd/data/scenario within openttd. * Copy scenarios from /usr/share/games/openttd/data/scenario to ~/.openttd/scenario. We are looking into a better solution for this. diff --git a/os/debian/changelog b/os/debian/changelog index 30a947969..226e58ad2 100644 --- a/os/debian/changelog +++ b/os/debian/changelog @@ -2,7 +2,52 @@ openttd (0.6~svn) unstable; urgency=low * Unreleased SVN version. Versioned to allow normal upgrades to released versions. - -- Matthijs Kooijman <m.kooijman@student.utwente.nl> Thu, 21 Dec 2006 14:54:35 +0100 + -- Matthijs Kooijman <m.kooijman@student.utwente.nl> Mon, 26 Feb 2007 21:07:05 +0100 + +openttd (0.5.0-1) unstable; urgency=low + + * New upstream release + + -- Matthijs Kooijman <m.kooijman@student.utwente.nl> Mon, 26 Feb 2007 21:07:05 +0100 + +openttd (0.5.0~rc5-1) unstable; urgency=low + + [ Matthijs Kooijman ] + * New upstream release + * Compile with freetype and fontconfig support. + + [ Jordi Mallach ] + * Convert debconf templates to podebconf. + * Add a Catalan translation. + * Minor packaging cleanups. + + -- Matthijs Kooijman <m.kooijman@student.utwente.nl> Mon, 12 Feb 2007 09:25:41 +0100 + +openttd (0.5.0~rc4-1) unstable; urgency=low + + * New upstream release + + -- Matthijs Kooijman <m.kooijman@student.utwente.nl> Thu, 18 Jan 2007 21:17:28 +0100 + +openttd (0.5.0~rc3-1) unstable; urgency=low + + * New upstream release + + -- Matthijs Kooijman <m.kooijman@student.utwente.nl> Thu, 18 Jan 2007 20:21:04 +0100 + +openttd (0.5.0~rc2-1) unstable; urgency=low + + * New upstream release + * Removed fix for empty scenarios dir, openttd Makefile now properly handles + this. + + -- Matthijs Kooijman <m.kooijman@student.utwente.nl> Sun, 31 Dec 2006 12:24:37 +0100 + +openttd (0.5.0~rc1-1) unstable; urgency=low + + * New upstream release. + + -- Matthijs Kooijman <m.kooijman@student.utwente.nl> Fri, 22 Dec 2006 11:03:46 +0100 openttd (0.4.8-1) unstable; urgency=low diff --git a/os/debian/control b/os/debian/control index 75dea93fd..a0d6ee1c6 100644 --- a/os/debian/control +++ b/os/debian/control @@ -2,7 +2,8 @@ Source: openttd Section: contrib/games Priority: optional Maintainer: Matthijs Kooijman <m.kooijman@student.utwente.nl> -Build-Depends: debhelper (>= 4.0.0), dpatch, libsdl-dev, zlib1g-dev, libpng-dev +Uploaders: Jordi Mallach <jordi@debian.org> +Build-Depends: debhelper (>= 4.0.0), dpatch, libsdl-dev, zlib1g-dev, libpng-dev, libfreetype6-dev, libfontconfig-dev Standards-Version: 3.7.2 Package: openttd diff --git a/os/debian/copyright b/os/debian/copyright index 077b0f586..7d9cd87bf 100644 --- a/os/debian/copyright +++ b/os/debian/copyright @@ -1,9 +1,9 @@ -This package was debianized by Matthijs Kooijman <m.kooijman@student.utwente.nl> on -Wed, 15 Sep 2004 00:24:01 +0200. +This package was debianized by Matthijs Kooijman <m.kooijman@student.utwente.nl> +on Wed, 15 Sep 2004 00:24:01 +0200. It was downloaded from http://sourceforge.net/projects/openttd -Upstream Author: Ludvig Strigeus (ludde) and many others +Upstream author: Ludvig Strigeus (ludde) and many others. License: @@ -19,7 +19,7 @@ License: You should have received a copy of the GNU General Public License along with this package; if not, write to the Free Software - Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA On Debian systems, the complete text of the GNU General Public License can be found in `/usr/share/common-licenses/GPL'. diff --git a/os/debian/po/POTFILES.in b/os/debian/po/POTFILES.in new file mode 100644 index 000000000..cef83a340 --- /dev/null +++ b/os/debian/po/POTFILES.in @@ -0,0 +1 @@ +[type: gettext/rfc822deb] templates diff --git a/os/debian/po/ca.po b/os/debian/po/ca.po new file mode 100644 index 000000000..dff637995 --- /dev/null +++ b/os/debian/po/ca.po @@ -0,0 +1,35 @@ +# Catalan translation of openttd's Debconf templates. +# Copyright © 2007 Software in the Public Interest +# This file is distributed under the same license as the openttd package. +# Jordi Mallach <jordi@debian.org>, 2007. +# +msgid "" +msgstr "" +"Project-Id-Version: openttd 0.5.0-1\n" +"Report-Msgid-Bugs-To: m.kooijman@student.utwente.nl\n" +"POT-Creation-Date: 2007-02-01 12:25+0100\n" +"PO-Revision-Date: 2007-02-01 12:16+0100\n" +"Last-Translator: Jordi Mallach <jordi@debian.org>\n" +"Language-Team: Catalan <debian-l10n-catalan@lists.debian.org>\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: note +#. Description +#: ../templates:1001 +msgid "You need to install data files" +msgstr "Heu d'instal·lar els fitxers de dades" + +#. Type: note +#. Description +#: ../templates:1001 +msgid "" +"OpenTTD needs the data files from the original TTD game to run. You should " +"install these data files before you can play the game. See README.Debian for " +"more details on which files need to be copied where." +msgstr "" +"OpenTTD necessita els fitxers de dades del joc TTD original per a funcionar. " +"Haureu d'instal·lar aquests fitxers de dades abans de poder jugar al joc. " +"Llegiu el document README.Debian per a obtindre més detalls sobre quins " +"fitxers s'han de copiar i a quina ubicació." diff --git a/os/debian/po/templates.pot b/os/debian/po/templates.pot new file mode 100644 index 000000000..0ba7cebaa --- /dev/null +++ b/os/debian/po/templates.pot @@ -0,0 +1,32 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: m.kooijman@student.utwente.nl\n" +"POT-Creation-Date: 2007-02-01 12:25+0100\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" +"Language-Team: LANGUAGE <LL@li.org>\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=CHARSET\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: note +#. Description +#: ../templates:1001 +msgid "You need to install data files" +msgstr "" + +#. Type: note +#. Description +#: ../templates:1001 +msgid "" +"OpenTTD needs the data files from the original TTD game to run. You should " +"install these data files before you can play the game. See README.Debian for " +"more details on which files need to be copied where." +msgstr "" diff --git a/os/debian/postinst b/os/debian/postinst index 58eb04ac0..710d223d6 100644 --- a/os/debian/postinst +++ b/os/debian/postinst @@ -1,44 +1,8 @@ #! /bin/sh -# postinst script for openttd -# -# see: dh_installdeb(1) set -e -# summary of how this script can be called: -# * <postinst> `configure' <most-recently-configured-version> -# * <old-postinst> `abort-upgrade' <new version> -# * <conflictor's-postinst> `abort-remove' `in-favour' <package> -# <new-version> -# * <deconfigured's-postinst> `abort-deconfigure' `in-favour' -# <failed-install-package> <version> `removing' -# <conflicting-package> <version> -# for details, see http://www.debian.org/doc/debian-policy/ or -# the debian-policy package -# - . /usr/share/debconf/confmodule -case "$1" in - configure) - ;; - - abort-upgrade|abort-remove|abort-deconfigure) - - ;; - - *) - echo "postinst called with unknown argument \`$1'" >&2 - exit 1 - ;; -esac - -# dh_installdeb will replace this with shell code automatically -# generated by other debhelper scripts. - #DEBHELPER# - -exit 0 - - diff --git a/os/debian/postrm b/os/debian/postrm deleted file mode 100644 index 08e86a760..000000000 --- a/os/debian/postrm +++ /dev/null @@ -1,41 +0,0 @@ -#! /bin/sh -# postrm script for openttd -# -# see: dh_installdeb(1) - -set -e - -# summary of how this script can be called: -# * <postrm> `remove' -# * <postrm> `purge' -# * <old-postrm> `upgrade' <new-version> -# * <new-postrm> `failed-upgrade' <old-version> -# * <new-postrm> `abort-install' -# * <new-postrm> `abort-install' <old-version> -# * <new-postrm> `abort-upgrade' <old-version> -# * <disappearer's-postrm> `disappear' <r>overwrit>r> <new-version> -# for details, see http://www.debian.org/doc/debian-policy/ or -# the debian-policy package - - -case "$1" in - purge|remove) - ;; - - upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) - - - ;; - - *) - echo "postrm called with unknown argument \`$1'" >&2 - exit 1 - -esac - -# dh_installdeb will replace this with shell code automatically -# generated by other debhelper scripts. - -#DEBHELPER# - -exit 0 diff --git a/os/debian/templates b/os/debian/templates index a43703c45..0c741ae02 100644 --- a/os/debian/templates +++ b/os/debian/templates @@ -1,6 +1,6 @@ Template: openttd/datafiles Type: note -Description: You need to install data files - OpenTTD needs the datafiles from the original TTD game to run. You should - install these datafiles before you can play the game. See README.Debian for - more details on which files need to be copied where. +_Description: You need to install data files + OpenTTD needs the data files from the original TTD game to run. You should + install these data files before you can play the game. See README.Debian + for more details on which files need to be copied where. diff --git a/os/win32/installer/CDFinder.ini b/os/win32/installer/cdfinder.ini index 3428fbe56..45f9602f1 100644 --- a/os/win32/installer/CDFinder.ini +++ b/os/win32/installer/cdfinder.ini @@ -5,22 +5,22 @@ NumFields=3 [Field 1] Type=Groupbox Text=Transport Tycoon Deluxe Installation location -Left=0 -Right=288 +Left=6 +Right=294 Top=68 Bottom=100 [Field 2] Type=DirRequest -Left=4 -Right=282 +Left=10 +Right=290 Top=80 Bottom=92 [Field 3] Type=Label -Left=13 -Right=278 +Left=17 +Right=282 Top=6 Bottom=64 diff --git a/os/win32/installer/gpl.txt b/os/win32/installer/gpl.txt deleted file mode 100644 index f3790d862..000000000 --- a/os/win32/installer/gpl.txt +++ /dev/null @@ -1,340 +0,0 @@ - GNU GENERAL PUBLIC LICENSE - Version 2, June 1991 - - Copyright (C) 1989, 1991 Free Software Foundation, Inc. - 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - - Preamble - - The licenses for most software are designed to take away your -freedom to share and change it. By contrast, the GNU General Public -License is intended to guarantee your freedom to share and change free -software--to make sure the software is free for all its users. This -General Public License applies to most of the Free Software -Foundation's software and to any other program whose authors commit to -using it. (Some other Free Software Foundation software is covered by -the GNU Library General Public License instead.) You can apply it to -your programs, too. - - When we speak of free software, we are referring to freedom, not -price. Our General Public Licenses are designed to make sure that you -have the freedom to distribute copies of free software (and charge for -this service if you wish), that you receive source code or can get it -if you want it, that you can change the software or use pieces of it -in new free programs; and that you know you can do these things. - - To protect your rights, we need to make restrictions that forbid -anyone to deny you these rights or to ask you to surrender the rights. -These restrictions translate to certain responsibilities for you if you -distribute copies of the software, or if you modify it. - - For example, if you distribute copies of such a program, whether -gratis or for a fee, you must give the recipients all the rights that -you have. You must make sure that they, too, receive or can get the -source code. And you must show them these terms so they know their -rights. - - We protect your rights with two steps: (1) copyright the software, and -(2) offer you this license which gives you legal permission to copy, -distribute and/or modify the software. - - Also, for each author's protection and ours, we want to make certain -that everyone understands that there is no warranty for this free -software. If the software is modified by someone else and passed on, we -want its recipients to know that what they have is not the original, so -that any problems introduced by others will not reflect on the original -authors' reputations. - - Finally, any free program is threatened constantly by software -patents. We wish to avoid the danger that redistributors of a free -program will individually obtain patent licenses, in effect making the -program proprietary. To prevent this, we have made it clear that any -patent must be licensed for everyone's free use or not licensed at all. - - The precise terms and conditions for copying, distribution and -modification follow. - - GNU GENERAL PUBLIC LICENSE - TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION - - 0. This License applies to any program or other work which contains -a notice placed by the copyright holder saying it may be distributed -under the terms of this General Public License. The "Program", below, -refers to any such program or work, and a "work based on the Program" -means either the Program or any derivative work under copyright law: -that is to say, a work containing the Program or a portion of it, -either verbatim or with modifications and/or translated into another -language. (Hereinafter, translation is included without limitation in -the term "modification".) Each licensee is addressed as "you". - -Activities other than copying, distribution and modification are not -covered by this License; they are outside its scope. The act of -running the Program is not restricted, and the output from the Program -is covered only if its contents constitute a work based on the -Program (independent of having been made by running the Program). -Whether that is true depends on what the Program does. - - 1. You may copy and distribute verbatim copies of the Program's -source code as you receive it, in any medium, provided that you -conspicuously and appropriately publish on each copy an appropriate -copyright notice and disclaimer of warranty; keep intact all the -notices that refer to this License and to the absence of any warranty; -and give any other recipients of the Program a copy of this License -along with the Program. - -You may charge a fee for the physical act of transferring a copy, and -you may at your option offer warranty protection in exchange for a fee. - - 2. You may modify your copy or copies of the Program or any portion -of it, thus forming a work based on the Program, and copy and -distribute such modifications or work under the terms of Section 1 -above, provided that you also meet all of these conditions: - - a) You must cause the modified files to carry prominent notices - stating that you changed the files and the date of any change. - - b) You must cause any work that you distribute or publish, that in - whole or in part contains or is derived from the Program or any - part thereof, to be licensed as a whole at no charge to all third - parties under the terms of this License. - - c) If the modified program normally reads commands interactively - when run, you must cause it, when started running for such - interactive use in the most ordinary way, to print or display an - announcement including an appropriate copyright notice and a - notice that there is no warranty (or else, saying that you provide - a warranty) and that users may redistribute the program under - these conditions, and telling the user how to view a copy of this - License. (Exception: if the Program itself is interactive but - does not normally print such an announcement, your work based on - the Program is not required to print an announcement.) - -These requirements apply to the modified work as a whole. If -identifiable sections of that work are not derived from the Program, -and can be reasonably considered independent and separate works in -themselves, then this License, and its terms, do not apply to those -sections when you distribute them as separate works. But when you -distribute the same sections as part of a whole which is a work based -on the Program, the distribution of the whole must be on the terms of -this License, whose permissions for other licensees extend to the -entire whole, and thus to each and every part regardless of who wrote it. - -Thus, it is not the intent of this section to claim rights or contest -your rights to work written entirely by you; rather, the intent is to -exercise the right to control the distribution of derivative or -collective works based on the Program. - -In addition, mere aggregation of another work not based on the Program -with the Program (or with a work based on the Program) on a volume of -a storage or distribution medium does not bring the other work under -the scope of this License. - - 3. You may copy and distribute the Program (or a work based on it, -under Section 2) in object code or executable form under the terms of -Sections 1 and 2 above provided that you also do one of the following: - - a) Accompany it with the complete corresponding machine-readable - source code, which must be distributed under the terms of Sections - 1 and 2 above on a medium customarily used for software interchange; or, - - b) Accompany it with a written offer, valid for at least three - years, to give any third party, for a charge no more than your - cost of physically performing source distribution, a complete - machine-readable copy of the corresponding source code, to be - distributed under the terms of Sections 1 and 2 above on a medium - customarily used for software interchange; or, - - c) Accompany it with the information you received as to the offer - to distribute corresponding source code. (This alternative is - allowed only for noncommercial distribution and only if you - received the program in object code or executable form with such - an offer, in accord with Subsection b above.) - -The source code for a work means the preferred form of the work for -making modifications to it. For an executable work, complete source -code means all the source code for all modules it contains, plus any -associated interface definition files, plus the scripts used to -control compilation and installation of the executable. However, as a -special exception, the source code distributed need not include -anything that is normally distributed (in either source or binary -form) with the major components (compiler, kernel, and so on) of the -operating system on which the executable runs, unless that component -itself accompanies the executable. - -If distribution of executable or object code is made by offering -access to copy from a designated place, then offering equivalent -access to copy the source code from the same place counts as -distribution of the source code, even though third parties are not -compelled to copy the source along with the object code. - - 4. You may not copy, modify, sublicense, or distribute the Program -except as expressly provided under this License. Any attempt -otherwise to copy, modify, sublicense or distribute the Program is -void, and will automatically terminate your rights under this License. -However, parties who have received copies, or rights, from you under -this License will not have their licenses terminated so long as such -parties remain in full compliance. - - 5. You are not required to accept this License, since you have not -signed it. However, nothing else grants you permission to modify or -distribute the Program or its derivative works. These actions are -prohibited by law if you do not accept this License. Therefore, by -modifying or distributing the Program (or any work based on the -Program), you indicate your acceptance of this License to do so, and -all its terms and conditions for copying, distributing or modifying -the Program or works based on it. - - 6. Each time you redistribute the Program (or any work based on the -Program), the recipient automatically receives a license from the -original licensor to copy, distribute or modify the Program subject to -these terms and conditions. You may not impose any further -restrictions on the recipients' exercise of the rights granted herein. -You are not responsible for enforcing compliance by third parties to -this License. - - 7. If, as a consequence of a court judgment or allegation of patent -infringement or for any other reason (not limited to patent issues), -conditions are imposed on you (whether by court order, agreement or -otherwise) that contradict the conditions of this License, they do not -excuse you from the conditions of this License. If you cannot -distribute so as to satisfy simultaneously your obligations under this -License and any other pertinent obligations, then as a consequence you -may not distribute the Program at all. For example, if a patent -license would not permit royalty-free redistribution of the Program by -all those who receive copies directly or indirectly through you, then -the only way you could satisfy both it and this License would be to -refrain entirely from distribution of the Program. - -If any portion of this section is held invalid or unenforceable under -any particular circumstance, the balance of the section is intended to -apply and the section as a whole is intended to apply in other -circumstances. - -It is not the purpose of this section to induce you to infringe any -patents or other property right claims or to contest validity of any -such claims; this section has the sole purpose of protecting the -integrity of the free software distribution system, which is -implemented by public license practices. Many people have made -generous contributions to the wide range of software distributed -through that system in reliance on consistent application of that -system; it is up to the author/donor to decide if he or she is willing -to distribute software through any other system and a licensee cannot -impose that choice. - -This section is intended to make thoroughly clear what is believed to -be a consequence of the rest of this License. - - 8. If the distribution and/or use of the Program is restricted in -certain countries either by patents or by copyrighted interfaces, the -original copyright holder who places the Program under this License -may add an explicit geographical distribution limitation excluding -those countries, so that distribution is permitted only in or among -countries not thus excluded. In such case, this License incorporates -the limitation as if written in the body of this License. - - 9. The Free Software Foundation may publish revised and/or new versions -of the General Public License from time to time. Such new versions will -be similar in spirit to the present version, but may differ in detail to -address new problems or concerns. - -Each version is given a distinguishing version number. If the Program -specifies a version number of this License which applies to it and "any -later version", you have the option of following the terms and conditions -either of that version or of any later version published by the Free -Software Foundation. If the Program does not specify a version number of -this License, you may choose any version ever published by the Free Software -Foundation. - - 10. If you wish to incorporate parts of the Program into other free -programs whose distribution conditions are different, write to the author -to ask for permission. For software which is copyrighted by the Free -Software Foundation, write to the Free Software Foundation; we sometimes -make exceptions for this. Our decision will be guided by the two goals -of preserving the free status of all derivatives of our free software and -of promoting the sharing and reuse of software generally. - - NO WARRANTY - - 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY -FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN -OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES -PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED -OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS -TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE -PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, -REPAIR OR CORRECTION. - - 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING -WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR -REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, -INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING -OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED -TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY -YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER -PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE -POSSIBILITY OF SUCH DAMAGES. - - END OF TERMS AND CONDITIONS - - How to Apply These Terms to Your New Programs - - If you develop a new program, and you want it to be of the greatest -possible use to the public, the best way to achieve this is to make it -free software which everyone can redistribute and change under these terms. - - To do so, attach the following notices to the program. It is safest -to attach them to the start of each source file to most effectively -convey the exclusion of warranty; and each file should have at least -the "copyright" line and a pointer to where the full notice is found. - - <one line to give the program's name and a brief idea of what it does.> - Copyright (C) 19yy <name of author> - - 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 2 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, write to the Free Software - Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - - -Also add information on how to contact you by electronic and paper mail. - -If the program is interactive, make it output a short notice like this -when it starts in an interactive mode: - - Gnomovision version 69, Copyright (C) 19yy name of author - Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. - This is free software, and you are welcome to redistribute it - under certain conditions; type `show c' for details. - -The hypothetical commands `show w' and `show c' should show the appropriate -parts of the General Public License. Of course, the commands you use may -be called something other than `show w' and `show c'; they could even be -mouse-clicks or menu items--whatever suits your program. - -You should also get your employer (if you work as a programmer) or your -school, if any, to sign a "copyright disclaimer" for the program, if -necessary. Here is a sample; alter the names: - - Yoyodyne, Inc., hereby disclaims all copyright interest in the program - `Gnomovision' (which makes passes at compilers) written by James Hacker. - - <signature of Ty Coon>, 1 April 1989 - Ty Coon, President of Vice - -This General Public License does not permit incorporating your program into -proprietary programs. If your program is a subroutine library, you may -consider it more useful to permit linking proprietary applications with the -library. If this is what you want to do, use the GNU Library General -Public License instead of this License. diff --git a/os/win32/installer/install.nsi b/os/win32/installer/install.nsi index 598d9d481..b65e2d978 100644 --- a/os/win32/installer/install.nsi +++ b/os/win32/installer/install.nsi @@ -1,8 +1,11 @@ -; Define your application name -!define APPNAME "OpenTTD" -!define APPNAMEANDVERSION "OpenTTD 0.5.0.0" -!define APPVERSION "0.5.0.0" -!define INSTALLERVERSION 27 ;NEED TO UPDATE THIS FOR EVERY RELEASE!!! +!define APPNAME "OpenTTD" ; Define application name +!define APPVERSION "0.5.0" ; Define application version +!define INSTALLERVERSION 28 ; NEED TO UPDATE THIS FOR EVERY RELEASE!!! + +!define APPURLLINK "http://www.openttd.org" +!define APPNAMEANDVERSION "${APPNAME} ${APPVERSION}" +!define APPVERSIONINTERNAL "${APPVERSION}.0" ; Needs to be of the format X.X.X.X + !define MUI_ICON "..\..\..\openttd.ico" !define MUI_UNICON "..\..\..\openttd.ico" !define MUI_WELCOMEFINISHPAGE_BITMAP "welcome.bmp" @@ -14,7 +17,7 @@ SetCompressor LZMA ; Version Info Var AddWinPrePopulate -VIProductVersion "${APPVERSION}" +VIProductVersion "${APPVERSIONINTERNAL}" VIAddVersionKey "ProductName" "OpenTTD Installer" VIAddVersionKey "Comments" "Installs ${APPNAMEANDVERSION}" VIAddVersionKey "CompanyName" "OpenTTD Developers" @@ -44,18 +47,17 @@ Var CDDRIVE !define MUI_ABORTWARNING !insertmacro MUI_PAGE_WELCOME -LicenseForceSelection radiobuttons "I &accept this Agreement" "I &do not accept this agreement" +!define MUI_LICENSEPAGE_RADIOBUTTONS +!insertmacro MUI_DEFAULT MUI_LICENSEPAGE_RADIOBUTTONS_TEXT_ACCEPT "I &accept this agreement" +!insertmacro MUI_DEFAULT MUI_LICENSEPAGE_RADIOBUTTONS_TEXT_DECLINE "I &do not accept this agreement" !insertmacro MUI_PAGE_LICENSE "..\..\..\COPYING" -;-------------------------------- -; Rest of pages !insertmacro MUI_PAGE_COMPONENTS - -;-------------------------------- -; New custom page for finding CD -Page custom SelectCD SelectCD2 ": TTD folder" +;--------------------------------- +; Custom page for finding TTDLX CD +Page custom SelectCDEnter SelectCDExit ": TTD folder" !insertmacro MUI_PAGE_DIRECTORY @@ -69,9 +71,13 @@ Page custom SelectCD SelectCD2 ": TTD folder" !insertmacro MUI_PAGE_INSTFILES -!define MUI_FINISHPAGE_RUN "$INSTDIR\OpenTTD.exe" +;----------------------------------------------------- +; New custom page to show UNICODE and MSLU information +Page custom ShowWarningsPage + +!define MUI_FINISHPAGE_RUN "$INSTDIR\openttd.exe" !define MUI_FINISHPAGE_LINK "Visit OpenTTD's homepage" -!define MUI_FINISHPAGE_LINK_LOCATION "http://www.openttd.org/" +!define MUI_FINISHPAGE_LINK_LOCATION "${APPURLLINK}" !define MUI_FINISHPAGE_NOREBOOTSUPPORT !define MUI_FINISHPAGE_SHOWREADME "$INSTDIR\readme.txt" !define MUI_FINISHPAGE_SHOWREADME_NOTCHECKED @@ -84,64 +90,63 @@ Page custom SelectCD SelectCD2 ": TTD folder" !insertmacro MUI_LANGUAGE "English" !insertmacro MUI_RESERVEFILE_LANGDLL -;-------------------------------- -; Sections +;-------------------------------------------------------------- +; (Core) OpenTTD install section. Copies all internal game data Section "!OpenTTD" Section1 - - ; Set Section properties + ; Overwrite files by default, but don't complain on failure SetOverwrite try ; Make savegame folder SetOutPath "$INSTDIR\save" - ; define root variable relative to installer + ; Define root variable relative to installer !define PATH_ROOT "..\..\..\" ; Copy language files - SetOutPath "$INSTDIR\lang\" - File ${PATH_ROOT}lang\*.lng - File ${PATH_ROOT}lang\english.txt + SetOutPath "$INSTDIR\lang\" + File ${PATH_ROOT}lang\*.lng + File ${PATH_ROOT}lang\english.txt ; Copy data files SetOutPath "$INSTDIR\data\" File ${PATH_ROOT}data\*.grf File ${PATH_ROOT}data\opntitle.dat - ; Copy scenario files + ; Copy scenario files (don't choke if they don't exist) SetOutPath "$INSTDIR\scenario\" - File ${PATH_ROOT}scenario\*.scn + File /nonfatal ${PATH_ROOT}scenario\*.scn ; Copy the rest of the stuff SetOutPath "$INSTDIR\" - ;Copy text files - File ${PATH_ROOT}changelog.txt - File ${PATH_ROOT}COPYING - File ${PATH_ROOT}readme.txt - File ${PATH_ROOT}known-bugs.txt + ; Copy text files + File ${PATH_ROOT}changelog.txt + File ${PATH_ROOT}COPYING + File ${PATH_ROOT}readme.txt + File ${PATH_ROOT}known-bugs.txt ; Copy executable - File /oname=OpenTTD.exe ${PATH_ROOT}Release\openttd.exe + File /oname=openttd.exe ${PATH_ROOT}Release\openttd.exe File ${PATH_ROOT}strgen\Debug\strgen.exe - ; Delete old files from the main dir. they are now placed in data/ and lang/ + ; Delete old files from the main dir. they are now placed in data/ and lang/ Delete "$INSTDIR\*.lng" Delete "$INSTDIR\*.grf" Delete "$INSTDIR\sample.cat" Delete "$INSTDIR\ttd.exe" - ;Creates the Registry Entries - WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\OpenTTD" "Comments" "Visit http://www.openttd.org" + ; Create the Registry Entries + WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\OpenTTD" "Comments" "Visit ${APPURLLINK}" WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\OpenTTD" "DisplayIcon" "$INSTDIR\openttd.exe,0" WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\OpenTTD" "DisplayName" "OpenTTD ${APPVERSION}" WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\OpenTTD" "DisplayVersion" "${APPVERSION}" - WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\OpenTTD" "HelpLink" "http://www.openttd.org" + WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\OpenTTD" "HelpLink" "${APPURLLINK}" WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\OpenTTD" "Install Folder" "$INSTDIR" WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\OpenTTD" "Publisher" "OpenTTD" WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\OpenTTD" "Shortcut Folder" "$SHORTCUTS" WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\OpenTTD" "UninstallString" "$INSTDIR\uninstall.exe" - WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\OpenTTD" "URLInfoAbout" "http://www.openttd.org" - ;This key sets the Version DWORD that patches will check against + WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\OpenTTD" "URLInfoAbout" "${APPURLLINK}" + ; This key sets the Version DWORD that new installers will check against WriteRegDWORD HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\OpenTTD" "Version" ${INSTALLERVERSION} !insertmacro MUI_STARTMENU_WRITE_BEGIN "OpenTTD" @@ -155,13 +160,15 @@ Section "!OpenTTD" Section1 !insertmacro MUI_STARTMENU_WRITE_END SectionEnd +;---------------------------------------------------------------------------------- +; TTDLX files install section. Copies all needed TTDLX files from CD or install dir Section "Copy Game Graphics" Section2 - ; Include files from CD - ;Let's copy the files from the CD + ; Let's copy the files with size approximation SetOutPath "$INSTDIR\gm" - CopyFiles "$CDDRIVE\gm\*.gm" "$INSTDIR\gm\" + CopyFiles "$CDDRIVE\gm\*.gm" "$INSTDIR\gm\" 1028 SetOutPath "$INSTDIR\data\" CopyFiles "$CDDRIVE\sample.cat" "$INSTDIR\data\sample.cat" 1566 + ; Copy Windows files CopyFiles "$CDDRIVE\trg1r.grf" "$INSTDIR\data\trg1r.grf" 2365 CopyFiles "$CDDRIVE\trgcr.grf" "$INSTDIR\data\trgcr.grf" 260 CopyFiles "$CDDRIVE\trghr.grf" "$INSTDIR\data\trghr.grf" 400 @@ -176,7 +183,8 @@ Section "Copy Game Graphics" Section2 SetOutPath "$INSTDIR\" SectionEnd -;---------------------- +;------------------------------------------- +; Install the uninstaller (option is hidden) Section -FinishSection WriteUninstaller "$INSTDIR\uninstall.exe" SectionEnd @@ -184,28 +192,33 @@ SectionEnd ; Modern install component descriptions !insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN !insertmacro MUI_DESCRIPTION_TEXT ${Section1} "OpenTTD is a fully functional clone of TTD and is very playable." - !insertmacro MUI_DESCRIPTION_TEXT ${Section2} "Copies the game graphics. Requires TTD for Windows." + !insertmacro MUI_DESCRIPTION_TEXT ${Section2} "Copies the game graphics. Requires TTD (for Windows)." !insertmacro MUI_FUNCTION_DESCRIPTION_END -;!undef SHORTCUTS -;Uninstall section - -Section Uninstall - MessageBox MB_YESNOCANCEL|MB_ICONQUESTION "Would you like to remove the Saved Game Folders located at '$INSTDIR\Save?' If you choose Yes, your Saved Games will be removed." IDYES RemoveSavedGames IDNO NoRemoveSavedGames +;----------------------------------------------- +; Uninstall section, deletes all installed files +Section "Uninstall" + MessageBox MB_YESNO|MB_ICONQUESTION \ + "Remove the save game folders located at $\"$INSTDIR\save?$\"$\n \ + If you choose Yes, your saved games will be deleted." \ + IDYES RemoveSavedGames IDNO NoRemoveSavedGames RemoveSavedGames: - Delete "$INSTDIR\Save\AutoSave\*" - RMDir "$INSTDIR\Save\AutoSave" - Delete "$INSTDIR\Save\*" - RMDir "$INSTDIR\Save" + Delete "$INSTDIR\save\autosave\*" + RMDir "$INSTDIR\save\autosave" + Delete "$INSTDIR\save\*" + RMDir "$INSTDIR\save" NoRemoveSavedGames: - MessageBox MB_YESNOCANCEL|MB_ICONQUESTION "Would you like to remove the Scenario Folders located at '$INSTDIR\Scenario?' If you choose Yes, your Scenarios will be removed." IDYES RemoveScen IDNO NoRemoveScen + MessageBox MB_YESNO|MB_ICONQUESTION \ + "Remove the scenario folders located at $\"$INSTDIR\scenario?$\"$\n \ + If you choose Yes, your scenarios will be deleted." \ + IDYES RemoveScen IDNO NoRemoveScen RemoveScen: - Delete "$INSTDIR\Scenario\*" - RMDir "$INSTDIR\Scenario" + Delete "$INSTDIR\scenario\*" + RMDir "$INSTDIR\scenario" NoRemoveScen: - ;Remove from registry... + ; Remove from registry... !insertmacro MUI_STARTMENU_GETFOLDER "OpenTTD" $SHORTCUTS ReadRegStr $SHORTCUTS HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\OpenTTD" "Shortcut Folder" @@ -238,13 +251,19 @@ Section Uninstall ; Data files Delete "$INSTDIR\data\opntitle.dat" + + Delete "$INSTDIR\data\2ccmap.grf" + Delete "$INSTDIR\data\airports.grf" + Delete "$INSTDIR\data\autorail.grf" + Delete "$INSTDIR\data\canalsw.grf" + Delete "$INSTDIR\data\dosdummy.grf" + Delete "$INSTDIR\data\elrailsw.grf" Delete "$INSTDIR\data\nsignalsw.grf" Delete "$INSTDIR\data\openttd.grf" - Delete "$INSTDIR\data\canalsw.grf" Delete "$INSTDIR\data\trkfoundw.grf" - Delete "$INSTDIR\data\autorail.grf" - Delete "$INSTDIR\data\dosdummy.grf" + Delete "$INSTDIR\data\sample.cat" + ; Windows Data files Delete "$INSTDIR\data\trg1r.grf" Delete "$INSTDIR\data\trghr.grf" Delete "$INSTDIR\data\trgtr.grf" @@ -257,10 +276,10 @@ Section Uninstall Delete "$INSTDIR\data\trgc.grf" Delete "$INSTDIR\data\trgi.grf" - ;Music + ; Music Delete "$INSTDIR\gm\*.gm" - ;Language files + ; Language files Delete "$INSTDIR\lang\*.lng" Delete "$INSTDIR\lang\english.txt" @@ -271,104 +290,148 @@ Section Uninstall RMDir "$INSTDIR\lang" RMDir "$INSTDIR\data" RMDir "$INSTDIR" + SectionEnd -Function SelectCD +;------------------------------------------------------------ +; Custom page function to find the TTDLX CD/install location +Function SelectCDEnter SectionGetFlags ${Section2} $0 IntOp $1 $0 & 0x80 ; bit 7 set by upgrade, no need to copy files - IntCmp $1 1 DoneCD ;upgrade doesn't need copy files + IntCmp $1 1 DoneCD ; Upgrade doesn't need copy files IntOp $0 $0 & 1 IntCmp $0 1 NoAbort - Abort + Abort NoAbort: GetTempFileName $R0 !insertmacro MUI_HEADER_TEXT "Locate TTD" "Setup needs the location of Transport Tycoon Deluxe in order to continue." - File /oname=$R0 CDFinder.ini + !insertmacro MUI_INSTALLOPTIONS_EXTRACT_AS "CDFinder.ini" "CDFinder" + ClearErrors - ;Now, let's populate $CDDRIVE - ReadRegStr $CDDRIVE HKLM "SOFTWARE\Fish Technology Group\Transport Tycoon Deluxe" "HDPath" + ; Now, let's populate $CDDRIVE + ReadRegStr $R0 HKLM "SOFTWARE\Fish Technology Group\Transport Tycoon Deluxe" "HDPath" IfErrors NoTTD - StrCpy $AddWinPrePopulate "Setup has detected your TTD folder. Don't change the folder. Simply press Next." + StrCmp $CDDRIVE "" 0 Populated + StrCpy $CDDRIVE $R0 +Populated: + StrCpy $AddWinPrePopulate "Setup has detected your TTD folder. Don't change the folder. Simply press Next." Goto TruFinish NoTTD: - StrCpy $CDDRIVE "" - StrCpy $AddWinPrePopulate "Setup couldn't find TTD. Please enter the path where the graphics files from TTD are stored and press Next to continue." + StrCpy $AddWinPrePopulate "Setup couldn't find TTD. Please enter the path where the graphics files from TTD are stored and press Next to continue." TruFinish: ClearErrors - WriteINIStr $R0 "Field 2" "State" $CDDRIVE - WriteINIStr $R0 "Field 3" "Text" $AddWinPrePopulate + !insertmacro MUI_INSTALLOPTIONS_WRITE "CDFinder" "Field 2" "State" $CDDRIVE ; TTDLX path + !insertmacro MUI_INSTALLOPTIONS_WRITE "CDFinder" "Field 3" "Text" $AddWinPrePopulate ; Caption DoneCD: - InstallOptions::dialog $R0 - Pop $R1 + ; Initialize the dialog *AFTER* we've changed the text otherwise we won't see the changes + !insertmacro MUI_INSTALLOPTIONS_INITDIALOG "CDFinder" + !insertmacro MUI_INSTALLOPTIONS_SHOW FunctionEnd -; Exit from page function -Function SelectCD2 - ReadINIStr $CDDRIVE $R0 "Field 2" "State" - IfFileExists $CDDRIVE\trg1r.grf "" NoCD - IfFileExists $CDDRIVE\sample.cat "" NoCD - IfFileExists $CDDRIVE\trgir.grf hasCD "" +;---------------------------------------------------------------- +; Custom page function when 'next' is selected for the TTDLX path +Function SelectCDExit + !insertmacro MUI_INSTALLOPTIONS_READ $CDDRIVE "CDFinder" "Field 2" "State" + ; If trg1r.grf does not exist at the path, retry with DOS version + IfFileExists $CDDRIVE\trg1r.grf "" DosCD + IfFileExists $CDDRIVE\trgir.grf "" NoCD + IfFileExists $CDDRIVE\sample.cat hasCD NoCD +DosCD: + IfFileExists $CDDRIVE\TRG1.GRF "" NoCD + IfFileExists $CDDRIVE\TRGI.GRF "" NoCD + IfFileExists $CDDRIVE\SAMPLE.CAT hasCD NoCD NoCD: - MessageBox MB_OK "Setup cannot continue without the Transport Tycoon Deluxe Location!" - Abort + MessageBox MB_OK "Setup cannot continue without the Transport Tycoon Deluxe Location!" + Abort hasCD: FunctionEnd +;--------------------------------------------------------------------- +; Custom page function to show notices for running OpenTTD +; We have extracted this custom page as Notice in the .onInit function +Function ShowWarningsPage + !insertmacro MUI_HEADER_TEXT "Installation Complete" "Important notices for OpenTTD usage." + !insertmacro MUI_INSTALLOPTIONS_EXTRACT_AS "notice.ini" "Notice" + !insertmacro MUI_INSTALLOPTIONS_INITDIALOG "Notice" + + Call GetWindowsVersion + Pop $R0 + + ; Hide the MSLU text if the installer is not run on Win9x systems + StrCmp $R0 "winnt" 0 Win9x + !insertmacro MUI_INSTALLOPTIONS_READ $R1 "Notice" "Field 1" "HWND" ; MSLU groupbox + ShowWindow $R1 0 + !insertmacro MUI_INSTALLOPTIONS_READ $R1 "Notice" "Field 2" "HWND" ; MSLU text + ShowWindow $R1 0 + !insertmacro MUI_INSTALLOPTIONS_READ $R1 "Notice" "Field 3" "HWND" ; MSLU link + ShowWindow $R1 0 +Win9x: + ClearErrors + !insertmacro MUI_INSTALLOPTIONS_SHOW +FunctionEnd + +;------------------------------------------------------------------------------- +; Determine windows version, returns "win9x" if Win9x/Me or "winnt" on the stack +Function GetWindowsVersion + ClearErrors + StrCpy $R0 "winnt" + + ReadRegStr $R1 HKLM "SOFTWARE\MICROSOFT\WINDOWS NT\CurrentVersion" CurrentVersion + IfErrors 0 WinNT + StrCpy $R0 "win9x" +WinNT: + ClearErrors + Push $R0 +FunctionEnd Var OLDVERSION Var UninstallString +;----------------------------------------------------------------------------------- +; NSIS Initialize function, determin if we are going to install/upgrade or uninstall Function .onInit StrCpy $SHORTCUTS "OpenTTD" SectionSetFlags 0 17 - ;Want to have a splash BMP? Uncomment these lines - CAREFUL WITH FILE SIZE - -; # the plugins dir is automatically deleted when the installer exits -; InitPluginsDir -; File /oname=$PLUGINSDIR\splash.bmp "C:\Documents and Settings\Administrator\My Documents\My Pictures\OpenTTD Splash.bmp" -; #optional -; #File /oname=$PLUGINSDIR\splash.wav "C:\myprog\sound.wav" -; -; ;MessageBox MB_OK "Fading" -; -; advsplash::show 3000 600 400 -1 $PLUGINSDIR\splash -; -; Pop $0 ; $0 has '1' if the user closed the splash screen early, -; ; '0' if everything closed normal, and '-1' if some error occured. -;End Splash Area - ;Starts Setup - let's look for an older version of OpenTTD + ; Starts Setup - let's look for an older version of OpenTTD ReadRegDWORD $R8 HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\OpenTTD" "Version" IfErrors ShowWelcomeMessage ShowUpgradeMessage ShowWelcomeMessage: ReadRegStr $R8 HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\OpenTTD" "Version" - ;In the event someone still has OpenTTD 0.1, this will detect that (that installer used a string instead of dword entry) + ; In the event someone still has OpenTTD 0.1, this will detect that (that installer used a string instead of dword entry) IfErrors FinishCallback ShowUpgradeMessage: IntCmp ${INSTALLERVERSION} $R8 VersionsAreEqual InstallerIsOlder WelcomeToSetup WelcomeToSetup: - ;An older version was found. Let's let the user know there's an upgrade that will take plce. + ; An older version was found. Let's let the user know there's an upgrade that will take place. ReadRegStr $OLDVERSION HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\OpenTTD" "DisplayVersion" - ;Gets the older version then displays it in a message box - MessageBox MB_OK|MB_ICONINFORMATION "Welcome to ${APPNAMEANDVERSION} Setup.$\n$\nThis will allow you to upgrade from version $OLDVERSION." + ; Gets the older version then displays it in a message box + MessageBox MB_OK|MB_ICONINFORMATION \ + "Welcome to ${APPNAMEANDVERSION} Setup.$\n \ + This will allow you to upgrade from version $OLDVERSION." SectionSetFlags ${Section2} 0x80 ; set bit 7 Goto FinishCallback VersionsAreEqual: ReadRegStr $UninstallString HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\OpenTTD" "UninstallString" IfFileExists "$UninstallString" "" FinishCallback - MessageBox MB_YESNO|MB_ICONQUESTION "Setup detected ${APPNAMEANDVERSION} on your system. That's the version this program will install.$\n$\nAre you trying to uninstall it?" IDYES DoUninstall IDNO FinishCallback -DoUninstall: ;You have the same version as this installer. This allows you to uninstall. + MessageBox MB_YESNO|MB_ICONQUESTION \ + "Setup detected ${APPNAMEANDVERSION} on your system. That's the version this program will install.$\n \ + Are you trying to uninstall it?" \ + IDYES DoUninstall IDNO FinishCallback +DoUninstall: ; You have the same version as this installer. This allows you to uninstall. Exec "$UninstallString" Quit InstallerIsOlder: - MessageBox MB_OK|MB_ICONSTOP "You have a newer version of ${APPNAME}.$\n$\nSetup will now exit." + MessageBox MB_OK|MB_ICONSTOP \ + "You have a newer version of ${APPNAME}.$\n \ + Setup will now exit." Quit FinishCallback: diff --git a/os/win32/installer/notice.ini b/os/win32/installer/notice.ini new file mode 100644 index 000000000..cfa422226 --- /dev/null +++ b/os/win32/installer/notice.ini @@ -0,0 +1,54 @@ +; Ini file generated by the HM NIS Edit IO designer. +[Settings] +NumFields=6 + +[Field 1] +Type=Groupbox +Text=Notice for Windows 9x/ME users! +Left=8 +Right=292 +Top=80 +Bottom=138 + +[Field 2] +Type=Label +Text=OpenTTD will not work without the Microsoft Layer for Unicode installed.\r\nDue to licensing issues we cannot bundle this file with the installer. Please download MSLU from the Microsoft website and extract UnicoWS.dll to the same directory as the openttd executabe. +Left=13 +Right=284 +Top=91 +Bottom=127 + +[Field 3] +Type=Link +Text=Microsoft Layer for Unicode +State=http://www.microsoft.com/downloads/details.aspx?FamilyId=73BA7BD7-ED06-4F0D-80A4-2A7EEAEE17E2&displaylang=en +Left=197 +Right=284 +Top=127 +Bottom=135 + +[Field 4] +Type=Groupbox +Text=UNICODE support +Left=8 +Right=292 +Top=0 +Bottom=75 + +[Field 5] +Type=Label +Text=This version of OpenTTD has support for UNICODE, allowing users to use non-ASCII character sets such as Russian or Japanese.\r\nSelecting such a language will result in an unusable and garbled interface. You will need to specify a font that has support for these characters in openttd.cfg, or alternatively use an appropiate grf file.\r\n\r\nFor more information please refer to the readme or the wiki. +Left=13 +Right=284 +Top=9 +Bottom=65 + +[Field 6] +Type=Link +Text=OpenTTD wiki +Left=238 +Right=284 +Top=64 +Bottom=72 +State=http://wiki.openttd.org/index.php/Unicode + diff --git a/readme.txt b/readme.txt index 6dde954ef..d024a1ed3 100644 --- a/readme.txt +++ b/readme.txt @@ -1,6 +1,6 @@ OpenTTD README -Last updated: 2007-02-08 -Release version: 0.5.0-RC5 +Last updated: 2007-02-27 +Release version: 0.5.0 ------------------------------------------------------------------------ |