Full concept MODIFICATION of S.T.A.L.K.E.R. Call of Pripyat that touches every game aspect including textures, sfx, music, weapons, A.I., items, weather, mutants, difficulty and much much more!

Forum Thread
  Posts  
Scope glare. (Games : S.T.A.L.K.E.R.: Call of Pripyat : Mods : MISERY : Forum : Mod optimization : Scope glare.) Locked
Thread Options
Nyayr
Nyayr Reconnaissance Beta
Feb 15 2014 Anchor

I noticed many regular scope have a circular light glare on the broad outside edges over them even at night, that makes it hard to see, even if you upgrade them with the high contrast (fixed scopes). Can someone elaborate why this is and if there is a way to reduce it?

Edited by: Nyayr

Feb 15 2014 Anchor

it's just a picture file so it is static.

Nyayr
Nyayr Reconnaissance Beta
Feb 15 2014 Anchor

It is static when looking through the scope?

--

Avoid using autosaves, use hard saves only.

Logs are located in "C:\Users\Public\Documents\S.T.A.L.K.E.R. - Call of Pripyat\logs\xray_....log"

Feb 16 2014 Anchor

Really wondering myself if there is a way to fix the scope upgrade on the FN FAL PARA yet. I didn't realize the lens buff/upgrade was going to make it completely useless in the daytime. It has taken forever and a day just to get one and now that I screwed up I don't want to just throw it away.

Feb 16 2014 Anchor

DontTread wrote: Really wondering myself if there is a way to fix the scope upgrade on the FN FAL PARA yet. I didn't realize the lens buff/upgrade was going to make it completely useless in the daytime. It has taken forever and a day just to get one and now that I screwed up I don't want to just throw it away.


Same here xD "Oh High Contrast! I like this yellow flashing my scope al little bit. Nooo Nightvision xD I never hunt in the night xD. And now i am really angry that i sold 3 FN Fal Para´s and now got no one xD. When i want a nightvision i press "N" xD.
Only for prepare,are there more wrong upgrades which can ruin around 100k Rubels ??? ^^

--

Stalker, go Zone! But don´t forget go home!

Feb 16 2014 Anchor

AzureTheAware wrote: Only for prepare,are there more wrong upgrades which can ruin around 100k Rubels ??? ^^


Good question!

Nyayr
Nyayr Reconnaissance Beta
Feb 16 2014 Anchor

The l-85 has the same problem. I think all rifles with fixed scopes that have high contrast but lack night vision has this issue. The high contrast is swapped for the night scope.

--

Avoid using autosaves, use hard saves only.

Logs are located in "C:\Users\Public\Documents\S.T.A.L.K.E.R. - Call of Pripyat\logs\xray_....log"

Feb 16 2014 Anchor

dang.... wish I knew how to fix this issue...

kcs123
kcs123 Just Kcs123
Feb 17 2014 Anchor

Open folder "configs\weapons\upgrades"
find upgrade file for desired weapon, for example "w_svd_up.ltx"

Now comes tricky part, becouse each weapon have different upgrade section name, but in this example:
Search for:

Someone wrote:
[up_sect_fourta_svd]
scope_zoom_factor = -12 ; this gives you better zoom factor (lower value means bigger zoom)
scope_dynamic_zoom = on ; add this line below to have dynamic zoom on first upgrade



You will not need other scope upgrades, but if you have already upgraded to nightvision scope then you can remove nightvision like this:
change line:

Someone wrote:
scope_nightvision = scope_nightvision


To this:

Someone wrote:
scope_nightvision =


So, you will no longer have nightvision, but you will have dynamic zoom on First upgrade.

Edited by: kcs123

--

Feb 18 2014 Anchor

fnfal_up
fnfallelcan_camo_up
fnfallelcan_custom_up
fnfallelcan_modern_up
fnfallelcan_up

which is the para? I've looked through them but nothing really leaped out at me that identified the para....

kcs123
kcs123 Just Kcs123
Feb 19 2014 Anchor

Figuring out how to find correct upgrade name is totaly different beast :). But it can be done in few other steps.

First thing is to write down some known text from item description when you hover mouse over item in game.
Then exit game and open file "..\gamedata\configs\text\eng\st_items_weapons.xml" with notepad or notepad++.
Then serch key words that you have writen in first step. In your case I have searched for "para", you will have to hit next button several times until you find something like this:

