Please or Register to create posts and topics.

[Tutorial] Editing Valve's 7.5 format .VTF files

Page 1 of 2Next

At the moment there is no way that I know of to open a VTF within the Portal VPK as they are currently a new VTF format (version 7.5). When I try to open them in VTFedit it says:

Code: Select all
Error loading VTF texture:

Error:
File version 7.5 does not match 7.0 to 7.4

Here is how to open and edit one:

  1. Using GFCScape (or a similar program) extract the materials you want out of the Pak01_dir.vpk
  2. Open your texture in a Hex editor (you can find some free ones on the net. A good example is PspPad)
  3. We want to edit the number 05 in the first line into 04 so then your VTF editing program can read the file. The number should be in the 8th hex digit value.

    E.G. So you change:Image
    Into:
    Image

    DO NOT SAVE OVER VALVE'S ORIGINAL FILE IN THE VPK. CREATE A SEPARATE FILE UNDER A DIFFERENT NAME.

  4. Edit to your hearts' content.

Until VTFedit and different plugins are updated this will be the only method to edit custom textures (other than using Valve's console texture convertor).

?????????????????????????????TWP Releases | My Workshop

This is great...

...except the newest versions of VTFEdit and the PDN VTF plugin can open, edit, and save VTF 7.5 files.

Image
Now with 100% more inline comments!

Yeah, Nem's site is confusing. Grab a copy of the latest VTFEdit here:

http://nemesis.thewavelength.net/index.php?c=238#p238

walropodes wrote:
Yeah, Nem's site is confusing. Grab a copy of the latest VTFEdit here.

I downloaded the newest version a day ago and it didn't work. Gosh I feel stupid now :S

?????????????????????????????TWP Releases | My Workshop

:lol:

[Important Threads] Forum Rules | Welcome to the new Thinking With Portals
Please do not Private Message me for assistance. Post a thread if you have questions or concerns.
If you need to contact the staff privately, contact the Global Moderators via Discord.

You saved my Year!

For those who are as lazy as :snooze: and have problems with Nems newest version: I whipped a program together, which does the Binary work stuff.

Donload: ChickenMobile did not approve of my program.
VTFer.exe

Enjoy.

Edit: It reqires Microsoft .Net Framework 4

Discofix wrote:
You saved my Year!

For those who are as lazy as :snooze: and have problems with Nems newest version: I whipped a program together, which does the Binary work stuff.

Download:
VTFer.exe

Enjoy.

Edit: It reqires Microsoft .Net Framework 4

I don't like the look of this post. People don't download the link.

?????????????????????????????TWP Releases | My Workshop
ChickenMobile wrote:
I don't like the look of this post. People don't download the link.

Well... new user with only one post and a link to a extern file-hoster for a .exe :lol:

I checked it with virustotal.com:
https://www.virustotal.com/de/file/6f5f ... 370167217/

Analysis and File details are looking normal and code size is in range for such a small prog.

[back on TWP since 08. July 2017]
Steam: DrFauli

Hehe... curious thing... At first this guy/gal seemed so newbie that Chicken saved his/her with a simple hexing of a file... and suddenly he/she is a coder and make his/her own little app to simplify this task? :lol:

Also, I read the post yesterday and it didn't include the link...

Anyways, no viruses/malware/spyware with Smart Security 6.0 and Avast 8.0.... Hmmm... maybe other kind of dangerous thinghie?

ImageImageImageImageImageuseful tools and stuff here on TWP :thumbup:
[spoiler]ImageImageImageImageImage[/spoiler]

I'll try to decompile it, but Discofix, if you read this, could you post your source?

Falsi sumus crusto!
Page 1 of 2Next