Updated Item Rain Code
#1
Item Rain is in my opinion an alternative mode to VS, battle and countdown. But I don't want to install CTGP to get the "All items can land"-Item Rain Feature. I have looked into the normal Item Rain code and found the Instructions for the dropping Items. Now I calculated my own probabilities and updated the code in the main codes forum to make all items fall down.


Here are the codes for PAL and NTSC-U:

NTSC-U
04000A10 00000000
04000A14 80000000
04000A18 BF800000
04000A34 ZZZZZZZZ
06000A50 00000018
43300000 00000000
XXXXXXXX 42C80000
YYYYYYYY C2C80000
06000AA0 00000038
809BD508 80011110
809BD118 809BEE20
8078CDF8 8078D1E4
807959DC 8079A928
8029FD80 8029FDB0
80005F34 8000E7B4
804250D4 8029FD69
C2531134 00000070
901D0048 546307FE
2C030001 40A2036C
3F808000 807C0AA0
80630000 80630000
81030000 2C08006A
41820350 2C08006B
41820348 2C08006E
41820340 2C08006F
41820338 807D0048
80BC0A20 7C032800
41A20328 907C0A20
2C030002 40A2003C
3860FFFF 907C0A70
807C0AA0 80630000
80630000 80630000
2C03002E 41820014
7C8C42E6 908D8038
909C0A68 4800000C
807C0A68 906D8038
807C0AA4 7C6903A6
4E800421 2C031480
39400000 418000B8
2C032900 39400001
418000AC 2C033D80
39400002 418000A0
2C034000 39400005
41800094 2C034280
3940000A 41800088
2C034500 3940000B
4180007C 2C035300
39400007 41800070
2C036100 39400003
41800064 2C036F00
39400009 41800058
2C037100 39400004
4180004C 2C037300
39400006 41800040
2C037900 39400008
41800034 2C037F00
3940000C 41800028
2C037F80 39400008
41800008 3940000C
3C80809C 8884F0B3
2C040001 41820008
3940000D 38800000
909C0A00 809C0AA8
80840000 80840008
80C4FFF4 2C060009
41800018 39200002
80BC0AD0 99250000
80BC0AD4 99250000
1CE60008 38E7FFFF
90FC0A90 80FC0A70
38C6FFFF 7C073000
40800010 38E70001
90FC0A70 4800000C
38E00000 90FC0A70
2C080068 41A00020
2C080077 41810018
811C1500 38C00248
7D0833D6 7C074000
40A20190 1CE70248
7D072214 3D208000
3CA08000 38E00000
C07C0A58 C09C0A5C
C0BC0A60 C0DC0A64
C8E90A50 2C070001
41820044 3C804330
90890A40 807C0AA4
7C6903A6 4E800421
2C034000 41800018
3863C000 90690A44
C8090A40 EC270028
48000010 90690A44
C8090A40 EC203828
D0290A30 80C80024
90C50A04 C0050A04
C0250A30 2C070001
41820030 C0480034
FC022040 4081000C
FC402090 48000010
FC023040 40A00008
FC403090 EC420172
EC2100F2 EC00102A
EC00082A D0050A04
2C070001 41820008
39290008 38E70001
39080004 38A50004
4081FF54 813C0AB0
80DC0A70 38BC0A00
38E50004 809C0AAC
80840000 38840048
1C6A0024 7C632214
38800001 39000000
7D2903A6 4E800421
80BC0AB4 7CA903A6
80BC0AAC 809C0A00
2C040000 4182006C
80640004 80A50000
38A50048 1C630024
7C651A14 4E800421
80BC0AB8 389C0A04
807C0A00 7CA903A6
4E800421 38BC0A10
807C0A00 38800000
80FC0AC4 80DC0AC0
811C0ABC 7D0903A6
4E800421 807C0A00
80A30004 2C050009
40A20010 80A30170
38A50014 90A30170
60000000 00000000
04653A20 28040007
0464EDA0 38600300
C2782B50 00000002
2C030000 4D820020
8003000C 00000000
C2657524 00000006
887B001B 2C030007
41A2001C 2C030003
41A20014 2C030004
41A2000C 386400C8
4800000C 7C832378
48000004 00000000
C2657254 00000007
3C608000 80630A90
2C050007 41A2001C
2C050003 41A20014
2C050004 41A2000C
38C600C8 4800000C
7CC61A14 48000004
387F0004 00000000
C27E4DDC 00000002
3FE08000 93BF1500
3BE00000 00000000
C2655EE4 00000005
80DE0004 7C1F3000
41810018 3CC08000
80C60AC8 7CC903A6
4E800421 48000008
3BE00000 60000000
C2797FE8 00000005
815F0004 2C0A0009
40A20018 2C1C0002
40820010 394037AB
3CA08000 91450AE8
38BF0044 00000000
C2797FFC 00000005
815E0004 2C0A0009
40A20018 2C1D0002
40A20010 394037AB
3CA08000 91450AE8
38BE0044 00000000
C2798C58 00000004
3CA08000 80850AE8
2C0437AB 38800000
90850AE8 41A20008
38800001 00000000
0478E00C 60000000
0479DC68 60000000
C26577DC 0000000F
3CC08000 80C60ACC
7CC903A6 4E800421
2C030000 41A2005C
A0790004 A0970000
7C032000 4181004C
38792400 1C9C0300
7C641850 1C960020
7C641850 1C9C0060
7C632214 1C960004
7C632214 38800000
90830000 88B9001C
3C608000 80630AC8
7C6903A6 7EE4BB78
38790004 4E800421
60000000 00000000
0453B328 60000000
008A126F 00000022
008A0F67 00000022
008A09CF 00000022
008A0D2B 00000019
008A0ACB 00000019
008A1063 00000005
008CD6EF 00000007
008CE4A7 00000007

