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

Quote from ChickenMobile on June 8, 2011, 7:25 amAt 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.4Here is how to open and edit one:
- Using GFCScape (or a similar program) extract the materials you want out of the Pak01_dir.vpk
- Open your texture in a Hex editor (you can find some free ones on the net. A good example is PspPad)
- 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:
Into:DO NOT SAVE OVER VALVE'S ORIGINAL FILE IN THE VPK. CREATE A SEPARATE FILE UNDER A DIFFERENT NAME.
- 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).
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:
- Using GFCScape (or a similar program) extract the materials you want out of the Pak01_dir.vpk
- Open your texture in a Hex editor (you can find some free ones on the net. A good example is PspPad)
- 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:
Into:DO NOT SAVE OVER VALVE'S ORIGINAL FILE IN THE VPK. CREATE A SEPARATE FILE UNDER A DIFFERENT NAME.
- 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).
Quote from WinstonSmith on June 8, 2011, 12:14 pmThis is great...
...except the newest versions of VTFEdit and the PDN VTF plugin can open, edit, and save VTF 7.5 files.
This is great...
...except the newest versions of VTFEdit and the PDN VTF plugin can open, edit, and save VTF 7.5 files.
Quote from walropodes on June 8, 2011, 2:15 pmYeah, Nem's site is confusing. Grab a copy of the latest VTFEdit here:
Yeah, Nem's site is confusing. Grab a copy of the latest VTFEdit here:

Quote from ChickenMobile on June 9, 2011, 7:31 amwalropodes 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
I downloaded the newest version a day ago and it didn't work. Gosh I feel stupid now :S

Quote from msleeper on June 9, 2011, 2:10 pm
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.
Quote from Discofix on June 1, 2013, 8:48 amYou saved my Year!
For those who are as lazy as
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.exeEnjoy.
Edit: It reqires Microsoft .Net Framework 4
You saved my Year!
For those who are as lazy as 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

Quote from ChickenMobile on June 2, 2013, 4:52 amDiscofix wrote:You saved my Year!For those who are as lazy as
and have problems with Nems newest version: I whipped a program together, which does the Binary work stuff.
Download:
VTFer.exeEnjoy.
Edit: It reqires Microsoft .Net Framework 4
I don't like the look of this post. People don't download the link.
For those who are as lazy as 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.
Quote from PortalCombat on June 2, 2013, 6:04 amChickenMobile 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
![]()
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.
Well... new user with only one post and a link to a extern file-hoster for a .exe
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.

Quote from josepezdj on June 3, 2013, 4:30 amHehe... 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?
![]()
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?
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?
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?
Quote from FelixGriffin on June 3, 2013, 8:58 amI'll try to decompile it, but Discofix, if you read this, could you post your source?
I'll try to decompile it, but Discofix, if you read this, could you post your source?