Pretty Speedometer [stebler]
#71
(03-14-2022, 10:29 PM)stebler Wrote: Yes, by replacing c3a6 for P1 and P3 and 43ac for P2 and P4. All values are the 2 upper bytes of 32-bit floating point (you can convert with https://www.h-schmidt.net/FloatConverter/IEEE754.html) and are listed in the 4th asm source.

Thank you for all !
Reply
#72
Is there any way to add the km/h text on version 2.0?
Reply
#73
Here you go. Replace the *4th* C2 Code with this new C2 code. I had to prepend the speed with null bytes when needed or else there is a dynamic vertical squishing effect on the km/h text when the amount of digits for the speed changes. This isn't an inssue in the old speedometer code. There may be a printf 'trick' to avoid this, idk. Or maybe this is an inherent property to the text itself. Maybe Stebler can chime in why.

@Stebler; Maybe it would be best to add a page on your mkw-sp website for a user to select/configure their own "version" of this code, and then they can download it as a gecko code or as a finished GCT.

Code:
PAL
C27ed1d8 00000023
887E0081 2C030000
40820104 8BFE0190
3C60809C 8063D728
7C63FA14 88830B84
3C60809C 806318F8
80630020 5484103A
7C63202E 80630000
80630028 C0230020
38610008 38800020
48000025 001A0800
00010030 00250030
0036002E 00320066
0020006B 006D002F
00680000 7CA802A6
4CC63242 3D808001
618C7814 7D8903A6
4E800421 38810010
387F0030 3CA0809C
80A5D728 1CDF00F0
7CA53214 80A500F4
2C050002 41820008
38650020 B064FFFE
A0640000 2C030000
41820038 2C03002D
40820008 3860246D
2C03002E 40820008
3860246B 38A3FFD0
28050009 41810008
38652460 B0640000
38840001 4BFFFFC4
7FC3F378 38810008
38A00000 3D808063
618CDDB4 7D8903A6
4E800421 800100E4
60000000 00000000

NTSC-U
C27e392c 00000023
887E0081 2C030000
40820104 8BFE0190
3C60809C 80638F68
7C63FA14 88830B84
3C60809C 8063D110
80630020 5484103A
7C63202E 80630000
80630028 C0230020
38610008 38800020
48000025 001A0800
00010030 00250030
0036002E 00320066
0020006B 006D002F
00680000 7CA802A6
4CC63242 3D808001
618C6CB4 7D8903A6
4E800421 38810010
387F0030 3CA0809C
80A58F68 1CDF00F0
7CA53214 80A500F4
2C050002 41820008
38650020 B064FFFE
A0640000 2C030000
41820038 2C03002D
40820008 3860246D
2C03002E 40820008
3860246B 38A3FFD0
28050009 41810008
38652460 B0640000
38840001 4BFFFFC4
7FC3F378 38810008
38A00000 3D808060
618CC994 7D8903A6
4E800421 800100E4
60000000 00000000

NTSC-J
C27ec844 00000023
887E0081 2C030000
40820104 8BFE0190
3C60809C 8063C788
7C63FA14 88830B84
3C60809C 80630958
80630020 5484103A
7C63202E 80630000
80630028 C0230020
38610008 38800020
48000025 001A0800
00010030 00250030
0036002E 00320066
0020006B 006D002F
00680000 7CA802A6
4CC63242 3D808001
618C7738 7D8903A6
4E800421 38810010
387F0030 3CA0809C
80A5C788 1CDF00F0
7CA53214 80A500F4
2C050002 41820008
38650020 B064FFFE
A0640000 2C030000
41820038 2C03002D
40820008 3860246D
2C03002E 40820008
3860246B 38A3FFD0
28050009 41810008
38652460 B0640000
38840001 4BFFFFC4
7FC3F378 38810008
38A00000 3D808063
618CD420 7D8903A6
4E800421 800100E4
60000000 00000000

NTSC-K
C27db598 00000023
887E0081 2C030000
40820104 8BFE0190
3C60809B 8063BD68
7C63FA14 88830B84
3C60809B 8063FF38
80630020 5484103A
7C63202E 80630000
80630028 C0230020
38610008 38800020
48000025 001A0800
00010030 00250030
0036002E 00320066
0020006B 006D002F
00680000 7CA802A6
4CC63242 3D808001
618C787C 7D8903A6
4E800421 38810010
387F0030 3CA0809B
80A5BD68 1CDF00F0
7CA53214 80A500F4
2C050002 41820008
38650020 B064FFFE
A0640000 2C030000
41820038 2C03002D
40820008 3860246D
2C03002E 40820008
3860246B 38A3FFD0
28050009 41810008
38652460 B0640000
38840001 4BFFFFC4
7FC3F378 38810008
38A00000 3D808062
618CC0CC 7D8903A6
4E800421 800100E4
60000000 00000000

If you want the km/h underneath, here's this (a slight horizontal squish on km/h can be seen)...

Code:
PAL
C27ed1d8 00000022
887E0081 2C030000
40820100 8BFE0190
3C60809C 8063D728
7C63FA14 88830B84
3C60809C 806318F8
80630020 5484103A
7C63202E 80630000
80630028 C0230020
38610008 38800014
48000021 001A0800
00010030 0025002E
00320066 000A006B
006D002F 00680000
7CA802A6 4CC63242
3D808001 618C7814
7D8903A6 4E800421
38810010 387F0030
3CA0809C 80A5D728
1CDF00F0 7CA53214
80A500F4 2C050002
41820008 38650020
B064FFFE A0640000
2C030000 41820038
2C03002D 40820008
3860246D 2C03002E
40820008 3860246B
38A3FFD0 28050009
41810008 38652460
B0640000 38840001
4BFFFFC4 7FC3F378
38810008 38A00000
3D808063 618CDDB4
7D8903A6 4E800421
800100E4 00000000

NTSC-U
C27e392c 00000022
887E0081 2C030000
40820100 8BFE0190
3C60809C 80638F68
7C63FA14 88830B84
3C60809C 8063D110
80630020 5484103A
7C63202E 80630000
80630028 C0230020
38610008 38800014
48000021 001A0800
00010030 0025002E
00320066 000A006B
006D002F 00680000
7CA802A6 4CC63242
3D808001 618C6CB4
7D8903A6 4E800421
38810010 387F0030
3CA0809C 80A58F68
1CDF00F0 7CA53214
80A500F4 2C050002
41820008 38650020
B064FFFE A0640000
2C030000 41820038
2C03002D 40820008
3860246D 2C03002E
40820008 3860246B
38A3FFD0 28050009
41810008 38652460
B0640000 38840001
4BFFFFC4 7FC3F378
38810008 38A00000
3D808060 618CC994
7D8903A6 4E800421
800100E4 00000000

NTSC-J
C27ec844 00000022
887E0081 2C030000
40820100 8BFE0190
3C60809C 8063C788
7C63FA14 88830B84
3C60809C 80630958
80630020 5484103A
7C63202E 80630000
80630028 C0230020
38610008 38800014
48000021 001A0800
00010030 0025002E
00320066 000A006B
006D002F 00680000
7CA802A6 4CC63242
3D808001 618C7738
7D8903A6 4E800421
38810010 387F0030
3CA0809C 80A5C788
1CDF00F0 7CA53214
80A500F4 2C050002
41820008 38650020
B064FFFE A0640000
2C030000 41820038
2C03002D 40820008
3860246D 2C03002E
40820008 3860246B
38A3FFD0 28050009
41810008 38652460
B0640000 38840001
4BFFFFC4 7FC3F378
38810008 38A00000
3D808063 618CD420
7D8903A6 4E800421
800100E4 00000000

NTSC-K
C27dc844 00000022
887E0081 2C030000
40820100 8BFE0190
3C60809B 8063BD68
7C63FA14 88830B84
3C60809B 8063FF38
80630020 5484103A
7C63202E 80630000
80630028 C0230020
38610008 38800014
48000021 001A0800
00010030 0025002E
00320066 000A006B
006D002F 00680000
7CA802A6 4CC63242
3D808001 618C787C
7D8903A6 4E800421
38810010 387F0030
3CA0809B 80A5BD68
1CDF00F0 7CA53214
80A500F4 2C050002
41820008 38650020
B064FFFE A0640000
2C030000 41820038
2C03002D 40820008
3860246D 2C03002E
40820008 3860246B
38A3FFD0 28050009
41810008 38652460
B0640000 38840001
4BFFFFC4 7FC3F378
38810008 38A00000
3D808062 618CC0CC
7D8903A6 4E800421
800100E4 00000000
Reply
#74
(11-01-2022, 01:07 AM)Vega Wrote: Here you go. Replace the *4th* C2 Code with this new C2 code. I had to prepend the speed with null bytes when needed or else there is a dynamic vertical squishing effect on the km/h text when the amount of digits for the speed changes. This isn't an inssue in the old speedometer code. There may be a printf 'trick' to avoid this, idk. Or maybe this is an inherent property to the text itself. Maybe Stebler can chime in why.

@Stebler; Maybe it would be best to add a page on your mkw-sp website for a user to select/configure their own "version" of this code, and then they can download it as a gecko code or as a finished GCT.

Code:
PAL
C27ed1d8 00000023
887E0081 2C030000
40820104 8BFE0190
3C60809C 8063D728
7C63FA14 88830B84
3C60809C 806318F8
80630020 5484103A
7C63202E 80630000
80630028 C0230020
38610008 38800020
48000025 001A0800
00010030 00250030
0036002E 00320066
0020006B 006D002F
00680000 7CA802A6
4CC63242 3D808001
618C7814 7D8903A6
4E800421 38810010
387F0030 3CA0809C
80A5D728 1CDF00F0
7CA53214 80A500F4
2C050002 41820008
38650020 B064FFFE
A0640000 2C030000
41820038 2C03002D
40820008 3860246D
2C03002E 40820008
3860246B 38A3FFD0
28050009 41810008
38652460 B0640000
38840001 4BFFFFC4
7FC3F378 38810008
38A00000 3D808063
618CDDB4 7D8903A6
4E800421 800100E4
60000000 00000000

NTSC-U
C27e392c 00000023
887E0081 2C030000
40820104 8BFE0190
3C60809C 80638F68
7C63FA14 88830B84
3C60809C 8063D110
80630020 5484103A
7C63202E 80630000
80630028 C0230020
38610008 38800020
48000025 001A0800
00010030 00250030
0036002E 00320066
0020006B 006D002F
00680000 7CA802A6
4CC63242 3D808001
618C6CB4 7D8903A6
4E800421 38810010
387F0030 3CA0809C
80A58F68 1CDF00F0
7CA53214 80A500F4
2C050002 41820008
38650020 B064FFFE
A0640000 2C030000
41820038 2C03002D
40820008 3860246D
2C03002E 40820008
3860246B 38A3FFD0
28050009 41810008
38652460 B0640000
38840001 4BFFFFC4
7FC3F378 38810008
38A00000 3D808060
618CC994 7D8903A6
4E800421 800100E4
60000000 00000000

NTSC-J
C27ec844 00000023
887E0081 2C030000
40820104 8BFE0190
3C60809C 8063C788
7C63FA14 88830B84
3C60809C 80630958
80630020 5484103A
7C63202E 80630000
80630028 C0230020
38610008 38800020
48000025 001A0800
00010030 00250030
0036002E 00320066
0020006B 006D002F
00680000 7CA802A6
4CC63242 3D808001
618C7738 7D8903A6
4E800421 38810010
387F0030 3CA0809C
80A5C788 1CDF00F0
7CA53214 80A500F4
2C050002 41820008
38650020 B064FFFE
A0640000 2C030000
41820038 2C03002D
40820008 3860246D
2C03002E 40820008
3860246B 38A3FFD0
28050009 41810008
38652460 B0640000
38840001 4BFFFFC4
7FC3F378 38810008
38A00000 3D808063
618CD420 7D8903A6
4E800421 800100E4
60000000 00000000

NTSC-K
C27db598 00000023
887E0081 2C030000
40820104 8BFE0190
3C60809B 8063BD68
7C63FA14 88830B84
3C60809B 8063FF38
80630020 5484103A
7C63202E 80630000
80630028 C0230020
38610008 38800020
48000025 001A0800
00010030 00250030
0036002E 00320066
0020006B 006D002F
00680000 7CA802A6
4CC63242 3D808001
618C787C 7D8903A6
4E800421 38810010
387F0030 3CA0809B
80A5BD68 1CDF00F0
7CA53214 80A500F4
2C050002 41820008
38650020 B064FFFE
A0640000 2C030000
41820038 2C03002D
40820008 3860246D
2C03002E 40820008
3860246B 38A3FFD0
28050009 41810008
38652460 B0640000
38840001 4BFFFFC4
7FC3F378 38810008
38A00000 3D808062
618CC0CC 7D8903A6
4E800421 800100E4
60000000 00000000

If you want the km/h underneath, here's this (a slight horizontal squish on km/h can be seen)...

Code:
PAL
C27ed1d8 00000022
887E0081 2C030000
40820100 8BFE0190
3C60809C 8063D728
7C63FA14 88830B84
3C60809C 806318F8
80630020 5484103A
7C63202E 80630000
80630028 C0230020
38610008 38800014
48000021 001A0800
00010030 0025002E
00320066 000A006B
006D002F 00680000
7CA802A6 4CC63242
3D808001 618C7814
7D8903A6 4E800421
38810010 387F0030
3CA0809C 80A5D728
1CDF00F0 7CA53214
80A500F4 2C050002
41820008 38650020
B064FFFE A0640000
2C030000 41820038
2C03002D 40820008
3860246D 2C03002E
40820008 3860246B
38A3FFD0 28050009
41810008 38652460
B0640000 38840001
4BFFFFC4 7FC3F378
38810008 38A00000
3D808063 618CDDB4
7D8903A6 4E800421
800100E4 00000000

NTSC-U
C27e392c 00000022
887E0081 2C030000
40820100 8BFE0190
3C60809C 80638F68
7C63FA14 88830B84
3C60809C 8063D110
80630020 5484103A
7C63202E 80630000
80630028 C0230020
38610008 38800014
48000021 001A0800
00010030 0025002E
00320066 000A006B
006D002F 00680000
7CA802A6 4CC63242
3D808001 618C6CB4
7D8903A6 4E800421
38810010 387F0030
3CA0809C 80A58F68
1CDF00F0 7CA53214
80A500F4 2C050002
41820008 38650020
B064FFFE A0640000
2C030000 41820038
2C03002D 40820008
3860246D 2C03002E
40820008 3860246B
38A3FFD0 28050009
41810008 38652460
B0640000 38840001
4BFFFFC4 7FC3F378
38810008 38A00000
3D808060 618CC994
7D8903A6 4E800421
800100E4 00000000

NTSC-J
C27ec844 00000022
887E0081 2C030000
40820100 8BFE0190
3C60809C 8063C788
7C63FA14 88830B84
3C60809C 80630958
80630020 5484103A
7C63202E 80630000
80630028 C0230020
38610008 38800014
48000021 001A0800
00010030 0025002E
00320066 000A006B
006D002F 00680000
7CA802A6 4CC63242
3D808001 618C7738
7D8903A6 4E800421
38810010 387F0030
3CA0809C 80A5C788
1CDF00F0 7CA53214
80A500F4 2C050002
41820008 38650020
B064FFFE A0640000
2C030000 41820038
2C03002D 40820008
3860246D 2C03002E
40820008 3860246B
38A3FFD0 28050009
41810008 38652460
B0640000 38840001
4BFFFFC4 7FC3F378
38810008 38A00000
3D808063 618CD420
7D8903A6 4E800421
800100E4 00000000

NTSC-K
C27dc844 00000022
887E0081 2C030000
40820100 8BFE0190
3C60809B 8063BD68
7C63FA14 88830B84
3C60809B 8063FF38
80630020 5484103A
7C63202E 80630000
80630028 C0230020
38610008 38800014
48000021 001A0800
00010030 0025002E
00320066 000A006B
006D002F 00680000
7CA802A6 4CC63242
3D808001 618C787C
7D8903A6 4E800421
38810010 387F0030
3CA0809B 80A5BD68
1CDF00F0 7CA53214
80A500F4 2C050002
41820008 38650020
B064FFFE A0640000
2C030000 41820038
2C03002D 40820008
3860246D 2C03002E
40820008 3860246B
38A3FFD0 28050009
41810008 38652460
B0640000 38840001
4BFFFFC4 7FC3F378
38810008 38A00000
3D808062 618CC0CC
7D8903A6 4E800421
800100E4 00000000

Thank you!
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)