- Joined
- Oct 20, 2012
- Messages
- 38
- Reaction score
- 7
Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!
Join Today!only chinese version.If u need English version, please translate script files.For example,*.slk *.lua *.sdo you have english version?
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
using System.IO;
public class Program
{
public static void Main(string[] args)
{
if(args.Length == 0)
{
var filePath = "../QiShan/CONFIG/1000.qsi";
var textFile = DecodeFile(filePath);
File.WriteAllText(filePath.Substring(0, filePath.Length - 4) + ".ini", textFile); // Remove .qsi
}else{
if(args[0] == "-d" && args.Length == 2)
{
var filePaths = Directory.EnumerateFiles(args[1], "*.qsi");
foreach(var filePath in filePaths)
{
var textFile = DecodeFile(filePath);
File.WriteAllText(filePath.Substring(0, filePath.Length - 4) + ".ini", textFile); // Remove .qsi
}
}else{
var filePath = args[0];
if(Path.GetExtension(filePath) != ".qsi")
return;
var textFile = DecodeFile(filePath);
File.WriteAllText(filePath.Substring(0, filePath.Length - 4) + ".ini", textFile); // Remove .qsi
}
}
}
public static string DecodeFile(string filePath)
{
var data = File.ReadAllBytes(filePath);
for(int i = 0; i < data.Length; i++)
{
if((i & 0x01) == 1)
data[i] ^= 0x55;
else
data[i] ^= 0x62;
}
System.Text.Encoding gb2312 = System.Text.Encoding.GetEncoding("GB2312");
return gb2312.GetString(data);
}
}
Hi, I've managed to compile almost everything, but have faced problems to launch WorldBuilder.exe. Basically problem is something with CSALocker(CRITICAL_SECTION& csAccess). Can anyone give the idea how to fix that?
^^ But keeps noobs out .solid encryption lul