Register  |  FAQ  |  Search  |  Memberlist  |  Usergroups  |  Log in 
Reply to topic
 the crosshair 
pheeph
Ejected Pilot
Ejected Pilot

Joined: 08 Apr 2009
Posts: 45
Reply with quote
Is there any way for the game to show the original crosshair? It's showing a rather simple-looking reticle as opposed to the original WC reticle.
View user's profile Send private message
  
klauss
Enemy of the State
Enemy of the State

Joined: 25 Aug 2007
Posts: 256
Location: LS87, Buenos Aires, Argentina
Reply with quote
There is a way, albeit not "simple".
You could edit the .cockpit files within data/cockpit, and add a crosshair sprite.

_________________
Oid mortales, el grito sagrado.
Call me "Menes, lord of Cats"
View user's profile Send private message MSN Messenger ICQ Number
  
pheeph
Ejected Pilot
Ejected Pilot

Joined: 08 Apr 2009
Posts: 45
Reply with quote
um, where exactly is this directory? I don't see it anywhere in the PU directory...
View user's profile Send private message
  
klauss
Enemy of the State
Enemy of the State

Joined: 25 Aug 2007
Posts: 256
Location: LS87, Buenos Aires, Argentina
Reply with quote
It should be inside a hidden folder, named "." (dot) + game name, where game name could be either "vegastrike" (the name of the engine), "privateer" (the name of the mod), or something like that.

(I'm not sure whether PU changed it from the mod it based itself on, which was "privateer")

So look for any such folder.

If you're in linux, the folder's in your home folder.

If you're in windows, the folder's in PU's data folder.

_________________
Oid mortales, el grito sagrado.
Call me "Menes, lord of Cats"
View user's profile Send private message MSN Messenger ICQ Number
  
pheeph
Ejected Pilot
Ejected Pilot

Joined: 08 Apr 2009
Posts: 45
Reply with quote
I went through the .pu folder, but still haven't found any hidden folders of the given names.
View user's profile Send private message
  
klauss
Enemy of the State
Enemy of the State

Joined: 25 Aug 2007
Posts: 256
Location: LS87, Buenos Aires, Argentina
Reply with quote
Ouch... sorry man, I thought I was replying to another thread Embarassed (they were asking where screenshot files are saved)

It's directly in <pu folder>/cockpits/<something>-cockpit.cpt

_________________
Oid mortales, el grito sagrado.
Call me "Menes, lord of Cats"
View user's profile Send private message MSN Messenger ICQ Number
  
pheeph
Ejected Pilot
Ejected Pilot

Joined: 08 Apr 2009
Posts: 45
Reply with quote
alright, I found the the cockpit.cpt file

I found the line that has the crosshair thing.

<Crosshairs file="crosshairs.spr" xcent=".0001" ycent=".276" height=".55"/>

Do I need to edit any of this?
View user's profile Send private message
  
klauss
Enemy of the State
Enemy of the State

Joined: 25 Aug 2007
Posts: 256
Location: LS87, Buenos Aires, Argentina
Reply with quote
Yep... that's the "ugly" crosshair.
You have to replace that by a sprite-based crosshair (just like other crosshairs in cpt files).
So you have to build a crosshair .png and .sprite file.

_________________
Oid mortales, el grito sagrado.
Call me "Menes, lord of Cats"
View user's profile Send private message MSN Messenger ICQ Number
  
pheeph
Ejected Pilot
Ejected Pilot

Joined: 08 Apr 2009
Posts: 45
Reply with quote
looks like they have the sprite-based WC crosshair png file in there. What do I need to do about this .sprite file you speak of?
View user's profile Send private message
  
klauss
Enemy of the State
Enemy of the State

Joined: 25 Aug 2007
Posts: 256
Location: LS87, Buenos Aires, Argentina
Reply with quote
After comparing against other mods, that looks like a sprite-based crosshair already. Perhaps all you need to do is change the png and its size in the .spr file.

_________________
Oid mortales, el grito sagrado.
Call me "Menes, lord of Cats"
View user's profile Send private message MSN Messenger ICQ Number
  
pheeph
Ejected Pilot
Ejected Pilot

Joined: 08 Apr 2009
Posts: 45
Reply with quote
the .spr file had these lines:

crosshairs.png crosshairs.png
.125 .16666667
0. 0
View user's profile Send private message
  
klauss
Enemy of the State
Enemy of the State

Joined: 25 Aug 2007
Posts: 256
Location: LS87, Buenos Aires, Argentina
Reply with quote
Yep, the second line specifies the width and height of the sprite.

Play with it - as well as with the .png reference in the first line, and see the effect it has.

Keep playing with it until it's of your liking.

EDIT: I believe an easier way would be to add/modify width/height attributes in the cpt file, from reading the source.

_________________
Oid mortales, el grito sagrado.
Call me "Menes, lord of Cats"
View user's profile Send private message MSN Messenger ICQ Number
  
pheeph
Ejected Pilot
Ejected Pilot

Joined: 08 Apr 2009
Posts: 45
Reply with quote
question I like to ask is why crosshairs.png appears twice in the crosshairs.spr file.
View user's profile Send private message
  
klauss
Enemy of the State
Enemy of the State

Joined: 25 Aug 2007
Posts: 256
Location: LS87, Buenos Aires, Argentina
Reply with quote
Once is for the color channels and another is for the alpha channel.

It's supposed to be like that since bmp, jpeg and other formats don't support alpha channels.

A bit twisted if you ask me.

_________________
Oid mortales, el grito sagrado.
Call me "Menes, lord of Cats"
View user's profile Send private message MSN Messenger ICQ Number
  
pheeph
Ejected Pilot
Ejected Pilot

Joined: 08 Apr 2009
Posts: 45
Reply with quote
The .spr file seems to point to the crosshair png file, yet it still shows the simple crosshair sprite. Is the crosshair sprite affected by the resolution? This is on 1680x1050.
View user's profile Send private message
  
klauss
Enemy of the State
Enemy of the State

Joined: 25 Aug 2007
Posts: 256
Location: LS87, Buenos Aires, Argentina
Reply with quote
I'll have to research the matter. IIRC, if you specify a file="<something>.spr" you get the sprite. If not, you get a simple line-based crosshairs.

But I may be wrong... I'll have to play with it.

_________________
Oid mortales, el grito sagrado.
Call me "Menes, lord of Cats"
View user's profile Send private message MSN Messenger ICQ Number
  
pheeph
Ejected Pilot
Ejected Pilot

Joined: 08 Apr 2009
Posts: 45
Reply with quote
ok here's what I did.

I made a copy of the crosshair sprite and renamed it to crosshair_2.png

I edited the crosshairs.spr file to use crosshair_2.png instead. Now it works...
View user's profile Send private message
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT  
Page 1 of 1  

  
  
 Reply to topic