Skip to content

Commit

Permalink
fix some codes for mp4-7 to work on console
Browse files Browse the repository at this point in the history
  • Loading branch information
RainbowTabitha committed Feb 4, 2025
1 parent 4e387bc commit dd64d3a
Show file tree
Hide file tree
Showing 4 changed files with 148 additions and 84 deletions.
45 changes: 30 additions & 15 deletions codes/marioParty4.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,43 +75,55 @@ def getMinigameCodeFour(amount, amountDec):
def getBooSpaceStarFour(amount, amountDec):
return f'''
MP4 - Star Stealing Costs {amountDec} at the Boo House.
040A5F30 2C1E{amount}
C20A5F30 00000001
2C1E{amount} 00000000
'''

def getBooSpaceCoinsFour(amount, amountDec):
return f'''
MP4 - Coin Stealing Costs {amountDec} at the Boo House.
040A61DC 2C1E{amount}
040A517C 2C03{amount}
C20A61DC 00000001
2C1E{amount} 00000000
C20A517C 00000001
2C03{amount} 00000000
'''

def getStarSpaceCodeFour(amount, amountDec):
return f'''
MP4 - Stars Cost {amountDec} Coins
040843CC 2C03{amount}
04084590 2C03{amount}
040845CC 2C03{amount}
0408473C 2C1C{amount}
C20843CC 00000001
2C03{amount} 00000000
C2084590 00000001
2C03{amount} 00000000
C20845CC 00000001
2C03{amount} 00000000
C208473C 00000001
2C1C{amount} 00000000
'''

def getSquishCodeFour(amount, amountDec):
return f'''
MP4 - Mega Mushroom Steals {amountDec} Coins
0406BE88 2C00{amount}
0406BE90 3800{amount}
C206BE88 00000001
2C00{amount} 00000000
C206BE90 00000001
3800{amount} 00000000
'''

def getBowserSuitCodeFour(amount, amountDec):
return f'''
MP4 - Bowser Suit Steals {amountDec} Coins
0406C788 2C00{amount}
0406C790 3800{amount}
C206C788 00000001
2C00{amount} 00000000
C206C790 00000001
3800{amount} 00000000
'''

def getLotterySpaceCodeFour(amount, amountDec):
return f'''
MP4 - Lottery Costs {amountDec} Coins
0407BD20 2C1E{amount}
C207BD20 00000001
2C1E{amount} 00000000
'''

def getMinigameReplacement4(hexUno, hexDos, gameUno, gameDos):
Expand Down Expand Up @@ -178,8 +190,10 @@ def getSpaceReplaceFour2(spaceHex1, spaceHex2, spaceName, spaceName2):
def getLotteryRewards4(lotteryPrizeA, lotteryPrizeB, lotteryPrizeC, lotteryPrizeD, lotteryPrizeALabel, lotteryPrizeBLabel, lotteryPrizeCLabel, lotteryPrizeDLabel):
return f'''
MP4 - Lottery 1st is {lotteryPrizeALabel} - 2nd is {lotteryPrizeBLabel} - 3rd is {lotteryPrizeCLabel} or {lotteryPrizeDLabel}
0407EA58 3B80{lotteryPrizeA}
0407EA60 3B80{lotteryPrizeB}
C207EA58 00000001
3B80{lotteryPrizeA} 00000000
C207EA60 00000001
3B80{lotteryPrizeB} 00000000
021D5678 0000{lotteryPrizeC}{lotteryPrizeD}
'''

Expand All @@ -203,7 +217,8 @@ def getStarHandicap(p1, p2, p3, p4):
def initialCoinsMod4(hex, hexDec):
return f'''
MP4 - Gain {hexDec} Coins at the Start of the Game
020A8F0E 0000{hex}
C20A8F0C 00000001
3AC0{hex} 00000000
'''

def getBattleGame4(p1, p2, p3, p4, p5, s1, s2, s3, s4, s5):
Expand Down
23 changes: 15 additions & 8 deletions codes/marioParty5.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,15 @@
def getBlueSpaceCodeFive(amount, amountDec):
return f'''
MP5 - Blue Spaces Give {amountDec} Coins
040A9F5C 3880{amount}
C20A9F5C 00000000
3880{amount} 00000000
'''

def getRedSpaceCodeFive(amount, amountDec):
return f'''
MP5 - Red Spaces Take Away {amountDec} Coins
040AA160 3880{amount}
C20AA160 00000000
3880{amount} 00000000
'''

def getMinigameCodeFive(amount, amountDec):
Expand Down Expand Up @@ -58,7 +60,8 @@ def getStarSpaceCodeFive(amount, negAmount, amountDec):
def getKoopaBankFive(amount, amountDec):
return f'''
MP5 - Koopa Bank Deposits are {amountDec} Coins
040E7090 3B20{amount}
C20E7090 00000001
3B20{amount} 00000000
'''

def getWigglerSpaceCodeFive(amount, negAmount, amountDec):
Expand Down Expand Up @@ -170,24 +173,27 @@ def getStarReplaceFive1(amount, amountDec):
return f'''
MP5 - Replace Minigame Star with {amountDec}
2046871C A81D0022
0446871C {amount}
C246871C 00000001
{amount} 00000000
E2000001 80008000
'''

def getStarReplaceFive2(amount, amountDec):
return f'''
MP5 - Replace Orb Star with {amountDec}
20468724 A81D0026
04468724 {amount}
C2468724 00000001
{amount} 00000000
E2000001 80008000
'''

