Re: [Release] The cerebrum Heavenly Palace - 大 闹天宫 ONLINE
dat file decode and encode tools:
today,i have some free times. i'd like to share some tools for you. hope to useful for you.
this is a tools that i wirite in flash as3 language. you can use :
1: download and uncompress this .rar file on whaterever path you like.
2: click the DNTG_UNPACK.exe to run;
3: put the .dat files in the directory /config and click unpackage. will create a new file *.json in the directory /unpack.
4: put the .json files in the directory /unpack and click package ,will create a new file *.dat/*.jat in the directory /new.
this download link is:
.swf decode source code
for the .swf files. i have no tools. just post the as3 source code. you can change it to your favourate language, such as java/c/c++ etc... it's very simple:
protected function swf_decode(param1:ByteArray):ByteArray
{
var output:ByteArray;
param1.position=0;
var local2:* = param1.readInt();
var local3:* = local2 >> 8;
if(local3 == 4413267 || local3 == 4609875)
{
output=new ByteArray();
output.position=0;
param1.position=0;
output.writeBytes(param1);
}else
{
output = new ByteArray();
output.position=0;
var local5:* = param1.length;
output.writeInt(1129796362);
output.writeBytes(param1,local5 - local2 ,local2);
output.writeBytes(param1,4,local5-local2-4);
output.position=0;
}
return output;
}
dat file decode and encode tools:
today,i have some free times. i'd like to share some tools for you. hope to useful for you.
this is a tools that i wirite in flash as3 language. you can use :
1: download and uncompress this .rar file on whaterever path you like.
2: click the DNTG_UNPACK.exe to run;
3: put the .dat files in the directory /config and click unpackage. will create a new file *.json in the directory /unpack.
4: put the .json files in the directory /unpack and click package ,will create a new file *.dat/*.jat in the directory /new.
this download link is:
You must be registered to see links
You must be registered to see links
.swf decode source code
for the .swf files. i have no tools. just post the as3 source code. you can change it to your favourate language, such as java/c/c++ etc... it's very simple:
protected function swf_decode(param1:ByteArray):ByteArray
{
var output:ByteArray;
param1.position=0;
var local2:* = param1.readInt();
var local3:* = local2 >> 8;
if(local3 == 4413267 || local3 == 4609875)
{
output=new ByteArray();
output.position=0;
param1.position=0;
output.writeBytes(param1);
}else
{
output = new ByteArray();
output.position=0;
var local5:* = param1.length;
output.writeInt(1129796362);
output.writeBytes(param1,local5 - local2 ,local2);
output.writeBytes(param1,4,local5-local2-4);
output.position=0;
}
return output;
}