Skip to content

Commit

Permalink
Component "Restored Item Cheats": Reactivate the debug console in ori…
Browse files Browse the repository at this point in the history
…ginal PST

Patch provided by Bubb.
  • Loading branch information
Argent77 committed Sep 9, 2023
1 parent aa82f06 commit ff142c6
Show file tree
Hide file tree
Showing 7 changed files with 116 additions and 10 deletions.
44 changes: 44 additions & 0 deletions PST-UB-reloaded/CheatItems/tph/DebugConsole.tph
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
// Cheats were disabled in Planescape and can easily crash the game.
// This patch re-enables the debug console in original PsT.
// Patch provided by Bubb

ACTION_IF (IS_PST) BEGIN
COPY ~Torment.exe~ ~Torment.exe~
WRITE_BYTE 0x3cdffd 0x8d
WRITE_BYTE 0x3cdffe 0x98
WRITE_BYTE 0x3cdfff 0xfa

WRITE_BYTE 0x3ce000 0xff
WRITE_BYTE 0x3ce001 0xff
WRITE_BYTE 0x3ce002 0xe8
WRITE_BYTE 0x3ce003 0xa3
WRITE_BYTE 0x3ce004 0x97
WRITE_BYTE 0x3ce005 0x00
WRITE_BYTE 0x3ce006 0x00
WRITE_BYTE 0x3ce007 0xe9
WRITE_BYTE 0x3ce008 0x07
WRITE_BYTE 0x3ce009 0x17
WRITE_BYTE 0x3ce00a 0x00
WRITE_BYTE 0x3ce00b 0x00
WRITE_BYTE 0x3ce00c 0x90

WRITE_BYTE 0x3d75d6 0xd2
WRITE_BYTE 0x3d75d7 0x04

WRITE_BYTE 0x3d7800 0xd2
WRITE_BYTE 0x3d7801 0x04

WRITE_BYTE 0x3d780f 0x2e

WRITE_BYTE 0x3d7810 0x16

WRITE_BYTE 0x3d7828 0xd2
WRITE_BYTE 0x3d7829 0x04

WRITE_BYTE 0x3d7848 0xd2
WRITE_BYTE 0x3d7849 0x04

WRITE_BYTE 0x3d786d 0xd2
WRITE_BYTE 0x3d786e 0x04
BUT_ONLY IF_EXISTS
END
1 change: 1 addition & 0 deletions PST-UB-reloaded/PST-UB-reloaded.tp2
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,7 @@ LABEL ~A7-PST-UB-RELOADED-RESTORED_CHEAT_ITEMS~
REQUIRE_PREDICATE GAME_IS ~pst pstee~ @50 // ~Requires Planescape Torment or Planescape Torment: Enhanced Edition~
COPY_EXISTING ~SCALPEL.itm~ ~override/Q!CITEMS.xxx~
INCLUDE ~%MOD_FOLDER%/CheatItems/tph/CheatItems.tph~
INCLUDE ~%MOD_FOLDER%/CheatItems/tph/DebugConsole.tph~