PAL
04000A10 00000000
04000A14 80000000
04000A18 BF800000
04000A34 ZZZZZZZZ
06000A50 00000018
43300000 00000000
XXXXXXXX 42C80000
YYYYYYYY C2C80000
06000AA0 00000038
809C1E38 80011C70
809C1900 809C3618
80795E04 807961F0
8079E9E8 807A3934
802A4100 802A4130
80005F34 8000F314
80429454 802A40E9
C2535C7C 00000070
901D0048 546307FE
2C030001 40A2036C
3F808000 807C0AA0
80630000 80630000
81030000 2C08006A
41820350 2C08006B
41820348 2C08006E
41820340 2C08006F
41820338 807D0048
80BC0A20 7C032800
41A20328 907C0A20
2C030002 40A2003C
3860FFFF 907C0A70
807C0AA0 80630000
80630000 80630000
2C03002E 41820014
7C8C42E6 908D8038
909C0A68 4800000C
807C0A68 906D8038
807C0AA4 7C6903A6
4E800421 2C031480
39400000 418000B8
2C032900 39400001
418000AC 2C033D80
39400002 418000A0
2C034000 39400005
41800094 2C034280
3940000A 41800088
2C034500 3940000B
4180007C 2C035300
39400007 41800070
2C036100 39400003
41800064 2C036F00
39400009 41800058
2C037100 39400004
4180004C 2C037300
39400006 41800040
2C037900 39400008
41800034 2C037F00
3940000C 41800028
2C037F80 39400008
41800008 3940000C
3C80809C 888438BB
2C040001 41820008
3940000D 38800000
909C0A00 809C0AA8
80840000 80840008
80C4FFF4 2C060009
41800018 39200002
80BC0AD0 99250000
80BC0AD4 99250000
1CE60008 38E7FFFF
90FC0A90 80FC0A70
38C6FFFF 7C073000
40800010 38E70001
90FC0A70 4800000C
38E00000 90FC0A70
2C080068 41A00020
2C080077 41810018
811C1500 38C00248
7D0833D6 7C074000
40A20190 1CE70248
7D072214 3D208000
3CA08000 38E00000
C07C0A58 C09C0A5C
C0BC0A60 C0DC0A64
C8E90A50 2C070001
41820044 3C804330
90890A40 807C0AA4
7C6903A6 4E800421
2C034000 41800018
3863C000 90690A44
C8090A40 EC270028
48000010 90690A44
C8090A40 EC203828
D0290A30 80C80024
90C50A04 C0050A04
C0250A30 2C070001
41820030 C0480034
FC022040 4081000C
FC402090 48000010
FC023040 40A00008
FC403090 EC420172
EC2100F2 EC00102A
EC00082A D0050A04
2C070001 41820008
39290008 38E70001
39080004 38A50004
4081FF54 813C0AB0
80DC0A70 38BC0A00
38E50004 809C0AAC
80840000 38840048
1C6A0024 7C632214
38800001 39000000
7D2903A6 4E800421
80BC0AB4 7CA903A6
80BC0AAC 809C0A00
2C040000 4182006C
80640004 80A50000
38A50048 1C630024
7C651A14 4E800421
80BC0AB8 389C0A04
807C0A00 7CA903A6
4E800421 38BC0A10
807C0A00 38800000
80FC0AC4 80DC0AC0
811C0ABC 7D0903A6
4E800421 807C0A00
80A30004 2C050009
40A20010 80A30170
38A50014 90A30170
60000000 00000000
04657EA8 28040007
04653228 38600300
C2786F80 00000002
2C030000 4D820020
8003000C 00000000
C265BB40 00000006
887B001B 2C030007
41A2001C 2C030003
41A20014 2C030004
41A2000C 386400C8
4800000C 7C832378
48000004 00000000
C265B870 00000007
3C608000 80630A90
2C050007 41A2001C
2C050003 41A20014
2C050004 41A2000C
38C600C8 4800000C
7CC61A14 48000004
387F0004 00000000
C27EF0EC 00000002
3FE08000 93BF1500
3BE00000 00000000
C265A36C 00000005
80DE0004 7C1F3000
41810018 3CC08000
80C60AC8 7CC903A6
4E800421 48000008
3BE00000 60000000
C27A0FF4 00000005
815F0004 2C0A0009
40A20018 2C1C0002
40820010 394037AB
3CA08000 91450AE8
38BF0044 00000000
C27A1008 00000005
815E0004 2C0A0009
40A20018 2C1D0002
40A20010 394037AB
3CA08000 91450AE8
38BE0044 00000000
C27A1C64 00000004
3CA08000 80850AE8
2C0437AB 38800000
90850AE8 41A20008
38800001 00000000
04797018 60000000
047A6C74 60000000
C265BDF8 0000000F
3CC08000 80C60ACC
7CC903A6 4E800421
2C030000 41A2005C
A0790004 A0970000
7C032000 4181004C
38792400 1C9C0300
7C641850 1C960020
7C641850 1C9C0060
7C632214 1C960004
7C632214 38800000
90830000 88B9001C
3C608000 80630AC8
7C6903A6 7EE4BB78
38790004 4E800421
60000000 00000000
04540864 60000000
008A5D47 00000022
008A5A3F 00000022
008A538F 00000022
008A56EB 00000019
008A548B 00000019
008A5B3B 00000005
008D209F 00000007
008D1FEF 00000007

