|
在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 IMG文件索引表 = new Dictionary(); 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() { { 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 _dic) { List keys = new List(); List values_keys = new List(); List values_values = new List(); foreach (KeyValuePair item0 in _dic) { keys.Add(item0.Key); foreach (KeyValuePair 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 _dic,int index) { List keys = new List(); foreach (KeyValuePair item0 in _dic) { keys.Add(item0.Key); } return keys[index]; } //取子键 public static int GetValueKey(this Dictionary _dic, int index) { List values_keys = new List(); foreach (KeyValuePair item0 in _dic) { foreach (KeyValuePair item1 in item0.Value) { values_keys.Add(item1.Key); } } return values_keys[index]; } //取子值 public static string GetValueValue(this Dictionary _dic, int index) { List values_values = new List(); foreach (KeyValuePair item0 in _dic) { foreach (KeyValuePair 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_BillIMG文件总数:51-----------------------------------------地址偏移量:13516IMG文件大小298502IMG文件名称sprite/character/swordman/equipment/avatar/skin/sm_body0000.img当前字节流位置284-----------------------------------------地址偏移量:312018IMG文件大小299898IMG文件名称sprite/character/swordman/equipment/avatar/skin/sm_body0001.img当前字节流位置548-----------------------------------------地址偏移量:611916IMG文件大小299719IMG文件名称sprite/character/swordman/equipment/avatar/skin/sm_body0002.img当前字节流位置812-----------------------------------------地址偏移量:911635IMG文件大小298463IMG文件名称sprite/character/swordman/equipment/avatar/skin/sm_body0003.img当前字节流位置1076-----------------------------------------地址偏移量:1210098IMG文件大小299821IMG文件名称sprite/character/swordman/equipment/avatar/skin/sm_body0004.img当前字节流位置1340-----------------------------------------地址偏移量:1509919IMG文件大小299558IMG文件名称sprite/character/swordman/equipment/avatar/skin/sm_body0005.img当前字节流位置1604-----------------------------------------地址偏移量:1809477IMG文件大小299294IMG文件名称sprite/character/swordman/equipment/avatar/skin/sm_body0006.img当前字节流位置1868-----------------------------------------地址偏移量:2108771IMG文件大小299680IMG文件名称sprite/character/swordman/equipment/avatar/skin/sm_body0007.img当前字节流位置2132-----------------------------------------地址偏移量:2408451IMG文件大小299151IMG文件名称sprite/character/swordman/equipment/avatar/skin/sm_body0008.img当前字节流位置2396-----------------------------------------地址偏移量:2707602IMG文件大小298417IMG文件名称sprite/character/swordman/equipment/avatar/skin/sm_body0009.img当前字节流位置2660-----------------------------------------地址偏移量:3006019IMG文件大小292744IMG文件名称sprite/character/swordman/equipment/avatar/skin/sm_body0010.img当前字节流位置2924-----------------------------------------地址偏移量:3298763IMG文件大小295141IMG文件名称sprite/character/swordman/equipment/avatar/skin/sm_body0011.img当前字节流位置3188-----------------------------------------地址偏移量:3593904IMG文件大小302429IMG文件名称sprite/character/swordman/equipment/avatar/skin/sm_body0012.img当前字节流位置3452-----------------------------------------地址偏移量:3896333IMG文件大小299771IMG文件名称sprite/character/swordman/equipment/avatar/skin/sm_body0013.img当前字节流位置3716-----------------------------------------地址偏移量:4196104IMG文件大小293572IMG文件名称sprite/character/swordman/equipment/avatar/skin/sm_body0014.img当前字节流位置3980-----------------------------------------地址偏移量:4489676IMG文件大小294174IMG文件名称sprite/character/swordman/equipment/avatar/skin/sm_body0015.img当前字节流位置4244-----------------------------------------地址偏移量:4783850IMG文件大小298299IMG文件名称sprite/character/swordman/equipment/avatar/skin/sm_body0016.img当前字节流位置4508-----------------------------------------地址偏移量:5082149IMG文件大小298769IMG文件名称sprite/character/swordman/equipment/avatar/skin/sm_body0017.img当前字节流位置4772-----------------------------------------地址偏移量:5380918IMG文件大小299184IMG文件名称sprite/character/swordman/equipment/avatar/skin/sm_body0018.img当前字节流位置5036-----------------------------------------地址偏移量:5680102IMG文件大小299221IMG文件名称sprite/character/swordman/equipment/avatar/skin/sm_body0019.img当前字节流位置5300-----------------------------------------地址偏移量:5979323IMG文件大小299060IMG文件名称sprite/character/swordman/equipment/avatar/skin/sm_body0020.img当前字节流位置5564-----------------------------------------地址偏移量:6278383IMG文件大小302605IMG文件名称sprite/character/swordman/equipment/avatar/skin/sm_body0021.img当前字节流位置5828-----------------------------------------地址偏移量:6580988IMG文件大小303607IMG文件名称sprite/character/swordman/equipment/avatar/skin/sm_body0022.img当前字节流位置6092-----------------------------------------地址偏移量:6884595IMG文件大小349799IMG文件名称sprite/character/swordman/equipment/avatar/skin/sm_body0023.img当前字节流位置6356-----------------------------------------地址偏移量:7234394IMG文件大小299357IMG文件名称sprite/character/swordman/equipment/avatar/skin/sm_body1000.img当前字节流位置6620-----------------------------------------地址偏移量:7533751IMG文件大小299330IMG文件名称sprite/character/swordman/equipment/avatar/skin/sm_body1001.img当前字节流位置6884-----------------------------------------地址偏移量:7833081IMG文件大小299087IMG文件名称sprite/character/swordman/equipment/avatar/skin/sm_body1002.img当前字节流位置7148-----------------------------------------地址偏移量:8132168IMG文件大小298969IMG文件名称sprite/character/swordman/equipment/avatar/skin/sm_body1003.img当前字节流位置7412-----------------------------------------地址偏移量:8431137IMG文件大小299132IMG文件名称sprite/character/swordman/equipment/avatar/skin/sm_body1004.img当前字节流位置7676-----------------------------------------地址偏移量:8730269IMG文件大小299348IMG文件名称sprite/character/swordman/equipment/avatar/skin/sm_body1005.img当前字节流位置7940-----------------------------------------地址偏移量:9029617IMG文件大小298862IMG文件名称sprite/character/swordman/equipment/avatar/skin/sm_body1006.img当前字节流位置8204-----------------------------------------地址偏移量:9328479IMG文件大小299237IMG文件名称sprite/character/swordman/equipment/avatar/skin/sm_body1007.img当前字节流位置8468-----------------------------------------地址偏移量:9627716IMG文件大小299815IMG文件名称sprite/character/swordman/equipment/avatar/skin/sm_body1008.img当前字节流位置8732-----------------------------------------地址偏移量:9927531IMG文件大小298910IMG文件名称sprite/character/swordman/equipment/avatar/skin/sm_body1009.img当前字节流位置8996-----------------------------------------地址偏移量:10226441IMG文件大小302148IMG文件名称sprite/character/swordman/equipment/avatar/skin/sm_body1010.img当前字节流位置9260-----------------------------------------地址偏移量:10528589IMG文件大小299295IMG文件名称sprite/character/swordman/equipment/avatar/skin/sm_body1011.img当前字节流位置9524-----------------------------------------地址偏移量:10827884IMG文件大小297324IMG文件名称sprite/character/swordman/equipment/avatar/skin/sm_body1014.img当前字节流位置9788-----------------------------------------地址偏移量:11125208IMG文件大小298591IMG文件名称sprite/character/swordman/equipment/avatar/skin/sm_body1015.img当前字节流位置10052-----------------------------------------地址偏移量:11423799IMG文件大小298167IMG文件名称sprite/character/swordman/equipment/avatar/skin/sm_body1016.img当前字节流位置10316-----------------------------------------地址偏移量:11721966IMG文件大小298086IMG文件名称sprite/character/swordman/equipment/avatar/skin/sm_body1017.img当前字节流位置10580-----------------------------------------地址偏移量:12020052IMG文件大小298965IMG文件名称sprite/character/swordman/equipment/avatar/skin/sm_body1018.img当前字节流位置10844-----------------------------------------地址偏移量:12319017IMG文件大小301448IMG文件名称sprite/character/swordman/equipment/avatar/skin/sm_body1019.img当前字节流位置11108-----------------------------------------地址偏移量:12620465IMG文件大小299091IMG文件名称sprite/character/swordman/equipment/avatar/skin/sm_body1020.img当前字节流位置11372-----------------------------------------地址偏移量:12919556IMG文件大小336300IMG文件名称sprite/character/swordman/equipment/avatar/skin/sm_body80000.img当前字节流位置11636-----------------------------------------地址偏移量:13255856IMG文件大小392005IMG文件名称sprite/character/swordman/equipment/avatar/skin/sm_body80100.img当前字节流位置11900-----------------------------------------地址偏移量:13647861IMG文件大小284806IMG文件名称sprite/character/swordman/equipment/avatar/skin/sm_body80200.img当前字节流位置12164-----------------------------------------地址偏移量:13932667IMG文件大小269570IMG文件名称sprite/character/swordman/equipment/avatar/skin/sm_body80300.img当前字节流位置12428-----------------------------------------地址偏移量:14202237IMG文件大小567263IMG文件名称sprite/character/swordman/equipment/avatar/skin/sm_body81100.img当前字节流位置12692-----------------------------------------地址偏移量:14769500IMG文件大小550293IMG文件名称sprite/character/swordman/equipment/avatar/skin/sm_body81200.img当前字节流位置12956-----------------------------------------地址偏移量:15319793IMG文件大小197001IMG文件名称sprite/character/swordman/equipment/avatar/skin/sm_body81300.img当前字节流位置13220-----------------------------------------地址偏移量:15516794IMG文件大小137137IMG文件名称sprite/character/swordman/equipment/avatar/skin/sm_body90100.img当前字节流位置1348413516 298502 sprite/character/swordman/equipment/avatar/skin/sm_body0000.img312018 299898 sprite/character/swordman/equipment/avatar/skin/sm_body0001.img611916 299719 sprite/character/swordman/equipment/avatar/skin/sm_body0002.img911635 298463 sprite/character/swordman/equipment/avatar/skin/sm_body0003.img1210098 299821 sprite/character/swordman/equipment/avatar/skin/sm_body0004.img1509919 299558 sprite/character/swordman/equipment/avatar/skin/sm_body0005.img1809477 299294 sprite/character/swordman/equipment/avatar/skin/sm_body0006.img2108771 299680 sprite/character/swordman/equipment/avatar/skin/sm_body0007.img2408451 299151 sprite/character/swordman/equipment/avatar/skin/sm_body0008.img2707602 298417 sprite/character/swordman/equipment/avatar/skin/sm_body0009.img3006019 292744 sprite/character/swordman/equipment/avatar/skin/sm_body0010.img3298763 295141 sprite/character/swordman/equipment/avatar/skin/sm_body0011.img3593904 302429 sprite/character/swordman/equipment/avatar/skin/sm_body0012.img3896333 299771 sprite/character/swordman/equipment/avatar/skin/sm_body0013.img4196104 293572 sprite/character/swordman/equipment/avatar/skin/sm_body0014.img4489676 294174 sprite/character/swordman/equipment/avatar/skin/sm_body0015.img4783850 298299 sprite/character/swordman/equipment/avatar/skin/sm_body0016.img5082149 298769 sprite/character/swordman/equipment/avatar/skin/sm_body0017.img5380918 299184 sprite/character/swordman/equipment/avatar/skin/sm_body0018.img5680102 299221 sprite/character/swordman/equipment/avatar/skin/sm_body0019.img5979323 299060 sprite/character/swordman/equipment/avatar/skin/sm_body0020.img6278383 302605 sprite/character/swordman/equipment/avatar/skin/sm_body0021.img6580988 303607 sprite/character/swordman/equipment/avatar/skin/sm_body0022.img6884595 349799 sprite/character/swordman/equipment/avatar/skin/sm_body0023.img7234394 299357 sprite/character/swordman/equipment/avatar/skin/sm_body1000.img7533751 299330 sprite/character/swordman/equipment/avatar/skin/sm_body1001.img7833081 299087 sprite/character/swordman/equipment/avatar/skin/sm_body1002.img8132168 298969 sprite/character/swordman/equipment/avatar/skin/sm_body1003.img8431137 299132 sprite/character/swordman/equipment/avatar/skin/sm_body1004.img8730269 299348 sprite/character/swordman/equipment/avatar/skin/sm_body1005.img9029617 298862 sprite/character/swordman/equipment/avatar/skin/sm_body1006.img9328479 299237 sprite/character/swordman/equipment/avatar/skin/sm_body1007.img9627716 299815 sprite/character/swordman/equipment/avatar/skin/sm_body1008.img9927531 298910 sprite/character/swordman/equipment/avatar/skin/sm_body1009.img10226441 302148 sprite/character/swordman/equipment/avatar/skin/sm_body1010.img10528589 299295 sprite/character/swordman/equipment/avatar/skin/sm_body1011.img10827884 297324 sprite/character/swordman/equipment/avatar/skin/sm_body1014.img11125208 298591 sprite/character/swordman/equipment/avatar/skin/sm_body1015.img11423799 298167 sprite/character/swordman/equipment/avatar/skin/sm_body1016.img11721966 298086 sprite/character/swordman/equipment/avatar/skin/sm_body1017.img12020052 298965 sprite/character/swordman/equipment/avatar/skin/sm_body1018.img12319017 301448 sprite/character/swordman/equipment/avatar/skin/sm_body1019.img12620465 299091 sprite/character/swordman/equipment/avatar/skin/sm_body1020.img12919556 336300 sprite/character/swordman/equipment/avatar/skin/sm_body80000.img13255856 392005 sprite/character/swordman/equipment/avatar/skin/sm_body80100.img13647861 284806 sprite/character/swordman/equipment/avatar/skin/sm_body80200.img13932667 269570 sprite/character/swordman/equipment/avatar/skin/sm_body80300.img14202237 567263 sprite/character/swordman/equipment/avatar/skin/sm_body81100.img14769500 550293 sprite/character/swordman/equipment/avatar/skin/sm_body81200.img15319793 197001 sprite/character/swordman/equipment/avatar/skin/sm_body81300.img15516794 137137 sprite/character/swordman/equipment/avatar/skin/sm_body90100.img-----------------------------------------测试部分:读取NPK第0个IMG的信息:文件头:Neople Img File索引表大小:6664保留:0版本号:2索引表数目:210-----------------------------------------测试部分:读取NPK第0个IMG的坐标ARGB8888189 23171 107500 500ARGB8888189 23171 107500 500ARGB8888193 23168 107500 500ARGB8888201 24594 93500 500ARGB8888202 24977 90500 500ARGB8888202 24977 90500 500ARGB8888202 24977 90500 500ARGB8888201 24978 90500 500ARGB8888201 24978 90500 500ARGB8888200 24979 90500 500ARGB8888209 24778 92500 500ARGB8888208 24682 93500 500ARGB8888207 24692 93500 500ARGB8888190 24878 90500 500ARGB8888189 24879 90500 500ARGB8888183 24885 90500 500ARGB8888179 24889 90500 500ARGB8888181 24887 90500 500ARGB8888182 24886 90500 500ARGB8888189 24879 90500 500ARGB8888189 24879 90500 5000 00 00 0ARGB8888208 24682 93500 5000 00 00 0ARGB8888190 24878 90500 500ARGB8888189 24879 90500 500ARGB8888183 24885 90500 500ARGB8888179 24889 90500 500ARGB8888181 24887 90500 500ARGB8888182 24886 90500 500ARGB8888189 24879 90500 500ARGB8888189 24879 90500 5000 00 00 0ARGB8888190 25365 85500 500ARGB8888197 25664 82500 500ARGB8888240 25387 83500 500ARGB8888237 22889 108500 500ARGB8888237 22588 111500 500ARGB8888237 22477 112500 500ARGB8888237 22577 111500 500ARGB8888237 22577 111500 500ARGB8888237 22577 111500 5000 00 00 00 00 00 0ARGB8888240 25387 83500 500ARGB8888237 22889 108500 500ARGB8888237 22588 111500 500ARGB8888237 22477 112500 500ARGB8888237 22577 111500 500ARGB8888237 22577 111500 500ARGB8888237 22577 111500 5000 00 00 00 00 00 0ARGB8888240 25387 83500 5000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0ARGB8888189 23171 107500 500ARGB8888193 23168 107500 500ARGB8888202 24977 90500 5000 00 00 00 00 00 0ARGB8888199 24475 93500 500ARGB8888200 24477 93500 500ARGB8888217 24882 89500 500ARGB8888226 252107 82500 500ARGB8888225 252119 82500 500ARGB8888226 252112 82500 500ARGB8888226 252107 82500 500ARGB8888226 252107 82500 500ARGB8888226 252107 82500 500ARGB8888226 252107 82500 500ARGB8888202 23871 101500 500ARGB8888202 23871 101500 500ARGB8888202 23870 101500 500ARGB8888202 23970 100500 500ARGB8888201 23570 104500 500ARGB8888208 20471 137500 500ARGB8888208 20165 140500 500ARGB8888208 20145 140500 500ARGB8888208 20145 140500 500ARGB8888208 20145 140500 500ARGB8888208 20145 140500 500ARGB8888208 20145 140500 500ARGB8888208 20145 140500 500ARGB8888208 20145 140500 5000 00 00 0ARGB8888200 23364 106500 500ARGB8888200 23464 105500 500ARGB8888200 23564 104500 500ARGB8888200 23564 104500 500ARGB8888200 23464 105500 500ARGB8888200 23364 106500 500ARGB8888198 24064 102500 5000 00 00 00 00 00 0ARGB8888202 23170 108500 500ARGB8888171 275102 72500 500ARGB8888168 271108 74500 500ARGB8888168 308113 43500 5000 00 00 0ARGB8888202 23170 108500 500ARGB8888208 23871 99500 500ARGB8888193 23680 92500 500ARGB8888185 237100 93500 500ARGB8888196 23877 97500 500ARGB8888208 23874 97500 500ARGB8888196 23697 93500 500ARGB8888188 23799 95500 500ARGB8888198 23888 99500 500ARGB8888199 24475 93500 500ARGB8888200 24477 93500 500ARGB8888217 24882 89500 500ARGB8888226 252107 82500 500ARGB8888225 252119 82500 500ARGB8888226 252112 82500 500ARGB8888226 252107 82500 500ARGB8888226 252107 82500 500ARGB8888226 252107 82500 500ARGB8888226 252107 82500 500ARGB8888190 23969 100500 500ARGB8888188 24071 99500 500ARGB8888201 23964 100500 500ARGB8888202 22964 112500 500ARGB8888200 23365 80500 5000 00 00 0ARGB8888201 23170 110500 500ARGB8888201 22979 112500 5000 00 00 0ARGB8888201 23971 100500 500ARGB8888197 22653 80500 500ARGB8888199 22358 96500 500ARGB8888216 23950 80500 500ARGB8888216 23958 80500 500ARGB8888216 23950 80500 5000 00 00 0ARGB8888189 23171 107500 500ARGB8888189 23171 107500 500ARGB8888193 23168 107500 500ARGB8888250 27191 68500 500ARGB8888251 26888 71500 500ARGB8888251 26888 71500 500ARGB8888251 26888 71500 500ARGB8888251 26888 71500 500ARGB8888251 26888 71500 500ARGB8888251 26888 71500 500ARGB8888251 26888 71500 500ARGB8888251 26888 71500 5000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0ARGB8888197 26058 75500 5000 00 00 0ARGB8888201 22452 117500 500ARGB8888201 22452 117500 500ARGB8888201 22452 117500 500ARGB8888201 22452 117500 500ARGB8888201 22452 117500 500ARGB8888201 22452 117500 500ARGB8888204 22472 117500 500ARGB8888204 22478 117500 500ARGB8888204 22484 117500 500ARGB8888204 22478 117500 500ARGB8888204 22478 117500 500ARGB8888204 22478 117500 500ARGB8888204 22478 117500 500ARGB8888204 22478 117500 500ARGB8888204 22478 117500 5000 00 00 00 00 00 0ARGB8888208 22445 117500 500ARGB8888207 22446 117500 500ARGB8888207 22446 117500 5000 00 00 0ARGB8888209 22440 111500 500ARGB8888211 22440 111500 500ARGB8888210 22547 110500 500ARGB8888208 22546 112500 500ARGB8888211 22440 113500 500ARGB8888216 22431 113500 500ARGB8888209 22550 112500 500ARGB8888206 22549 112500 500ARGB8888201 23257 108500 500ARGB8888188 23570 105500 500ARGB8888197 25779 83500 500ARGB8888198 26377 77500 500ARGB8888193 26482 76500 500ARGB8888193 26481 76500 500ARGB8888194 25175 89500 500ARGB8888198 22688 114500 500ARGB8888209 25791 83500 500ARGB8888212 26079 80500 500ARGB8888212 26079 80500 500ARGB8888205 24969 91500 500ARGB8888203 24765 93500 500ARGB8888202 21368 127500 500ARGB8888201 21062 130500 500ARGB8888201 21062 130500 500ARGB8888199 20970 131500 500ARGB8888190 20677 134500 500ARGB8888197 258112 86500 500ARGB8888198 250110 96500 500ARGB8888198 250110 96500 500ARGB8888198 250110 96500 500
复制代码
来源:https://www.cnblogs.com/DasaoShiroya/archive/2023/03/10/17204744.html
免责声明:由于采集信息均来自互联网,如果侵犯了您的权益,请联系我们【E-Mail:cb@itdo.tech】 我们会及时删除侵权内容,谢谢合作! |
|