Cach tach ngon ngu ra khoi file ma hoa nhu sau:
Thong thuong, moi hang game deu co mot cach ma hoa khac nhau. Vi du: dac trung cho hang handy game la file .lng
Bay gio ta xet cach ma hoa 2 cau "chiase123.com" va "loveit" cua game eng va game china xem nhe:
- Doi voi game china, ta xet hang "Gametowin", ma hoa nhu sau:
000000000008109119097112046098105122000000000006108111118101105116000000000
Hay chu y den 000008109119097112046098105122 va 000006108111118101105116. Do la ngon ngu ma ta cam dich. Theo bang ma dec ta co the hieu no nhu sau: 000000000008chiase123.com000000000006loveit00000000
Ta cat ngon ngu ra bang class Editor bang cach boi den phan 000008chiase123.com ra, vi sao? 000008 la string counter cua chiase123.com. Va string Counter la gi? do la 2 byte ki tu nam o dau ngon ngu quy dinh do dai ngon ngu nam sau. Neu xem bang ma dec thi no hien thi 6 so. Ta biet rang 1byte=255ki tu. Neu vuot qua 255 ki tu thi no se bu vao byte phia truoc. Vd: 256 ki tu la 001000, 300 ki tu la 001044.