Download link https://drive.google.com/open?id=0B3abWs-MkvQyN0R3ZEVWLTBqTnM
I tested on Windows7 JapaneseEdition.
*** Tools ***
GCFScape (http://nemesis.thewavelength.net/?p=26) or vpk.exe
For see/extract .vtf in .vpk
VTFEdit (http://nemesis.thewavelength.net/index.php?p=41)
For see original files(.vtf) information.
Paint.net (http://www.getpaint.net/download.html)
and VTF plugin (http://nemesis.thewavelength.net/index.php?c=225)
For make .vtf . Convert image file(.jpg.png...) to .vtf.
VTF plugin install : Download file and extract. copy all *.dll to Paint.NET\FileTypes\
vpk.exe (Source SDK)
For make .vpk
Install : Start Steam client. Library->'Source SDK' install.
path = C:\Program Files (x86)\Steam\SteamApps\common\nmrih\sdk\bin\vpk.exe
*** Original file Information. ***
View nmrih\nmrih_dir.vpk by GCFScape
Path
Windows
materials\console\background01.vtf
materials\console\background01_widescreen.vtf
Linux( Attention. I have not linux environmenet. )
materials\console\background_linux\background01.vtf
materials\console\background_linux\background01_widescreen.vtf
Extract
Drag to desktop
View four desktop\.vtf by VTFEdit
File size = 2.67MB
Image size = 2048 x 2048
Format = DXT1
Flags = No Mipmap/No Level Of Detail
*** Procedure ***
1. Make work folder
Make desktop\source\console\background_linux
2. make .vtf
Start paint.net.
Open image file( .jpg .png ...)
Image->Resize->Width=2048 pixels , Height=2048 pixels->OK
FIle->Save as->File type=VTF(*.vtf)
->General tab
->Click Defaults
->Image Format=DXT1(Common)
Generate Thumbnail=uncheck the box
->Mipmaps tab
->Generate Mipmaps=uncheck the box
->Flags
->No Mipmap=check the box
->No Level Of Detail=check the box
->No Minimum Mipmap=check the box
->Normals tab
->Generate Normal map=uncheck the box
->click OK
3. Copy files
Copy your .vtf to desktop\source\console\
Rename your .vtf to background01.vtf
Copy background01.vtf to background01_widescreen.vtf
Copy background01.vtf to background_linux\
Copy background01_widescreen.vtf to background_linux\
Result.
DESKTOP\SOURCE
└─materials
└─console
│ background01.vtf
│ background01_widescreen.vtf
│
└─background_linux
background01.vtf
background01_widescreen.vtf
3. Make .vpk
Make source.vpk by vpk.exe
(1) Command prompt
start Command Prompt.
vpk C:\Users\b\Desktop\source <- path is your desktop folder.
exit
(2) Rename vpk
Rename vpk for Release
background01_XXX.vpk
4. Test .vpk
Install test.
(1) Copy background01_XXX.vpk to nmrih\custom\
(2) Start NMRiH
(3) You can see your .vtf?
(4) exit NMRiH
Uninstall test.
(1) Move desktop\custom\background01_XXX.vpk to desktop\
(2) Start NMRiH
(3) You can see Original .vtf?
*** FYI ***Experiments.
Animation background.
Make .vmt for each .vtf ( 4 files. )
====================================
"LightMappedGeneric"
{
"$baseTexture" "xxx"
"Proxies"
{
"AnimatedTexture"
{
"animatedTextureVar" "$basetexture"
"animatedTextureFrameNumVar" "$frame"
"animatedTextureFrameRate" "1"
}
}
}
====================================
background01.vmt xxx="console\background01"
background01_widescreen.vmt xxx="console\background01_widescreen"
background_linux\background01.vmt xxx="console\background01"
background_linux\background01_widescreen.vmt xxx="console\background01_widescreen"
"animatedTextureFrameRate" "1" <- 1=1second. animation speed.
Start NMRiH
Background is black. <-Problem
Login server and logout server.
Background is animation.