-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathhacks_TDU_ULUS10249.ini.db
77 lines (77 loc) · 3.55 KB
/
hacks_TDU_ULUS10249.ini.db
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
_S ULUS10249
_G Test Drive Unlimited [USA]
// # HIGHLY RECOMMENDED
// Get a "remove ugly effect" hack from, https://github.com/LunaMoo/PPSSPP_workarounds/
// Which improves both graphics & performance **dramatically** (thrice both!)
//
// # Usage
// 1. Activate the cheat of "Paint in secret colour [Enable]"
// 2. Travel to a paint shop
// 3. Paint with any colour (the same colour should be OK)
// 4. Enjoy the amazing (or sometimes boring) secret colour called "DESIGNO MOCHA BLACK"
// 5. (Optional) Go back to the paint shop, ensure you get the secret colour of "DESIGNO MOCHA BLACK"
//
_C0 Paint in secret colour [Enable]
_L 0xE0020011 0x00154AAC // check, 1/2
_L 0xE00110A3 0x00154AAE // check, 2/2
_L 0x20154AAC 0x2405FFFE // asm("li a1, hex(-2)"). Notice for halfword, -2 => FFFE
//
_C0 Paint in secret colour [Disable]
_L 0xE002FFFE 0x00154AAC // check, 1/2
_L 0xE0012405 0x00154AAE // check, 2/2
_L 0x20154AAC 0x10A30011 // original boring instruction
//
// # For developers
// 08954AAC:10A30011 // orig, performs a useless check
// 08954AAC:2405FFFE // mod
//
// ## Known ranges (from observations, may be incorrect)
// * ( -inf .. -2 ] -> "DESIGNO MOCHA BLACK" [Often causes crashes at not-equal -2]
// * -1 -> (last used colour)
// * [0 .. ~10] -> valid colour ranges
// * (10 .. +inf ) -> same as colour at 0 (first colour at the paint shop)
//
// ## Misc
// "DESIGNO MOCHA BLACK" - the textbox seems to be malfunctioning
// Pointer to the currently driven vehicle doesn't (seem to) exist. The functions (seem to) look up the currently driven vehicle every time, among all owned vehicles. Hence, and also from the realism perspectve, the hack is implemented at the paint shop
// For further discussion, feel free to contact at PPSSPP Discord -> patches-textures-mods
// Cheers!
//
// game reads the return pos 2 times for actually returning AND both times TP occurs (spaghetti code?) when exiting map:
// in 08A1D250 and 08A87B74
// The patch below modifies the 08A1D250 reading, since:
// * it seems to be less glitchy (in game map works correctly)
// * earlier read
// Unlike for the deprecated hack, glitches are unlikely.
// However, happen they occur, please report them
_C0 TP to marker - main [Enable]
_L 0xE00308D5 0x0021D1D8 // check, 1/4 (2/4 skipped for perf)
_L 0xE0029414 0x0021D1E0 // check, 3/4 (4/4 skipped for perf)
_L 0x2021D1D8 0x3C0408D6 // new, 1/2
_L 0x2021D1E0 0x248422AC // new, 2/2
//
_C0 TP to marker - main [Disable]
_L 0xE00308D6 0x0021D1D8 // check, 1/4 (2/4 skipped for perf)
_L 0xE00222AC 0x0021D1E0 // check, 3/4 (4/4 skipped for perf)
_L 0x2021D1D8 0x3C0408D5 // old, 1/2
_L 0x2021D1E0 0x24849414 // old, 2/2
//
// lets you put the marker anywhere (even in the no-go areas),
// though the game still "approximates" to the appropriate marker pos
// this hack brings teleportation anywhere one step closer
// assert 08A1F0D0 == 0E28A437
// modify 08A1F0D8 thereafter ( 305100FF --> 34110001 )
_C0 TP to marker - Disobey land-marking blacklist [Enable]
_L 0xE004A437 0x0021F0D0 // check, 1/4, characteristic "jal" call
_L 0xE0030E28 0x0021F0D2 // check, 2/4, characteristic "jal" call
_L 0xE00200FF 0x0021F0D8 // check, 3/4, "andi s1,v0,0xFF"
_L 0xE0013051 0x0021F0DA // check, 4/4, "andi s1,v0,0xFF"
_L 0x2021F0D8 0x34110001 // new opcode
//
_C0 TP to marker - Disobey land-marking blacklist [Disable]
_L 0xE004A437 0x0021F0D0 // check, 1/4, characteristic "jal" call
_L 0xE0030E28 0x0021F0D2 // check, 2/4, characteristic "jal" call
_L 0xE0020001 0x0021F0D8 // check, 3/4, modded opcode
_L 0xE0013411 0x0021F0DA // check, 4/4, modded opcode
_L 0x2021F0D8 0x305100FF // orig opcode
//