Page 1 of 1

Neverwinter

Posted: Fri Mar 29, 2013 7:56 am
by surix
im looking at the files from the neverwinter beta. it uses the same engine as star trek online so I extracted the pigg archives without a problem. the images are .wtex like sto but don't seem to be dds in there. the header of the wtex is also larger in these (160 bytes) to the dds wtex's 36 bytes header.


does anyone have any ideas?

I attached a dds one and one of the mystery ones.

Re: Neverwinter

Posted: Fri Mar 29, 2013 11:01 am
by michalss
surix wrote:im looking at the files from the neverwinter beta. it uses the same engine as star trek online so I extracted the pigg archives without a problem. the images are .wtex like sto but don't seem to be dds in there. the header of the wtex is also larger in these (160 bytes) to the dds wtex's 36 bytes header.


does anyone have any ideas?

I attached a dds one and one of the mystery ones.
This looks compressed....

Re: Neverwinter

Posted: Fri Mar 29, 2013 12:20 pm
by chrrox
Dyn_Playercostume_Species_Drow_F_01.Wtex is a plain dds file after you delete the first 0x24 bytes

Re: Neverwinter

Posted: Fri Mar 29, 2013 6:52 pm
by surix
Yeah i included one of the dds ones, and one of the other ones.


I am mildly familiar with quickbms but how would i go about testing compression on it? would i choose a few offsets i think might be the start of the compressed part and try the algos there? compression is not my strong area so i dont know what clues to look for in picking the offsets

Re: Neverwinter

Posted: Fri Mar 29, 2013 7:02 pm
by chrrox
having a few compressed files would help in testing.
you need the compscan2.bms and compscan2.bat file to test for compression.

Re: Neverwinter

Posted: Fri Mar 29, 2013 7:08 pm
by surix
thanks chrrox. i have those but i'm not sure where to start to test for compression, the header is not compressed being it has the size of the header, size of file, width and height of image and some other 32 bit integers in it.

im not home right now but tonight ill upload some more images

Re: Neverwinter

Posted: Sat Mar 30, 2013 4:19 am
by surix
I added some more examples


here's what I do know about the files

Image

Re: Neverwinter

Posted: Fri Apr 05, 2013 11:11 pm
by GlassZeppelin
It seems like these files may be compressed with crunch -- http://code.google.com/p/crunch/ and http://code.google.com/p/crunch/wiki/TechnicalDetails

The GameClient.exe even makes mention of this header file: http://code.google.com/p/crunch/source/ ... n_decomp.h

I tested it out and compressing images to the .crn format results in a header of 48 78 00 and other data that looks similar to the Neverwinter textures, but I couldn't quite get the Neverwinter files to decompress. Perhaps someone else will have better luck?

Re: Neverwinter

Posted: Sun May 05, 2013 8:52 pm
by TaylorMouse
First of all, I love this game, and, ofcourse was interested in the models :)

I used this to unpack the hogg file: Download here

To use it:
Gibbed.Champions.Bacon.exe <input hogg file> <output directory>

The exe and files are .net code, and can be decompiled with Telerik's Decompiler

In the textures.hogg, there are a lot of htex and wtex files, don't know how to decompile them yep, hopefully we find something shortly :)

Keep up the good works guys!

T.

Re: Neverwinter

Posted: Wed May 15, 2013 10:21 pm
by GlassZeppelin
Here's some more info on what happened to the textures -- this post is for STO but details the same new .wtex stuff as in Neverwinter:

http://sto-forum.perfectworld.com/showp ... ostcount=1

I am still not able to decompress the .wtex files into an editable format, though...

Re: Neverwinter

Posted: Mon Sep 02, 2013 7:55 am
by MrAdults
Upgrade to Noesis v4.085 before using this script or it won't work. (I had to modify the crunch decoder to handle their changes, and on top of that their DDS files are badly-formatted and don't have the correct flags)

Code: Select all

from inc_noesis import *

def registerNoesisTypes():
	handle = noesis.register("Perfect World Texture", ".wtex")
	noesis.setHandlerTypeCheck(handle, wtexCheckType)
	noesis.setHandlerLoadRGBA(handle, wtexLoadRGBA)

	return 1

def wtexCheckType(data):
	if len(data) < 40 or (noeUnpackFrom("i", data, 32)[0]>>8) != 0x355854:
		return 0
	return 1

def wtexLoadRGBA(data, texList):
	dataOfs = noeUnpack("i", data[:4])[0]
	if noeUnpackFrom("i", data, dataOfs)[0] == 0x20534444: #dds
		print("Loading as DDS.")
		texture = rapi.loadTexByHandler(data[dataOfs:], ".dds")
	else:
		print("Loading as CRN.")
		texture = rapi.loadTexByHandler(data[dataOfs:], ".crn")

	if texture is None:
		return 0

	texList.append(texture)
	return 1

Re: Neverwinter

Posted: Sun Feb 09, 2014 11:38 pm
by clairegrube
Is there a way to get the .htex textures as well? Or are they even textures, at least the sizes are comparable?

Re: Neverwinter

Posted: Mon Aug 01, 2016 11:51 pm
by Maximvs
How exactly do you use this ?

To use it:
Gibbed.Champions.Bacon.exe <input hogg file> <output directory>

Can you please give details info of the procedure? Do I double click it ? ( doesnt work ). Do I drag a .hogg file on it and then it works? ( doesn't work for me ). Or do I drag the Bacon.exe on a file and then it works ? ( doesn't work for me ) or do I have to open my CMD and type stuff in there? If so, can you give an example of that, please?

Re: Neverwinter

Posted: Wed Mar 08, 2017 4:07 am
by Melecon
Run it from the command line.

Re: Neverwinter

Posted: Thu Apr 18, 2019 5:23 pm
by TokiChan
Any progress with Neverwinter?
I need some models, but noob in command line or scripting