BEGIN @27 // Miscellaneous Restorations and Improvements
Expand Down
11 changes: 11 additions & 0 deletions PST-UB-reloaded/readme/readme-brazilianportuguese.html
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,7 @@ <h3>PS:T Unfinished Business - Reloaded</h3>
<p><strong>Contribuidores adicionais:</strong></p>
<ul>
<li>Fixpack do Qwinn pro PS:T para o conserto do Ratbone/Carver e o componente "Restaurado o Cortiço dos Bandidos".</li>
<li>Bubb: Patch for reactivating the debug console in original PST.</li>
<li>Ajuda adicional do lujo.</li>
</ul>
<hr class="spacer" />
Expand Down Expand Up @@ -366,6 +367,16 @@ <h5>Notas dos Direitos Autorais:</h5>
<!-- ================== V E R S I O N H I S T O R Y ================== -->
<section id="changelog">
<h2>Version History</h2>
<h6>Version 2.2</h6>
<ul>
<li>Component "Restored Item Cheats (Not Recommended)" reactivates the debug console in original PST (by Bubb)</li>
<li>Added Mebbeth's store providing an option to raise dead party members to component "Miscellaneous Restorations and Improvements"</li>
<li>Improved cutscene in "Miscellaneous Restorations and Improvements"</li>
<li>Added workarounds for buggy game timers</li>
<li>Fixed character encoding of Chinese setup lines</li>
<li>Fixed typos in the readme</li>
</ul>
<hr class="spacer" />
<h6>Version 2.1</h6>
<ul>
<li>Updated Polish translation (thanks memory)</li>
Expand Down
15 changes: 13 additions & 2 deletions PST-UB-reloaded/readme/readme-french.html
Original file line number Diff line number Diff line change
Expand Up @@ -336,8 +336,9 @@ <h3>PS:T Unfinished Business - Reloaded</h3>
</ul>
<p><strong>Additional contributors:</strong></p>
<ul>
<li>Qwinn's PS:T Fixpack for the Ratbone/Carver fix and the "Restored Tenement of Thugs" component.</li>
<li>Additional help by lujo.</li>
<li>Qwinn's PS:T Fixpack: For the Ratbone/Carver fix and the "Restored Tenement of Thugs" component.</li>
<li>Bubb: Patch for reactivating the debug console in original PST.</li>
<li>lujo: Additional help.</li>
</ul>
<hr class="spacer" />
<h3>Original PS:T Unfinished Business</h3>
Expand Down Expand Up @@ -366,6 +367,16 @@ <h5>Copyright Notice:</h5>
<!-- ================== V E R S I O N H I S T O R Y ================== -->
<section id="changelog">
<h2>Historique des versions</h2>
<h6>Version 2.2</h6>
<ul>
<li>Component "Restored Item Cheats (Not Recommended)" reactivates the debug console in original PST (by Bubb)</li>
<li>Added Mebbeth's store providing an option to raise dead party members to component "Miscellaneous Restorations and Improvements"</li>
<li>Improved cutscene in "Miscellaneous Restorations and Improvements"</li>
<li>Added workarounds for buggy game timers</li>
<li>Fixed character encoding of Chinese setup lines</li>
<li>Fixed typos in the readme</li>
</ul>
<hr class="spacer" />
<h6>Version 2.1</h6>
<ul>
<li>Updated Polish translation (thanks memory)</li>
Expand Down
20 changes: 17 additions & 3 deletions PST-UB-reloaded/readme/readme-german.html
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ <h3>Kurzübersicht aller Komponenten</h3>
<li><p><strong>Wiederhergestellt: Mietshaus der Schläger:</strong> Erlaubt mehr Rollenspielmöglichkeiten im Mietshaus der Schläger. Die Schläger im Gebiet sind zunächst neutral, und die Geheimtür wurde mit der Xaositekten-Quest verbunden. Diese Komponente ist nur für PST:EE verfügbar. Für das klassische PS:T werden diese Probleme in Qwinns PS:T Fixpack gelöst.</p></li>
<li><p><strong>Wiederhergestellt: Zauberschlüssel:</strong> Stellt einige „Zauberschlüssel‟-Artefakte wieder her, die verhindern sollen, dass Zauber des Namenlosen in den äußeren Ebenen oder anderen speziell abgeschirmten Orten misslingen.</p></li>
<li><p><strong>Erweiterte Wahrheit über Deionarras Schicksal:</strong> Fügt eine Menge neuer Inhalte hinzu, die sich mit dem Schicksal von Deionarra beschäftigen (ca. 180 neue Dialogzeilen). Nach einer bestimmten Quest werden weitere 30-40 Zeilen freigeschaltet. Diese Komponente gehört nicht zur empfohlenen Auswahl, da sie einige neue Inhalte hinzufügt, die sich nicht in den originalen Spieldateien befinden.</p></li>
<li><p><strong>Wiederhergestellt: Cheat-Gegenstände (nicht empfohlen):</strong> Stellt zwei Cheat-Gegenstände und deren Funktionalität wieder her: das Schwert des Wh'ynn - auch bekannt als die Betrügerklinge, und das Almanach der Betrügereien.</p></li>
<li><p><strong>Wiederhergestellt: Cheat-Gegenstände (nicht empfohlen):</strong> Stellt zwei Cheat-Gegenstände und deren Funktionalität wieder her: das Schwert des Wh'ynn - auch bekannt als die Betrügerklinge, und das Almanach der Betrügereien. Reaktiviert die Debugkonsole im originalen Spiel (experimentell, weitere Details im "Komponenten"-Abschnitt).</p></li>
<li><p><strong>Verschiedene Wiederherstellungen und Verbesserungen:</strong> Installiert verschiedene Wiederherstellungen und Verbesserungen, die entweder zu klein für eigene Komponenten sind oder nicht direkt auf gestrichene Inhalte des Spiels basieren.</p></li>
</ol>
<hr class="spacer" />
Expand Down Expand Up @@ -301,6 +301,9 @@ <h2>Komponenten</h2>
<p>Das Restoration Pack sollte auch einige der Optionen des Almanachs der Betrügereien aktivieren, tat dies aber nicht. Die Unfinished Business-Version hingegen schon. Und es wird das Spiel trivial einfach machen, weshalb ich es nicht weiterempfehle (außer für Modder, die ihre Mods testen wollen, was der einzige Grund ist, warum ich mir die Mühe gemacht habe, es wiederherzustellen). Die Cheats, die in der UB-Version 1 des Almanachs der Betrügereien verfügbar sind, sind der Teleport-Cheat, „Überall rasten‟-Cheat, Reichtum-Cheat, „Attribut ändern‟-Cheat, Sterben-Cheat, Erfahrungspunkte-Cheat, „Wort des Guten und Bösen‟-Cheat und „Wort des Rechtschaffenen und Chaotischen‟-Cheat.</p>
<p>Es gibt zwei Dinge, die man über das Almanach der Betrügereien wissen sollte. Eines davon ist, dass Qwinns PS:T Tweak Pack auch einen „Almanach der Betrügereien‟-Tweak enthält, mit dem Unterschied, dass man mit dem Tweak Pack das Spiel mit dem Almanach der Betrügereien in seinem Besitz startet, während man in diesem Teil warten muss, bis man irgendwann Vrischika trifft (wie es... *hust*... „beabsichtigt‟ war) und den Almanach kaufen kann (und er ist... ziemlich teuer bei ihr). Die andere Sache ist, dass dies nichts mit Platters Tome o' Cheat Mod zu tun hat, den ich noch nie heruntergeladen oder gesehen habe. Der Dialog, den ihr seht, wenn ihr das Buch verwendet, ist vollständig von Qwinn verfasst. Das Gespräch mit Vrischika über das Buch ist das, was in den Originaldateien enthalten war. Das Einzige, was ich dort leicht modifiziere, ist die Auflistung der im Almanach verfügbaren Cheats.</p>
</blockquote>
<p><strong>Originales PST:</strong></p>
<p>Ursprünglich wurde die Debugkonsole deaktiviert, da sie das Spiel leicht zum Absturz bringen kann. Diese Komponente reaktiviert die Debugkonsole (mit freundlicher Genehmigung von Bubb) und bindet sie an das Tastaturkürzel für Standortinformationen ("Location").</p>
<p>Taste 'L' aktiviert das Konsolenpanel. Falls das Tastaturkürzel für Standortinformationen auf eine andere Taste gelegt wurde, dann muss diese Taste gedrückt werden. Weitere Informationen und eine Liste aller verfügbaren Konsolenbefehle können auf <a href="https://gibberlings3.github.io/iesdp/appendices/clua/pst.htm">IESDP</a> nachgelesen werden. Benutzung der Konsole auf eigene Gefahr.</p>
<p><strong>PST:EE-Hinweise:</strong></p>
<p>Das Spiel kommt bereits mit einer mächtigen Debugkonsole daher, die diese Komponente größtenteils überflüssig macht. Sie kann trotzdem nützlich sein, da die Cheats auf recht bequeme Weise in Dialogform präsentiert werden.</p>
</li>
Expand Down Expand Up @@ -337,8 +340,9 @@ <h3>PS:T Unfinished Business - Reloaded</h3>
</ul>
<p><strong>Additional contributors:</strong></p>
<ul>
<li>Qwinn's PS:T Fixpack for the Ratbone/Carver fix and the "Restored Tenement of Thugs" component.</li>
<li>Additional help by lujo.</li>
<li>Qwinn's PS:T Fixpack: For the Ratbone/Carver fix and the "Restored Tenement of Thugs" component.</li>
<li>Bubb: Patch for reactivating the debug console in original PST.</li>
<li>lujo: Additional help.</li>
</ul>
<hr class="spacer" />
<h3>Original PS:T Unfinished Business</h3>
Expand Down Expand Up @@ -367,6 +371,16 @@ <h5>Copyright Notice:</h5>
<!-- ================== V E R S I O N H I S T O R Y ================== -->
<section id="changelog">
<h2>Versionshistorie</h2>
<h6>Version 2.2</h6>
<ul>
<li>Component "Restored Item Cheats (Not Recommended)" reactivates the debug console in original PST (by Bubb)</li>
<li>Added Mebbeth's store providing an option to raise dead party members to component "Miscellaneous Restorations and Improvements"</li>
<li>Improved cutscene in "Miscellaneous Restorations and Improvements"</li>
<li>Added workarounds for buggy game timers</li>
<li>Fixed character encoding of Chinese setup lines</li>
<li>Fixed typos in the readme</li>
</ul>
<hr class="spacer" />
<h6>Version 2.1</h6>
<ul>
<li>Updated Polish translation (thanks memory)</li>
Expand Down
15 changes: 13 additions & 2 deletions PST-UB-reloaded/readme/readme-polish.html
Original file line number Diff line number Diff line change
Expand Up @@ -332,8 +332,9 @@ <h3>PS:T Unfinished Business - Reloaded</h3>
</ul>
<p><strong>Additional contributors:</strong></p>
<ul>
<li>Qwinn's PS:T Fixpack for the Ratbone/Carver fix and the "Restored Tenement of Thugs" component.</li>
<li>Additional help by lujo.</li>
<li>Qwinn's PS:T Fixpack: For the Ratbone/Carver fix and the "Restored Tenement of Thugs" component.</li>
<li>Bubb: Patch for reactivating the debug console in original PST.</li>
<li>lujo: Additional help.</li>
</ul>
<hr class="spacer" />
<h3>Original PS:T Unfinished Business</h3>
Expand Down Expand Up @@ -362,6 +363,16 @@ <h5>Copyright Notice:</h5>
<!-- ================== V E R S I O N H I S T O R Y ================== -->
<section id="changelog">
<h2>Historia zmian</h2>
<h6>Version 2.2</h6>
<ul>
<li>Component "Restored Item Cheats (Not Recommended)" reactivates the debug console in original PST (by Bubb)</li>
<li>Added Mebbeth's store providing an option to raise dead party members to component "Miscellaneous Restorations and Improvements"</li>
<li>Improved cutscene in "Miscellaneous Restorations and Improvements"</li>
<li>Added workarounds for buggy game timers</li>
<li>Fixed character encoding of Chinese setup lines</li>
<li>Fixed typos in the readme</li>
</ul>
<hr class="spacer" />
<h6>Version 2.1</h6>
<ul>
<li>Updated Polish translation (thanks memory)</li>
Expand Down
20 changes: 17 additions & 3 deletions PST-UB-reloaded/readme/readme.html
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ <h3>Summary of available components</h3>
<li><p><strong>Restored Tenement of Thugs:</strong> Adds more roleplay opportunities to the Tenement of Thugs area by making the thugs initially neutral and including the secret door in the Xaositects quest line. This component is only available for PST:EE. For classic PST these issues are fixed by Qwinn's PS:T Fixpack.</p></li>
<li><p><strong>Restored Spell Keys:</strong> Restores a number of "spell key" artifacts which will prevent spells cast by TNO from going awry in the Outer Planes and other specially shielded places.</p></li>
<li><p><strong>Expanded Deionarra's Truth Mod:</strong> Adds a great deal of new content (including 180 new lines of dialogue) that will allow the player to find out her fate before it becomes too late to do anything about it. Once the new content has been played, about 30-40 more lines of original dialogue will become accessible.</p></li>
<li><p><strong>Restored Item Cheats (Not Recommended):</strong> Makes two cheat items available to the player and restores their functions: the "Sword of Wh'ynn" - aka "The Cheater's Blade", and "The Tome o' Cheats".</p></li>
<li><p><strong>Restored Item Cheats (Not Recommended):</strong> Makes two cheat items available to the player and restores their functions: the "Sword of Wh'ynn" - aka "The Cheater's Blade", and "The Tome o' Cheats". Reactivates the debug console in the original game (experimental, see "Mod Components" chapter for more details).</p></li>
<li><p><strong>Miscellaneous Restorations and Improvements:</strong> Installs various restorations and improvements which are either too small to warrant their own components, or aren't strictly based on cut content.</p></li>
</ol>
<hr class="spacer" />
Expand Down Expand Up @@ -301,6 +301,9 @@ <h2>Mod Components</h2>
<p>Restoration Pack also claimed to enable some of the Tome o' Cheats options, but did not in fact do so. The Unfinished Business version, however, does. And it will make the game trivially easy, which is why I don't recommend it (except for modders looking to test their mods, which is the only reason I bothered to make it). The Cheats available in the UB version 1 Tome of Cheats are the Teleport Cheat, Rest Anywhere Cheat, Wealth Cheat, Attribute Score Cheat, Death Cheat, Experience Cheat, Word 'o Good and Evil Cheat, and Word o' Law and Chaos Cheat.</p>
<p>Two things of note about the Tome o' Cheats. One is that Qwinn's PS:T Tweak Pack also contains a Tome o' Cheats tweak, the difference being that with the Tweak Pack mod you start the game with the Tome o' Cheats in your possession, whereas in this component you have to wait until you get to Vrischika (as was... *cough*... "intended") a fair ways into the game before you can buy the Tome (and it's... rather expensive from her). The other thing of note is that this has -nothing- to do with Platter's Tome o' Cheat mod, which I've never even downloaded or seen. The dialog you see when you use the book is entirely authored by Qwinn. The conversation with Vrischika about the book is what was contained in the original files, and the only thing there that I modify slightly is the listing of the cheats available in the Tome.</p>
</blockquote>
<p><strong>Original PST:</strong></p>
<p>Originally the debug console was disabled since it can easily crash the game. This component patches the game executable to reactivate the debug console and binds it to the "Location" hotkey (by courtesy of Bubb).</p>
<p>Press 'L' to activate the console panel. If you remapped the "Location" hotkey to something else, press that key instead. More information as well as a list of available cheat commands can be found on <a href="https://gibberlings3.github.io/iesdp/appendices/clua/pst.htm">IESDP</a>. Use at your own risk.</p>
<p><strong>PST:EE notes:</strong></p>
<p>The game already comes with a powerful debug console that makes this component largely redundant. It might still be useful though, since many cheats are conveniently presented as dialog options.</p>
</li>
Expand Down Expand Up @@ -337,8 +340,9 @@ <h3>PS:T Unfinished Business - Reloaded</h3>
</ul>
<p><strong>Additional contributors:</strong></p>
<ul>
<li>Qwinn's PS:T Fixpack for the Ratbone/Carver fix and the "Restored Tenement of Thugs" component.</li>
<li>Additional help by lujo.</li>
<li>Qwinn's PS:T Fixpack: For the Ratbone/Carver fix and the "Restored Tenement of Thugs" component.</li>
<li>Bubb: Patch for reactivating the debug console in original PST.</li>
<li>lujo: Additional help.</li>
</ul>
<hr class="spacer" />
<h3>Original PS:T Unfinished Business</h3>
Expand Down Expand Up @@ -367,6 +371,16 @@ <h5>Copyright Notice:</h5>
<!-- ================== V E R S I O N H I S T O R Y ================== -->
<section id="changelog">
<h2>Version History</h2>
<h6>Version 2.2</h6>
<ul>
<li>Component "Restored Item Cheats (Not Recommended)" reactivates the debug console in original PST (by Bubb)</li>
<li>Added Mebbeth's store providing an option to raise dead party members to component "Miscellaneous Restorations and Improvements"</li>
<li>Improved cutscene in "Miscellaneous Restorations and Improvements"</li>
<li>Added workarounds for buggy game timers</li>
<li>Fixed character encoding of Chinese setup lines</li>
<li>Fixed typos in the readme</li>
</ul>
<hr class="spacer" />
<h6>Version 2.1</h6>
<ul>
<li>Updated Polish translation (thanks memory)</li>
Expand Down

0 comments on commit ff142c6

Please sign in to comment.