From 705266da9b2d75095ef491cad8536944dbfc3f82 Mon Sep 17 00:00:00 2001 From: caitsith2 Date: Sun, 7 Jun 2020 04:26:20 -0700 Subject: [PATCH] Actually write to the player slots past player 64, and at the correct location. --- Rom.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Rom.py b/Rom.py index e42e4be2..5241f695 100644 --- a/Rom.py +++ b/Rom.py @@ -1260,8 +1260,8 @@ def patch_rom(world, rom, player, team, enemized): rom.write_bytes(0x7FC0, rom.name) # set player names - for p in range(1, min(world.players, 64) + 1): - rom.write_bytes(0x186380 + ((p - 1) * 32), hud_format_text(world.player_names[p][team])) + for p in range(1, min(world.players, 255) + 1): + rom.write_bytes(0x195FFC + ((p - 1) * 32), hud_format_text(world.player_names[p][team])) # Write title screen Code hashint = int(rom.get_hash(), 16)