<string id="st_wpn_fnfall">
		<text>FN FAL Para</text>
	</string>
	<string id="st_wpn_fnfall_descr">
		<text>\n \n%c[0,153,255,255] • %c[0,140,140,140] Class proficiency: %c[0,204,0,51]low\n \n%c[0,170,170,170]Assault rifle chambered with the heavy 7.62x51mm round and with custom Magpul stock. Expensive rifle designed for medium to long distance precision shooting, with a permanent scope and a special magazine.\n \n%c[0,140,140,140]ATTACHMENTS:\n \n%c[0,93,0,116] • %c[0,140,140,140] BSA TW4X30 scope (permanent)\n%c[0,93,0,116] • %c[0,140,140,140] 7.62x51 compatible silencer\n%c[0,93,0,116] • %c[0,140,140,140] M203 grenade launcher</text>
	</string>

from all this interesting part is:

Someone wrote:
id="st_wpn_fnfall"
id="st_wpn_fnfall_descr"


So, ingame item name for para is: "st_wpn_fnfall" , you need to Search for that keyword inside of weapon.ltx files.
In your case you need section:

Someone wrote:
[wpn_fnfal]:identity_immunities,weapon_probability,default_weapon_params .
.
.
upgrades = up_gr_firstab_fnfal, up_gr_seconab_fnfal, up_gr_thirdab_fnfal, up_gr_fourtab_fnfal, up_gr_fourtcd_fnfal, up_gr_fourtef_fnfal, up_gr_fifthab_fnfal, up_gr_fifthcd_fnfal
.
.
inv_name = st_wpn_fnfall
inv_name_short = st_wpn_fnfall


From text file with description you have found description ID in XML "st_wpn_fnfall ", now in file "w_fnfall.ltx" is section that have variable
inv_name = st_wpn_fnfall

Under same bracket section is available upgrades. In weapon upgrades folder serch file that have those upgrade names inside brackets.
In your example:
[up_gr_fifthab_fnfal]
elements = up_fiftha_fnfal
[up_gr_fifthcd_fnfal]
elements = up_fifthc_fnfal

Wtf*** there is no scope mentioned here !!!
Take it easy, one more step, in the same file is
[up_fiftha_fnfal]

Ok, you found that section, but still there is nothing for scopes. Sorry, I was wrong for actual section names, but you have found right filename:
"w_fnfal_up.ltx"

And when you search inside that file you will found section that mention contrast, it is:
[up_fourtc_fnfal]

So, you can add anything you want in proper section, but before you edit anything, backup your files first.
Note that not all weapons have the same upgrade, so things are different from weapon to weapon, but now you know what you need to search for.

--

Feb 19 2014 Anchor

That was an absolutely amazing tutorial. Thank you so very much.

Now I will backup and commence to totally borking my game but that fault will be all mine!

Since I have only played as Recon, I don't know which weapons would have an upgrade to the scope like I am looking for.

The only thing I can think of is the Binoculars, however :


Someone wrote: [up_fourtc_fnfal]scheme_index = 1, 4known = 1effects = section = up_sect_fourtc_l85property = prop_contrast precondition_functor = inventory_upgrades.precondition_functor_aprecondition_parameter = a & beffect_functor = inventory_upgrades.effect_functor_aeffect_parameter = something_hereprereq_functor = inventory_upgrades.prereq_functor_aprereq_tooltip_functor = inventory_upgrades.prereq_tooltip_functor_aprereq_params = name = st_up_opt_b1_namedescription = st_up_opt_b1_descricon = ui_inGame2_upgrade_IL86_14

This is the area that is relating to the contrast property for the FAL

Someone wrote: [up_firsta_binoc]scheme_index = 0, 0known = 1effects = section = up_sect_firsta_binocproperty = prop_contrastknown = 1precondition_functor = inventory_upgrades.precondition_functor_aprecondition_parameter = a & beffect_functor = inventory_upgrades.effect_functor_aeffect_parameter = something_hereprereq_functor = inventory_upgrades.prereq_functor_aprereq_tooltip_functor = inventory_upgrades.prereq_tooltip_functor_aprereq_params = name = st_up_opt_binoc1_namedescription = st_up_opt_binoc1_descricon = ui_inGame2_upgrade_FT200M_17