def getStarReplaceFive3(amount, amountDec):
return f'''
MP5 - Replace Happening Star with {amountDec}
2046872C 881D0017
0446872C {amount}
04468730 7C000378
C246872C 00000000
{amount} 7C000378
60000000 00000000
E2000001 80008000
'''

Expand All @@ -211,7 +217,8 @@ def getUnderseaShell(value, text):
def initialCoinsMod5(hex, hexDec):
return f'''
MP5 - Gain {hexDec} Coins at the Start of the Game
0208C8E6 0000{hex}
C208C8E6 00000001
3880{hex} 00000000
'''

def getBattleGame5(p1, p2, p3, p4, p5, s1, s2, s3, s4, s5):
Expand Down
70 changes: 45 additions & 25 deletions codes/marioParty6.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,15 @@
def getBlueSpaceCodeSix(amount, amountDec):
return f'''
MP6 - Blue Spaces Give {amountDec} Coins
0415F1E8 3880{amount}
C215F1E8 00000001
3880{amount} 00000000
'''

def getRedSpaceCodeSix(amount, amountDec):
return f'''
MP6 - Red Spaces Take Away {amountDec} Coins
0415F278 3880{amount}
C215F278 00000001
3880{amount} 00000000
'''

def getMinigameCodeSix(amount, amountDec):
Expand Down Expand Up @@ -73,19 +75,27 @@ def getMinigameCodeSix(amount, amountDec):
def getCharacterSpaceCodeSix(amount, amountDec):
return f'''
MP6 - Character Spaces Give {amountDec} Coins
0415F230 3880{amount}
C215F230 00000001
3880{amount} 00000000
'''

def getStarSpaceCodeSix(amount, negAmount, amountDec, y4, y2, x2, x4):
return f'''
MP6 - Stars Cost {amountDec} Coins
0418333C 2C03{amount}
0418342C 2C03{amount}
041834C4 2C03{amount}
0415F668 2C03{amount}
0415FA18 3880{negAmount}
0416068C 2C00{amount}
04160D0C 3880{negAmount}
C218333C 00000001
2C03{amount} 00000000
C218342C 00000001
2C03{amount} 00000000
C21834C4 00000001
2C03{amount} 00000000
C215F668 00000001
2C03{amount} 00000000
C215FA18 00000001
3880{negAmount} 00000000
C216068C 00000001
2C00{amount} 00000000
C2160D0C 00000001
3880{negAmount} 00000000
C2183590 00000002
3880{amount} 7C8400D0
60000000 00000000
Expand Down Expand Up @@ -279,7 +289,8 @@ def getInitialItemsSix(one, two, three, oneItem, twoItem, threeItem):
7CAC00AE 98A30005
48150114 {one}{two}{three}{one}
{two}{three}{one}{two} {three}{one}{two}{three}
04153748 4BEAFED8
C2153748 00000001
4BEAFED8 00000000
'''

def getCoinStealBaseSix(value, amountDec):
Expand Down Expand Up @@ -327,33 +338,35 @@ def getStarReplaceSix1(amount, amountDec):
return f'''
MP6 - Replace Minigame Star with {amountDec}
204ECF10 A883001E
044ECF10 {amount}
C24ECF10 00000001
{amount} 00000000
E2000001 80008000
'''

def getStarReplaceSix2(amount, amountDec):
return f'''
MP6 - Replace Orb Star with {amountDec}
204ECF4C A8C70034
044ECF4C {amount}
C24ECF4C 00000001
{amount} 00000000
E2000001 80008000
'''

def getStarReplaceSix3(amount, amountDec):
return f'''
MP6 - Replace Happening Star with {amountDec}
204ECF88 88040017
044ECF88 {amount}
E2000001 80008000
204ECF8C 7C060774
044ECF8C 7C060378
C24ECF88 00000002
{amount} 7C060378
60000000 00000000
E2000001 80008000
'''

def initialCoinsMod6(hex, hexDec):
return f'''
MP6 - Gain {hexDec} Coins at the Start of the Game
0214B3AE 0000{hex}
C214B3AC 00000001
3880{hex} 00000000
'''

def getBattleGame6(p1, p2, p3, p4, p5, s1, s2, s3, s4, s5):
Expand All @@ -369,25 +382,32 @@ def getBattleGame6(p1, p2, p3, p4, p5, s1, s2, s3, s4, s5):
def getZapOrb6(hex, amountDec):
return f'''
MP6 - Zap Takes {amountDec} Coins
041AE1B8 3B60{hex}
C21AE1B8 00000001
3B60{hex} 00000000
'''

def getFaireFlowerEventStars(value):
return f'''
MP6 - Always Wager Stars at Faire Square Flower Event
282C0256 0000007D
044d3c68 38E00001
044d4e34 38000001
044d3c68 38E00001
C24D3C68 00000001
38E00001 00000000
C24D4E34 00000001
38000001 00000000
C24D3C68 00000001
38E00001 00000000
E2000001 80008000
'''

def getFaireFlowerEventCoins(value):
return f'''
MP6 - Always Wager Coins at Faire Square Flower Event
282C0256 0000007D
044d3c70 60000000
044d4e3C 60000000
044d3c70 60000000
C24D3C70 00000001
60000000 00000000
C24D4E3C 00000001
60000000 00000000
C24D3C70 00000001
60000000 00000000
E2000001 80008000
'''
Loading

0 comments on commit dd64d3a

Please sign in to comment.