Upvote Upvoted 1 Downvote Downvoted
Transferring Crosshairs with NO Fonts
posted in Q/A Help
1
#1
0 Frags +

Hello,

I've looked around a bit and I couldn't find a thread on it so I was wondering:

How do you transfer crosshairs that do not have a specific font?

More specifically, these crosshairs are usually ones generated from TF2 itself such as Rays' pilot crosshair or useoftoaster's crosshair. I tried simply copying and pasting it to work but alas, no success.This includes trying it in the script and resource folder. Below I will post the code for the crosshair I am trying to transfer (useoftoaster's) and one of his videos displaying it in action! I actually talked to useoftoaster and we both weren't able to figure out how to transfer it.

http://www.youtube.com/watch?v=45oNvSorEww&feature=c4-overview&;

For future reference, the original crosshair was found in:
resource\ui\HudPlayerClass.res

And here is the code to the actual crosshair:

"HudCrosshair"
  {
    "ControlName" "ImagePanel"
    "fieldName"   "HudCrosshair"
    "xpos"        "c-1"
    "ypos"        "c-1"
    "zpos"        "1"
    "wide"        "2"
    "tall"        "2"
    "autoResize"  "0"
    "pinCorner"   "0"
    "visible"     "1"
    "fillcolor"   "0 0 0 255"
    "enabled"     "1"
    "scaleImage"  "0"
  }
// Top ////////////////////////////////////////
  "HudCrosshairTop"
  {
    "ControlName" "ImagePanel"
    "fieldName"   "HudCrosshairTop"
    "xpos"        "c-10"
    "ypos"        "c-10"
    "zpos"        "1"
    "wide"        "20"
    "tall"        "1"
    "autoResize"  "0"
    "pinCorner"   "0"
    "visible"     "1"
    "fillcolor"   "0 0 0 255"
    "enabled"     "1"
    "scaleImage"  "0"
  }
// Bottom ////////////////////////////////////////
  "HudCrosshairBottom"
  {
    "ControlName" "ImagePanel"
    "fieldName"   "HudCrosshairBottom"
    "xpos"        "c-10"
    "ypos"        "c+10"
    "zpos"        "1"
    "wide"        "20"
    "tall"        "1"
    "autoResize"  "0"
    "pinCorner"   "0"
    "visible"     "1"
    "fillcolor"   "0 0 0 255"
    "enabled"     "1"
    "scaleImage"  "0"
  }
// Left ////////////////////////////////////////
  "HudCrosshairLeft"
  {
    "ControlName" "ImagePanel"
    "fieldName"   "HudCrosshairLeft"
    "xpos"        "c-10"
    "ypos"        "c-10"
    "zpos"        "1"
    "wide"        "1"
    "tall"        "20"
    "autoResize"  "0"
    "pinCorner"   "0"
    "visible"     "1"
    "fillcolor"   "255 255 255 255"
    "enabled"     "1"
    "scaleImage"  "0"
  }
// Right ////////////////////////////////////////
  "HudCrosshairRight"
  {
    "ControlName" "ImagePanel"
    "fieldName"   "HudCrosshairRight"
    "xpos"        "c+10"
    "ypos"        "c-10"
    "zpos"        "1"
    "wide"        "1"
    "tall"        "20"
    "autoResize"  "0"
    "pinCorner"   "0"
    "visible"     "1"
    "fillcolor"   "255 255 255 255"
    "enabled"     "1"
    "scaleImage"  "0"
  }
}

  "HudCrosshair"
  {
    "ControlName" "ImagePanel"
    "fieldName"   "HudCrosshair"
    "xpos"        "c-1"
    "ypos"        "c-1"
    "zpos"        "1"
    "wide"        "2"
    "tall"        "2"
    "autoResize"  "0"
    "pinCorner"   "0"
    "visible"     "1"
    "fillcolor"   "0 0 0 255"
    "enabled"     "1"
    "scaleImage"  "0"
  }
}
//

