Welcome, Guest |
You have to register before you can post on our site.
|
Forum Statistics |
» Members: 646
» Latest member: Luca1337
» Forum threads: 1,815
» Forum posts: 14,002
Full Statistics
|
Online Users |
There are currently 81 online users. » 0 Member(s) | 79 Guest(s) Bing, Google
|
Latest Threads |
MKW Coder/Developer of th...
Forum: Coding & Hacking General Discussion
Last Post: Fifty
5 hours ago
» Replies: 11
» Views: 13,873
|
Make it to 10,000
Forum: General Discussion
Last Post: Fifty
5 hours ago
» Replies: 7,339
» Views: 5,672,886
|
Allow Pausing Before Race...
Forum: Offline Non-Item
Last Post: Vega
Yesterday, 07:47 PM
» Replies: 0
» Views: 22
|
Top 10 Most Influential C...
Forum: Coding & Hacking General Discussion
Last Post: Vega
Yesterday, 03:27 PM
» Replies: 2
» Views: 7,362
|
Show Ice Cube on Online P...
Forum: Online Non-Item
Last Post: _Ro
Yesterday, 08:23 AM
» Replies: 0
» Views: 37
|
CPU Control Cycler [Ro]
Forum: Offline Non-Item
Last Post: _Ro
Yesterday, 07:56 AM
» Replies: 7
» Views: 1,021
|
Thunder Cloud Effect Modi...
Forum: Offline; Item
Last Post: JerryHatrick
01-10-2025, 11:13 PM
» Replies: 11
» Views: 1,100
|
Miniturbos and Inside Dri...
Forum: Coding & Hacking General Discussion
Last Post: JerryHatrick
01-10-2025, 09:54 AM
» Replies: 1
» Views: 861
|
Code request???
Forum: Code Support / Help / Requests
Last Post: DrTap
01-09-2025, 06:06 PM
» Replies: 3
» Views: 4,964
|
CPUs/Online Players Have ...
Forum: Visual & Sound Effects
Last Post: Zeraora
01-09-2025, 02:26 AM
» Replies: 2
» Views: 516
|
|
|
Respawn Height Modifier [davidevgen] |
Posted by: JoshuaMK - 11-09-2019, 07:51 AM - Forum: Offline Non-Item
- No Replies
|
|
Respawn Height Modifier [davidevgen]
NTSC-U
048B12F8 XXXXXXXX
PAL
048B5BB8 XXXXXXXX
NTSC-J
048B4D18 XXXXXXXX
NTSC-K
048A4030 XXXXXXXX
Normal Value = 442F0000
Code created by: davidevgen
|
|
|
Code Requests |
Posted by: Vega - 11-08-2019, 11:01 PM - Forum: Code Support / Help / Requests
- Replies (6)
|
|
If any coder out there has some spare time, can you attempt to make the following codes? (I don't have much time myself and I lack creativity tbh)
- Auto POW Dodge (the current POW blocker code shows to others that you cheated the pow blocker)
- Millisecond Display Modifier that works in Battle
- Auto Press A at Wii Remote strap screen
- (For usa game only) Never display the ESRB rating screen, bypass it
- A 100% true invincible code (the current one is nearly perfect, but quite not there)
|
|
|
Random Halfword Generator PPC ASM |
Posted by: Vega - 11-08-2019, 09:23 PM - Forum: Coding & Hacking General Discussion
- Replies (3)
|
|
This is my attempt of writing the Middle Square Theorem (using the Weyl sequence to prevent convergence). I had to 'downsize' though since my Seed is 32 bits instead of 64. Thus, halfword output is used for the random output instead of a word.
The seed is using the lower 32 bits of the TB. Ofc, including the upper 32 bits is not a good idea.
For more info, visit this link - https://pthree.org/2018/07/30/middle-squ...ence-prng/
======
Args:
r3 = the amount of cycles the generator will do before spitting the output. All values treated logically. If the user puts 0 as the value, it is auto adjusted to 4.
Source: #The following snippet of code is meant to be used as a subroutine reached via a branch-link instruction
cmpwi r3, 0
bne+ move_to_ctr
li r3, 4 #If user sets r3 arg to 0, adjust it to 4.
move_to_ctr:
mtctr r3 #LR doesn't need to be backed up for this subroutine
mftbl r4 #Seed register
li r3, 0 #Square-value register, start at 0
li r5, 0 #Starting Weyl variable, start at 0
clrlwi. r0, r4, 31 #Seed needs to be an odd number
bne- loop
addi r4, r4, 1 #Make seed odd
loop:
mullw r3, r3, r3 #Square the Value
add r5, r4, r5 #Add the constant seed to Weyl variable. Result is new Weyl variable
add r3, r3, r5 #Add Weyl variable to squared value
srwi r3, r3, 16 #Place upper 16 bits into lower 16 bits, upper 16 bits are now cleared
bdnz+ loop
blr #r3 contains random halfword result
|
|
|
Instant Acceleration [Bully] |
Posted by: Vega - 11-08-2019, 09:00 PM - Forum: Offline Non-Item
- No Replies
|
|
Instant Acceleration [Bully]
NTSC-U
C2575030 00000002
3D804300 91830020
C0430020 00000000
PAL
C257B894 00000002
3D804300 91830020
C0430020 00000000
NTSC-J
C257B214 00000002
3D804300 91830020
C0430020 00000000
NTSC-K
C25698EC 00000002
3D804300 91830020
C0430020 00000000
Source:
lis r12, 0x4300
stw r12, 00020 (r3)
lfs f2, 0x0020 (r3) #Default Instruction
Code creator: Bully
|
|
|
Vehicle Stats Modifier [JoshuaMK] |
Posted by: JoshuaMK - 11-02-2019, 06:19 AM - Forum: Offline Non-Item
- Replies (7)
|
|
Vehicle Stats Modifier [JoshuaMK]
This code edits MOST of the stats for all vehicles. Doesn't include turning sharpness while in certain types of road since that would double the length of this code. Also, this code hooks right after the values are initially set, meaning with this code, all vehicles are the same and viable, no matter what character you choose.
This code uses 0x80001100 through 0x80001198 of the Exception Vector Area. Please ensure no other codes utilize this area.
(NTSC-U)
06001100 00000098
WWWWWWWW SSSSSSSS
STSTSTST A0A0A0A0
A1A1A1A1 A2A2A2A2
A3A3A3A3 AEAEAEAE
A0DRFTA0 A1DRFTA1
A2DRFTA2 A3DRFTA3
AEDRFTAE MHTITEMH
AHTITEAH HRHRHRHR
MDTITEMD ADTITEAD
DRDRDRDR DSDSDSDS
DENDDEND MINITRBO
ROADROAD SLIPROAD
WEAKROAD OFFFROAD
HEAVROAD SLIPOFFR
BOOSTPAD BOOSTRMP
JUMPPADD ITEMROAD
SOLIDFAL MOVEROAD
MOVROAD2 STIKROAD
ROADROAD MOVROAD3
C258BBC8 0000000A
D005010C BDC1FF80
7EA902A6 28150001
41A10038 3DC08000
B9EE1100 61CE1100
91E30010 92030018
9223001C BE430024
B9EE0044 BDE30050
BBAE0088 BFA30144
83EE0094 93EE0164
B9C1FF80 00000000
(PAL)
06001100 00000098
WWWWWWWW SSSSSSSS
STSTSTST A0A0A0A0
A1A1A1A1 A2A2A2A2
A3A3A3A3 AEAEAEAE
A0DRFTA0 A1DRFTA1
A2DRFTA2 A3DRFTA3
AEDRFTAE MHTITEMH
AHTITEAH HRHRHRHR
MDTITEMD ADTITEAD
DRDRDRDR DSDSDSDS
DENDDEND MINITRBO
ROADROAD SLIPROAD
WEAKROAD OFFFROAD
HEAVROAD SLIPOFFR
BOOSTPAD BOOSTRMP
JUMPPADD ITEMROAD
SOLIDFAL MOVEROAD
MOVROAD2 STIKROAD
ROADROAD MOVROAD3
C25923EC 0000000A
D005010C BDC1FF80
7EA902A6 28150001
41A10038 3DC08000
B9EE1100 61CE1100
91E30010 92030018
9223001C BE430024
B9EE0044 BDE30050
BBAE0088 BFA30144
83EE0094 93EE0164
B9C1FF80 00000000
(NTSC-J)
06001100 00000098
WWWWWWWW SSSSSSSS
STSTSTST A0A0A0A0
A1A1A1A1 A2A2A2A2
A3A3A3A3 AEAEAEAE
A0DRFTA0 A1DRFTA1
A2DRFTA2 A3DRFTA3
AEDRFTAE MHTITEMH
AHTITEAH HRHRHRHR
MDTITEMD ADTITEAD
DRDRDRDR DSDSDSDS
DENDDEND MINITRBO
ROADROAD SLIPROAD
WEAKROAD OFFFROAD
HEAVROAD SLIPOFFR
BOOSTPAD BOOSTRMP
JUMPPADD ITEMROAD
SOLIDFAL MOVEROAD
MOVROAD2 STIKROAD
ROADROAD MOVROAD3
C2591D6C 0000000A
D005010C BDC1FF80
7EA902A6 28150001
41A10038 3DC08000
B9EE1100 61CE1100
91E30010 92030018
9223001C BE430024
B9EE0044 BDE30050
BBAE0088 BFA30144
83EE0094 93EE0164
B9C1FF80 00000000
(NTSC-K)
06001100 00000098
WWWWWWWW SSSSSSSS
STSTSTST A0A0A0A0
A1A1A1A1 A2A2A2A2
A3A3A3A3 AEAEAEAE
A0DRFTA0 A1DRFTA1
A2DRFTA2 A3DRFTA3
AEDRFTAE MHTITEMH
AHTITEAH HRHRHRHR
MDTITEMD ADTITEAD
DRDRDRDR DSDSDSDS
DENDDEND MINITRBO
ROADROAD SLIPROAD
WEAKROAD OFFFROAD
HEAVROAD SLIPOFFR
BOOSTPAD BOOSTRMP
JUMPPADD ITEMROAD
SOLIDFAL MOVEROAD
MOVROAD2 STIKROAD
ROADROAD MOVROAD3
C2580444 0000000A
D005010C BDC1FF80
7EA902A6 28150001
41A10038 3DC08000
B9EE1100 61CE1100
91E30010 92030018
9223001C BE430024
B9EE0044 BDE30050
BBAE0088 BFA30144
83EE0094 93EE0164
B9C1FF80 00000000
GUIDE
I would firstly suggest using Atlas's kartparam.bin editor, to get an idea of what values to use, and I would finally suggest using a floating point calculator to convert wanted values like (0.5) into hex (3F000000) to put into this code.
WWWW = Weight
SSSSSS = Speed
STSTST = Speed While Turning Multiplier
A0A0A0 = Acceleration Stage 0
A1A1A1 = Acceleration Stage 1
A2A2A2 = Acceleration Stage 2
A3A3A3 = Acceleration Stage 3
AEAEAE = Acceleration Exponent
A0DRFTA0 = Acceleration While Drifting Stage 0
A1DRFTA1 = Acceleration While Drifting Stage 1
A2DRFTA2 = Acceleration While Drifting Stage 2
A3DRFTA3 = Acceleration While Drifting Stage 3
AEDRFTAE = Acceleration Exponent While Drifting
MHTITEMH = Manual Handling Tightness
AHTITEAH = Automatic Handling Tightness
HRHRHR = Handling Range
MDTITEMD = Manual Drifting Tightness
ADTITEAD = Automatic Drifting Tightness
DRDRDR = Drifting Range
DSDSDS = Drift Start
DENDDEND = Drift End Correction
MINITRBO = Miniturbo Duration (00000009 = 9 frame duration)
ROADROAD = Normal Road Speed Multiplier
SLIPROAD = Slippery Road Speed Multiplier
WEAKROAD = Weak Offroad Speed Multiplier
OFFFROAD = Normal Offroad Speed Multiplier
HEAVROAD = Heavy Offroad Speed Multiplier
SLIPOFFR = Slippery Offroad Speed Multiplier
BOOSTPAD = Boost Pad Speed Multiplier
BOOSTRMP = Boost Ramp Speed Multipler
JUMPPADD = Jump Pad Speed Multiplier
ITEMROAD = Item Road Speed Multiplier
SOLIDFAL = Solid Fall Speed Multiplier
MOVEROAD = Moving Road Speed Multiplier
MOVROAD2 = Moving Road 2 Speed Multiplier
STIKROAD = Sticky Road Speed Multiplier
ROADROAD = Normal Road 2 Speed Multiplier
MOVROAD3 = Moving Road 3 Speed Multiplier
#ASM
#~~~~~~~~~~~~#
#Inject > 8058BBC8#
#~~~~~~~~~~~#
stfs f0, 0x010C (r5) #Default instruction
stmw r14, -0x80 (r1)
mfctr r21
cmplwi r21, 1
bgt+ dont_modify
lis r14, 0x8000
lmw r15, 0x1100 (r14)
ori r14, r14, 0x1100
stw r15, 0x10 (r3)
stw r16, 0x18 (r3)
stw r17, 0x1C (r3)
stmw r18, 0x24 (r3)
lmw r15, 0x44 (r14)
stmw r15, 0x5C (r3)
lmw r29, 0x88 (r14)
stmw r29, 0x144 (r3)
lwz r31, 0x94 (r14)
stw r31, 0x164 (r14)
dont_modify:
lmw r14, -0x80 (r1)
Code Creator: JoshuaMK
|
|
|
1st Person Camera View [JoshuaMK, mdmwii] |
Posted by: JoshuaMK - 11-01-2019, 08:54 PM - Forum: Visual & Sound Effects
- No Replies
|
|
1st Person Camera View [JoshuaMK, mdmwii]
Includes a fix for the balloons getting in view, some optimizations, and gets rid of character instead of squashing them.
(NTSC-U)
C2597F18 00000003
3E408000 C3721570
EC00D82A D01C0104
60000000 00000000
C2597FDC 00000003
3E408000 C3721574
EC42D82A D0430004
60000000 00000000
C25988D0 00000003
C358004C 3E408000
C3721578 60000000
D378004C 00000000
04001570 40000000
04001578 43A80000
00558F98 00000040
00558FA0 00000040
00558FC8 00000040
0487B83C 38C0000A
0487C6F4 60000000
(PAL)
C25A2F50 00000003
3E408000 C3721570
EC00D82A D01C0104
60000000 00000000
C25A3014 00000003
3E408000 C3721574
EC42D82A D0430004
60000000 00000000
C25A3908 00000003
C358004C 3E408000
C3721578 60000000
D378004C 00000000
04001570 40000000
04001578 43A80000
0055D318 00000040
0055D320 00000040
0055D348 00000040
0486F4C4 38C0000A
0487037C 60000000
(NTSC-J)
C25A28D0 00000003
3E408000 C3721570
EC00D82A D01C0104
60000000 00000000
C25A2994 00000003
3E408000 C3721574
EC42D82A D0430004
60000000 00000000
C25A3288 00000003
C358004C 3E408000
C3721578 60000000
D378004C 00000000
04001570 40000000
04001578 43A80000
0055CC98 00000040
0055CCA0 00000040
0055CCC8 00000040
0486EB30 38C0000A
0486F9E8 60000000
(NTSC-K)
C2590FA8 00000003
3E408000 C3721570
EC00D82A D01C0104
60000000 00000000
C259106C 00000003
3E408000 C3721574
EC42D82A D0430004
60000000 00000000
C2591960 00000003
C358004C 3E408000
C3721578 60000000
D378004C 00000000
04001570 40000000
04001578 43A80000
0054B370 00000040
0054B378 00000040
0054B3A0 00000040
0485D884 38C0000A
0485E73C 60000000
Code Creator: JoshuaMK, mdmwii
|
|
|
Disable Battle Mode Button [JoshuaMK] |
Posted by: JoshuaMK - 11-01-2019, 07:45 AM - Forum: Misc/Other
- Replies (10)
|
|
Disable Battle Mode Button [JoshuaMK]
Good for CT-CODE distributions. Disables being able to advance in the menus when selected on Battle. Has a side effect of not being able to back out when battle is selected.
(NTSC-U)
C2635FA4 00000005
90830178 3CA0805D
39600018 2C040003
4182000C 656B4182
48000008 656B4800
916544E8 00000000
(PAL)
C25F2E88 00000005
90830178 3CA0805F
39600018 2C040003
4182000C 656B4182
48000008 656B4800
9165EFBC 00000000
(NTSC-J)
C25F2764 00000005
90830178 3CA0805F
39600018 2C040003
4182000C 656B4182
48000008 656B4800
9165E898 00000000
(NTSC-K)
C25E12A8 00000005
90830178 3CA0805E
39600018 2C040003
4182000C 656B4182
48000008 656B4800
9165D3DC 00000000
stw r4, 0x178 (r3) #Default Instruction
.set region, '' #Set e, p, j, or k for compilation region
.if (region == 'E' || region == 'e') # RMCE
lis r5, 0x805D
.elseif (region == 'P' || region == 'p') # RMCP
lis r5, 0x805F #Add 0x1 to 0x805E cuz 2nd half address exceeds 0x7FFF
.elseif (region == 'J' || region == 'j') # RMCJ
lis r5, 0x805F #Add 0x1 to 0x805E cuz 2nd half address exceeds 0x7FFF
.elseif (region == 'K' || region == 'k') # RMCK
lis r5, 0x805E #Add 0x1 to 0x805D cuz 2nd half address exceeds 0x7FFF
.else # Invalid Region
.err
.endif
li r11, 0x0018 #Set 2nd half of instruction (branching offset amount)
cmpwi r4, 3
beq- branch_instruction
oris r11, r11, 0x4182 #For beq- instruction
b update_static_mem
branch_instruction:
oris r11, r11, 0x4800 #For b instruction
update_static_mem: #Write in new instruction
.if (region == 'E' || region == 'e') # RMCE
stw r11, 0x44E8 (r5)
.elseif (region == 'P' || region == 'p') # RMCP
stw r11, 0xFFFFEFBC (r5)
.elseif (region == 'J' || region == 'j') # RMCJ
stw r11, 0xFFFFE898 (r5)
.elseif (region == 'K' || region == 'k') # RMCK
stw r11, 0xFFFFD3DC (r5)
.else # Invalid Region
.err
.endif
Code Creator: JoshuaMK
Code Contributors: Vega (Optimized Source)
|
|
|
Yo! |
Posted by: WiiUser - 10-25-2019, 07:05 AM - Forum: Introductions
- Replies (2)
|
|
Oh no the gay admin knocked my rep down. What am I gonna do?
Post more shit that's what.
|
|
|
|