Note that there are some explanatory texts on larger screens.

plurals
  1. POFind and Replace HEX Strings
    primarykey
    data
    text
    <p>OK, I'm stuck at this point... I want to compare two files and copy over(replace) the strings from one file to another.</p> <p>Example File 1:</p> <pre><code>01cd74a8h: 65 00 00 00 54 45 53 54 00 00 00 00 00 00 00 00 ; e...TEST........ 01cd74b8h: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ; ................ 01cd74c8h: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ; ................ 01cd74d8h: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ; ................ 01cd74e8h: 00 00 00 00 00 00 20 C5 00 00 00 00 00 00 20 C5 ; ...... ?..... ? 01cd74f8h: 00 00 20 45 00 00 00 00 00 00 20 45 01 00 00 00 ; .. E...... E.... 01cd7508h: 00 00 00 00 00 00 00 00 C9 00 00 00 54 61 6D 20 ; ........?..Tam 01cd7518h: 54 61 20 51 75 61 6E 00 00 00 00 00 00 00 00 00 ; Ta Quan......... 01cd7528h: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ; ................ 01cd7538h: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ; ................ 01cd7548h: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 20 45 ; .............. E 01cd7558h: 00 00 00 00 00 00 20 C5 00 00 F0 45 00 00 00 00 ; ...... ?.餎.... 01cd7568h: 00 00 20 45 01 00 00 00 00 00 00 00 00 00 00 00 ; .. E............ 01cd7578h: 2D 01 00 00 4C 69 65 75 20 43 68 69 6E 68 20 51 ; -...Lieu Chinh Q 01cd7588h: 75 61 6E 00 00 00 00 00 00 00 00 00 00 00 00 00 ; uan............. 01cd7598h: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ; ................ 01cd75a8h: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ; ................ 01cd75b8h: 00 00 00 00 00 00 F0 C5 00 00 00 00 00 00 20 C5 ; ......鹋...... ? 01cd75c8h: 00 00 20 C5 00 00 00 00 00 00 20 45 01 00 00 00 ; .. ?..... E.... 01cd75d8h: 00 00 00 00 00 00 00 00 91 01 00 00 56 6F 20 54 ; ........?..Vo T 01cd75e8h: 68 69 65 6E 20 43 61 63 20 31 00 00 00 00 00 00 ; hien Cac 1...... 01cd75f8h: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ; ................ 01cd7608h: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ; ................ 01cd7618h: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 48 C4 ; ..............H? 01cd7628h: 00 00 00 00 00 00 48 C4 00 00 48 44 00 00 00 00 ; ......H?.HD.... 01cd7638h: 00 00 48 44 00 00 00 00 10 CA 9A 3B 00 00 00 00 ; ..HD.....蕷;.... </code></pre> <p>Example File 2:</p> <pre><code>01b954a8h: 65 00 00 00 43 65 6E 74 72 61 6C 20 56 61 6C 6C ; e...Central Vall 01b954b8h: 65 79 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ; ey.............. 01b954c8h: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ; ................ 01b954d8h: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ; ................ 01b954e8h: 00 00 00 00 00 00 20 C5 00 00 00 00 00 00 20 C5 ; ...... ?..... ? 01b954f8h: 00 00 20 45 00 00 00 00 00 00 20 45 01 00 00 00 ; .. E...... E.... 01b95508h: 00 00 00 00 00 00 00 00 C9 00 00 00 48 69 6C 6C ; ........?..Hill 01b95518h: 20 56 61 6C 6C 65 79 00 00 00 00 00 00 00 00 00 ; Valley......... 01b95528h: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ; ................ 01b95538h: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ; ................ 01b95548h: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 20 45 ; .............. E 01b95558h: 00 00 00 00 00 00 20 C5 00 00 F0 45 00 00 00 00 ; ...... ?.餎.... 01b95568h: 00 00 20 45 01 00 00 00 00 00 00 00 00 00 00 00 ; .. E............ 01b95578h: 2D 01 00 00 52 69 76 65 72 73 69 64 65 20 50 6C ; -...Riverside Pl 01b95588h: 61 69 6E 73 00 00 00 00 00 00 00 00 00 00 00 00 ; ains............ 01b95598h: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ; ................ 01b955a8h: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ; ................ 01b955b8h: 00 00 00 00 00 00 F0 C5 00 00 00 00 00 00 20 C5 ; ......鹋...... ? 01b955c8h: 00 00 20 C5 00 00 00 00 00 00 20 45 01 00 00 00 ; .. ?..... E.... 01b955d8h: 00 00 00 00 00 00 00 00 91 01 00 00 46 6F 72 62 ; ........?..Forb 01b955e8h: 69 64 64 65 6E 20 54 6F 77 65 72 20 31 46 00 00 ; idden Tower 1F.. 01b955f8h: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ; ................ 01b95608h: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ; ................ 01b95618h: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 48 C4 ; ..............H? 01b95628h: 00 00 00 00 00 00 48 C4 00 00 48 44 00 00 00 00 ; ......H?.HD.... 01b95638h: 00 00 48 44 00 00 00 00 10 CA 9A 3B 00 00 00 00 ; ..HD.....蕷;.... </code></pre> <p>What I want to do is compare File1 to File2, to see if there are any matches in the Item ID's, and copy over File2's information to File1, ONLY if the item exists.</p> <p>The Item ID starts 4 bytes behind the Item name.</p> <pre><code> 01b954a8h: 65 00 00 00 43 65 6E 74 72 61 6C 20 56 61 6C 6C ; e...Central Vall 01b954b8h: 65 79 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ; ey.............. 01b95508h: 00 00 00 00 00 00 00 00 C9 00 00 00 48 69 6C 6C ; ........?..Hill 01b95518h: 20 56 61 6C 6C 65 79 00 00 00 00 00 00 00 00 00 ; Valley......... </code></pre> <p>Here you can see that "65 00" and "C9 00" are the ID for Central Valley and Hill Valley correspondingly.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload