You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Seems that the "Met at" location always uses the language you were playing at the time. I got this Crobat when playing in Spanish and now that I'm playing in English, the "Met at" location keeps being in Spanish
The text was updated successfully, but these errors were encountered:
The history behind this is the fact that location names are stored directly as strings and could not be stored as the actual location ID because that would require loading the entire zone plus generating the entire floor to figure out what the name is.
However, recently I've been thinking if it's possible for location data to be saved as the string key rather than the full string
together with the parameters
such that it can be looked up each time on reference.
doing this will wipe all existing location name data though.
unless we do some awkward parsing I guess
Points of interest:
BattleEvent.cs ln19628: This is where MetAt gets assigned the current location string on recruit
Map.cs ln42: This is the actual place that the current location's string data is stored. It's a LocalText, which means it contains just a text key and the parameters. If you call ToLocal() on a localtext it will localize to YOUR current language.
So, you must change MetAt to a LocalText and then assign the Name value of the current map to it on recruitment.
You will get some downstream errors, one of which is the character.MetAt assign during the start, where it gets assigned Text.FormatKey("MET_AT_START"). What you will need to do is take every translation of MET_AT_START and create a LocalText that contains all of those strings. And then assign it to the MetAt. The same goes for MENU_TEAM_MET_AT, which is for Met-At data for pokemon that were traded.
You can do this for FaintedAt too.
These are more or less the steps to fixing this bug.
Discord: suguivy#0 <@625819986195382292>
Seems that the "Met at" location always uses the language you were playing at the time. I got this Crobat when playing in Spanish and now that I'm playing in English, the "Met at" location keeps being in Spanish
The text was updated successfully, but these errors were encountered: