Editing How Pikmin 2 loads text
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
− | + | ||
== Intro == | == Intro == | ||
Line 5: | Line 5: | ||
The way ''Pikmin 2'' loads text is very complicated. That is why I am making a page to describe what I've learned about how it works and how I made new treasures that have text associated with them. The first thing to note is that the game loads text in 2 different ways. In cutscenes, text loaded in text boxes is loaded by its index in the BMG file. Every other part of the game uses the text's ID. | The way ''Pikmin 2'' loads text is very complicated. That is why I am making a page to describe what I've learned about how it works and how I made new treasures that have text associated with them. The first thing to note is that the game loads text in 2 different ways. In cutscenes, text loaded in text boxes is loaded by its index in the BMG file. Every other part of the game uses the text's ID. | ||
− | The way index loading works is simple. You enter what index the game should load in the cutscene's STB and it loads the text, even its brand new text after the last vanilla | + | The way index loading works is simple. You enter what index the game should load in the cutscene's STB and it loads the text, even its brand new text after the last vanilla line. The issue is that the game ONLY loads text this way for cutscenes. |
Loading text by ID is where things get messy, and unfortunately, its what the game does 99% of the time. you can change the ID of existing text boxes and it works fine. but adding new text boxes messes with the whole system. New text messages have to be put at the end of the list or you break the game loading by index. Unfortunately, '''the game will NOT load text by ID if the text's index is higher than the highest index in the vanilla game'''. In other words, '''you CAN NOT add new text entirely unless its being loaded by index''', which is unlikely unless you're somehow making all new cutscenes. | Loading text by ID is where things get messy, and unfortunately, its what the game does 99% of the time. you can change the ID of existing text boxes and it works fine. but adding new text boxes messes with the whole system. New text messages have to be put at the end of the list or you break the game loading by index. Unfortunately, '''the game will NOT load text by ID if the text's index is higher than the highest index in the vanilla game'''. In other words, '''you CAN NOT add new text entirely unless its being loaded by index''', which is unlikely unless you're somehow making all new cutscenes. | ||
+ | |||
== How I Made Custom Treasures Have Text== | == How I Made Custom Treasures Have Text== | ||
Line 25: | Line 26: | ||
[[File:burn in pickles.png|300 px|After i got the game to use only half as many treasure name entries]] | [[File:burn in pickles.png|300 px|After i got the game to use only half as many treasure name entries]] | ||
[[File:textindex.png|300 px|This text is after the last valid index, so while it loads fine when loaded by index, its impossible to load it by ID because this game is dumb]] | [[File:textindex.png|300 px|This text is after the last valid index, so while it loads fine when loaded by index, its impossible to load it by ID because this game is dumb]] | ||
− | |||
− | |||
− |