Jungle Hijinxs = 4A 75 6E 67 6C 65 20 48 69 6A 69 6E 78 F3
01110011 = 0x73 = 's' (normal ASCII value)
11110011 = 0xF3 = 's' (high bit set to indicate last character)
// constructing bitsets
#include <iostream>       // std::cout
#include <string>         // std::string
#include <bitset>         // std::bitset
int main ()
{
  std::bitset<7> bar (0x73);
  
  std::cout << "bar: " << bar << '\n';
  
  return 0;
}
0000 = "Dog"
0003 = "Cat"
0006 = "Gorilla"
000D = "Shark"0000 = "Dog"
0003 = "Tiger"
0008 = "Gorilla"
000F = "Shark"Cyclone wrote:
How do you set a high bit of a ASCII character? Is there a calculator? I'm looking on google... Using C++

 It is like Kingizor said. In a rom, there exists a pointer table. That table specifies where a string starts. The game finds where a string ends by looking for the high bit. Both of those together allow you to fully customize names (well, mostly
 It is like Kingizor said. In a rom, there exists a pointer table. That table specifies where a string starts. The game finds where a string ends by looking for the high bit. Both of those together allow you to fully customize names (well, mostly   )
 ) 
Cyclone wrote:I need some advice. My code works and all and I can write the changed text to the German text in the ROM. I started the game and it works great.
My question is how do I change multiple names at a time so that they don't overlap? I'm trying to understand the logic. Maybe I have to load every byte/character into an array? An re-write it to the ROM some how?
 
 Users browsing this forum: No registered users and 10 guests