Jump to content

兵王2 PAK ztgame


Recommended Posts

Hello! looking for help or advices to can unpack this archive, tried with many PAK scripts but unfortunately none works, newer client have different header  "SQL lite format 3" already opened with  SQLite Database Browser but cannot extract anything is just text. Thanks for your time!

icons.rar

Link to comment
Share on other sites

  • Engineer

Hello!

Is it a PC game? Did you search for a quickbms script for the paks of the game?

Or you could use quickbms to do a comtype scan. (Little bit tedious because it's a brute force try of all quickbms compression algos.)

You could try a 3D ripper, which can rip textures, iirc. (No idea whether icons are supported.)

(Long ago I used a resource ripper for GUI elements of windows apps. Guess it was Resource Extractor Pro which allowed ripping icons from exe and dll files.)

btw, here's a github link. You might search through the files and tell us if you've found something related to PAK.

(Probably not, but worth a try, imho.)

Edited by shak-otay
  • Like 1
Link to comment
Share on other sites

4 hours ago, shak-otay said:

Hello!

Is it a PC game? Did you search for a quickbms script for the paks of the game?

Or you could use quickbms to do a comtype scan. (Little bit tedious because it's a brute force try of all quickbms compression algos.)

You could try a 3D ripper, which can rip textures, iirc. (No idea whether icons are supported.)

(Long ago I used a resource ripper for GUI elements of windows apps. Guess it was Resource Extractor Pro which allowed ripping icons from exe and dll files.)

btw, here's a github link. You might search through the files and tell us if you've found something related to PAK.

(Probably not, but worth a try, imho.)

Hello Shakotay! yeah is a PC game but is an old one the current one and that have similar models is https://xx.ztgame.com / but is using SQL Lite format 3 and that seems more difficult to open. I also tried 3d rippers in game but doesn't work. I have found this https://github.com/hackerlank/restool_xxsjtool/tree/master, the models and textures are .mod and .tex because I have seen old models with that extension, but still not sure how to compile it.  :classic_blush:

Link to comment
Share on other sites

  • Engineer

Thanks! But it doesn't compile. (edit: seems it needs to be compiled under Linux!)

Could you check this code (src\util.cpp) in your text editor? (mkdir is called recursively, so far so good.)

But the 0755 (makedir(DirName, 0755)) doesn't make sense to me. Might be an untranslated unicode char.

bool Util::mkdir(const char *path, bool dirflag)
{  
	char DirName[256];  
	strcpy(DirName, path);  

	for(int t = 0; t < strlen(DirName); t++)
	{
		if(DirName[t] == '\\')
			DirName[t] = '/';
	}

	int len = strlen(DirName);  
	if(dirflag && DirName[len-1] != '/')
		strcat(DirName,   "/");  
	len = strlen(DirName);  
	for(int i = 1; i<len; i++)  
	{  
		if(DirName[i]=='/')  
		{  
			DirName[i] = 0;  
			if(access(DirName, 0) != 0)  
			{  
				if(::mkdir(DirName, 0755) == -1)  
				{   
					cout << "[Util]mkdir failed: " << DirName << endl;
					return false;   
				}
			}
			DirName[i] = '/';  
		} 
	} 	
	return true;  
}  

 

Edited by shak-otay
  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...