Skip to content

Commit 5467210

Browse files
Update Tokyo Xanadu features in GUI and readme
1 parent a5730c3 commit 5467210

File tree

5 files changed

+160
-17
lines changed

5 files changed

+160
-17
lines changed

README.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ Windows (using the GUI)
4646
- Hit the big 'Patch!' button at the bottom.
4747
- Run the game as usual.
4848

49-
You can verify that SenPatcher is running correctly by checking the lower-right corner of the title screen. If SenPatcher is successfully running, it will display its version information as well as information about loaded mods next to the game's version string.
49+
You can verify that SenPatcher is running correctly by checking the lower-right corner of the title screen. If SenPatcher is successfully running, it will display its version information as well as information about loaded mods next to the game's version. In Tokyo Xanadu, you have to highlight the Quit option on the title screen to see this description.
5050

5151
To uninstall, launch SenPatcherGui.exe again, click 'Patch game' for the relevant game, and use the 'Remove Patches / Restore Original' button at the top.
5252

@@ -100,6 +100,7 @@ Feature Set for Trails of Cold Steel
100100

101101
* Built-in mod loader for p3a mods.
102102
* Option to remove the forced animation skip in Turbo mode.
103+
* Option to make Turbo a toggle instead of a hold.
103104
* Option to fix the internal Thor master quartz HD texture ID to allow usage of the HD texture pack for it.
104105
* Option to fix various minor script and asset file errors, such as missing sound effects, incorrect voice clips, text typos, etc.
105106
* Option to remap the button used for triggering Turbo mode and to re-enable the 2nd Notebook shortcut even when Turbo is on.
@@ -120,6 +121,7 @@ Feature Set for Trails of Cold Steel II
120121

121122
* Built-in mod loader for p3a mods.
122123
* Option to remove the forced animation skip in Turbo mode.
124+
* Option to make Turbo a toggle instead of a hold.
123125
* Option to fix two audio-related bugs, which cause missing or incorrect BGM/SFX and overlong track transitions.
124126
* Option to fix a few minor script errors.
125127
* Option to disable the mouse being captured by the game and its movement being used for the game camera.
@@ -139,6 +141,7 @@ Feature Set for Trails of Cold Steel III
139141
========================================
140142

141143
* Built-in mod loader for p3a mods.
144+
* Option to make Turbo a toggle instead of a hold.
142145
* Option to fix various minor script and asset file errors, such as incorrect textures, incorrect voice clips, item description errors, broken Master Quartz effects, etc.
143146
* Option to fix the in-game button remapping options being incorrectly enabled/disabled, disallowing various sensible mappings.
144147
* Option to fix a bug that causes incorrect music playback when you switch areas too quickly.
@@ -176,8 +179,12 @@ Feature Set for Tokyo Xanadu eX+
176179
================================
177180

178181
* Built-in mod loader for p3a mods.
179-
* Option to set the game language to English or Japanese instead of the game reading it from Steam/GOG Galaxy.
182+
* Added a Turbo Mode, similar to the one in the Trails games.
183+
* Added a lot of new entries to the Button Configurations list, allowing customization of combat controls without it also affecting things like menu actions and minigames.
180184
* Option to skip the startup logos and/or all FMVs.
185+
* Option to disable the mouse movement being used for the game camera.
186+
* Option to keep processing controller input while the game is in the background.
187+
* Option to set the game language to English or Japanese instead of the game reading it from Steam/GOG Galaxy.
181188

182189
Note: Compatible with version 1.08 of the game only.
183190

SenLib/Version.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66

77
namespace SenLib {
88
public static class Version {
9-
public static string SenPatcherVersion = "1.1.1";
9+
public static string SenPatcherVersion = "1.2";
1010
}
1111
}

SenPatcherGui/IniFile.cs

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,21 @@ public int GetInt(string sectionName, string keyName, int defaultValue) {
173173
return defaultValue;
174174
}
175175

176+
public double GetDouble(string sectionName, string keyName, double defaultValue) {
177+
Section section = GetSection(sectionName);
178+
if (section != null) {
179+
string value;
180+
if (section.TryGet(keyName, out value)) {
181+
double r;
182+
if (double.TryParse(value, NumberStyles.Float, CultureInfo.InvariantCulture, out r)) {
183+
return r;
184+
}
185+
}
186+
}
187+
188+
return defaultValue;
189+
}
190+
176191
public string GetString(string sectionName, string keyName, string defaultValue) {
177192
Section section = GetSection(sectionName);
178193
if (section != null) {
@@ -193,6 +208,10 @@ public void SetInt(string sectionName, string keyName, int intValue) {
193208
SetString(sectionName, keyName, intValue.ToString());
194209
}
195210

211+
public void SetDouble(string sectionName, string keyName, double doubleValue) {
212+
SetString(sectionName, keyName, doubleValue.ToString("F1", CultureInfo.InvariantCulture.NumberFormat));
213+
}
214+
196215
public void SetString(string sectionName, string keyName, string stringValue) {
197216
MakeOrGetSection(sectionName).Insert(keyName, stringValue, null, true);
198217
}

SenPatcherGui/TXForm.Designer.cs

Lines changed: 116 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

SenPatcherGui/TXForm.cs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,16 @@ private void ReadFromIni() {
5151
comboBoxGameLanguage.SelectedIndex = (ini.GetString("TX", "Language", "English").ToLowerInvariant() == "japanese") ? 0 : 1;
5252
checkBoxSkipLogos.Checked = ini.GetBool("TX", "SkipLogos", true);
5353
checkBoxSkipMovies.Checked = ini.GetBool("TX", "SkipAllMovies", false);
54+
checkBoxTurboToggle.Checked = ini.GetBool("TX", "MakeTurboToggle", false);
55+
checkBoxDisableMouseCam.Checked = ini.GetBool("TX", "DisableMouseCamera", false);
56+
checkBoxShowMouseCursor.Checked = ini.GetBool("TX", "ShowMouseCursor", false);
57+
checkBoxEnableBackgroundControllerInput.Checked = ini.GetBool("TX", "EnableBackgroundControllerInput", false);
58+
numericUpDownTurboFactor.Value = 2;
59+
60+
double iniFactor = ini.GetDouble("TX", "TurboModeFactor", 2.0);
61+
if (iniFactor >= 2.0 && iniFactor <= 6.0) {
62+
numericUpDownTurboFactor.Value = (decimal)iniFactor;
63+
}
5464
} catch (Exception) { }
5565
}
5666
private void WriteToIni() {
@@ -64,6 +74,11 @@ private void WriteToIni() {
6474
ini.SetString("TX", "Language", comboBoxGameLanguage.SelectedIndex == 0 ? "Japanese" : "English");
6575
ini.SetBool("TX", "SkipLogos", checkBoxSkipLogos.Checked);
6676
ini.SetBool("TX", "SkipAllMovies", checkBoxSkipMovies.Checked);
77+
ini.SetDouble("TX", "TurboModeFactor", (double)numericUpDownTurboFactor.Value);
78+
ini.SetBool("TX", "MakeTurboToggle", checkBoxTurboToggle.Checked);
79+
ini.SetBool("TX", "DisableMouseCamera", checkBoxDisableMouseCam.Checked);
80+
ini.SetBool("TX", "ShowMouseCursor", checkBoxShowMouseCursor.Checked);
81+
ini.SetBool("TX", "EnableBackgroundControllerInput", checkBoxEnableBackgroundControllerInput.Checked);
6782
ini.WriteToFile(inipath);
6883
} catch (Exception) { }
6984
}

0 commit comments

Comments
 (0)