"HudCrosshair"
  {
    "ControlName" "ImagePanel"
    "fieldName"   "HudCrosshair"
    "xpos"        "c-1"
    "ypos"        "c-1"
    "zpos"        "1"
    "wide"        "2"
    "tall"        "2"
    "autoResize"  "0"
    "pinCorner"   "0"
    "visible"     "1"
    "fillcolor"   "0 0 0 255"
    "enabled"     "1"
    "scaleImage"  "0"
  }
}

Any help would be greatly appreciated! As well as an indication that it isn't just me and that the copy and paste method does not work.

Thank you in advance

Hello,

I've looked around a bit and I couldn't find a thread on it so I was wondering:

How do you transfer crosshairs that do not have a specific font?

More specifically, these crosshairs are usually ones generated from TF2 itself such as Rays' pilot crosshair or useoftoaster's crosshair. I tried simply copying and pasting it to work but alas, no success.This includes trying it in the script and resource folder. Below I will post the code for the crosshair I am trying to transfer (useoftoaster's) and one of his videos displaying it in action! I actually talked to useoftoaster and we both weren't able to figure out how to transfer it.

[youtube]http://www.youtube.com/watch?v=45oNvSorEww&feature=c4-overview&[/youtube]


For future reference, the original crosshair was found in:
resource\ui\HudPlayerClass.res

And here is the code to the actual crosshair:

[code]"HudCrosshair"
{
"ControlName" "ImagePanel"
"fieldName" "HudCrosshair"
"xpos" "c-1"
"ypos" "c-1"
"zpos" "1"
"wide" "2"
"tall" "2"
"autoResize" "0"
"pinCorner" "0"
"visible" "1"
"fillcolor" "0 0 0 255"
"enabled" "1"
"scaleImage" "0"
}
// Top ////////////////////////////////////////
"HudCrosshairTop"
{
"ControlName" "ImagePanel"
"fieldName" "HudCrosshairTop"
"xpos" "c-10"
"ypos" "c-10"
"zpos" "1"
"wide" "20"
"tall" "1"
"autoResize" "0"
"pinCorner" "0"
"visible" "1"
"fillcolor" "0 0 0 255"
"enabled" "1"
"scaleImage" "0"
}
// Bottom ////////////////////////////////////////
"HudCrosshairBottom"
{
"ControlName" "ImagePanel"
"fieldName" "HudCrosshairBottom"
"xpos" "c-10"
"ypos" "c+10"
"zpos" "1"
"wide" "20"
"tall" "1"
"autoResize" "0"
"pinCorner" "0"
"visible" "1"
"fillcolor" "0 0 0 255"
"enabled" "1"
"scaleImage" "0"
}
// Left ////////////////////////////////////////
"HudCrosshairLeft"
{
"ControlName" "ImagePanel"
"fieldName" "HudCrosshairLeft"
"xpos" "c-10"
"ypos" "c-10"
"zpos" "1"
"wide" "1"
"tall" "20"
"autoResize" "0"
"pinCorner" "0"
"visible" "1"
"fillcolor" "255 255 255 255"
"enabled" "1"
"scaleImage" "0"
}
// Right ////////////////////////////////////////
"HudCrosshairRight"
{
"ControlName" "ImagePanel"
"fieldName" "HudCrosshairRight"
"xpos" "c+10"
"ypos" "c-10"
"zpos" "1"
"wide" "1"
"tall" "20"
"autoResize" "0"
"pinCorner" "0"
"visible" "1"
"fillcolor" "255 255 255 255"
"enabled" "1"
"scaleImage" "0"
}
}


"HudCrosshair"
{
"ControlName" "ImagePanel"
"fieldName" "HudCrosshair"
"xpos" "c-1"
"ypos" "c-1"
"zpos" "1"
"wide" "2"
"tall" "2"
"autoResize" "0"
"pinCorner" "0"
"visible" "1"
"fillcolor" "0 0 0 255"
"enabled" "1"
"scaleImage" "0"
}
}
//

