Upvote Upvoted 33 Downvote Downvoted
weapon-specific vtf crosshair switcher thing
posted in Customization
1
#1
0 Frags +

this is a very simple program for switching vtf crosshairs. i made it mostly for myself since it has a pretty niche use but i think it could be useful to some people so im releasing it.

here's the use case:

  • you use windows 10 64 bit (it will probably work on other 64 bit versions of windows but idk lol) (if someone's on 32 bit and wants it I can probably make a 32 bit version)
  • you use vtf crosshairs with weapon-specific configs, like this or this
  • you have the crosshair-switching mental illness like me to justify not wanting to edit the config files manually (or re-generate your entire crosshair config with cfg.tf) each time you switch

this program does not generate vtf crosshair configs, it just provides an easy way to edit the ones you have already
also this program doesnt fuck with the cropping of the crosshair so this will probably only work for 64x64 crosshairs? seems to work with all of the ones in the cfg.tf pack though so whatever

download
latest v1.2
link

screenshot

Show Content

how to use
if you don't already have one, download a weapon-specific vtf crosshair pack and install it

drag the exe into the root of where your crosshair configs/vtfs are located
for example, if your config looks like:

tf/custom/custom_crosshairs/scripts/<crosshair scripts>
tf/custom/custom_crosshairs/materials/vgui/replay/thumbnails/<crosshair vtfs/vmts>

then put crosshair.exe in

tf/custom/custom_crosshairs/crosshair.exe

run the exe, select a weapon on the left, choose a new crosshair, and click apply

is this a virus
no, source code here

todo

  • compile for mac and linux?
  • display selected crosshair in window
  • prob fix a lot of bugs
  • .......................................

i had to enter most of the data used in the program manually, so i might have fucked up somewhere
i tested a good portion of the weapons, but if you're paranoid you should backup your scripts folder (or just make sure the "Backup scripts before modifying" checkbox is clicked before applying any changes)

this is a very simple program for switching vtf crosshairs. i made it mostly for myself since it has a pretty niche use but i think it could be useful to some people so im releasing it.

here's the use case:
[list]
[*] you use windows 10 64 bit (it will probably work on other 64 bit versions of windows but idk lol) (if someone's on 32 bit and wants it I can probably make a 32 bit version)
[*] you use vtf crosshairs with weapon-specific configs, like [url=https://www.teamfortress.tv/35367/vtf-crosshair-pack]this[/url] or [url=https://cfg.tf/tools/crosshairs/]this[/url]
[*] you have the crosshair-switching mental illness like me to justify not wanting to edit the config files manually (or re-generate your entire crosshair config with cfg.tf) each time you switch
[/list]

[i]this program does not generate vtf crosshair configs, it just provides an easy way to edit the ones you have already[/i]
[i]also this program doesnt fuck with the cropping of the crosshair so this will probably only work for 64x64 crosshairs? seems to work with all of the ones in the cfg.tf pack though so whatever[/i]

[h]download[/h]
latest v1.2
[url=https://bitbucket.org/mxm07/tf2-vtf-crosshair-selector/downloads/crosshair-v1.2.exe]link[/url]

[h]screenshot[/h]
[spoiler]
[url=https://i.imgur.com/MFJ2ftZ.gifv]epic demonstration gif[/url]

[img]https://i.imgur.com/hionFHT.png[/img]
[/spoiler]

[h]how to use[/h]
if you don't already have one, download a weapon-specific vtf crosshair pack and install it

drag the exe into the root of where your crosshair configs/vtfs are located
for example, if your config looks like:
[code]tf/custom/custom_crosshairs/scripts/<crosshair scripts>[/code]
[code]tf/custom/custom_crosshairs/materials/vgui/replay/thumbnails/<crosshair vtfs/vmts>[/code]
then put crosshair.exe in
[code]tf/custom/custom_crosshairs/crosshair.exe[/code]

run the exe, select a weapon on the left, choose a new crosshair, and click apply

[h]is this a virus[/h]
no, source code [url=https://bitbucket.org/mxm07/tf2-vtf-crosshair-selector/src/master/]here[/url]

[h]todo[/h]
[list]
[*] compile for mac and linux?
[*] display selected crosshair in window
[*] prob fix a lot of bugs
[*] .......................................
[/list]




i had to enter most of the data used in the program manually, so i might have fucked up somewhere
i tested a good portion of the weapons, but if you're paranoid you should backup your scripts folder (or just make sure the "Backup scripts before modifying" checkbox is clicked before applying any changes)
2
#2
7 Frags +

holy laz brain :O

holy laz brain :O
3
#3
4 Frags +

this is actually really sick thanks

this is actually really sick thanks
4
#4
5 Frags +

only chads use Windows Explorer in dark mode B^)

only chads use Windows Explorer in dark mode B^)
5
#5
3 Frags +

genius

genius
6
#6
7 Frags +

cubicle

cubicle
7
#7
0 Frags +

This is awesome. Going to install it when I get home! Thank you sir.

This is awesome. Going to install it when I get home! Thank you sir.
8
#8
5 Frags +

this make my pp hard wtf why

this make my pp hard wtf why
9
#9
0 Frags +

So I get the following error when I run it:

https://i.imgur.com/2zJBOUq.png

I'm on Windows 10 Pro 64 bit

So I get the following error when I run it:

https://i.imgur.com/2zJBOUq.png

I'm on Windows 10 Pro 64 bit
10
#10
1 Frags +

update v 1.1
link

added the ability to specify the path to your crosshair folders--now you can change your crosshair 8 times a day even more conveniently
settings save between program runs
columns can be sorted
fixed a bunch of other shit

cookieSo I get the following error when I run it:

https://i.imgur.com/2zJBOUq.png

I'm on Windows 10 Pro 64 bit

i think this might be an issue with the icon but im not sure. do me a favor and try this, and if it doesn't work i'll investigate further

update v 1.1
[url=https://bitbucket.org/mxm07/tf2-vtf-crosshair-selector/downloads/crosshair-v1.1.exe]link[/url]

added the ability to specify the path to your crosshair folders--now you can change your crosshair 8 times a day even more conveniently
settings save between program runs
columns can be sorted
fixed a bunch of other shit


[quote=cookie]So I get the following error when I run it:

https://i.imgur.com/2zJBOUq.png

I'm on Windows 10 Pro 64 bit[/quote]
i think this might be an issue with the icon but im not sure. do me a favor and try [url=https://bitbucket.org/mxm07/tf2-vtf-crosshair-selector/downloads/crosshair-v1.1-noicon.exe]this[/url], and if it doesn't work i'll investigate further
11
#11
0 Frags +

Every time I try to run it it does this:
https://i.imgur.com/7vDMjTK.png

Every time I try to run it it does this:
[url=https://i.imgur.com/7vDMjTK.png]https://i.imgur.com/7vDMjTK.png[/url]
12
#12
0 Frags +
MrWheatleyEvery time I try to run it it does this:
https://i.imgur.com/7vDMjTK.png

are you using the crosshair pack from here?
i just recently discovered that some of those scripts in that pack have an extra "f" at the beginning of them for some reason,
for example, this tf_weapon_shotgun_soldier file. this is likely what's causing that error.
you can try using cfg.tf for your crosshair files or manually remove the f's, in the meantime i'll add something that ensures that the program doesnt crash when that extra f is there.

[quote=MrWheatley]Every time I try to run it it does this:
[url=https://i.imgur.com/7vDMjTK.png]https://i.imgur.com/7vDMjTK.png[/url][/quote]

are you using the crosshair pack from [url=https://www.teamfortress.tv/35367/vtf-crosshair-pack]here?[/url]
i just recently discovered that some of those scripts in that pack have an extra "f" at the beginning of them for some reason,
for example, [url=https://www.dropbox.com/sh/mtk2ju5se4k0gue/AACkunJD0cwOt4uSB8vTNOyYa/custom_stuff/scripts?dl=0&preview=tf_weapon_shotgun_soldier.txt&subfolder_nav_tracking=1]this tf_weapon_shotgun_soldier file[/url]. this is likely what's causing that error.
you can try using cfg.tf for your crosshair files or manually remove the f's, in the meantime i'll add something that ensures that the program doesnt crash when that extra f is there.
13
#13
0 Frags +

when it opens the .exe it then immediately closes.

when it opens the .exe it then immediately closes.
14
#14
0 Frags +
Cloverwhen it opens the .exe it then immediately closes.

likely the same problem as above, give me a little while and i'll accommodate for the scuffed crosshair pack on tf.tv, or you can try generating a crosshair pack with cfg.tf

[quote=Clover]when it opens the .exe it then immediately closes.[/quote]
likely the same problem as above, give me a little while and i'll accommodate for the scuffed crosshair pack on tf.tv, or you can try generating a crosshair pack with cfg.tf
15
#15
1 Frags +

v1.2
link

this should fix the weapondata/instantly closing problems. also i added a little error popup that tells you if there's any other problematic scripts that it can't parse.

v1.2
[url=https://bitbucket.org/mxm07/tf2-vtf-crosshair-selector/downloads/crosshair-v1.2.exe]link[/url]

this should fix the weapondata/instantly closing problems. also i added a little error popup that tells you if there's any other problematic scripts that it can't parse.
16
#16
1 Frags +

Commenting to bookmark, this is sick, ty.

Commenting to bookmark, this is sick, ty.
17
#17
1 Frags +

this is super cool, thank you for making this

this is super cool, thank you for making this
18
#18
1 Frags +

thanks for this

thanks for this
19
#19
0 Frags +

is there a way to reload the crosshair in-game without having to restart your game

is there a way to reload the crosshair in-game without having to restart your game
20
#20
0 Frags +

this shits pog thanks laz

this shits pog thanks laz
21
#21
0 Frags +
edinis there a way to reload the crosshair in-game without having to restart your game

pretty sure you have to restart your game each time unfortunately

[quote=edin]is there a way to reload the crosshair in-game without having to restart your game[/quote]
pretty sure you have to restart your game each time unfortunately
22
#22
0 Frags +

Changes to weapon txt files (and VMT files?) require a restart

Changes to the VTFs can be reloaded with "mat_reloadmaterial thumbnails", though it only updates the image, not the VTF flags attached to the image (it will keep the ones from the VTF you had loaded before). Updating VTF flags requires a restart afaik
edit: after some experimentation I've come to the conclusion it should also update VTF flags

Requires sv_cheats 1. if you're playing TF2 and you're like "oh wow this one SUCKS I want to change it" just go in an offline server (or stay on the main menu), sv_cheats 1, replace the VTF with the one you want by removing the current one and renaming another, "mat_reloadmaterial thumbnails"
(example: crosshair1.vtf sucks. rename crosshair1 to crosshair1_old, rename CoolNewCrosshair.vtf to crosshair1.vtf, mat_reloadmaterial thumbnails)

Changes to weapon txt files (and VMT files?) require a restart

Changes to the VTFs can be reloaded with "mat_reloadmaterial thumbnails", though it only updates the image, not the VTF flags attached to the image (it will keep the ones from the VTF you had loaded before). Updating VTF flags requires a restart afaik
edit: after some experimentation I've come to the conclusion it should also update VTF flags

Requires sv_cheats 1. if you're playing TF2 and you're like "oh wow this one SUCKS I want to change it" just go in an offline server (or stay on the main menu), sv_cheats 1, replace the VTF with the one you want by removing the current one and renaming another, "mat_reloadmaterial thumbnails"
(example: crosshair1.vtf sucks. rename crosshair1 to crosshair1_old, rename CoolNewCrosshair.vtf to crosshair1.vtf, mat_reloadmaterial thumbnails)
23
#23
0 Frags +

best and sexiest invite jumper

best and sexiest invite jumper
24
#24
3 Frags +

you have used wrong file for dragon's fury, tf_weapon_flamethrower_fireball instead of tf_weapon_rocketlauncher_fireball

you have used wrong file for dragon's fury, tf_weapon_flamethrower_fireball instead of tf_weapon_rocketlauncher_fireball
Please sign in through STEAM to post a comment.