Author
|
Topic: Cant find pointer (Read 1 times)
|
Nightfall
Guest
|
 |
« on: October 02, 2010, 11:56:12 am » |
|
Alright,now I deleted my old message since STalKer-X explained me this stuff for hours  Heres a new one: So...I learned how to find pointers (wondering how someone can find out that method,its nothing Id ever get to with trying out... Anyway...Sentences and stuff,I can extend them now... BUT,there are single words,like items names,attacks names and stuff that wont work that way... Heres how I do the texts - I go to the beginning of the text,then reverse the address (if the beginning is at 123456 then I search for 563412 in hex),then I can change the values... However,if I do the same with single words,like item names,it wont get me any results,whats happening there? 
|
|
« Last Edit: October 04, 2010, 12:27:45 am by Nightfall »
|
|
|
|
KaioShin
Guest
|
 |
« Reply #1 on: October 04, 2010, 02:33:05 am » |
|
Lists of names are often stored as fixed length lists without direct text pointers. So instead the game just has an index number and interprets it as "Get me item number 50". You can recognize this if all names in the list are padded with zeroes or something else so they all have the same length. Is this possibly the case here?
|
|
|
|
Nightfall
Guest
|
 |
« Reply #2 on: October 04, 2010, 04:36:43 am » |
|
Maybe Itll help if I say that what Im searching are the names of "pokemon" from a heavily hacked rom. Also,some do have a zero,some dont,but they dont have the same lenght, the list has a "ff" on the end of every name tho...Ill make a screen of it so you can see it yourself. Also,what I can tell after experimenting,removing those "ff"results in melting two names,but the name after that wont be shown correctly so thats a no go I guess http://img251.imageshack.us/i/unbenanntjwv.png/
|
|
|
|
Squall
Guest
|
 |
« Reply #3 on: October 04, 2010, 11:23:19 am » |
|
Which game and system are you working on?
|
|
|
|
Nightfall
Guest
|
 |
« Reply #4 on: October 04, 2010, 12:57:18 pm » |
|
Its a heavily hacked version of pokemon fire red(japanese),for gba
AH! Taking a closer look,it seems like it IS a list where everythign has a fixed amount of characters!5 to be exact (didnt notice it in hex but looking at the text after finishing my table...) So,what can be done about that? if I replace the bytes that mark the end of the word and shift everything after that,the text wont be shown correct thought...
|
|
« Last Edit: October 04, 2010, 11:15:34 pm by Nightfall »
|
|
|
|
KaioShin
Guest
|
 |
« Reply #5 on: October 05, 2010, 01:32:53 pm » |
|
If it's a fixed-length list there is nothing than can be done besides major re-programming. It would probably a simple hack to change the amount of bytes of each entry, but then you'd have to relocate the whole table and adjust all entries to be padded to that new length. That would require a lot of free space etc.
|
|
|
|
Nightfall
Guest
|
 |
« Reply #6 on: October 05, 2010, 03:03:06 pm » |
|
Would that be too much for anyone to explain in detail? Im willing to spend time on it as much as needed,I just have to know how to...please x.x
what do people usually do when they have such a list?
|
|
« Last Edit: October 05, 2010, 11:57:41 pm by Nightfall »
|
|
|
|
KaioShin
Guest
|
 |
« Reply #7 on: October 06, 2010, 02:42:52 am » |
|
what do people usually do when they have such a list?
Deal with the space they have  \
|
|
|
|
Nightfall
Guest
|
 |
« Reply #8 on: October 06, 2010, 01:12:00 pm » |
|
Ah,thats not possible without chopping off...well,since noone really can or wants to help I guess its really a task to big for me anytime soon eh...Would be good if someone could confirm me that its nothing a beginner like me could do so I wont hold any hopes for that anymore so I can chop the text down in peace 
|
|
|
|
danke
Guest
|
 |
« Reply #9 on: October 06, 2010, 04:17:32 pm » |
|
If you use the English version, they've conveniently expanded all those lists for you. How nice of them. Since the items/Pogeymanz in Japanese don't need more than 5 characters, you'll have to make due if you insist on using the Japanese version.
Sadly, if the hack is only for the Japanese version, then you're pretty much screwed, unless you want to reverse-engineer the English version, and find what they changed around to allow for the longer names.
|
|
|
|
rmco2003
Guest
|
 |
« Reply #10 on: October 06, 2010, 05:11:05 pm » |
|
For games like Pokemon I'm pretty sure they compile from the original source code with changes for an English version, so reverse engineering the changes will not be fun I can assure you
|
|
|
|
Nightfall
Guest
|
 |
« Reply #11 on: October 06, 2010, 05:16:04 pm » |
|
Using a english rom wont be possible at all,the japanese pokemon hacking community is like 10 times more advanced then aynone here,they made changes I can only dream of doing...well,reverse engineering...I dont know how I should start with that,and im such a "noob" that even If I were to find anythign with randomly changing EVERYTHING I see...Id not know how to proceed then :/ Well,thats it I guess,choppy names are still good to recognize,making it playable
|
|
|
|
Nightfall
Guest
|
 |
« Reply #12 on: October 26, 2010, 05:49:45 am » |
|
I dont know if anyone will bother to answer anymore,but its worth a try anyway. So Ive been trying to find that value for the names - surprise,I found it...at least the one for renaming But as you can see,it will only show me the first 5 characters still,I can write more,but it wont show,also,the "gender" symbol stays there too Does that mean that there should be another value for that or is something else? 
|
|
|
|
Tauwasser
Guest
|
 |
« Reply #13 on: October 26, 2010, 11:46:43 am » |
|
Does that mean that there should be another value for that or is something else? You can get a certain knowledge out of these observations, but they only ever are theories. You don't know what happens until you look at the ASM closely. However, having some experience, the case is as follows: - The name is stored in RAM. The allotted length of it is five or six characters' worth of bytes.
- There may be other, unrelated data that comes after the name which you're now happily overwriting.
- The name is read back to display five characters only. The gender symbol is statically placed after the last character.
- For you to expand the name means to find some other, unused space in RAM and out the name there. Make sure it is saved. Then change every menu coding to accommodate for how many characters you want.
This is no task anybody should ever be doing by hand on a ROM anyway. These kind of changes are shaky and require a whole lot of experience and knowledge about the game. At best, you might be able to find many routines and change them, but you won't know when another one pops up that uses some obscure means to read the player's name. This is basically a dead end except you know exactly what you're doing, the original game's code handles things nicely and there are lots of RAM to shift things around. cYa, Tauwasser
|
|
|
|
Nightfall
Guest
|
 |
« Reply #14 on: October 26, 2010, 10:19:24 pm » |
|
thats it for me then...I tried so hard and patiently :angel: Cant say it didnt help me in any other form at least. Well, thanks to everyone who answered here,I think Ill go ahead and try around in the future again but doupt that ill make any progress
|
|
|
|
|