"HudCrosshair"
{
"ControlName" "ImagePanel"
"fieldName" "HudCrosshair"
"xpos" "c-1"
"ypos" "c-1"
"zpos" "1"
"wide" "2"
"tall" "2"
"autoResize" "0"
"pinCorner" "0"
"visible" "1"
"fillcolor" "0 0 0 255"
"enabled" "1"
"scaleImage" "0"
}
}
[/code]



Any help would be greatly appreciated! As well as an indication that it isn't just me and that the copy and paste method does not work.


Thank you in advance
2
#2
0 Frags +

Generally, crosshairs like the ones you described are put into hudlayout.res in the scripts folder.

I would suggest copy and pasting the entire thing there. It should work. You can insert it anywhere as long as you don't mess up the important HUD elements. Good luck.

Generally, crosshairs like the ones you described are put into hudlayout.res in the scripts folder.

I would suggest copy and pasting the entire thing there. It should work. You can insert it anywhere as long as you don't mess up the important HUD elements. Good luck.
3
#3
0 Frags +
SpideGenerally, crosshairs like the ones you described are put into hudlayout.res in the scripts folder.

I would suggest copy and pasting the entire thing there. It should work. You can insert it anywhere as long as you don't mess up the important HUD elements. Good luck.

Ah, sorry. I should of been more specific when I said I tried putting it in my script folder. I did put it in the hudlayout but unfortunately, no success. Thanks for your input, however. :)

[quote=Spide]Generally, crosshairs like the ones you described are put into hudlayout.res in the scripts folder.

I would suggest copy and pasting the entire thing there. It should work. You can insert it anywhere as long as you don't mess up the important HUD elements. Good luck.[/quote]

Ah, sorry. I should of been more specific when I said I tried putting it in my script folder. I did put it in the hudlayout but unfortunately, no success. Thanks for your input, however. :)
4
#4
0 Frags +

when you saved it into hudlayout.res did you type hud_reloadscheme into console

when you saved it into hudlayout.res did you type hud_reloadscheme into console
5
#5
0 Frags +
danbowhen you saved it into hudlayout.res did you type hud_reloadscheme into console

Yes, haha

[quote=danbo]when you saved it into hudlayout.res did you type hud_reloadscheme into console[/quote]

Yes, haha
6
#6
-1 Frags +

Did you put it in your tf/custom/scripts folder?

Also the code you pasted looks funny, you have 2 extra copies of the "HudCrosshair" at the very end with unmatched curly braces?? I would try deleting those as well, specifically, just use this:

"HudCrosshair"
{
"ControlName" "ImagePanel"
"fieldName" "HudCrosshair"
"xpos" "c-1"
"ypos" "c-1"
"zpos" "1"
"wide" "2"
"tall" "2"
"autoResize" "0"
"pinCorner" "0"
"visible" "1"
"fillcolor" "0 0 0 255"
"enabled" "1"
"scaleImage" "0"
}
// Top ////////////////////////////////////////
"HudCrosshairTop"
{
"ControlName" "ImagePanel"
"fieldName" "HudCrosshairTop"
"xpos" "c-10"
"ypos" "c-10"
"zpos" "1"
"wide" "20"
"tall" "1"
"autoResize" "0"
"pinCorner" "0"
"visible" "1"
"fillcolor" "0 0 0 255"
"enabled" "1"
"scaleImage" "0"
}
// Bottom ////////////////////////////////////////
"HudCrosshairBottom"
{
"ControlName" "ImagePanel"
"fieldName" "HudCrosshairBottom"
"xpos" "c-10"
"ypos" "c+10"
"zpos" "1"
"wide" "20"
"tall" "1"
"autoResize" "0"
"pinCorner" "0"
"visible" "1"
"fillcolor" "0 0 0 255"
"enabled" "1"
"scaleImage" "0"
}
// Left ////////////////////////////////////////
"HudCrosshairLeft"
{
"ControlName" "ImagePanel"
"fieldName" "HudCrosshairLeft"
"xpos" "c-10"
"ypos" "c-10"
"zpos" "1"
"wide" "1"
"tall" "20"
"autoResize" "0"
"pinCorner" "0"
"visible" "1"
"fillcolor" "255 255 255 255"
"enabled" "1"
"scaleImage" "0"
}
// Right ////////////////////////////////////////
"HudCrosshairRight"
{
"ControlName" "ImagePanel"
"fieldName" "HudCrosshairRight"
"xpos" "c+10"
"ypos" "c-10"
"zpos" "1"
"wide" "1"
"tall" "20"
"autoResize" "0"
"pinCorner" "0"
"visible" "1"
"fillcolor" "255 255 255 255"
"enabled" "1"
"scaleImage" "0"
}
Did you put it in your tf/custom/scripts folder?

