在DNF中,角色貼圖以.ani文件的坐標為中心,NPK中png的坐標為繪製坐標(坐上)進行繪製,繪製的結果如圖所示: 原點坐標-232,-333 原點坐標-232,-333 皮膚坐標207,224 皮膚坐標207,224 太刀柄194,264 太刀柄194,264 太刀刃213,283 太刀刃213 ...
在DNF中,角色貼圖以.ani文件的坐標為中心,NPK中png的坐標為繪製坐標(坐上)進行繪製,繪製的結果如圖所示:
原點坐標-232,-333
原點坐標-232,-333
皮膚坐標207,224
皮膚坐標207,224
太刀柄194,264
太刀柄194,264
太刀刃213,283
太刀刃213,283
讀取代碼,目前只完成讀取IMGV2的圖片型索引,指向型索引和其他IMG格式還未完成:
using System; using System.Collections.Generic; using System.Text; using System.IO; namespace 提取NPK { class Program { static string 文件路徑 = @"D:\單機dnf\朽葉DNF客戶端 V1.0531\台服DNF客戶端\ImagePacks2\sprite(ex).NPK"; static string 文件路徑2 = @"D:\單機dnf\朽葉DNF客戶端 V1.0531\台服DNF客戶端\ImagePacks2\sprite.NPK"; static string 文件路徑3 = @"D:\單機dnf\朽葉DNF客戶端 V1.0531\台服DNF客戶端\ImagePacks2\sprite_character_swordman_equipment_avatar_skin(Transformed).npk"; static Stream 流; static byte[] 緩存位元組數組; static string NPK文件頭; static int IMG文件總數; static Dictionary<int, Dictionary<int, string>> IMG文件索引表 = new Dictionary<int, Dictionary<int, string>>(); static byte[] NPK校驗位 = new byte[32]; static byte[][] IMG文件序列; static IMGV2文件介面[] IMGV2文件數組; static void Main(string[] args) { 流 = new FileStream(文件路徑3,FileMode.Open); 緩存位元組數組 = new byte[16]; 流.Read(緩存位元組數組,0,16); NPK文件頭 = Encoding.UTF8.GetString(緩存位元組數組); Console.WriteLine("NPK文件頭:"+NPK文件頭); 緩存位元組數組 = new byte[4]; 流.Read(緩存位元組數組, 0, 4); IMG文件總數 = BitConverter.ToInt32(緩存位元組數組,0); Console.WriteLine("IMG文件總數:" + IMG文件總數); for (int i = 0; i < IMG文件總數; i++) { Console.WriteLine("-----------------------------------------"); 緩存位元組數組 = new byte[4]; 流.Read(緩存位元組數組, 0, 4); int 地址偏移量 = BitConverter.ToInt32(緩存位元組數組, 0); Console.WriteLine("地址偏移量:" + 地址偏移量); 緩存位元組數組 = new byte[4]; 流.Read(緩存位元組數組, 0, 4); int IMG文件大小 = BitConverter.ToInt32(緩存位元組數組, 0); Console.WriteLine("IMG文件大小" + IMG文件大小); 緩存位元組數組 = new byte[256]; 流.Read(緩存位元組數組, 0, 256); string 異或字元串 = "puchikon@neople dungeon and fighter DNFDNFDNFDNFDNFDNFDNFDNFDNFDNFDNFDNFDNFDNFDNFDNFDNFDNFDNFDNFDNFDNFDNFDNFDNFDNFDNFDNFDNFDNFDNFDNFDNFDNFDNFDNFDNFDNFDNFDNFDNFDNFDNFDNFDNFDNFDNFDNFDNFDNFDNFDNFDNFDNFDNFDNFDNFDNFDNFDNFDNFDNFDNFDNFDNFDNFDNFDNFDNFDNFDNFDNFDNF "; for (int t = 0; t < 256; t++) { 緩存位元組數組[t] ^= (byte)異或字元串[t]; } string IMG文件名稱 = Encoding.UTF8.GetString(緩存位元組數組); IMG文件名稱 = IMG文件名稱.Substring(0,IMG文件名稱.IndexOf(".img")+4); Console.WriteLine("IMG文件名稱"+IMG文件名稱); Console.WriteLine($codeholder_0amp;quot;當前位元組流位置{流.Position}"); IMG文件索引表.Add(地址偏移量, new Dictionary<int, string>() { { IMG文件大小, IMG文件名稱 } }); } IMG文件索引表.DumpAll(); 流.Read(NPK校驗位,0,32); IMG文件序列 = new byte[IMG文件總數][]; for (int i = 0; i < IMG文件序列.Length; i++) { 流.Position = IMG文件索引表.GetKey(i); IMG文件序列[i] = new byte[IMG文件索引表.GetValueKey(i)]; 流.Read(IMG文件序列[i],0,IMG文件索引表.GetValueKey(i)); } //IMG文件序列.DumpAll(); IMGV2文件數組 = new IMGV2文件介面[IMG文件序列.Length]; for (int i = 0; i < IMGV2文件數組.Length; i++) { IMGV2文件數組[i] = new IMGV2(IMG文件序列[i]); } Console.WriteLine("-----------------------------------------"); Console.WriteLine("測試部分:讀取NPK第0個IMG的信息:"); Console.WriteLine("文件頭:"+IMGV2文件數組[0].取文件頭()); Console.WriteLine("索引表大小:"+IMGV2文件數組[0].取索引表大小()); Console.WriteLine("保留:" + IMGV2文件數組[0].取保留()); Console.WriteLine("版本號:" + IMGV2文件數組[0].取版本號()); Console.WriteLine("索引表數目:" + IMGV2文件數組[0].取索引表數目()); Console.WriteLine("-----------------------------------------"); Console.WriteLine("測試部分:讀取NPK第0個IMG的坐標"); for (int i = 0; i < IMGV2文件數組[0].取索引表數目(); i++) { Console.WriteLine(IMGV2文件數組[0].取IMG索引文件(i).取顏色系統().ToColorSystemName()); Console.Write(IMGV2文件數組[0].取IMG索引文件(i).取x坐標()); Console.Write("\t"); Console.WriteLine(IMGV2文件數組[0].取IMG索引文件(i).取y坐標()); Console.Write(IMGV2文件數組[0].取IMG索引文件(i).取圖像寬()); Console.Write("\t"); Console.WriteLine(IMGV2文件數組[0].取IMG索引文件(i).取圖像高()); Console.Write(IMGV2文件數組[0].取IMG索引文件(i).取幀域寬()); Console.Write("\t"); Console.WriteLine(IMGV2文件數組[0].取IMG索引文件(i).取幀域高()); } Console.ReadLine(); } } public static class 擴展方法類_IMG文件索引表 { //調試輸出 public static void DumpAll(this Dictionary<int, Dictionary<int, string>> _dic) { List<int> keys = new List<int>(); List<int> values_keys = new List<int>(); List<string> values_values = new List<string>(); foreach (KeyValuePair<int,Dictionary<int,string>> item0 in _dic) { keys.Add(item0.Key); foreach (KeyValuePair<int,string> item1 in item0.Value) { values_keys.Add(item1.Key); values_values.Add(item1.Value); } } for (int i = 0; i < _dic.Count; i++) { string result = ""; result += keys[i].ToString(); result += "\t"; result += values_keys[i].ToString(); result += "\t"; result += values_values[i]; Console.WriteLine(result); } } //取主鍵 public static int GetKey(this Dictionary<int, Dictionary<int, string>> _dic,int index) { List<int> keys = new List<int>(); foreach (KeyValuePair<int, Dictionary<int, string>> item0 in _dic) { keys.Add(item0.Key); } return keys[index]; } //取子鍵 public static int GetValueKey(this Dictionary<int, Dictionary<int, string>> _dic, int index) { List<int> values_keys = new List<int>(); foreach (KeyValuePair<int, Dictionary<int, string>> item0 in _dic) { foreach (KeyValuePair<int, string> item1 in item0.Value) { values_keys.Add(item1.Key); } } return values_keys[index]; } //取子值 public static string GetValueValue(this Dictionary<int, Dictionary<int, string>> _dic, int index) { List<string> values_values = new List<string>(); foreach (KeyValuePair<int, Dictionary<int, string>> item0 in _dic) { foreach (KeyValuePair<int, string> item1 in item0.Value) { values_values.Add(item1.Value); } } return values_values[index]; } } public static class 擴展方法類_IMG文件序列 { //調試輸出 public static void DumpAll(this byte[][] _array) { for (int i = 0; i < _array.Length; i++) { Console.WriteLine("當前IMG文件序號:"+i); Console.WriteLine(BitConverter.ToString(_array[i])); } } } public static class 擴展方法類_位元組數組 { //複製數組的一部分 public static byte[] SubArray(this byte[] _array,int startIndex,int length) { byte[] result = new byte[length]; for (int i = 0; i < result.Length; i++) { result[i] = _array[i + startIndex]; } return result; } } public static class 擴展方法類_整數型 { //整數轉字元串,指顏色系統 public static string ToColorSystemName(this int _value) { if (_value == (int)PNG文件顏色系統枚舉.ARGB8888) { return "ARGB8888"; } if (_value == (int)PNG文件顏色系統枚舉.ARGB4444) { return "ARGB4444"; } if (_value == (int)PNG文件顏色系統枚舉.ARGB1555) { return "ARGB1555"; } else { return ""; } } } public interface IMGV2文件介面 { string 取文件頭(); int 取索引表大小(); int 取保留(); int 取版本號(); int 取索引表數目(); IMG索引文件介面 取IMG索引文件(int _index); } public interface IMG文件介面 : IMGV2文件介面 { } public interface IMG圖片型索引文件介面 { int 取顏色系統(); int 取壓縮狀態(); int 取圖像寬(); int 取圖像高(); int 取圖像大小(); int 取x坐標(); int 取y坐標(); int 取幀域寬(); int 取幀域高(); } public interface IMG指向型索引文件介面 { int 取類型(); int 取指向幀號(); } public interface IMG索引文件介面 : IMG圖片型索引文件介面, IMG指向型索引文件介面 { } public enum PNG文件顏色系統枚舉 : int { ARGB8888 = 0x10, ARGB4444 = 0x0f, ARGB1555 = 0x0e } public enum PNG壓縮狀態枚舉 : int { 未壓縮 = 0x05, ZLib壓縮 = 0x06 } public enum IMG索引類型枚舉 : int { 指向型 = 0x11, 圖片型 } public class 指向型索引項類 : IMG索引文件介面 { int 類型; int 指向幀號; public 指向型索引項類(int _類型,int _指向幀號) { 類型=_類型; 指向幀號=_指向幀號; } void 置類型(int _value) { 類型 = _value; } void 置指向幀號(int _value) { 指向幀號 = _value; } public int 取類型(){return 類型;} public int 取指向幀號() { return 指向幀號; } public int 取顏色系統(){ return 0; } public int 取壓縮狀態(){ return 0; } public int 取圖像寬(){ return 0; } public int 取圖像高(){ return 0; } public int 取圖像大小(){ return 0; } public int 取x坐標(){ return 0; } public int 取y坐標(){ return 0; } public int 取幀域寬(){ return 0; } public int 取幀域高(){ return 0; } } public class 圖片型索引項 : IMG索引文件介面 { int 顏色系統; int 壓縮狀態; int 圖像寬 ; int 圖像高 ; int 圖像大小; int x坐標 ; int y坐標 ; int 幀域寬 ; int 幀域高 ; public 圖片型索引項( int _顏色系統, int _壓縮狀態, int _圖像寬, int _圖像高, int _圖像大小, int _x坐標, int _y坐標, int _幀域寬, int _幀域高) { 顏色系統 = _顏色系統; 壓縮狀態 = _壓縮狀態; 圖像寬 = _圖像寬; 圖像高 = _圖像高; 圖像大小 = _圖像大小; x坐標 = _x坐標; y坐標 = _y坐標; 幀域寬 = _幀域寬; 幀域高 = _幀域高; } public int 取顏色系統() { return 顏色系統; } public int 取壓縮狀態() { return 壓縮狀態; } public int 取圖像寬() { return 圖像寬; } public int 取圖像高() { return 圖像高; } public int 取圖像大小() { return 圖像大小; } public int 取x坐標() { return x坐標; } public int 取y坐標() { return y坐標; } public int 取幀域寬() { return 幀域寬; } public int 取幀域高() { return 幀域高; } public int 取類型() { return 0; } public int 取指向幀號() { return 0; } } public class IMGV2: IMGV2文件介面 { string 文件頭 = ""; int 索引表大小 = 0; int 保留 = 0; int 版本號 = 0; int 索引表數目 = 0; IMG索引文件介面[] IMG索引文件介面數組; byte[][] 貼圖數據數組; public IMGV2(byte[] _data) { int index = 0; 文件頭 = Encoding.UTF8.GetString(_data.SubArray(index, 16)); index += 16; 索引表大小 = BitConverter.ToInt32(_data.SubArray(index, 4),0); index += 4; 保留 = BitConverter.ToInt32(_data.SubArray(index, 4), 0); index += 4; 版本號 = BitConverter.ToInt32(_data.SubArray(index, 4), 0); index += 4; 索引表數目 = BitConverter.ToInt32(_data.SubArray(index, 4), 0); index += 4; IMG索引文件介面數組 = new IMG索引文件介面[索引表數目]; for (int i = 0; i < 索引表數目; i++) { int 類型 = BitConverter.ToInt32(_data.SubArray(index, 4), 0); if (類型 == (int)IMG索引類型枚舉.指向型) { index += 4; int 指向幀號 = BitConverter.ToInt32(_data.SubArray(index, 4), 0); IMG索引文件介面數組[i] = new 指向型索引項類(類型, 指向幀號); index += 4; } else { int 顏色系統 = BitConverter.ToInt32(_data.SubArray(index, 4), 0); index += 4; int 壓縮狀態 = BitConverter.ToInt32(_data.SubArray(index, 4), 0); index += 4; int 圖像寬 = BitConverter.ToInt32(_data.SubArray(index, 4), 0); index += 4; int 圖像高 = BitConverter.ToInt32(_data.SubArray(index, 4), 0); index += 4; int 圖像大小 = BitConverter.ToInt32(_data.SubArray(index, 4), 0); index += 4; int x坐標 = BitConverter.ToInt32(_data.SubArray(index, 4), 0); index += 4; int y坐標 = BitConverter.ToInt32(_data.SubArray(index, 4), 0); index += 4; int 幀域寬 = BitConverter.ToInt32(_data.SubArray(index, 4), 0); index += 4; int 幀域高 = BitConverter.ToInt32(_data.SubArray(index, 4), 0); IMG索引文件介面數組[i] = new 圖片型索引項( 顏色系統, 壓縮狀態, 圖像寬, 圖像高, 圖像大小, x坐標, y坐標, 幀域寬, 幀域高); index += 4; } } 貼圖數據數組 = new byte[索引表數目][]; for (int i = 0; i < 貼圖數據數組.Length; i++) { if (IMG索引文件介面數組[i].取類型() == (int)IMG索引類型枚舉.指向型) { 貼圖數據數組[i] = new byte[0]; } else { 貼圖數據數組[i] = _data.SubArray(index, IMG索引文件介面數組[i].取圖像大小()); index += IMG索引文件介面數組[i].取圖像大小(); } } } public string 取文件頭(){return 文件頭;} public int 取索引表大小(){return 索引表大小;} public int 取保留(){return 保留;} public int 取版本號(){return 版本號;} public int 取索引表數目(){return 索引表數目;} public IMG索引文件介面 取IMG索引文件(int _index){ return IMG索引文件介面數組[_index]; } } }
程式運行結果:
NPK文件頭:NeoplePack_Bill IMG文件總數:51 ----------------------------------------- 地址偏移量:13516 IMG文件大小298502 IMG文件名稱sprite/character/swordman/equipment/avatar/skin/sm_body0000.img 當前位元組流位置284 ----------------------------------------- 地址偏移量:312018 IMG文件大小299898 IMG文件名稱sprite/character/swordman/equipment/avatar/skin/sm_body0001.img 當前位元組流位置548 ----------------------------------------- 地址偏移量:611916 IMG文件大小299719 IMG文件名稱sprite/character/swordman/equipment/avatar/skin/sm_body0002.img 當前位元組流位置812 ----------------------------------------- 地址偏移量:911635 IMG文件大小298463 IMG文件名稱sprite/character/swordman/equipment/avatar/skin/sm_body0003.img 當前位元組流位置1076 ----------------------------------------- 地址偏移量:1210098 IMG文件大小299821 IMG文件名稱sprite/character/swordman/equipment/avatar/skin/sm_body0004.img 當前位元組流位置1340 ----------------------------------------- 地址偏移量:1509919 IMG文件大小299558 IMG文件名稱sprite/character/swordman/equipment/avatar/skin/sm_body0005.img 當前位元組流位置1604 ----------------------------------------- 地址偏移量:1809477 IMG文件大小299294 IMG文件名稱sprite/character/swordman/equipment/avatar/skin/sm_body0006.img 當前位元組流位置1868 ----------------------------------------- 地址偏移量:2108771 IMG文件大小299680 IMG文件名稱sprite/character/swordman/equipment/avatar/skin/sm_body0007.img 當前位元組流位置2132 ----------------------------------------- 地址偏移量:2408451 IMG文件大小299151 IMG文件名稱sprite/character/swordman/equipment/avatar/skin/sm_body0008.img 當前位元組流位置2396 ----------------------------------------- 地址偏移量:2707602 IMG文件大小298417 IMG文件名稱sprite/character/swordman/equipment/avatar/skin/sm_body0009.img 當前位元組流位置2660 ----------------------------------------- 地址偏移量:3006019 IMG文件大小292744 IMG文件名稱sprite/character/swordman/equipment/avatar/skin/sm_body0010.img 當前位元組流位置2924 ----------------------------------------- 地址偏移量:3298763 IMG文件大小295141 IMG文件名稱sprite/character/swordman/equipment/avatar/skin/sm_body0011.img 當前位元組流位置3188 ----------------------------------------- 地址偏移量:3593904 IMG文件大小302429 IMG文件名稱sprite/character/swordman/equipment/avatar/skin/sm_body0012.img 當前位元組流位置3452 ----------------------------------------- 地址偏移量:3896333 IMG文件大小299771 IMG文件名稱sprite/character/swordman/equipment/avatar/skin/sm_body0013.img 當前位元組流位置3716 ----------------------------------------- 地址偏移量:4196104 IMG文件大小293572 IMG文件名稱sprite/character/swordman/equipment/avatar/skin/sm_body0014.img 當前位元組流位置3980 ----------------------------------------- 地址偏移量:4489676 IMG文件大小294174 IMG文件名稱sprite/character/swordman/equipment/avatar/skin/sm_body0015.img 當前位元組流位置4244 ----------------------------------------- 地址偏移量:4783850 IMG文件大小298299 IMG文件名稱sprite/character/swordman/equipment/avatar/skin/sm_body0016.img 當前位元組流位置4508 ----------------------------------------- 地址偏移量:5082149 IMG文件大小298769 IMG文件名稱sprite/character/swordman/equipment/avatar/skin/sm_body0017.img 當前位元組流位置4772 ----------------------------------------- 地址偏移量:5380918 IMG文件大小299184 IMG文件名稱sprite/character/swordman/equipment/avatar/skin/sm_body0018.img 當前位元組流位置5036 ----------------------------------------- 地址偏移量:5680102 IMG文件大小299221 IMG文件名稱sprite/character/swordman/equipment/avatar/skin/sm_body0019.img 當前位元組流位置5300 ----------------------------------------- 地址偏移量:5979323 IMG文件大小299060 IMG文件名稱sprite/character/swordman/equipment/avatar/skin/sm_body0020.img 當前位元組流位置5564 ----------------------------------------- 地址偏移量:6278383 IMG文件大小302605 IMG文件名稱sprite/character/swordman/equipment/avatar/skin/sm_body0021.img 當前位元組流位置5828 ----------------------------------------- 地址偏移量:6580988 IMG文件大小303607 IMG文件名稱sprite/character/swordman/equipment/avatar/skin/sm_body0022.img 當前位元組流位置6092 ----------------------------------------- 地址偏移量:6884595 IMG文件大小349799 IMG文件名稱sprite/character/swordman/equipment/avatar/skin/sm_body0023.img 當前位元組流位置6356 ----------------------------------------- 地址偏移量:7234394 IMG文件大小299357 IMG文件名稱sprite/character/swordman/equipment/avatar/skin/sm_body1000.img 當前位元組流位置6620 ----------------------------------------- 地址偏移量:7533751 IMG文件大小299330 IMG文件名稱sprite/character/swordman/equipment/avatar/skin/sm_body1001.img 當前位元組流位置6884 ----------------------------------------- 地址偏移量:7833081 IMG文件大小299087 IMG文件名稱sprite/character/swordman/equipment/avatar/skin/sm_body1002.img 當前位元組流位置7148 ----------------------------------------- 地址偏移量:8132168 IMG文件大小298969 IMG文件名稱sprite/character/swordman/equipment/avatar/skin/sm_body1003.img 當前位元組流位置7412 ----------------------------------------- 地址偏移量:8431137 IMG文件大小299132 IMG文件名稱sprite/character/swordman/equipment/avatar/skin/sm_body1004.img 當前位元組流位置7676 ----------------------------------------- 地址偏移量:8730269 IMG文件大小299348 IMG文件名稱sprite/character/swordman/equipment/avatar/skin/sm_body1005.img 當前位元組流位置7940 ----------------------------------------- 地址偏移量:9029617 IMG文件大小298862 IMG文件名稱sprite/character/swordman/equipment/avatar/skin/sm_body1006.img 當前位元組流位置8204 ----------------------------------------- 地址偏移量:9328479 IMG文件大小299237 IMG文件名稱sprite/character/swordman/equipment/avatar/skin/sm_body1007.img 當前位元組流位置8468 ----------------------------------------- 地址偏移量:9627716 IMG文件大小299815 IMG文件名稱sprite/character/swordman/equipment/avatar/skin/sm_body1008.img 當前位元組流位置8732 ----------------------------------------- 地址偏移量:9927531 IMG文件大小298910 IMG文件名稱sprite/character/swordman/equipment/avatar/skin/sm_body1009.img 當前位元組流位置8996 ----------------------------------------- 地址偏移量:10226441 IMG文件大小302148 IMG文件名稱sprite/character/swordman/equipment/avatar/skin/sm_body1010.img 當前位元組流位置9260 ----------------------------------------- 地址偏移量:10528589 IMG文件大小299295 IMG文件名稱sprite/character/swordman/equipment/avatar/skin/sm_body1011.img 當前位元組流位置9524 ----------------------------------------- 地址偏移量:10827884 IMG文件大小297324 IMG文件名稱sprite/character/swordman/equipment/avatar/skin/sm_body1014.img 當前位元組流位置9788 ----------------------------------------- 地址偏移量:11125208 IMG文件大小298591 IMG文件名稱sprite/character/swordman/equipment/avatar/skin/sm_body1015.img 當前位元組流位置10052 ----------------------------------------- 地址偏移量:11423799 IMG文件大小298167 IMG文件名稱sprite/character/swordman/equipment/avatar/skin/sm_body1016.img 當前位元組流位置10316 ----------------------------------------- 地址偏移量:11721966 IMG文件大小298086 IMG文件名稱sprite/character/swordman/equipment/avatar/skin/sm_body1017.img 當前位元組流位置10580 ----------------------------------------- 地址偏移量:12020052 IMG文件大小298965 IMG文件名稱sprite/character/swordman/equipment/avatar/skin/sm_body1018.img 當前位元組流位置10844 ----------------------------------------- 地址偏移量:12319017 IMG文件大小301448 IMG文件名稱sprite/character/swordman/equipment/avatar/skin/sm_body1019.img 當前位元組流位置11108 ----------------------------------------- 地址偏移量:12620465 IMG文件大小299091 IMG文件名稱sprite/character/swordman/equipment/avatar/skin/sm_body1020.img 當前位元組流位置11372 ----------------------------------------- 地址偏移量:12919556 IMG文件大小336300 IMG文件名稱sprite/character/swordman/equipment/avatar/skin/sm_body80000.img 當前位元組流位置11636 ----------------------------------------- 地址偏移量:13255856 IMG文件大小392005 IMG文件名稱sprite/character/swordman/equipment/avatar/skin/sm_body80100.img 當前位元組流位置11900 ----------------------------------------- 地址偏移量:13647861 IMG文件大小284806 IMG文件名稱sprite/character/swordman/equipment/avatar/skin/sm_body80200.img 當前位元組流位置12164 ----------------------------------------- 地址偏移量:13932667 IMG文件大小269570 IMG文件名稱sprite/character/swordman/equipment/avatar/skin/sm_body80300.img 當前位元組流位置12428 ----------------------------------------- 地址偏移量:14202237 IMG文件大小567263 IMG文件名稱sprite/character/swordman/equipment/avatar/skin/sm_body81100.img 當前位元組流位置12692 ----------------------------------------- 地址偏移量:14769500 IMG文件大小550293 IMG文件名稱sprite/character/swordman/equipment/avatar/skin/sm_body81200.img 當前位元組流位置12956 ----------------------------------------- 地址偏移量:15319793 IMG文件大小197001 IMG文件名稱sprite/character/swordman/equipment/avatar/skin/sm_body81300.img 當前位元組流位置13220 ----------------------------------------- 地址偏移量:15516794 IMG文件大小137137 IMG文件名稱sprite/character/swordman/equipment/avatar/skin/sm_body90100.img 當前位元組流位置13484 13516 298502 sprite/character/swordman/equipment/avatar/skin/sm_body0000.img 312018 299898 sprite/character/swordman/equipment/avatar/skin/sm_body0001.img 611916 299719 sprite/character/swordman/equipment/avatar/skin/sm_body0002.img 911635 298463 sprite/character/swordman/equipment/avatar/skin/sm_body0003.img 1210098 299821 sprite/character/swordman/equipment/avatar/skin/sm_body0004.img 1509919 299558 sprite/character/swordman/equipment/avatar/skin/sm_body0005.img 1809477 299294 sprite/character/swordman/equipment/avatar/skin/sm_body0006.img 2108771 299680 sprite/character/swordman/equipment/avatar/skin/sm_body0007.img 2408451 299151 sprite/character/swordman/equipment/avatar/skin/sm_body0008.img 2707602 298417 sprite/character/swordman/equipment/avatar/skin/sm_body0009.img 3006019 292744 sprite/character/swordman/equipment/avatar/skin/sm_body0010.img 3298763 295141 sprite/character/swordman/equipment/avatar/skin/sm_body0011.img 3593904 302429 sprite/character/swordman/equipment/avatar/skin/sm_body0012.img 3896333 299771 sprite/character/swordman/equipment/avatar/skin/sm_body0013.img 4196104 293572 sprite/character/swordman/equipment/avatar/skin/sm_body0014.img 4489676 294174 sprite/character/swordman/equipment/avatar/skin/sm_body0015.img 4783850 298299 sprite/character/swordman/equipment/avatar/skin/sm_body0016.img 5082149 298769 sprite/character/swordman/equipment/avatar/skin/sm_body0017.img 5380918 299184 sprite/character/swordman/equipment/avatar/skin/sm_body0018.img 5680102 299221 sprite/character/swordman/equipment/avatar/skin/sm_body0019.img 5979323 299060 sprite/character/swordman/equipment/avatar/skin/sm_body0020.img 6278383 302605 sprite/character/swordman/equipment/avatar/skin/sm_body0021.img 6580988 303607 sprite/character/swordman/equipment/avatar/skin/sm_body0022.img 6884595 349799 sprite/character/swordman/equipment/avatar/skin/sm_body0023.img 7234394 299357 sprite/character/swordman/equipment/avatar/skin/sm_body1000.img 7533751 299330 sprite/character/swordman/equipment/avatar/skin/sm_body1001.img 7833081 299087 sprite/character/swordman/equipment/avatar/skin/sm_body1002.img 8132168 298969 sprite/character/swordman/equipment/avatar/skin/sm_body1003.img 8431137 299132 sprite/character/swordman/equipment/avatar/skin/sm_body1004.img 8730269 299348 sprite/character/swordman/equipment/avatar/skin/sm_body1005.img 9029617 298862 sprite/character/swordman/equipment/avatar/skin/sm_body1006.img 9328479 299237 sprite/character/swordman/equipment/avatar/skin/sm_body1007.img 9627716 299815 sprite/character/swordman/equipment/avatar/skin/sm_body1008.img 9927531 298910 sprite/character/swordman/equipment/avatar/skin/sm_body1009.img 10226441 302148 sprite/character/swordman/equipment/avatar/skin/sm_body1010.img 10528589 299295 sprite/character/swordman/equipment/avatar/skin/sm_body1011.img 10827884 297324 sprite/character/swordman/equipment/avatar/skin/sm_body1014.img 11125208 298591 sprite/character/swordman/equipment/avatar/skin/sm_body1015.img 11423799 298167 sprite/character/swordman/equipment/avatar/skin/sm_body1016.img 11721966 298086 sprite/character/swordman/equipment/avatar/skin/sm_body1017.img 12020052 298965 sprite/character/swordman/equipment/avatar/skin/sm_body1018.img 12319017 301448 sprite/character/swordman/equipment/avatar/skin/sm_body1019.img 12620465 299091 sprite/character/swordman/equipment/avatar/skin/sm_body1020.img 12919556 336300 sprite/character/swordman/equipment/avatar/skin/sm_body80000.img 13255856 392005 sprite/character/swordman/equipment/avatar/skin/sm_body80100.img 13647861 284806 sprite/character/swordman/equipment/avatar/skin/sm_body80200.img 13932667 269570 sprite/character/swordman/equipment/avatar/skin/sm_body80300.img 14202237 567263 sprite/character/swordman/equipment/avatar/skin/sm_body81100.img 14769500 550293 sprite/character/swordman/equipment/avatar/skin/sm_body81200.img 15319793 197001 sprite/character/swordman/equipment/avatar/skin/sm_body81300.img 15516794 137137 sprite/character/swordman/equipment/avatar/skin/sm_body90100.img ----------------------------------------- 測試部分:讀取NPK第0個IMG的信息: 文件頭:Neople Img File 索引表大小:6664 保留:0 版本號:2 索引表數目:210 ----------------------------------------- 測試部分:讀取NPK第0個IMG的坐標 ARGB8888 189 231 71 107 500 500 ARGB8888 189 231 71 107 500 500 ARGB8888 193 231 68 107 500 500 ARGB8888 201 245 94 93 500 500 ARGB8888 202 249 77 90 500 500 ARGB8888 202 249 77 90 500 500 ARGB8888 202 249 77 90 500 500 ARGB8888 201 249 78 90 500 500 ARGB8888 201 249 78 90 500 500 ARGB8888 200 249 79 90 500 500 ARGB8888 209 247 78 92 500 500 ARGB8888 208 246 82 93 500 500 ARGB8888 207 246 92 93 500 500 ARGB8888 190 248 78 90 500 500 ARGB8888 189 248 79 90 500 500 ARGB8888 183 248 85 90 500 500 ARGB8888 179 248 89 90 500 500 ARGB8888 181 248 87 90 500 500 ARGB8888 182 248 86 90 500 500 ARGB8888 189 248 79 90 500 500 ARGB8888 189 248 79 90 500 500 0 0 0 0 0 0 ARGB8888 208 246 82 93 500 500 0 0 0 0 0 0 ARGB8888 190 248 78 90 500 500 ARGB8888 189 248 79 90 500 500 ARGB8888 183 248 85 90 500 500 ARGB8888 179 248 89 90 500 500 ARGB8888 181 248 87 90 500 500 ARGB8888 182 248 86 90 500 500 ARGB8888 189 248 79 90 500 500 ARGB8888 189 248 79 90 500 500 0 0 0 0 0 0 ARGB8888 190 253 65 85 500 500 ARGB8888 197 256 64 82 500 500 ARGB8888 240 253 87 83 500 500 ARGB8888 237 228 89 108 500 500 ARGB8888 237 225 88 111 500 500 ARGB8888