Oh its been a while since I came back to this ^^'. I was able to get the text to show up but there is still this extra /00 at the end of each line. I have the ptReference still at the default value, Im not sure if thats the reason why. I'm still confused on what to put for the ptReference. You put that its reference to sum with the pointer and where it starts/ends but I'm confused on what you mean by that. Here is what I was able to get:
View attachment 273786
This extra /00 won't dissappear unless you build a plugin to remove it and insert it when you run the script
It's absolutely normal and it represents the End of String on the file(That you stabilished on "String Terminator" inside kryptar7), no need to worry about it
For me, I make a lot of scripts for 3ds and switch, normally, the String terminator on it is 00 00 00, so, Kruptar ends all the strings with /00/00/00
--------------------- MERGED ---------------------------
Oh its been a while since I came back to this ^^'. I was able to get the text to show up but there is still this extra /00 at the end of each line. I have the ptReference still at the default value, Im not sure if thats the reason why. I'm still confused on what to put for the ptReference. You put that its reference to sum with the pointer and where it starts/ends but I'm confused on what you mean by that. Here is what I was able to get:
View attachment 273786
About the ptReference, it's an value to sum with the pointers values, this is called Relative Pointer
Like: ptReference is 3000 and first pointer have 0F value, so in 300F position it's supposed to start an text that's mapped to the 0F pointer
Normally, only few games use this kind of pointer, the normal case is the Absolute Pointer: ptReference with 0 and sum with the pointer value
If you were able to extract the texts without bugs with ptReference: 0, leave with this value
--------------------- MERGED ---------------------------
Oh its been a while since I came back to this ^^'. I was able to get the text to show up but there is still this extra /00 at the end of each line. I have the ptReference still at the default value, Im not sure if thats the reason why. I'm still confused on what to put for the ptReference. You put that its reference to sum with the pointer and where it starts/ends but I'm confused on what you mean by that. Here is what I was able to get:
View attachment 273786
Just for you to compare, this is an print from my Bravely Default translation project to Brazilian Portuguese
You can see that my String terminator is 000000, but all the texts ends with /00/00 only
This is an adjustment that I made on the Characters table, each char have 2 bytes, one for the letter and one 00 byte, so letter A would be 41 00. With this adjustment on the .tbl file, my kruptar project can work with only /00/00 on the end, cuz the letter before the string terminator already have an 00 byte on it, so if my phase ends with A, I would have in bytes: 41 00 00 00
About the ptReference, on Bravely Default, the game use in every file the Relative Pointers, so I can't leave ptReference with 0 value, however, the value that I must use is in hex header of the file(In little endian format on print 2), and you can check on ptReference from print1 that I put the exact hex code to work