Crosshairs for 3.2

TheGuyTheGuy Join Date: 2003-08-09 Member: 19295Members, Constellation Posts: 380 Fully active user
edited November 2006 in NS Customization
Crosshair format is changed a bit
IPB Image

(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.

DO NOT EDIT YOUR OLD 3.1 TEXT FILES. CHANGE THE LINES IN THE NEW 3.2 ONES.
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.
Post edited by Unknown User on
IPB Image
How to get custom Crosshairs working for 3.2
You cannot grasp the true form of Giygas` attack

Comments

  • aeroripperaeroripper Join Date: 2005-02-25 Member: 42471NS1 Playtester, Forum Moderators, Constellation Posts: 2,396 mod
  • SLizerSLizer Join Date: 2003-11-07 Member: 22363Members, Constellation Posts: 1,301
    im trying to get them working too!
    The place of refugee
    I really dont eat and stuff its just that sometimes I transform into a cuddly tiger.
  • TheGuyTheGuy Join Date: 2003-08-09 Member: 19295Members, Constellation Posts: 380 Fully active user
    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.

    CODE

    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
    IPB Image
    How to get custom Crosshairs working for 3.2
    You cannot grasp the true form of Giygas` attack
  • ReVerthexReVerthex Join Date: 2005-01-10 Member: 34719Members Posts: 54
    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:
    CODE
    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
    Post edited by Unknown User on
    IPB Image

    Let metal do the business of war not flesh.
  • TheGuyTheGuy Join Date: 2003-08-09 Member: 19295Members, Constellation Posts: 380 Fully active user
    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.
    IPB Image
    How to get custom Crosshairs working for 3.2
    You cannot grasp the true form of Giygas` attack
  • scratchiescratchie Join Date: 2006-11-01 Member: 58167Members Posts: 19
    www.yoclan.com -> shazbot small by BEER
    i'm also trying to get custom ones in but i kep failing ':<
    scratchy & itchy
  • N_3N_3 &#092;o/ Join Date: 2004-03-12 Member: 27291Members, Constellation Posts: 487
    uhm, i did a rewrite of shaz's xhair texts to overwrite crosshiar_4 if anyone is really desperate
    image iNi | N3 image NSGuides image NSP
    image
  • TheGuyTheGuy Join Date: 2003-08-09 Member: 19295Members, Constellation Posts: 380 Fully active user
    You might want to post that conversion to it's own topic so that people who need it can actually find it.
    IPB Image
    How to get custom Crosshairs working for 3.2
    You cannot grasp the true form of Giygas` attack
  • UnderwhelmedUnderwhelmed DemoDetective #?&#33; Join Date: 2006-09-19 Member: 58026Members, Constellation Posts: 756 Advanced user
    QUOTE(N_3 @ Nov 28 2006, 10:17 AM) »

    uhm, i did a rewrite of shaz's xhair texts to overwrite crosshiar_4 if anyone is really desperate

    So... Any chance you could upload this for the rest of us who don't want to go through relabelling each .txt file manually? >_>
    QUOTE (SmoodCroozn)
    Don't bother posting, because it seems to me, you don't even know how the game works.

    THIS SIGNATURE IS IN VIOLATION OF COMMUNITY RULES
    image
  • TheGuyTheGuy Join Date: 2003-08-09 Member: 19295Members, Constellation Posts: 380 Fully active user
    edited February 2007
    scratchie posted one(by Beer) for set 0 . Unless numbering really matters to you.
    IPB Image
    How to get custom Crosshairs working for 3.2
    You cannot grasp the true form of Giygas` attack
  • TheGuyTheGuy Join Date: 2003-08-09 Member: 19295Members, Constellation Posts: 380 Fully active user
    Gonna bump so people can find this easier.
    IPB Image
    How to get custom Crosshairs working for 3.2
    You cannot grasp the true form of Giygas` attack
  • werkwerk Join Date: 2004-08-28 Member: 30971Members Posts: 11
    3.2 conversion packs download here:

    Fana Marine Crosshairs in 5 colors: http://www.aserogaming.net/filehost/775975

    Marine Spread Crosshairs in 2 colors: http://www.aserogaming.net/filehost/696303

    Shaz Alien Conversion Pack: http://www.aserogaming.net/filehost/65429

    text files changed for all resolutions

    cl_customcrosshair 4
  • the_x5the_x5 the Xzianthian Join Date: 2004-03-02 Member: 27041Members, Constellation Posts: 3,175
    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?

    Coined the qualitative attribute entropy in reference to game maps.
    Do not eat the dark energy balls, please.
    imageimageimage
  • TheGuyTheGuy Join Date: 2003-08-09 Member: 19295Members, Constellation Posts: 380 Fully active user
    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.
    IPB Image
    How to get custom Crosshairs working for 3.2
    You cannot grasp the true form of Giygas` attack
  • CowmonautCowmonaut Join Date: 2007-04-18 Member: 60670Members Posts: 9
    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 Posts: 380 Fully active user
    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
    IPB Image
    How to get custom Crosshairs working for 3.2
    You cannot grasp the true form of Giygas` attack
Sign In or Register to comment.