Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merging koala's Randomizer work for 0.4.0 #40

Merged
merged 70 commits into from
Jun 13, 2024
Merged
Show file tree
Hide file tree
Changes from 67 commits
Commits
Show all changes
70 commits
Select commit Hold shift + click to select a range
3fa0bc8
WIP link to proper entrance, anti door softlock, add back crash site,…
Avasam May 25, 2024
b69b971
Linters updates and fixes
Avasam May 25, 2024
e91603a
typo
Avasam May 25, 2024
d9e5f66
redundant return
Avasam May 25, 2024
c821721
Forgot to update requirements
Avasam May 25, 2024
cd95019
Fix altar of ages not being accessible and two non-existant transitio…
Avasam May 26, 2024
7935db1
Add unrandomized log and indicate that typings is vendored
Avasam May 26, 2024
38e6a66
test commit
May 27, 2024
81af201
moving transition_infos for easy of testing
May 27, 2024
d8fd921
create graphml file
May 29, 2024
3b917cf
bugfixes & small rewrites
May 29, 2024
3084630
typo fix, now it won't crash anymore :)
May 29, 2024
6fba948
simplification by removing troublesome levels from randomization
May 29, 2024
6b8daf7
ST_CLAIRE_DAY now has correct area_id
May 29, 2024
20953b0
Graph now has colors for important levels
May 29, 2024
ebd6c90
reduced graphml clutter a bit
May 29, 2024
d72b893
Algorithm added to guarantee all levels are linked together
May 30, 2024
8386b2e
Added support for the four 1-way transitions (correct entrance doesn'…
May 31, 2024
2d86cdc
Jaguar 1 re-enabled, to make sure we get Jaguar 2 later
May 31, 2024
41b5399
Disabled Mouth of Inti & added all missing levels to transition_infos
May 31, 2024
cf5efe1
Updated list of undesirable starting areas
May 31, 2024
1f26223
Disabled "Twin Outposts (Underwater Cave)" for now
Jun 1, 2024
0dfe92b
now starting_area has no impact on random calls
Jun 1, 2024
bb14a12
Some polishing before Merging for 0.5.0
Jun 1, 2024
f8ce2bd
Merge pull request #1 from wossnameGitHub/rando_generator_testing
wossnameGitHub Jun 2, 2024
4bc9540
Merge branch 'main' into Rando-0.5.0-merge
wossnameGitHub Jun 2, 2024
c99054e
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jun 2, 2024
3533d22
cleaned up set_transitions_map a bit by creating some functions + oth…
Jun 2, 2024
4fe7106
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jun 2, 2024
6773454
made functions for create_graphml + more small ruff fixes
Jun 2, 2024
0d545da
Merge local branch 'Rando-0.5.0-merge'
Jun 2, 2024
bcf35e1
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jun 2, 2024
34d89f0
made parameter types in functions explicit
Jun 2, 2024
2d7cfe4
Merge branch 'Rando-0.5.0-merge' of https://github.com/wossnameGitHub…
Jun 2, 2024
5511d62
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jun 2, 2024
2b61bc4
1st wave of changes made per Avasam's request
Jun 6, 2024
308fece
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jun 6, 2024
0609b2e
some more pyright adjustments
Jun 6, 2024
970e88b
Added all levels to LevelCRC + alphabetical order
Jun 7, 2024
0b35f4c
re-ordered levels in transition_infos.json, no functional changes
Jun 7, 2024
6cd685f
More assorted changes per Avasam's request
Jun 8, 2024
2b4df4b
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jun 8, 2024
c3dc3cf
single "line too long" fix
Jun 8, 2024
cd7a85a
moved all graph creation logic to it's own module
Jun 8, 2024
05d012f
All 38 missing exits added to json, and disabled in entrance_rando
Jun 8, 2024
197f0d3
Small updates to Readme & Configs descriptions
Jun 8, 2024
43723fe
typo fix: tuple( ) --> tuple[ ]
Jun 8, 2024
4cb9bb4
Apply suggestions from code review
Avasam Jun 8, 2024
ad6e68a
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jun 8, 2024
6175a7c
Merge branch 'main' into Rando-0.5.0-merge
Avasam Jun 8, 2024
dd62b06
Update Dolphin scripts/Entrance Randomizer/CONFIGS.py
Avasam Jun 8, 2024
db843bd
Merge branch 'main' into Rando-0.5.0-merge
Avasam Jun 8, 2024
178a84a
Post-merge fixes
Avasam Jun 9, 2024
a3f9e95
Merge branch 'main' into Rando-0.5.0-merge
Avasam Jun 9, 2024
f06f487
Fix major areas creation
Avasam Jun 9, 2024
eb757d1
Update Dolphin scripts/Entrance Randomizer/__main__.py
Avasam Jun 9, 2024
2d4c92b
even more small adjustments per Avasam's request
Jun 9, 2024
aedba85
Spoiler log now lists transitions in alphabetical order
Jun 9, 2024
aa60ba3
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jun 9, 2024
0ec2628
bit of linting and list comprehension
Jun 10, 2024
ee418ea
reworked disabled_exits
Jun 10, 2024
dbcc918
2 small `ruff` fixes
Jun 10, 2024
0067ab4
small update to blue text
Jun 10, 2024
3d9c14f
simplification of area.con_left
Jun 10, 2024
abbd9c4
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jun 10, 2024
b6ee7b5
tiny pyright fix
Jun 10, 2024
ede571c
Merge branch 'Rando-0.5.0-merge' of https://github.com/wossnameGitHub…
Jun 10, 2024
da9b454
Reorder transitin_infos based on world_infos
Avasam Jun 10, 2024
81a6740
some final(?) small changes per Avasam's request
Jun 11, 2024
83c50b3
Merge pull request #2 from Avasam/revert-transition_infos-reordering
wossnameGitHub Jun 13, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions Dolphin scripts/Entrance Randomizer/CONFIGS.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@

LINKED_TRANSITIONS: bool = True
"""
Whether the new destination will contain an exit back to the area you came from.
Assuming both areas have as many entrances as they have exits.
If True, going through any given transition and then backing out
will always result in you returning to the area you came from.
If False, no such guarantees are given.

default = True
"""
Expand Down
6 changes: 3 additions & 3 deletions Dolphin scripts/Entrance Randomizer/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@
set_transitions_map()
randomize_shaman_shop()

# This is necessary until/unless I map all areas even those not randomized.
# This is necessary as long as the player can choose an unused level (which isn't in the json)
try:
starting_area_name = TRANSITION_INFOS_DICT[starting_area].name
except KeyError:
starting_area_name = hex(starting_area).upper() + " (not in randomization)"
starting_area_name = hex(starting_area).upper() + " (not in transition_infos.json)"
wossnameGitHub marked this conversation as resolved.
Show resolved Hide resolved

# Dump spoiler logs and graph
dump_spoiler_logs(starting_area_name, transitions_map, seed_string)
Expand All @@ -67,7 +67,7 @@ async def main_loop():
draw_text(patch_shaman_shop())
draw_text(
"Starting area: " + (
f"{hex(starting_area).upper()} (Random)"
f"RANDOM [{TRANSITION_INFOS_DICT[starting_area].name}]"
if CONFIGS.STARTING_AREA is None
else starting_area_name
),
Expand Down
Loading
Loading