|
Post by bontainer on Jul 11, 2015 16:14:20 GMT
Hi,
do you know which variables define the position of the sighting device, e.g. to change the relative size of the scope, by putting it closer to the eye.
Line 40: <field name="fNearFovDegrees" type="Float32">70</field>
Line 41: <field name="fNearFovDegreesSplitscreen" type="Float32">0</field>
Line 1581: <field name="fNearFovDegrees" type="Float32">65</field>
Line 1582: <field name="fFovDegrees" type="Float32">85</field>
Line 1595: <field name="fIronsightFOVDegrees" type="Float32">65</field>
Line 1596: <field name="fIronsightNearFOVDegrees" type="Float32">50</field>
|
|
|
Post by JRavens on Jul 11, 2015 16:34:59 GMT
Actually none of these (whhhaaattt!?!) Yep. It seems anything that appears simple in FC4 is hard. Sigh. So FOV obviously "zooms in" the screen. More complex then that, but you get the idea. The actual POSITION of the guns optics is handled individually by each optic. These valus are kind of wonky which is is how the AK-47 scopes got messed up. Here are lines 1264-1318 of the AK-47 archetype (171144368018084255.ark) which is the ACOG scope: <object hash="7EA7F8EA"> <field hash="0D55F1A5" type="BinHex">4174746163686D656E74735F3163663961633434363265303030393200</field> // Attachments_1cf9ac4462e00092 <field hash="ECA6CD29" type="BinHex">93C9D5B402070000</field> <field hash="B0473CCE" type="BinHex">00</field> <field hash="F2E588CD" type="BinHex">61636F6700</field> <field hash="3F31EED6" type="BinHex">90B9FCD9</field> <field hash="F1B1D97B" type="BinHex">616B34375F61636F6700</field> // ak47_acog <field hash="A7056326" type="BinHex">66B53827</field> <field hash="6B524241" type="BinHex">D0430100</field> <field hash="0734343A" type="BinHex">00</field> <field hash="DB04E4D6" type="BinHex">01</field> <field hash="C1F3B553" type="BinHex">01</field> <field hash="21E2BE8A" type="BinHex">184E35ACE5062000</field> <field hash="3547B000" type="BinHex">00</field> <field hash="A5C50256" type="BinHex">00</field> <field hash="C9EE359F" type="BinHex">00000000</field> <field hash="A93A59C8" type="BinHex">00</field> <field hash="E3F66A72" type="BinHex">0000803F</field> <object hash="F924D31F"> <field hash="1DFFC2DB" type="BinHex">00000000</field> <field hash="91249581" type="BinHex">00000000</field> <field hash="F3B357F1" type="BinHex">00000000</field> <field hash="726D7E3F" type="BinHex">00000000</field> <field hash="056A4EA9" type="Float32">0.08</field> // OFFSET 1 <field hash="9C631F13" type="Float32">-0.026</field> // OFFSET 2 </object> <object hash="F12306F1"> <object hash="894C15D4"> <field hash="876895B3" type="BinHex">3078464646464646464600</field> <field hash="BE3FDC7D" type="BinHex">3078464646464646464600</field> <field hash="7412DAC6" type="BinHex">3078464646464646464600</field> </object> <object hash="2E73192B"> <field hash="876895B3" type="BinHex">3078464646464646464600</field> <field hash="BE3FDC7D" type="BinHex">3078464646464646464600</field> <field hash="7412DAC6" type="BinHex">3078464646464646464600</field> </object> <object hash="4CE54A24"> <field hash="876895B3" type="BinHex">3078464646464646464600</field> <field hash="BE3FDC7D" type="BinHex">3078464646464646464600</field> <field hash="7412DAC6" type="BinHex">3078464646464646464600</field> </object> <object hash="E8AE1C5F"> <field hash="876895B3" type="BinHex">3078464646464646464600</field> <field hash="BE3FDC7D" type="BinHex">3078464646464646464600</field> <field hash="7412DAC6" type="BinHex">3078464646464646464600</field> </object> </object> <object hash="CB67699C"> <object hash="CA7A83A2"> <field hash="4AD7E854" type="BinHex">000000808FC275BEEC51383E</field> <field hash="A03ED4C1" type="BinHex">99998D4100000000FFFFE242</field> </object> </object> </object> You will see two lines marked as OFFSET 1 and OFFSET 2 which control how close and how high (I think) the scope offsets. I spent a fair amount of time fiddling with these and still don't quite understand how they work. I think DZiggy has a better understanding of how the scope offsets work. All I know is I had to adjust both in unison to get the right position (so maybe they are X/Y/Z coordinates relative to the scopes attachment bone or something... not sure) EACH weapon has FOUR sets of these. Well actually... I don't know about weapons that do not have all the possible scopes - it might be that they are missing some of them. I suppose snipers only have 2 or 3 as well. I guess the correct thing to say is each weapon has a set of values for a scope which can be attached to it including iron sights which are the default scopes. If we want to add new scopes like a sniper to a shotgun then we would have to add the correct entries into the shotguns archetype file which may or may not work which is another reason I hadn't added any completely new attachments. Again DZiggy has new attachments down to a science. He's added heaps of them to his FC3 mod. (Yes I am jelly ) In addition to the lines you posted and what I posted above EACH scope has a gadget archetype file (although thankfully there is only one Pistol ACOG, one RIFLE ACOG etc and not an AK ACOG and an F1 ACOG, etc). Inside those gadget archetype files are further FOV values which can increase or decrease the zoom. I don't think they affect scope POSITION however. I wish I could offer more help, but I almost went batty trying to fix the damn ACOG and Optical on the AK-47 and PKM! LOL
|
|
|
Post by bontainer on Jul 11, 2015 17:12:04 GMT
As I feared, the usual FC4 modding nightmare.... but thanks...
|
|
|
Post by bontainer on Jul 11, 2015 18:14:47 GMT
I fiddled a bit with the 2 values on the MS16 but whatever I inserted (went to +100 and -100), there were no visible changes.
|
|
|
Post by JRavens on Jul 11, 2015 20:09:10 GMT
Hmmm not sure. Some thoughts:
1) use much much smaller values. See how mine are .08 and -0.026. Use very small values (less than 1) at first just to see if there is a difference.
2) Double check you have the right SCOPE entry. There's one for ACOG, one for Optical, one for iron sights, etc.
3) Double check you have the right ARCHETYPE file. You don't want the .npc one etc. MS16 should be the 7662974066226.ark. I think the lines you want are 1287 and 1288 (at least for the ACOG). Should look like this by default:
<field hash="056A4EA9" type="BinHex">CDCCCC3D</field> <field hash="9C631F13" type="BinHex">CDCCCCBC</field>
Of course I haven't checked it myself. Busy busy today, but if you still have issues I'll try to look at it later this evening. I know it DID work at one point...
4) When testing be sure to test BOTh ACOG and OPTICAL in case somewhere they got switched. I notice in some files Ubi calls them the reverse.
|
|
|
Post by bontainer on Jul 11, 2015 21:14:48 GMT
OK, thanks a lot, getting late over here. I`ll try it tomorrow.
|
|
|
Post by bontainer on Jul 12, 2015 10:23:12 GMT
Okay, thats solved.
Line 1177: <field hash="056A4EA9" type="BinHex">EC5138BD</field>// DOT Line 1178: <field hash="9C631F13" type="BinHex">CDCCCCBC</field>// Line 1232: <field hash="056A4EA9" type="Float32">0.08</field> // AE47613E OFFSET 1 BLUE Line 1233: <field hash="9C631F13" type="Float32">-0.026</field> // CDCCCCBC OFFSET 2 .026 Line 1287: <field hash="056A4EA9" type="Float32">-0.1</field>// ACOG AE47613E Line 1288: <field hash="9C631F13" type="Float32">-0.026</field>// CDCCCCBC Line 1452: <field hash="056A4EA9" type="Float32">0.08</field>// OPTICAL EC51383E Line 1453: <field hash="9C631F13" type="Float32">-0.026</field>// A69BC4BC
These are the lines containing the scope positions. With the ACOG setting I generated a nice sniper feeling (screen filled by scope, huge crosshairs) but alas, the magnification did NOT change as I had hoped.... you only get a bigger slice of the picture.
If you only want to search for these values in the gun data, search for Attachments_1cf" and you will find the starting positions of the block.
Line 1155: <field hash="0D55F1A5" type="String">Attachments_1cf9ac70206001a7</field> DOT Line 1210: <field hash="0D55F1A5" type="String">Attachments_1cf9ac70206001a8</field> Blue scope Line 1265: <field hash="0D55F1A5" type="String">Attachments_1cf9ac70206001a9</field> Acog Line 1320: <field hash="0D55F1A5" type="String">Attachments_1cf9ac70206001aa</field> Line 1375: <field hash="0D55F1A5" type="String">Attachments_1cf9ac70206001ab</field> Line 1430: <field hash="0D55F1A5" type="String">Attachments_1cf9ac70206001ac</field> Optical
|
|
|
Post by gkid7891 on Oct 14, 2015 8:49:27 GMT
bontainer, to increase zoom, you would need to change the "fIronSightFOVdegrees" and "fIronSightNearFOVdegrees" values. I did this in FC3 to increase the sope zoom on the snipers.
|
|