Help us keep the site up! Got some change to spare? Why not donate a few bits and buy us a coffee. Image

Neverwinter

Read or post about compression. And decompression. Or ask questions how to decompress your files.
surix
beginner
Posts: 28
Joined: Sun Jun 06, 2010 4:17 am
Has thanked: 1 time
Been thanked: 6 times

Neverwinter

Post 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.
You do not have the required permissions to view the files attached to this post.
michalss
Moderator
Posts: 951
Joined: Sun Mar 27, 2011 8:42 pm
Has thanked: 10 times
Been thanked: 142 times

Re: Neverwinter

Post 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....
Quick BMS Editor GUI - simple easy to use
Goto : viewtopic.php?uid=34229&f=29&t=6797&start=0

Downloads from DropBox : https://dl.dropboxusercontent.com/u/
chrrox
Moderator
Posts: 2602
Joined: Sun May 18, 2008 3:01 pm
Has thanked: 57 times
Been thanked: 1397 times

Re: Neverwinter

Post by chrrox »

Dyn_Playercostume_Species_Drow_F_01.Wtex is a plain dds file after you delete the first 0x24 bytes
surix
beginner
Posts: 28
Joined: Sun Jun 06, 2010 4:17 am
Has thanked: 1 time
Been thanked: 6 times

Re: Neverwinter

Post 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
chrrox
Moderator
Posts: 2602
Joined: Sun May 18, 2008 3:01 pm
Has thanked: 57 times
Been thanked: 1397 times

Re: Neverwinter

Post by chrrox »

having a few compressed files would help in testing.
you need the compscan2.bms and compscan2.bat file to test for compression.
surix
beginner
Posts: 28
Joined: Sun Jun 06, 2010 4:17 am
Has thanked: 1 time
Been thanked: 6 times

Re: Neverwinter

Post 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
surix
beginner
Posts: 28
Joined: Sun Jun 06, 2010 4:17 am
Has thanked: 1 time
Been thanked: 6 times

Re: Neverwinter

Post by surix »

I added some more examples


here's what I do know about the files

Image
You do not have the required permissions to view the files attached to this post.
GlassZeppelin
ultra-n00b
Posts: 7
Joined: Sun Feb 07, 2010 2:20 am
Has thanked: 2 times

Re: Neverwinter

Post 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?
User avatar
TaylorMouse
ultra-veteran
ultra-veteran
Posts: 340
Joined: Mon Sep 26, 2011 12:51 pm
Has thanked: 11 times
Been thanked: 84 times

Re: Neverwinter

Post 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.
GlassZeppelin
ultra-n00b
Posts: 7
Joined: Sun Feb 07, 2010 2:20 am
Has thanked: 2 times

Re: Neverwinter

Post 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...
MrAdults
Moderator
Posts: 1007
Joined: Mon Mar 23, 2009 2:57 am
Has thanked: 44 times
Been thanked: 504 times

Re: Neverwinter

Post 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
clairegrube
beginner
Posts: 26
Joined: Sun Feb 13, 2011 11:35 pm
Has thanked: 10 times

Re: Neverwinter

Post by clairegrube »

Is there a way to get the .htex textures as well? Or are they even textures, at least the sizes are comparable?
Maximvs
ultra-n00b
Posts: 1
Joined: Mon Aug 01, 2016 11:47 pm

Re: Neverwinter

Post 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?
Melecon
ultra-n00b
Posts: 1
Joined: Sun Sep 11, 2016 10:53 pm

Re: Neverwinter

Post by Melecon »

Run it from the command line.
User avatar
TokiChan
mega-veteran
mega-veteran
Posts: 222
Joined: Wed May 18, 2016 7:38 pm
Location: Russia
Has thanked: 58 times
Been thanked: 20 times

Re: Neverwinter

Post by TokiChan »

Any progress with Neverwinter?
I need some models, but noob in command line or scripting
http://tokami-fuko.deviantart.com/
Extracted, converted, rigged models :)
Skyrim, Witcher 3, Dark Souls, Demon's Souls, Doom 3, random dragons
Post Reply