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

LADX: Fix hints generation for longer location names #2099

Merged
merged 1 commit into from
Aug 11, 2023

Conversation

zig-for
Copy link
Collaborator

@zig-for zig-for commented Aug 10, 2023

What is this fixing or adding?

Fixes text pointer storer running out of space when location name is long by:

  1. Giving some more space in bank 9 for hints
  2. Capping hint length at 85
    ...this would be better solved by redoing how owl hint text boxes are done but this is far easier to fix for now.

How was this tested?

Generation with forced long unique hint names. I haven't technically run a ROM using this, but the space is unused, unless something specifically goes looking in bank 9 for zeroes (why?!).

If this makes graphical changes, please attach screenshots.

@CodeTriangle
Copy link
Contributor

I was the one who brought this issue up with zig. I merged the changes into my dev branch and it seems to have fixed my issue.

expand = False
if expand:
st["end"] = 0x4000
if info["expand_to_end_of_bank"] == True or st["bank"] in info["expand_to_end_of_bank"]:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe "== True" is considered bad form.

@Berserker66 Berserker66 merged commit d547412 into ArchipelagoMW:main Aug 11, 2023
@ThePhar ThePhar added the is: bug/fix Issues that are reporting bugs or pull requests that are fixing bugs. label Aug 16, 2023
FlySniper pushed a commit to FlySniper/Archipelago that referenced this pull request Nov 14, 2023
kl3cks7r pushed a commit to kl3cks7r/Archipelago that referenced this pull request Dec 15, 2023
Jouramie pushed a commit to Jouramie/Archipelago that referenced this pull request Feb 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
is: bug/fix Issues that are reporting bugs or pull requests that are fixing bugs.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants