-
Notifications
You must be signed in to change notification settings - Fork 813
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Zillion: map tracker in client (#1136)
* Option RangeWithSpecialMax * amendment to typing in web options * compare string with number * lots of work on zillion * fix zillion fill logic * fix a few more issues in zillion fill logic * can make zillion patch and use it * put multi items in zillion rom * work on ZillionClient * logging and auth in client * work on sending and receiving items * implement item_handling flag * fix locations ids to NuktiServer package * use rewrite of zri * cache logic rule data for performance * use new id maps * fix some problems with the big recent merge * ZillionClient: use new context manager for Memory class * fix ItemClassification for Zillion items and some debug statements for asserts, documentation on running scripts for manual testing type correction in CommonContext * fix some issues in client, start on docs, put rescue and item ram addresses in slot data * use new location name system fix item locations getting out of sync in progression balancing * zillion client can read slot name from game * zillion: new item names * remove extra unneeded import * newer options (room gen and starting cards) * update comment in zillion patch * zillion non static regions * change some logging, update some comments * allow ZillionClient to exit in certain situations * todo note to fix options doc strings * don't force auto forfeit * rework validation of floppy requirement and item counts and fix race condition in generate_output * reorganize Zillion component structure with System class * documentation updates for Zillion * attempt inno_setup.iss * remove todo comment for something done * update comment * rework item count zillion options and some small cleanups * fix location check count * data package version 1 * Zillion can pass unit tests without rom * fix freeze if closing ZillionClient while it's waiting for server login * specify commit hash for zilliandomizer package * some changes to options validation * Zillion doors saved on multiworld server * add missing function in inno_setup and name of vanilla continues in options * rework zillion sync task and context * Apply documentation suggestions from SoldierofOrder Co-authored-by: SoldierofOrder <[email protected]> * update zillion package * workaround for asyncio udp bug There is a bug in Python in Windows python/cpython#91227 that makes it so if I look for RetroArch before it's ready, it breaks the asyncio udp transport system. As a workaround, we don't look for RetroArch until the user asks for it with /sms * a few of the smaller suggestions from review * logic only looks at my locations instead of all the multiworld locations * some adjustments from pull request discussion and some unit tests * patch webhost changes from pull request discussion * zillion logic tests * better vblr test * test interaction of character rescue items with logic * move unit tests to new worlds folder * comment improvements * fix minor logic issue and add memory read timeout * capitalization in option display names Opa-Opa is a proper noun * client toggle side panel with /map * displays map * fix map transparency * fix broken launcher * better way to specify grid container * start kivy typing * have a map that updates with item checks but it breaks other parts of the UI * fix layout bug * aspect ratio of image and some type checking details * Fix loading of map for compiled builds Co-authored-by: SoldierofOrder <[email protected]> Co-authored-by: Doug Hoskisson <[email protected]> Co-authored-by: CaitSith2 <[email protected]>
- Loading branch information
1 parent
6134578
commit aeb78ea
Showing
14 changed files
with
218 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
class App: | ||
async def async_run(self) -> None: ... |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
from typing import Tuple | ||
from ..graphics import FillType_Shape | ||
from ..uix.widget import Widget | ||
|
||
|
||
class Label(FillType_Shape, Widget): | ||
def __init__(self, *, text: str, font_size: int, color: Tuple[float, float, float, float]) -> None: ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
""" FillType_* is not a real kivy type - just something to fill unknown typing. """ | ||
|
||
from typing import Sequence | ||
|
||
FillType_Vec = Sequence[int] | ||
|
||
|
||
class FillType_Drawable: | ||
def __init__(self, *, pos: FillType_Vec = ..., size: FillType_Vec = ...) -> None: ... | ||
|
||
|
||
class FillType_Texture(FillType_Drawable): | ||
pass | ||
|
||
|
||
class FillType_Shape(FillType_Drawable): | ||
texture: FillType_Texture | ||
|
||
def __init__(self, | ||
*, | ||
texture: FillType_Texture = ..., | ||
pos: FillType_Vec = ..., | ||
size: FillType_Vec = ...) -> None: ... | ||
|
||
|
||
class Ellipse(FillType_Shape): | ||
pass | ||
|
||
|
||
class Color: | ||
def __init__(self, r: float, g: float, b: float, a: float) -> None: ... | ||
|
||
|
||
class Rectangle(FillType_Shape): | ||
def __init__(self, | ||
*, | ||
source: str = ..., | ||
texture: FillType_Texture = ..., | ||
pos: FillType_Vec = ..., | ||
size: FillType_Vec = ...) -> None: ... |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
from typing import Any | ||
from .widget import Widget | ||
|
||
|
||
class Layout(Widget): | ||
def add_widget(self, widget: Widget) -> None: ... | ||
|
||
def do_layout(self, *largs: Any, **kwargs: Any) -> None: ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
from .layout import Layout | ||
from .widget import Widget | ||
|
||
|
||
class TabbedPanel(Layout): | ||
pass | ||
|
||
|
||
class TabbedPanelItem(Widget): | ||
content: Widget | ||
|
||
def __init__(self, *, text: str = ...) -> None: ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
""" FillType_* is not a real kivy type - just something to fill unknown typing. """ | ||
|
||
from typing import Any, Optional, Protocol | ||
from ..graphics import FillType_Drawable, FillType_Vec | ||
|
||
|
||
class FillType_BindCallback(Protocol): | ||
def __call__(self, *args: Any) -> None: ... | ||
|
||
|
||
class FillType_Canvas: | ||
def add(self, drawable: FillType_Drawable) -> None: ... | ||
|
||
def clear(self) -> None: ... | ||
|
||
def __enter__(self) -> None: ... | ||
|
||
def __exit__(self, *args: Any) -> None: ... | ||
|
||
|
||
class Widget: | ||
canvas: FillType_Canvas | ||
width: int | ||
pos: FillType_Vec | ||
|
||
def bind(self, | ||
*, | ||
pos: Optional[FillType_BindCallback] = ..., | ||
size: Optional[FillType_BindCallback] = ...) -> None: ... | ||
|
||
def refresh(self) -> None: ... |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
import os | ||
|
||
base_id = 8675309 | ||
zillion_map = os.path.join(os.path.dirname(__file__), "empty-zillion-map-row-col-labels-281.png") |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.