Also the code you pasted looks funny, you have 2 extra copies of the "HudCrosshair" at the very end with unmatched curly braces?? I would try deleting those as well, specifically, just use this:

[quote]
"HudCrosshair"
{
"ControlName" "ImagePanel"
"fieldName" "HudCrosshair"
"xpos" "c-1"
"ypos" "c-1"
"zpos" "1"
"wide" "2"
"tall" "2"
"autoResize" "0"
"pinCorner" "0"
"visible" "1"
"fillcolor" "0 0 0 255"
"enabled" "1"
"scaleImage" "0"
}
// Top ////////////////////////////////////////
"HudCrosshairTop"
{
"ControlName" "ImagePanel"
"fieldName" "HudCrosshairTop"
"xpos" "c-10"
"ypos" "c-10"
"zpos" "1"
"wide" "20"
"tall" "1"
"autoResize" "0"
"pinCorner" "0"
"visible" "1"
"fillcolor" "0 0 0 255"
"enabled" "1"
"scaleImage" "0"
}
// Bottom ////////////////////////////////////////
"HudCrosshairBottom"
{
"ControlName" "ImagePanel"
"fieldName" "HudCrosshairBottom"
"xpos" "c-10"
"ypos" "c+10"
"zpos" "1"
"wide" "20"
"tall" "1"
"autoResize" "0"
"pinCorner" "0"
"visible" "1"
"fillcolor" "0 0 0 255"
"enabled" "1"
"scaleImage" "0"
}
// Left ////////////////////////////////////////
"HudCrosshairLeft"
{
"ControlName" "ImagePanel"
"fieldName" "HudCrosshairLeft"
"xpos" "c-10"
"ypos" "c-10"
"zpos" "1"
"wide" "1"
"tall" "20"
"autoResize" "0"
"pinCorner" "0"
"visible" "1"
"fillcolor" "255 255 255 255"
"enabled" "1"
"scaleImage" "0"
}
// Right ////////////////////////////////////////
"HudCrosshairRight"
{
"ControlName" "ImagePanel"
"fieldName" "HudCrosshairRight"
"xpos" "c+10"
"ypos" "c-10"
"zpos" "1"
"wide" "1"
"tall" "20"
"autoResize" "0"
"pinCorner" "0"
"visible" "1"
"fillcolor" "255 255 255 255"
"enabled" "1"
"scaleImage" "0"
}
[/quote]
7
#7
0 Frags +
noplsDid you put it in your tf/custom/scripts folder?

Also the code you pasted looks funny, you have 2 extra copies of the "HudCrosshair" at the very end with unmatched curly braces?? I would try deleting those as well, specifically, just use this:

To answer your first question, yes it was in that designated area. But secondly, that actually made it work and it is working fine now. Thanks! :)

[quote=nopls]Did you put it in your tf/custom/scripts folder?

Also the code you pasted looks funny, you have 2 extra copies of the "HudCrosshair" at the very end with unmatched curly braces?? I would try deleting those as well, specifically, just use this:
[/quote]


To answer your first question, yes it was in that designated area. But secondly, that actually made it work and it is working fine now. Thanks! :)
Please sign in through STEAM to post a comment.