This is the area for the Binocular, same upgrade.

The only difference that I see is the icon which I am assuming is the picture they use on the ingame tech-tree to illustrate the upgrade.

Is there another weapon that I might could check to find a better upgrade? I'm a little scared to just randomly change values.

Maybe I am using the wrong editing program? I'm using Notepad++ and in the upgrade_properties file there is a line:

prop_contrast ;; Ïîâûøåíèå êîíòðàñòíîñòè ïðèöåëà

that I am sure has something to do with this but I can't read it....

Edited by: DontTread

kcs123
kcs123 Just Kcs123
Feb 19 2014 Anchor

To see what is written in comments, change encoding in notepad++ Encoding->Character sets->Cyrillic->Windows-1251
Now you can use Google translate from russian to English for better insight.

I have altered m14, svd, and some other weapons for personal use, it is easier to tweak something if you know what you looking for.
All weapons have some upgrades, but changing too much can outbalance the game. Only thing needed for me is dynamic zoom without nigt ot high contrast scopes on rifles with permanent scopes.

--

Feb 19 2014 Anchor

I hate to ask this but I just don't know what needs to be altered. I only want to have the actual high contrast which is what is offered. The issue is that the high contrast is actually showing up as night vision and it is ruined for daylight use.

kcs123
kcs123 Just Kcs123
Feb 20 2014 Anchor

Try to insert line in the upgrade section like this:

Someone wrote:
scope_nightvision =


it should work on scope upgrades, on svd I Know for sure that works, however on rifles that have high contrast scope by default, without upgrades it may or may not work.

--

Feb 20 2014 Anchor

Does it matter which part of the upgrade section?

I inserted scope_nightvision = in the [up_fourtc_fnfal] section to no effect?

I assumed that is where it would need to be as that is the part affected ...

Am I correct in assuming the section [prop_contrast] in the upgrades_properties.ltx is the section that will control the function of the scope contrast? If so, then there is a discrepancy between the files:

From upgrades_properties.ltx:
[prop_contrast] name = st_prop_contrast
icon = ui_wp_prop_contrast
functor = inventory_upgrades.property_functor_b
params = fire_wound_immunity, cost

From w_fnfal_up.ltx:

prereq_functor = inventory_upgrades.prereq_functor_a
prereq_tooltip_functor = inventory_upgrades.prereq_tooltip_functor_a

The sections highlighted in red are obviously different. Would this affect the function of the upgrade?

EDIT: inserting the line in the upgrades_properties.ltx file made no change.

Found the spot. It is now fixed. And again, thank you very very much for the lesson.

Edited by: DontTread

Mar 31 2014 Anchor

There is a texture pack that replaces the reticles.

Moddb.com

Nyayr
Nyayr Reconnaissance Beta
Mar 31 2014 Anchor

Thanks, I really dislike that glare on the scopes, so this mod might be the answer. =)

--

Avoid using autosaves, use hard saves only.

Logs are located in "C:\Users\Public\Documents\S.T.A.L.K.E.R. - Call of Pripyat\logs\xray_....log"

Jan 14 2015 Anchor

kcs123 wrote: Open folder "configs\weapons\upgrades"
find upgrade file for desired weapon, for example "w_svd_up.ltx"

Now comes tricky part, becouse each weapon have different upgrade section name, but in this example:
Search for:

Someone wrote:
[up_sect_fourta_svd]
scope_zoom_factor = -12 ; this gives you better zoom factor (lower value means bigger zoom)
scope_dynamic_zoom = on ; add this line below to have dynamic zoom on first upgrade



You will not need other scope upgrades, but if you have already upgraded to nightvision scope then you can remove nightvision like this:
change line:

Someone wrote:
scope_nightvision = scope_nightvision


To this:

Someone wrote:
scope_nightvision =


So, you will no longer have nightvision, but you will have dynamic zoom on First upgrade.


scope_nightvision = scope_contrast - removing phrase scope_contrast did the trick, can shoot the SVU with nightvision in helmet properly, will be useful in the tunnel to Pripyat I guess.

THANKS A LOT for this thread and solution. Highly appreciated.

Reply to thread
click to sign in and post

Only registered members can share their thoughts. So come on! Join the community today (totally free - or sign in with your social account on the right) and join in the conversation.