Skip to content

Commit

Permalink
Merge branch 'main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesbrq authored May 17, 2024
2 parents cf857f7 + b4c263f commit c23674f
Show file tree
Hide file tree
Showing 8 changed files with 37 additions and 13 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ Currently, the following games are supported:
* Yoshi's Island
* Mario & Luigi: Superstar Saga
* Bomb Rush Cyberfunk
* Yu-Gi-Oh! Ultimate Masters: World Championship Tournament 2006

For setup and instructions check out our [tutorials page](https://archipelago.gg/tutorial/).
Downloads can be found at [Releases](https://github.com/ArchipelagoMW/Archipelago/releases), including compiled
Expand Down
3 changes: 3 additions & 0 deletions docs/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,9 @@
# Yoshi's Island
/worlds/yoshisisland/ @PinkSwitch

#Yu-Gi-Oh! Ultimate Masters: World Championship Tournament 2006
/worlds/yugioh06/ @rensen

# Zillion
/worlds/zillion/ @beauxq

Expand Down
5 changes: 5 additions & 0 deletions inno_setup.iss
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,11 @@ Root: HKCR; Subkey: "{#MyAppName}yipatch"; ValueData: "Archi
Root: HKCR; Subkey: "{#MyAppName}yipatch\DefaultIcon"; ValueData: "{app}\ArchipelagoSNIClient.exe,0"; ValueType: string; ValueName: "";
Root: HKCR; Subkey: "{#MyAppName}yipatch\shell\open\command"; ValueData: """{app}\ArchipelagoSNIClient.exe"" ""%1"""; ValueType: string; ValueName: "";

Root: HKCR; Subkey: ".apygo06"; ValueData: "{#MyAppName}ygo06patch"; Flags: uninsdeletevalue; ValueType: string; ValueName: "";
Root: HKCR; Subkey: "{#MyAppName}ygo06patch"; ValueData: "Archipelago Yu-Gi-Oh 2006 Patch"; Flags: uninsdeletekey; ValueType: string; ValueName: "";
Root: HKCR; Subkey: "{#MyAppName}ygo06patch\DefaultIcon"; ValueData: "{app}\ArchipelagoBizHawkClient.exe,0"; ValueType: string; ValueName: "";
Root: HKCR; Subkey: "{#MyAppName}ygo06patch\shell\open\command"; ValueData: """{app}\ArchipelagoBizHawkClient.exe"" ""%1"""; ValueType: string; ValueName: "";

Root: HKCR; Subkey: ".archipelago"; ValueData: "{#MyAppName}multidata"; Flags: uninsdeletevalue; ValueType: string; ValueName: "";
Root: HKCR; Subkey: "{#MyAppName}multidata"; ValueData: "Archipelago Server Data"; Flags: uninsdeletekey; ValueType: string; ValueName: "";
Root: HKCR; Subkey: "{#MyAppName}multidata\DefaultIcon"; ValueData: "{app}\ArchipelagoServer.exe,0"; ValueType: string; ValueName: "";
Expand Down
8 changes: 4 additions & 4 deletions worlds/alttp/Rom.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
import threading
import concurrent.futures
import bsdiff4
from typing import Optional, List
from typing import Collection, Optional, List, SupportsIndex

from BaseClasses import CollectionState, Region, Location, MultiWorld
from Utils import local_path, user_path, int16_as_bytes, int32_as_bytes, snes_to_pc, is_frozen, parse_yaml, read_snes_rom
Expand Down Expand Up @@ -52,7 +52,7 @@
enemizer_logger = logging.getLogger("Enemizer")


class LocalRom(object):
class LocalRom:

def __init__(self, file, patch=True, vanillaRom=None, name=None, hash=None):
self.name = name
Expand All @@ -71,13 +71,13 @@ def __init__(self, file, patch=True, vanillaRom=None, name=None, hash=None):
def read_byte(self, address: int) -> int:
return self.buffer[address]

def read_bytes(self, startaddress: int, length: int) -> bytes:
def read_bytes(self, startaddress: int, length: int) -> bytearray:
return self.buffer[startaddress:startaddress + length]

def write_byte(self, address: int, value: int):
self.buffer[address] = value

def write_bytes(self, startaddress: int, values):
def write_bytes(self, startaddress: int, values: Collection[SupportsIndex]) -> None:
self.buffer[startaddress:startaddress + len(values)] = values

def encrypt_range(self, startaddress: int, length: int, key: bytes):
Expand Down
4 changes: 2 additions & 2 deletions worlds/dkc3/Rom.py
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@
0x21,
]

class LocalRom(object):
class LocalRom:

def __init__(self, file, patch=True, vanillaRom=None, name=None, hash=None):
self.name = name
Expand All @@ -457,7 +457,7 @@ def read_bit(self, address: int, bit_number: int) -> bool:
def read_byte(self, address: int) -> int:
return self.buffer[address]

def read_bytes(self, startaddress: int, length: int) -> bytes:
def read_bytes(self, startaddress: int, length: int) -> bytearray:
return self.buffer[startaddress:startaddress + length]

def write_byte(self, address: int, value: int):
Expand Down
19 changes: 17 additions & 2 deletions worlds/pokemon_emerald/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
# 2.2.0

### Features

- When you blacklist species from wild encounters and turn on dexsanity, blacklisted species are not added as locations
and won't show up in the wild. Previously they would be forced to show up exactly once.
- Added support for some new autotracking events.

### Fixes

- The Lilycove Wailmer now logically block you from the east. Actual game behavior is still unchanged for now.
- Water encounters in Slateport now correctly require Surf.
- Updated the tracker link in the setup guide.

# 2.1.1

### Features
Expand All @@ -12,10 +26,11 @@ _Separately released, branching from 2.0.0. Included procedure patch migration,

### Fixes

- Changed "Ho-oh" to "Ho-Oh" in options
- Changed "Ho-oh" to "Ho-Oh" in options.
- Temporary fix to alleviate problems with sometimes not receiving certain items just after connecting if `remote_items`
is `true`.
- Temporarily disable a possible location for Marine Cave to spawn, as its causes an overflow
- Temporarily disable a possible location for Marine Cave to spawn, as it causes an overflow.
- Water encounters in Dewford now correctly require Surf.

# 2.0.0

Expand Down
2 changes: 1 addition & 1 deletion worlds/smw/Rom.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def read_bit(self, address: int, bit_number: int) -> bool:
def read_byte(self, address: int) -> int:
return self.buffer[address]

def read_bytes(self, startaddress: int, length: int) -> bytes:
def read_bytes(self, startaddress: int, length: int) -> bytearray:
return self.buffer[startaddress:startaddress + length]

def write_byte(self, address: int, value: int):
Expand Down
8 changes: 4 additions & 4 deletions worlds/yoshisisland/Rom.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import Utils
from worlds.Files import APDeltaPatch
from settings import get_settings
from typing import TYPE_CHECKING
from typing import TYPE_CHECKING, Collection, SupportsIndex

from .Options import YoshiColors, BowserDoor, PlayerGoal, MinigameChecks

Expand Down Expand Up @@ -396,7 +396,7 @@
0x30510B: [0x14B2, 4]
}

class LocalRom(object):
class LocalRom:

def __init__(self, file: str) -> None:
self.name = None
Expand All @@ -413,13 +413,13 @@ def read_bit(self, address: int, bit_number: int) -> bool:
def read_byte(self, address: int) -> int:
return self.buffer[address]

def read_bytes(self, startaddress: int, length: int) -> bytes:
def read_bytes(self, startaddress: int, length: int) -> bytearray:
return self.buffer[startaddress:startaddress + length]

def write_byte(self, address: int, value: int) -> None:
self.buffer[address] = value

def write_bytes(self, startaddress: int, values: bytearray) -> None:
def write_bytes(self, startaddress: int, values: Collection[SupportsIndex]) -> None:
self.buffer[startaddress:startaddress + len(values)] = values

def write_to_file(self, file: str) -> None:
Expand Down

0 comments on commit c23674f

Please sign in to comment.