Skip to content

Commit da7abdc

Browse files
authored
Merge pull request FortuneStreetModding#293 from mask1n/cswt_gecko
Add auction timer and splash screen codes to CSWT/CSTP
2 parents 86902b6 + 2a99c9a commit da7abdc

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

_modpacks/resources/cswt/cstp.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,9 @@ def saveFiles(self, root, gameInstance, modList):
163163
# 1.5x speedup
164164
mainDol.seek(mapper.boomToFileAddress(0x80818fa8))
165165
mainDol.write(b'\x3F\xB0\x03\x47')
166+
# change auction timer to account for speedup
167+
mainDol.seek(mapper.boomToFileAddress(0x80815730))
168+
mainDol.write((7).to_bytes(4,'big'))
166169
# Memory Block: Always Small Blocks
167170
mainDol.seek(mapper.boomToFileAddress(0x800eec88))
168171
mainDol.write(b'\x3B\xC0\x00\x00')
@@ -180,6 +183,16 @@ def saveFiles(self, root, gameInstance, modList):
180183
# Fix AI 98-Stock Exploit (makes AI tank your stocks even if you have 98 or fewer)
181184
mainDol.seek(mapper.boomToFileAddress(0x800A3C10))
182185
mainDol.write(b'\x2C\x00\x00\x01')
186+
# Skip Splash Screens
187+
for dolAddr in (0x10D40, 0x10D44): #0x800159A0, 0x800159A4
188+
mainDol.seek(dolAddr)
189+
mainDol.write(b'\x60\x00\x00\x00')
190+
mainDol.seek(0x13220) #0x80017E80
191+
mainDol.write(b'\x39\xc0\x00\x01')
192+
mainDol.seek(0x13224) #0x80017E84
193+
mainDol.write(b'\x91\xdf\x00\x10')
194+
mainDol.seek(mapper.boomToFileAddress(0x801e9a18))
195+
mainDol.write(b'\x40\x82\x00\x10')
183196

184197
def saveUiMessages(self):
185198
return {f'files/localize/ui_message.{k}.csv':

_modpacks/resources/cswt/cswt.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,9 @@ def saveFiles(self, root, gameInstance, modList):
165165
# 1.5x speedup
166166
mainDol.seek(mapper.boomToFileAddress(0x80818fa8))
167167
mainDol.write(b'\x3F\xB0\x03\x47')
168+
# change auction timer to account for speedup
169+
mainDol.seek(mapper.boomToFileAddress(0x80815730))
170+
mainDol.write((7).to_bytes(4,'big'))
168171
# Memory Block: Always Small Blocks
169172
mainDol.seek(mapper.boomToFileAddress(0x800eec88))
170173
mainDol.write(b'\x3B\xC0\x00\x00')
@@ -182,6 +185,16 @@ def saveFiles(self, root, gameInstance, modList):
182185
# Fix AI 98-Stock Exploit (makes AI tank your stocks even if you have 98 or fewer)
183186
mainDol.seek(mapper.boomToFileAddress(0x800A3C10))
184187
mainDol.write(b'\x2C\x00\x00\x01')
188+
# Skip Splash Screens
189+
for dolAddr in (0x10D40, 0x10D44): #0x800159A0, 0x800159A4
190+
mainDol.seek(dolAddr)
191+
mainDol.write(b'\x60\x00\x00\x00')
192+
mainDol.seek(0x13220) #0x80017E80
193+
mainDol.write(b'\x39\xc0\x00\x01')
194+
mainDol.seek(0x13224) #0x80017E84
195+
mainDol.write(b'\x91\xdf\x00\x10')
196+
mainDol.seek(mapper.boomToFileAddress(0x801e9a18))
197+
mainDol.write(b'\x40\x82\x00\x10')
185198

186199
def saveUiMessages(self):
187200
return {f'files/localize/ui_message.{k}.csv':

0 commit comments

Comments
 (0)