The following warnings occurred:
Warning [2] Undefined property: MyLanguage::$archive_pages - Line: 2 - File: printthread.php(287) : eval()'d code PHP 8.2.18 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/printthread.php(287) : eval()'d code 2 errorHandler->error_callback
/printthread.php 287 eval
/printthread.php 117 printthread_multipage



Mario Kart Wii Gecko Codes, Cheats, & Hacks
-snip- - Printable Version

+- Mario Kart Wii Gecko Codes, Cheats, & Hacks (https://mariokartwii.com)
+-- Forum: Hacks/Modding (https://mariokartwii.com/forumdisplay.php?fid=14)
+--- Forum: Code Support / Help / Requests (https://mariokartwii.com/forumdisplay.php?fid=61)
+--- Thread: -snip- (/showthread.php?tid=1377)

Pages: 1 2


RE: Rainbow Function code - Vega - 12-18-2019

try this....

Code:
stwu sp, -0x50 (sp)
stmw r16, 0x8 (sp)

lis r11, 0x8000
lmw r16, 0x0498 (r11)

lis r12, 0x8150

addi r22,r22,1
cmpwi r22,5 #XX value to modify
blt- 0xA8
cmpwi r19,0
bne- 0x0C
li r20,255
li r19,1
cmpwi r19,1
bne- 0x14
addi r16,r16,1
cmpwi r16,255
bne- 0x08
li r19,2
cmpwi r19,2
bne- 0x14
subi r20,r20,1
cmpwi r20,0
bne- 0x08
li r19,3
cmpwi r19,3
bne- 0x14
addi r17,r17,1
cmpwi r17,255
bne- 0x08
li r19,4
cmpwi r19,4
bne- 0x14
subi r16,r16,1
cmpwi r16,0
bne- 0x08
li r19,5
cmpwi r19,5
bne- 0x14
addi r20,r20,1
cmpwi r20,255
bne- 0x08
li r19,6
cmpwi r19,6
bne- 0x14
subi r17,r17,1
cmpwi r17,0
bne- 0x08
li r19,1
li r22,0
stb r20,0(r12)
stb r16,1(r12)
stb r17,2(r12)

stmw r16, 0x0498 (r11)

lmw r16, 0x8 (sp)
addi sp, sp, 0x50


cmpwi r0,0 #Default instruction



RE: Rainbow Function code - Sponge - 12-18-2019

(12-18-2019, 07:48 PM)Vega Wrote: try this....

Code:
stwu sp, -0x50 (sp)
stmw r16, 0x8 (sp)

lis r11, 0x8000
lmw r16, 0x0498 (r11)

lis r12, 0x8170

addi r22,r22,1
cmpwi r22,5 #XX value to modify
blt- 0xA8
cmpwi r19,0
bne- 0x0C
li r20,255
li r19,1
cmpwi r19,1
bne- 0x14
addi r16,r16,1
cmpwi r16,255
bne- 0x08
li r19,2
cmpwi r19,2
bne- 0x14
subi r20,r20,1
cmpwi r20,0
bne- 0x08
li r19,3
cmpwi r19,3
bne- 0x14
addi r17,r17,1
cmpwi r17,255
bne- 0x08
li r19,4
cmpwi r19,4
bne- 0x14
subi r16,r16,1
cmpwi r16,0
bne- 0x08
li r19,5
cmpwi r19,5
bne- 0x14
addi r20,r20,1
cmpwi r20,255
bne- 0x08
li r19,6
cmpwi r19,6
bne- 0x14
subi r17,r17,1
cmpwi r17,0
bne- 0x08
li r19,1
li r22,0
stb r20,0(r12)
stb r16,1(r12)
stb r17,2(r12)

stmw r16, 0x0498 (r11)

lmw r16, 0x8 (sp)
addi sp, sp, 0x50


cmpwi r0,0 #Default instruction
Same as the last result, just a new lavender like color now


RE: Rainbow Function code - Vega - 12-18-2019

i edited the latest source, try now. i was using ur mem81 reference and not the author's original value

EDIT

After much testing on Discord it was discovered that the revised version works only for Dolphin