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

[Module] Create module for quest workarounds #5831

Open
wants to merge 1 commit into
base: base
Choose a base branch
from

Conversation

hooksta4
Copy link
Contributor

I affirm:

  • I understand that if I do not agree to the following points by completing the checkboxes my PR will be ignored.
  • I understand I should leave resolving conversations to the LandSandBoat team so that reviewers won't miss what was said.
  • I have read and understood the Contributing Guide and the Code of Conduct.
  • I have tested my code and the things my code has changed since the last commit in the PR and will test after any later commits.

What does this pull request do?

Allows players to complete the quest Wish Upon a Star. Currently, Bastok does not have a "NONE" weather and therefore will never take the fallen star item. Adding sunshine (clear) remediates this.

Adds an or player:getWeather() == xi.weather.SUNSHINE

Steps to test these changes

Run through the quest players will now be able to complete the quest.

@zach2good
Copy link
Contributor

Would the right thing to do here be to give Bastok NONE weather?

Copy link
Contributor

@zach2good zach2good left a comment

Choose a reason for hiding this comment

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

This is a workaround, not a fix

@zach2good
Copy link
Contributor

Looking at my weather tracker on retail:
image

@hooksta4
Copy link
Contributor Author

Would the right thing to do here be to give Bastok NONE weather?

Yes, that would be the correct fix.

@hooksta4 hooksta4 changed the title [Quest]Fix weather for wish upon star May 26, 2024
@zach2good
Copy link
Contributor

image
@zach2good
Copy link
Contributor

db.zip

Here is my current sqlite db for the weather reporter, there should be enough information in there to get you started, plus the query in the SS above.

zone.cpp explains in great detail how to set up weather information for zones:

/*************************************************************************
 *                                                                        *
 *  Loads weather for the zone from zone_bweather SQL Table               *
 *                                                                        *
 *  Weather is a rotating pattern of 2160 vanadiel days for each zone.    *
 *  It's stored as a blob of 2160 16-bit values, each representing 1 day  *
 *  starting from day 0 and storing 3 5-bit weather values each.          *
 *                                                                        *
 *              0        00000       00000        00000                   *
 *              ^        ^^^^^       ^^^^^        ^^^^^                   *
 *          padding      normal      common       rare                    *
 *                                                                        *
 *************************************************************************/

void CZone::LoadZoneWeather()
{
    TracyZoneScoped;
    static const char* Query = "SELECT weather FROM zone_weather WHERE zone = %u";
@zach2good
Copy link
Contributor

Reason I won't accept this (as I explained once in a stream) is that if this goes in, it'll never be properly fixed because it's so small an innocuous. All the information to do it properly is available.

@zach2good zach2good added the hold On hold, pending further action/info label May 26, 2024
@hooksta4
Copy link
Contributor Author

That's fair.

@zach2good
Copy link
Contributor

If you're not able to do the weather data breakdown, you can change this PR to provide a 'workarounds' Lua module that changes this condition using xi.module.modifyInteractionEntry, which will be off by default.

@zach2good
Copy link
Contributor

In that module, you can provide the steps needed to remedy and get rid of the workaround

@hooksta4
Copy link
Contributor Author

@zach2good - tested this out good to go. Reverted the original file back to what it is currently.

@hooksta4 hooksta4 changed the title [Quest]Work around fix weather for wish upon star May 27, 2024
@hooksta4 hooksta4 changed the title [Quest]Module - Wish Upon a Star weather adjustment May 27, 2024
Copy link
Contributor

@zach2good zach2good left a comment

Choose a reason for hiding this comment

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

Almost there

modules/era/lua/wish_upon_a_star.lua Outdated Show resolved Hide resolved
modules/era/lua/wish_upon_a_star.lua Outdated Show resolved Hide resolved
modules/era/lua/wish_upon_a_star.lua Outdated Show resolved Hide resolved
@zach2good zach2good removed the hold On hold, pending further action/info label May 27, 2024
@hooksta4 hooksta4 changed the title [Quest]Module - Wish Upon a Star weather bandaid. May 27, 2024
@hooksta4 hooksta4 requested a review from zach2good May 28, 2024 21:51
modules/era/lua/quest_workarounds.lua Outdated Show resolved Hide resolved
modules/era/lua/quest_workarounds.lua Outdated Show resolved Hide resolved
modules/era/lua/quest_workarounds.lua Outdated Show resolved Hide resolved
modules/era/lua/quest_workarounds.lua Outdated Show resolved Hide resolved
@zach2good zach2good changed the title [Module]Create module for quest workarounds May 29, 2024
@hooksta4 hooksta4 force-pushed the wish_upon_star_fix branch 2 times, most recently from 370d508 to 27a469f Compare May 29, 2024 21:25
[Module] Create module for quest workarounds

[Module] Create module for quest workarounds

[Module]Create module for quest workarounds

[Module]Quest Workarounds

[Quest]Work around fix weather

[Quest]Fix weather for wish upon star

[Module]Create module for quest workarounds

Co-Authored-By: Tracent <92269743+TracentEden@users.noreply.github.com>
Co-Authored-By: Abdiah <62350957+dallano@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants