Crosshairs for 3.2

TheGuyTheGuy Join Date: 2003-08-09 Member: 19295Members, Constellation
edited November 2006 in NS Customization
<div class="IPBDescription">Crosshair format is changed a bit</div><a href="http://imageshack.us" target="_blank"><img src="http://img227.imageshack.us/img227/4607/xhairmwlk2.jpg" border="0" alt="IPB Image" /></a>

(Well it had a picture till they limited attachments to 30kb. what the heck. I'll link one in a sec)
This image is shown at 200% to show it clearly. it's not to scale.

Ok. this shows how a sprite is made. This is the sprite file for the set 2 of the machinegun crosshair. It's labled to show you how sprites and the text files relate to each other. But I'm only going to explain the 800x600 one(shown in green).

crosshair_2 800 xhairmw6 40 0 50 50

And now in simple terms

<unchangeable game name> <resolution> <spritefilename> <x origin> <y origin> <x length> <y length>

So looking at the picture. You see that it starts at 40,0 and has a length of 50. It's as simple as that.



If you want to add a crosshair for aliens that didn't have a crosshair in 3.1. you'd have to change the first line to 27(or how many lines after the first line there are) so it knows how many lines to read. The crosshair_0 entry isn't there for some weapons since in 3.1 there weren't any for them.

So you'd use crosshair_0 320 for all of the crosshairs from 3.1

This will make it use that crosshair as crosshair 0 for any resolution since the 3.1 crosshairs did not use specific entries for different resolutions.

<b>DO NOT EDIT YOUR OLD 3.1 TEXT FILES. CHANGE THE LINES IN THE NEW 3.2 ONES.</b>
<b>weapon_weaponname.txt are located in your sprites folder. Edit them but be sure to back up your original just in case you want to change it back.</b>

Comments

  • aeroripperaeroripper Join Date: 2005-02-25 Member: 42471NS1 Playtester, Forum Moderators, Constellation
    You ROCK, now I gotta figure out how to use Shaz's alien crosshairs <img src="style_emoticons/<#EMO_DIR#>/smile-fix.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile-fix.gif" />.
  • SLizerSLizer Join Date: 2003-11-07 Member: 22363Members, Constellation
    im trying to get them working too!
  • TheGuyTheGuy Join Date: 2003-08-09 Member: 19295Members, Constellation
    Here's an example of changing your parasite crosshair (the one from cl_customcrosshair 0) into a crosshair that is 64x64 and named "xbparasite.spr" Notice all I changed was the file name and the x length y length.

    <!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->
    25
    weapon            320 320w    80    80    80    20
    weapon_s        320 320w-s    80    80    80    20
    weapon            640 640aw3    0    0    170    45
    weapon_s        640 640aw3-s    0    0    170    45
    crosshair_0           320 xbparasite    0    0    64    64
    crosshair_1        320 xhairaw1     0    0    40    40
    crosshair_2        320 xhairaw2     0    0    40    40
    crosshair_3        320 xhairmw3     0    0    40    40
    crosshair_4        320 xhairmw4     0    0    40    40
    crosshair_1        640 xhairaw1     0    0    40    40
    crosshair_2        640 xhairaw2     0    0    40    40
    crosshair_3        640 xhairmw3     0    0    40    40
    crosshair_4        640 xhairmw4     0    0    40    40
    crosshair_1        800 xhairaw1     40    0    50    50
    crosshair_2        800 xhairaw2     40    0    50    50
    crosshair_3        800 xhairmw3     40    0    50    50
    crosshair_4        800 xhairmw4     40    0    50    50
    crosshair_1        1024 xhairaw1     90    0    64    64
    crosshair_2        1024 xhairaw2     90    0    64    64
    crosshair_3        1024 xhairmw3     90    0    64    64
    crosshair_4        1024 xhairmw4     90    0    64    64
    crosshair_1        1280 xhairaw1     154    0    80    80
    crosshair_2        1280 xhairaw2     154    0    80    80
    crosshair_3        1280 xhairmw3     154    0    80    80
    crosshair_4        1280 xhairmw4     154    0    80    80<!--c2--></div><!--ec2-->
  • ReVerthexReVerthex Join Date: 2005-01-10 Member: 34719Members
    edited November 2006
    Nice, I am trying to get Shaz's alien crosshairs to work in the cl_customcrosshair 0 group. But I don't know which resolution to place the xhair under and the respective x+y lengths.

    EDIT
    Well after some fiddling I think I got it right, here's what my skulkbite is like:
    <!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->26
    weapon            320 320w    0    60    80    20
    weapon_s        320 320w-s    0    60    80    20
    ammo            320 640hud7    96    96    24    24
    weapon            640 640aw1    0    45    170    45
    weapon_s        640 640aw1-s    0    45    170    45
    ammo            640 640hud7    96    96    24    24
    crosshair_0        320 Shazbite    0    0    128    128
    crosshair_1        320 xhairaw3     0    0    40    40
    crosshair_2        320 xhairaw4     0    0    40    40
    crosshair_3        320 xhairmw3     0    0    40    40
    crosshair_4        320 xhairmw4     0    0    40    40
    crosshair_1        640 xhairaw3     0    0    40    40
    crosshair_2        640 xhairaw4     0    0    40    40
    crosshair_3        640 xhairmw3     0    0    40    40
    crosshair_4        640 xhairmw4     0    0    40    40
    crosshair_1        800 xhairaw3     40    0    50    50
    crosshair_2        800 xhairaw4     40    0    50    50
    crosshair_3        800 xhairmw3     40    0    50    50
    crosshair_4        800 xhairmw4     40    0    50    50
    crosshair_1        1024 xhairaw3     90    0    64    64
    crosshair_2        1024 xhairaw4     90    0    64    64
    crosshair_3        1024 xhairmw3     90    0    64    64
    crosshair_4        1024 xhairmw4     90    0    64    64
    crosshair_1        1280 xhairaw3     154    0    80    80
    crosshair_2        1280 xhairaw4     154    0    80    80
    crosshair_3        1280 xhairmw3     154    0    80    80
    crosshair_4        1280 xhairmw4     154    0    80    80<!--c2--></div><!--ec2-->
  • TheGuyTheGuy Join Date: 2003-08-09 Member: 19295Members, Constellation
    edited November 2006
    You'd use crosshair_0 320 for all of the crosshairs from 3.1(cl_customcrosshair 0) No matter what resolution.

    This will make it use that crosshair as crosshair 0 for any resolution since the 3.1 crosshairs did not use specific entries for different resolutions.
  • scratchiescratchie Join Date: 2006-11-01 Member: 58167Members
    www.yoclan.com -> <a href="http://home.wanadoo.nl/pduin/shazsmall.zip" target="_blank">shazbot small</a> by BEER
    i'm also trying to get custom ones in but i kep failing ':<
  • N_3N_3 &#092;o/ Join Date: 2004-03-12 Member: 27291Members, Constellation
    uhm, i did a rewrite of shaz's xhair texts to overwrite crosshiar_4 if anyone is really desperate
  • TheGuyTheGuy Join Date: 2003-08-09 Member: 19295Members, Constellation
    You might want to post that conversion to it's own topic so that people who need it can actually find it.
  • UnderwhelmedUnderwhelmed DemoDetective #?&#33; Join Date: 2006-09-19 Member: 58026Members, Constellation
    <!--quoteo(post=1581683:date=Nov 28 2006, 10:17 AM:name=N_3)--><div class='quotetop'>QUOTE(N_3 @ Nov 28 2006, 10:17 AM) [snapback]1581683[/snapback]</div><div class='quotemain'><!--quotec-->
    uhm, i did a rewrite of shaz's xhair texts to overwrite crosshiar_4 if anyone is really desperate
    <!--QuoteEnd--></div><!--QuoteEEnd-->
    So... Any chance you could upload this for the rest of us who don't want to go through relabelling each .txt file manually? >_>
  • TheGuyTheGuy Join Date: 2003-08-09 Member: 19295Members, Constellation
    edited February 2007
    scratchie posted one(by Beer) for set 0 . Unless numbering really matters to you.
  • TheGuyTheGuy Join Date: 2003-08-09 Member: 19295Members, Constellation
    Gonna bump so people can find this easier.
  • werkwerk Join Date: 2004-08-28 Member: 30971Members
    3.2 conversion packs download here:

    Fana Marine Crosshairs in 5 colors: <a href="http://www.aserogaming.net/filehost/775975" target="_blank">http://www.aserogaming.net/filehost/775975</a>

    Marine Spread Crosshairs in 2 colors: <a href="http://www.aserogaming.net/filehost/696303" target="_blank">http://www.aserogaming.net/filehost/696303</a>

    Shaz Alien Conversion Pack: <a href="http://www.aserogaming.net/filehost/65429" target="_blank">http://www.aserogaming.net/filehost/65429</a>

    text files changed for all resolutions

    cl_customcrosshair 4
  • the_x5the_x5 the Xzianthian Join Date: 2004-03-02 Member: 27041Members, Constellation
    Thank you for figuring this one out.



    I'm also noticing that in order to have widescreen or larger screen than 1280x1024 supported that you'd have to manually add in new lines and make your own sprites, yes?
  • TheGuyTheGuy Join Date: 2003-08-09 Member: 19295Members, Constellation
    I'm not sure how it works exactly. But I'd assume since the old crosshair bug (from beta)it's pretty much hardcoded up to 1280. 1280 would be 1280 and above.. So if you were making a crosshair for widescreen you'd use the 1280 line.
  • CowmonautCowmonaut Join Date: 2007-04-18 Member: 60670Members
    edited April 2007
    How do you find the length / width of old crosshairs? I wanted to use the 'consistant' crosshairs off of NSArmslab for my marine crosshairs. Would I throw up wally and look or is it in the old text files? I hadn't customised my own crosshairs (aside from overwriting the files) before.

    Edit: also the colors are a little messed up for the crosshairs. I used to use the Shaz alien xhairs and when I downloaded the converted ones they're a little messed up. Could be because im on Win XP64, but I find that it usually isn't a problem like most people assume it would be.

    Aside from having to turn of Gamma Ramp, the only 'issue' i have with NS is that some sprites don't have the black part transparent. Half Life, Counter Strike 1.6, TFC, Firearms all work fine so that's a strictly NS issue.
  • TheGuyTheGuy Join Date: 2003-08-09 Member: 19295Members, Constellation
    The old text file would be fastest if you don't have a sprite viewer. Most sprites are 64x64 though so you can try just putting that. You can use sprite viewer or sprite explorer to see the dimensions however
Sign In or Register to comment.