Of Course, its recommended to use it together with the "All items can land" code


I tested it offline with and without item boxes. It works good without, but with boxes there is a bug: If you get a star (from box), you can use it several times, before it dissapears. And if you lose it earlier (by bomb or so on), your Roulette freezes and only gets empty if you fall down.

I haven't found the time to test it online yet, but it should work online.

Maybe one of you will find the ASM code that removes the bug with the star. Anyway, I hope you have fun with this rewritten code.


-------------------------------------------------------------------------------------------------------------------------
EDIT: Updated Codes!! And removed Star Bug.
Reply
#2
Nice job... which part of this code is responsible for allowing all items to land?
Reply
#3
From line "4E800421 2C031480" to line "41800008 3940000D" the items and the associated probabilities are determined.


I forgot to mention that if you replace


2C037F80 3940000D
41800008 3940000D

in the code with

2C037F80 39400008
41800008 3940000C

this code will also work for Battle.


------------------------------------------------------------------------------------------
EDIT: The lower part isn't important anymore, because the Update automatically recognize if it is battle or not.
Reply
#4
Will you make a version of this that has CTGP's probabilities?
Reply
#5
Does this work on dolphin? I can't seem to get it to work?
~MarioKartWii.com #1~
Reply
#6
Make sure you are using the proper region, that no other conflicting codes exist, and try again. If this doesn't work, then let Unnamed know.
Super Mario Eclipse, what Super Mario Sunshine could've been.
Reply
#7
https://mkwii.com/showthread.php?tid=142...11#pid4111 Just in case....
Reply
#8
(02-23-2020, 07:12 PM)Vega Wrote: https://mkwii.com/showthread.php?tid=142...11#pid4111 Just in case....
The codehandler is coming along nicely. I'm about ready to upload it and the SME-CODE builder onto github, probably tomorrow even.
Super Mario Eclipse, what Super Mario Sunshine could've been.
Reply
#9
(02-22-2020, 04:31 PM)FancyWheelies Wrote: Will you make a version of this that has CTGP's probabilities?

That's what I was going for. However, the odds aren't correct on the following webpage. The sum is not 100 percent (for the "CTGP-R all items can land"-column).

http://wiki.tockdom.com/wiki/Item_Rain

And even if I had the correct probabilities, I don't know if CTGP had any other code content. So I probably can't make any code that's compatible with CTGP.
Reply
#10
will this have a JPN port
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)