Commit Graph

2546 Commits

Author SHA1 Message Date
spinerak 577fb744f6 Multiple smaller code improvements
- changed names in YachtWeights so we don't need to translate them in Rules anymore
- we now remember which categories are present in the game, and also put this in slotdata. This we do because only one of two categories is present in a game. If for some reason both are present (plando/getitem/startinventory), we now know which category to ignore
-
2024-07-06 21:18:59 +02:00
Spineraks d12218166b Merge branch 'main' into main 2024-06-16 22:18:33 +02:00
Zach Parks 1f685b4272 CommonClient: Use lookup_in_game instead of lookup_in_slot in case of own-game name lookup when disconnected from server. (#3514) 2024-06-16 05:37:05 -05:00
Scipio Wright c622240730 Tunc: Update plando connections description (#3545) 2024-06-16 05:02:48 +02:00
Mrks 1d314374d7 LADX: Moved ROM requirement from generate_output to stage_assert_generate. (#3540)
Co-authored-by: Mrks <markus.burmeister@mburm.de>
2024-06-16 04:31:32 +02:00
palex00 753eb8683f Pokemon Red/Blue: Replaces link to R&B Poptracker with a new one (#3516)
* Update setup_en.md

* Update setup_es.md
2024-06-16 04:10:50 +02:00
NewSoupVi 2a11d610b6 The Witness: Fix Shuffle Postgame always thinking it's Challenge Victory (#3504)
* Fix postgame thinking it's the wrong panel

* Also don't have a default value for it so it doesn't happen again
2024-06-16 01:56:20 +02:00
coveleski 92023a2cb5 Pokemon RB: Add new options to slot_data (#3538)
Added require_pokedex, blind_trainers, and area_1_to_1 mapping, which would be helpful to the poptracker packs to accurately reflect the checks available to players.
2024-06-16 01:55:52 +02:00
Fabian Dill df94271d30 LttP: fix single-player no-logic generation (#3454) 2024-06-15 19:18:26 +02:00
spinerak 17ac22e183 Update apworld version to 2.0.6
2.0.5 is the apworld I released on github to be tested
I never separately released 2.0.4.
2024-06-15 15:14:15 +02:00
Bryce Wilson 0354315c22 Pokemon Emerald: Remove README (#3532) 2024-06-15 04:52:01 +02:00
Spineraks 0327b60eff Merge branch 'main' into main 2024-06-15 01:07:32 +02:00
spinerak 2018406833 added , because of style 2024-06-15 01:03:51 +02:00
spinerak 7d21ec902f 🐶 2024-06-15 01:02:19 +02:00
spinerak 090859a0f7 Split the cache per player, limit size to 400. 2024-06-15 00:59:36 +02:00
Natalie Weizenbaum c61505baf6 WebHost/Core/Lingo: Render option documentation as reStructuredText in the WebView (#3511)
* Render option documentation as reStructuredText in the WebView

This means that options can use the standard Python documentation
format, while producing much nicer-looking documentation in the
WebView with things like emphasis, lists, and so on.

* Opt existing worlds out of rich option docs

This avoids breaking the rendering of existing option docs which were
written with the old plain text rendering in mind, while also allowing
new options to default to the rich text rendering instead.

* Use reStructuredText formatting for Lingo Options docstrings

* Disable raw and file insertion RST directives

* Update doc comments per code review

* Make rich text docs opt-in

* Put rich_text_options_doc on WebWorld

* Document rich text API

* Code review

* Update docs/options api.md

Co-authored-by: Doug Hoskisson <beauxq@users.noreply.github.com>

* Update Options.py

Co-authored-by: Doug Hoskisson <beauxq@users.noreply.github.com>

---------

Co-authored-by: Chris Wilson <chris@legendserver.info>
Co-authored-by: Doug Hoskisson <beauxq@users.noreply.github.com>
2024-06-14 18:53:42 -04:00
spinerak e8fd7ca0fe Add Dict import 2024-06-14 22:40:35 +02:00
spinerak 0c020d9609 🐶 2024-06-14 22:12:53 +02:00
Spineraks 6342335cb6 Merge branch 'main' into main 2024-06-14 22:08:57 +02:00
spinerak 5089df125f Only put important options in slotdata 2024-06-14 22:08:34 +02:00
spinerak b5c596a075 Choice options; dont'use .value (will ruff later) 2024-06-14 21:51:15 +02:00
spinerak 18897e84fd Removed the return from ini_locations.
Also added explanations to cat_weights
2024-06-14 21:16:25 +02:00
spinerak 52693124aa Change "weight-lists" to Dict[str, float] 2024-06-14 20:57:22 +02:00
spinerak 3c9c16de7a Removed nonlocal and pass arguments instead 2024-06-14 20:38:04 +02:00
spinerak 4a5a79988f Adjusted max_dist, split dice_simulation function 2024-06-14 20:30:41 +02:00
spinerak 42034af724 Changed the weights to make it faster
135 -> 81 seconds on 100 random yamls
2024-06-14 20:09:10 +02:00
spinerak 5ce9194915 Step inbetween to change the weights 2024-06-14 20:07:49 +02:00
spinerak 5e8a2199cb Revert "Use numpy and pmf function to speed up gen"
This reverts commit 9290191cb3.
2024-06-14 19:15:06 +02:00
spinerak 9290191cb3 Use numpy and pmf function to speed up gen
Numpy has a built-in way to sum probability mass functions (pmf).
This shaves of 60% of the generation time :D
2024-06-14 01:42:58 +02:00
spinerak 1789824e7c ruff 🐶 2024-06-14 01:42:10 +02:00
spinerak e11aba1cfc Reverse changes of bad idea :) 2024-06-14 01:29:54 +02:00
spinerak cd6886062c Add Points item category 2024-06-13 23:07:15 +02:00
JoshuaEagles da34800f43 Fix Incorrect Link Syntax in SA2B Linux Setup (#3524) 2024-06-13 06:53:01 +02:00
spinerak 353a676301 temporary push: 40% faster generation test
Small changes in logic make the generation 40% faster.
I'll have to think about how big the changes are. I suspect they are rather limited.
If this is the way to go, I'll remove the temp file and redo the YachtWeights file, I'll remove the functions there and just put the new weights here.
2024-06-13 00:00:54 +02:00
Silvris b9e454ab4e TS: add indirect connections (#3490) 2024-06-12 03:23:46 +02:00
Natalie Weizenbaum 7299891bdf Allow worlds to add options to prebuilt groups (#3509)
Previously, this crashed because `typing.NamedTuple` fields such as
`group.name` aren't assignable. Now it will only fail for group names
that are actually incorrectly cased, and will fail with a better error
message.
2024-06-12 03:22:14 +02:00
Fabian Dill e755f1a0b5 SC2: don't close all SC2 instances when one quits (#3507) 2024-06-12 02:14:30 +02:00
Louis M 87d24eb38a Aquaria: Add entrance rule and fix start_inventory_from_pool (#3473) 2024-06-11 17:59:46 -05:00
spinerak 12ecd9f26b Revert "Hash categories (which makes it slower :( )"
This reverts commit 34f2c1aed8.
2024-06-11 21:10:59 +02:00
spinerak 34f2c1aed8 Hash categories (which makes it slower :( )
Maybe I messed up or misunderstood...
I'll revert this right away since it is 2x slower, probably because of sorted instead of sort?
2024-06-11 21:10:49 +02:00
spinerak 42e9af239d Removed sorted from category list 2024-06-11 20:41:15 +02:00
spinerak b1ed50eab3 remove ) too many 2024-06-11 20:22:41 +02:00
spinerak 7a9b3e2d8b .append instead of += for single items, percentile function changed
Also an extra comment for location ids.
2024-06-11 19:33:36 +02:00
spinerak 36265257a1 Remove lookup_id_to_name entirely
I for sure don't use it, and as far as I know it's not one of the mandatory functions for AP, these are item_name_to_id and location_name_to_id.
2024-06-11 19:14:05 +02:00
spinerak 0aa2b31ca4 Remove location "0", we don't use that one 2024-06-11 19:11:17 +02:00
spinerak 40ef9aab19 some readability improvements 2024-06-11 19:10:49 +02:00
Justus Lind 54531c6eba Muse Dash: Remove regions for a decent speed gain in generating worlds (#3435)
* Remove Muse Dash Regions.

* Update comments.
2024-06-11 03:11:19 +02:00
Fabian Dill 75bef3ddb1 Various: fix absolute imports in worlds (#3489) 2024-06-11 00:42:57 +02:00
JusticePS 484082616f Adventure: Update to use new options api (#3326) 2024-06-11 00:42:01 +02:00
spinerak 570af1ab4c change .random and used enumerate 2024-06-10 19:36:55 +02:00