How do i make a table file where characters has 2 bytes?

Started by Victotem, August 27, 2022, 10:56:24 AM

Previous topic - Next topic

Victotem

In the begginers tutorial the tables are like:
B3=A
B4=B
B5=C
...
but when P goes from 0x80BF to 0xC0
how do you express that in the .txt file?
which is the correct form?

FAST6191

Table file standards vary between programs that use them ( https://transcorp.romhacking.net/scratchpad/Table%20File%20Format.txt is but a suggestion made after many of those tools).

That said such things are going to be fairly standard so copied from link above

    Format
           
            hexadecimal sequence=text sequence
       
        Rules
               
            1. Each entry must be contained on a single line.
            2. Hex sequences must be an even number of characters.
            3. Hex sequences must be big endian (most significant to least significant)
            4. Hex sequences and Text sequences have no practical limit on length.
            5. Whitespace is allowed in the text sequence only.
            6. Text sequences may not contain '[' or ']' characters. These characters are
               reserved for Non-Normal entries and Raw Hex. See 2.5 and 2.7 respectively.
           
        Single-byte entries look like this:

            00=A
            01=B
            02=C
            3E=あ
            3F=い
            40=う

        Multi-byte entries look like this:

            12345678=A

        Multi-character entries look like this:

            00=Test

        A combination of the two looks like this:

            1234=Test
Doing a whole lot in any kind of automated fashion? Don't think there is one as most such things when table file generators were being made would be Japanese (no order) or European languages (8 bit text encoding by default).
Piecemeal then I always liked tabular https://www.romhacking.net/utilities/55/ myself for messing with 16 bit entries.
That said you could use the column editing options of notepad++ https://www.technipages.com/notepad-column-mode or mess around with spreadsheets.

Oriton (usually seen flanking Kruptar7 text dumper/editor) could also be worth a look
http://www.magicteam.net/index.php?page=programs

Victotem

I solved the problem using the table as a reference and inserting the values in the Hex searcher raw. Like 08CE08CA...
thanks for sharing your knowledge!