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 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 message. If the game only called text by index, we could easily add as much new text as we want. But it doesn't, the game '''ONLY''' loads text this way for cutscenes.
+
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 message. If the gam'''e only called text by index, we could easily add as much new text as we want. But it doesn't, 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.

Please note that all contributions to Pikmin Technical Knowledge Base are considered to be released under the Creative Commons Attribution-ShareAlike (see Pikmin Technical Knowledge Base:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To edit this page, please answer the question that appears below (more info):

Cancel Editing help (opens in new window)