Git Product home page Git Product logo

ynobadges's Issues

2kki: Wedding Cake Badge Unlocked w/ Virtual Mapper

Yeah, I read the past PRs, and I'm sorry to say the Wedding Cake badge might still technically be broken: I obtained the notification for the badge unlocking alongside the (correctly) unlocked Virtual Mapper badge in the map room.

While I had been buying from vending machines prior to entry, at no point in time did I see the Wedding Cake amongst the food and drink spawned, and I don't think the delay between the last vending machine and interacting with the NPC in the map room of the Virtual City was short enough for it to be related, but I could be wrong about that.

In fact, looking at qxy's *V_Earth map event: Its comments claim they use variable 67 for the Y axis of their virtual map there (V[0067] : 移動量 Y). So that's probably the cause, even though scouring through the events I can't see where the variable gets used beyond being reset to 0 at the end... Anyway, if it IS the cause, my proposed solutions would be, from simplest to most painful sounding in my own opinion:

  • Tying it to the game flipping the switch manipulating variable 4286 for the Snack Gallery's unlock instead (would punish players who have already unlocked the wedding cake in their save files until they make new ones, I guess); If the Wedding Cake's been consumed by the player, this variable in question should be 32768 or higher (highest should be 524287), with the only valid values being ones that, when divided by 2^16, will not return 0 when run through the modal %= 2 operation in the Snack Gallery's relevant map event
  • Figuring out a way for EasyRPG to expose when it's running common events and tie the related badge(s) to Common Event 6 (i.e.- 自販機EV) only, if that's not already a thing
    Unfortunately, the map that the virtual map is in contains a vending machine somewhere (it's one of those 'multiple rooms on a single map' ones), so the idea of just excluding areas without vending machines doesn't work unless a specific exclusion for the region the virtual mapper NPC is in is made, which sounds like a pain personally and would also not prevent the issue from happening any time any other map event comes along and decides to use variable 67. But since that's something that's been done via YNOLocations' repo, it's a possibility. If it helps, exclude the following region inside map 1899: "coords": { "x1": 47, "y1": 41, "x2": 51, "y2": 43 } from being valid for the wedding cake and similar future food based badge unlocks, maybe.

Edit: Just wanted to specify this happened and was written with 0.120d Patch 5 in mind, in case anything's changed since.

Yume 2kki - The Triple-Decker Cake badge is prone to false positives allowing it to be obtained while it shouldn't

There are two issues surrounding this badge:

  • In Virtual City, the map room can trigger this badge when using it due to using the same variable than the one tracked (not sure if this one has changed since the latest qxy updates)
  • The variable that is at first used to know which snack you should obtain is edited in the common event to give you your snack, making it unreliable since the variable can end up at the same value than the one wanted while buying another snack. As such, if possible, another variable would need to be triggered, or checking at which point in the common event is the interaction to know if the badge should be triggered or not (doing a map per map case isn't really possible due to the number of vending machines and random machines throughout the game).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.