Note: LucasForums Archive Project
The content here was reconstructed by scraping the Wayback Machine in an effort to restore some of what was lost when LF went down. The LucasForums Archive Project claims no ownership over the content or assets that were archived on archive.org.

This project is meant for research purposes only.

Crosshairs????

Page: 1 of 1
 mrdrVamp
04-09-2002, 7:46 PM
#1
Any one know how to change the size, color, shape of the crosshairs?
 sinistervw
04-09-2002, 7:53 PM
#2
im trying to find the same thing....if you find out let me know!
 billcow
04-10-2002, 12:10 AM
#3
In the \gfx\2d directory in the pk3 (you can open it with winzip) there are some files named crosshaira.tga, crosshairb.tga, etc. These files control the crosshair image. I'm not sure which one is actually used, so you will have to experiment. Also, the shape is defined by the image's alpha channel, not the color. If you open them up, they will be solid white. You will need a program that can edit the alpha channel in order to be able to change the crosshair. Changing the color wouldn't have the expected effect, because the engine blends the color of the image with another color to get the color you see.

I made a mod that replaced the crosshair with the one from some of the older screenshots (it was a small circle with 8 "spikes" coming out of it), but I was too lazy to find the crosshair that was actually used, so I just replaced all of them.

I'll upload the mod to the jk2.net file section tomorrow sometime around 3 pm EST tomorrow (If I don't forget :) ). The mod also adds glow on the floor from all the projectile weapons and colors the purple lightsaber images in the GUI to be the same color as in the game (just a few misc. differences that I think are kinda neat).
 mrdrVamp
04-10-2002, 4:57 PM
#4
Thanks man!!!! That is driving me nuts cause I can hardly see it the way it is set up now. What part of NY you from?
 billcow
04-10-2002, 5:43 PM
#5
Glad to help.

I'm from Dryden, which is (in case you don't know, most people don't) about halfway between Syracuse and Binghamton.
 UniKorn
04-10-2002, 6:09 PM
#6
cg_crosshairsize 50 :D
 Zealot888
04-10-2002, 7:02 PM
#7
I edited the cropcircle.tga to change the appearance of the disrupter rifle scope. I'm trying to give the sniper rifle an actual crosshair, go figure. I added a little cross in the center of the circle, and used winace to put the file in the correct dir. in one of the pk3 files. But it doesn't show up in the game. Anybody know what's going on? I would really like to have a crosshair on the sniper rifle.
 mrdrVamp
04-10-2002, 8:13 PM
#8
I set it to 50 looks great. ;) Thats not to far out I am in Canastota which is famous for boxing and onions go figure.......
 billcow
04-11-2002, 12:06 AM
#9
Zealot:
try putting it in it's own pk3 instead of putting it back in the assets0.pk3: if you put it in the main pk3, you will not be able to join online games with "pure server" set.
 Zealot888
04-11-2002, 2:45 AM
#10
billcow, that's what I did. I put it in its own pk3 file and the new crosshair it didn't show up.
 billcow
04-11-2002, 6:38 PM
#11
I just took a quick look at the shader file (shaders\effects.shader) and it says that the image uses a mask. Did you update the alpha channel too?
 Zealot888
04-11-2002, 8:14 PM
#12
Nope I didn't do that. How do I do that? Is it's easy enough to explain, if not is there a link to a tutorial?
 billcow
04-11-2002, 10:59 PM
#13
How you do it depends heavily on what program you are using.

With Photoshop, all you need to do is go to the window menu, click Show Channels, then click the item labeled Alpha 1 in the window in the lower right of the screen. The document will now allow you to edit the alpha channel instead of the colors.

With Paint Shop Pro, you would need to load the mask into a selection, add the non-transparent areas to the selection, and then save the selection to an alpha channel, but the proccess is a bit too complicated to explain; try searching for PSP tutorials if you need more help.

With any other program, the procces would be best explained by the program's help.

If you don't want to go through this, you can (for this particular project, at least) simply change the blend-mode used for the texture. To do this, open \shaders\effects.shader from assets0.pk3, find the section referring to \gfx\2d\cropcircle2.tga (cropcircle.tga is the zoom indicator, cropcircle2.tga is the scope itself) and change the line that says "blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA" (it is line 766) to "blendFunc GL_ONE GL_ONE". This will cancel the usage of the alpha channel, but it will make the darker areas more transparent, so the crosshair couldn't be anything too dark, or it wouldn't show up.
Page: 1 of 1