End Race Early [ComputerBot2016]
#11
Answer to my question, no. With this code it force brings up the next screen of results which cannot progress the positions. However, to have this effect you can simply have the timer speed up, then use a part of countdowns code to force position updates after a race is over
~MarioKartWii.com #1~
Reply
#12
I am gonna put this here and not to make a new thread. I made a version of the C2 part of this code (with some small help from Vega) to make this code offline only. This is due to in part that the game will progress to the results screen when used online (in MKWBR, it cant do this).

NTSC-U:
C2530808 00000008
3D80809B 898CF0B1
2C0C0001 4182002C
9421FF80 BC610008
38800002 38A00001
3D808052 618CF7A0
7D8803A6 4E800021
B8610008 38210080
88030020 00000000

PAL:
C2535350 00000008
3D80809C 898C38B9
2C0C0001 4182002C
9421FF80 BC610008
38800002 38A00001
3D808053 618C42E8
7D8803A6 4E800021
B8610008 38210080
88030020 00000000

NTSC-J:
C2534CD0 00000008
3D80809B 898C2919
2C0C0001 4182002C
9421FF80 BC610008
38800002 38A00001
3D808053 618C3C68
7D8803A6 4E800021
B8610008 38210080
88030020 00000000

NTSC-K:
C25233A8 00000008
3D80809B 898C1EF9
2C0C0001 4182002C
9421FF80 BC610008
38800002 38A00001
3D808052 618C2340
7D8803A6 4E800021
B8610008 38210080
88030020 00000000
~MarioKartWii.com #1~
Reply
#13
Hey Ninja,

Looking at Computer Bot's original source,it has a default instruction of lwz r0, 0x0020 (r3). He includes it in the source before the function call for when the button activator is pressed, but afaik it doesn't need to be included at all when the activator is pressed because r0 doesn't get saved (its not a Variable register) thru the function call. Meaning its contents get wiped/changed anyway.

I had you throw it at the end via a branch scheme last night as a 'just because' thing, but here's a technically better way to write your source. Granted it makes almost zero difference.

Code:
lbz r0, 32 (r3) #Default instruction
lis r12, 0x809C
lbz r12, 14521 (r12)
cmpwi r12, 1
beq- the_end
  
  stwu r1, -128(r1)
  stmw r3, 8(r1)
  li r4, 0x2
  li r5, 0x1
  lis r12, 0x8053
  ori r12, r12, 0x42E8
  mtlr r12
  blrl
  lmw r3, 8(r1)
  addi r1, r1, 0x80

the_end:
Reply
#14
(03-27-2021, 12:14 PM)Vega Wrote: Hey Ninja,

Looking at Computer Bot's original source,it has a default instruction of lwz r0, 0x0020 (r3). He includes it in the source before the function call for when the button activator is pressed, but afaik it doesn't need to be included at all when the activator is pressed because r0 doesn't get saved (its not a Variable register) thru the function call. Meaning its contents get wiped/changed anyway.

I had you throw it at the end via a branch scheme last night as a 'just because' thing, but here's a technically better way to write your source. Granted it makes almost zero difference.

Code:
lbz r0, 32 (r3) #Default instruction
lis r12, 0x809C
lbz r12, 14521 (r12)
cmpwi r12, 1
beq- the_end
 
  stwu r1, -128(r1)
  stmw r3, 8(r1)
  li r4, 0x2
  li r5, 0x1
  lis r12, 0x8053
  ori r12, r12, 0x42E8
  mtlr r12
  blrl
  lmw r3, 8(r1)
  addi r1, r1, 0x80

the_end:
Huh, good to know. Technically, the sources are different between all regions too so, that also explained my issues with one region working but others not working.
~MarioKartWii.com #1~
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)