View Full Version : silent hunter 5 ultrawide camera fix
J'ai finalement trouvé le fov de la première personne, mais j'ai besoin d'un peu d'aide ....
comme vous le savez, dès que la résolution dépasse
une certaine valeur, la caméra plante et aucune première personne
16: 9 n'est parfaite, 21 : 9 ça commence à avoir peur et 16: 3 rien! seulement noir!
avec le moteur de triche j'ai réussi à trouver 2 valeurs qui corrigent ceci:
92 & 66
très difficile à trouver ........
tableau d'octet code: 5C420000AA420000003F0000C03F00
attention il y a 2 lignes identiques ... évidemment c'est la seconde!
maintenant ce sont les 2 premiers! 5c & 42 (92 66)
J'ai essayé plusieurs nombres, pour ma résolution 16:3 (5760x1080) et finalement trouvé 77 90
comme si par magie la vue à la première personne fonctionne et le format est correct!
maintenant j'ai besoin d'automatiser cela, j'ai du mal avec les pointeurs, mais c'est déjà un grand pas en avant alors?
idées ???
sh5 no mod and version 1.1.5
je viens de tester la version 1.2 ......c'est identique , enfin de la chance !
il faut trouver maintenant un moyen de caler tout cela avec CE.....je bloque un peu ici , mais tout n'est pas fini !
https://www.youtube.com/watch?v=5yhjD9XaNk8
proutprout
11-11-20, 06:36 PM
the fov is exactely 55 in game
only change this and find your correct fov !
55 fov is based on aob 5C420000AA420000003F0000C03F00
if you change first value 92 (5c n hexa) to 93 the fov value up to 55.25
change only 55
ex : for 5760x1080 i move 55 to 148 and the result is :
94430000AA420000003F0000C03F00
my script :
[ENABLE]
Aobscan(_place,5c 42 00 00 AA 42 00 00 00 3F 00 00 C0 3F 00)
label(place)
registersymbol(place)
_place:
place:
db 94 43
[DISABLE]
place:
db 5c 42 00 00 AA 42 00 00 00 3F 00 00 C0 3F 00
create 3 scripts fov1 , fov2 , fov3 sames values and clic on "execute asynchronous"
add key for active & cut (the same for all scripts)
work every times !
why 3 scripts ?
the game find one or two or three aob , for working scan and select all correct values :
3 same script and clic right on this for "execute asynchronus"
rfxcasey
11-11-20, 11:14 PM
I'm very interested in this topic. I only speak English so I had to use Google Translate on the original post. I'm running the game at 2560x1080 and while the external views seem to work properly, the first person view is distorted badly. I've used Cheat Engine once before on Metal Gear 5 but it's been a while and I'm not very experienced with it. If someone can come up with a CE script for my 2560x1080 resolution that fixes the first person view I'd be forever grateful.:Kaleun_Cheers:
I'm very interested in this topic. I only speak English so I had to use Google Translate on the original post. I'm running the game at 2560x1080 and while the external views seem to work properly, the first person view is distorted badly. I've used Cheat Engine once before on Metal Gear 5 but it's been a while and I'm not very experienced with it. If someone can come up with a CE script for my 2560x1080 resolution that fixes the first person view I'd be forever grateful.:Kaleun_Cheers:
I will test your resolution, and I will post the right values for it with my CE scipt to adapt for your values
I will test your resolution, and I will post the right values for it with my CE scipt to adapt for your values
your reso fov
https://www.mediafire.com/convkey/b158/jgja8d0rv9tzrk9zg.jpg
hack fov exemple
https://www.mediafire.com/convkey/0f9c/ik49t7khk9askg1zg.jpg http://www.mediafire.com/view/51x2tyrujuynj9c/2560x1080_normal.jpg/file
mon CE : http://www.mediafire.com/file/o9taornj1bpyyss/sh5.CT/file
edit the 3 scripts and change only : db 94 43 to db 40 42
5c in bytes is 92 push this to 64 result 40 in hexa
you can try more or less
change in my ce your keys for activate or close this ! and create your trainer auto , for me AKH launch game & the script auto
created in CE 7.1
sh5 last version , work on any mod !
the real fov is 55 ° in float , changed this to 48° for my exemple...
you can find this on change only 92 to 93 (5c) in byte and search 55.25 in float
ok ? :O::O::O::O::O:
after you can try : http://www.mediafire.com/file/aea41kkh0uq8572/fov_sh5_.ahk/file
5760x1080 you can see gui hud centered !
https://www.mediafire.com/convkey/c16a/hx543zrtru2nrubzg.jpg
rfxcasey
11-13-20, 02:03 PM
OK, I edited the 3 scripts to this. Is this correct?
[ENABLE]
Aobscan(_place,5c 42 00 00 AA 42 00 00 00 3F 00 00 C0 3F 00)
label(place)
registersymbol(place)
_place:
place:
db 40 42
[DISABLE]
place:
db 5c 42 00 00 AA 42 00 00 00 3F 00 00 C0 3F 00
Is this correct? If so what do I do next, can you be very specific.
"5c in bytes is 92 push this to 64 result 40 in hexa"
How exactly do I do that? Do I change 5c in the scripts, or do I start SH5.CT and change it through Cheat Engine? Thanks for your help.
Here is my SH5.ct file:
<?xml version="1.0" encoding="utf-8"?>
<CheatTable CheatEngineTableVersion="31">
<Forms>
<CETrainer Class="TTrainerForm" Encoding="Ascii85">eN#/u):Zrz6ViMQ#9/OQj,}I-7a$ztt/kb3YCHiq,^A6Ix[0HdL,{$hpxyR2[z7fjo2H{e6unNKkN0]vI}M;[T*aOcL^l!AzEFA/BD_ZPWo%}LSI;td#@)#.^sAsgYxnKI]@..za6b-wMAwEZIXr.Qkl.,34iekBL+x/)wPAkLKAM-,GAPuBKhXFu*}c+DV-htGra=;*F4uyaW)Z4M.0Yx8r1j/0$F;_]T^#^AK=5tOWFo;{$OIN{j57-Y^^ht:6nrlIAr%kbMG3oQB9,ZPemK3(*OV(=ZBO(9IXZo6VW$o Vo#wh],8Kbbv6XC%Q8I:{enXNQLh]XS:Io3*uiK38[Qt.Lj0IFAs*4QoxHYQeKUvs=?4;0snl^-cO,RW!n^1}JY%1xB(Y729!%KXu;.ATZIREO{ef-jBW}xO9]uU.{hNPD-Kb@084/7S9]Jdc[gL9^q%jlGec$AYX^56BgUN73mcHYWGJNNIpY:$Fcmh4AdP}EU2 C6o?pf$]-hT%t*?kTf6nXzSCoZw_D0He.1{MB6JEWqFDF1z#T+^A+wE2Or9 6q4XvW:,agUPIYW:P1kYn[Vhaj.4c</CETrainer>
<CETrainer_1 Class="TTrainerForm" Encoding="Ascii85">eN#/u):Zrz6ViMQ#9/OQj,}I-7a$ztt/kb3YCHiq,^A6Ix[0HdL,{$hpxyR2[z7fjo2H{e6unNKkN0]vI}M;[T*aOcL^l!AzEFA/BD_ZPWo%}LSI;td#@)#.^sAsgYxnKI]@..za6b-wMAwEZIXr.Qkl.,34iekBL+x/)wPAkLKAM-,GAPuBKhXFu*}c+DV-htGra=;*F4uyaW)Z4M.0Yx8r1j/0$F;_]T^#^AK=5tOWFo;{$OIN{j57-Y^^ht:6nrlIAr%kbMG3oQB9,ZPemK3(*OV(=ZBO(9IXZo6VW$o Vo#wh],8Kbbv6XC%Q8I:{enXNQLh]XS:Io3*uiK38[Qt.Lj0IFAs*4QoxHYQeKUvs=?4;0snl^-cO,RW!n^1}JY%1xB(Y729!%KXu;.ATZIREO{ef-jBW}xO9]uU.{hNPD-Kb@084/7S9]Jdc[gL9^q%jlGec$AYX^56BgUN73mcHYWGJNNIpY:$Fcmh4AdP}EU2 C6o?pf$]-hT%t*?kTf6nXzSCoZw_D0He.1{MB6JEWqFDF1z#T+^A+wE2Or9 6q4XvW:,agUPIYW:P1kYn[Vhaj.4c</CETrainer_1>
</Forms>
<CheatEntries>
<CheatEntry>
<ID>0</ID>
<Description>"fov"</Description>
<LastState/>
<VariableType>Auto Assembler Script</VariableType>
<AssemblerScript Async="1">Code:
[ENABLE]
Aobscan(_place,5c 42 00 00 AA 42 00 00 00 3F 00 00 C0 3F 00)
label(place)
registersymbol(place)
_place:*
place:
db 40 42
[DISABLE]
place:
db 5c 42 00 00 AA 42 00 00 00 3F 00 00 C0 3F 00
</AssemblerScript>
<Hotkeys>
<Hotkey>
<Action>Activate</Action>
<Keys>
<Key>106</Key>
</Keys>
<ID>0</ID>
</Hotkey>
<Hotkey>
<Action>Deactivate</Action>
<Keys>
<Key>105</Key>
</Keys>
<ID>1</ID>
</Hotkey>
</Hotkeys>
</CheatEntry>
<CheatEntry>
<ID>1</ID>
<Description>"fov1"</Description>
<LastState/>
<VariableType>Auto Assembler Script</VariableType>
<AssemblerScript Async="1">Code:
[ENABLE]
Aobscan(_place,5c 42 00 00 AA 42 00 00 00 3F 00 00 C0 3F 00)
label(place)
registersymbol(place)
_place:
place:
db 40 42
[DISABLE]
place:
db 5c 42 00 00 AA 42 00 00 00 3F 00 00 C0 3F 00
</AssemblerScript>
<Hotkeys>
<Hotkey>
<Action>Activate</Action>
<Keys>
<Key>106</Key>
</Keys>
<ID>0</ID>
</Hotkey>
<Hotkey>
<Action>Deactivate</Action>
<Keys>
<Key>105</Key>
</Keys>
<ID>1</ID>
</Hotkey>
</Hotkeys>
</CheatEntry>
<CheatEntry>
<ID>2</ID>
<Description>"fov2"</Description>
<LastState/>
<VariableType>Auto Assembler Script</VariableType>
<AssemblerScript Async="1">Code:
[ENABLE]
Aobscan(_place,5c 42 00 00 AA 42 00 00 00 3F 00 00 C0 3F 00)
label(place)
registersymbol(place)
_place:
place:
db 40 42
[DISABLE]
place:
db 5c 42 00 00 AA 42 00 00 00 3F 00 00 C0 3F 00
</AssemblerScript>
<Hotkeys>
<Hotkey>
<Action>Activate</Action>
<Keys>
<Key>106</Key>
</Keys>
<ID>0</ID>
</Hotkey>
<Hotkey>
<Action>Deactivate</Action>
<Keys>
<Key>105</Key>
</Keys>
<ID>1</ID>
</Hotkey>
</Hotkeys>
</CheatEntry>
</CheatEntries>
<CheatCodes>
<CodeEntry Color="20000000">
<Description>Code :fld dword ptr [esi+000019A0]</Description>
<AddressString>PortalSystem.act+633F</AddressString>
<Before>
<Byte>C9</Byte>
<Byte>D9</Byte>
<Byte>5C</Byte>
<Byte>24</Byte>
<Byte>04</Byte>
</Before>
<Actual>
<Byte>D9</Byte>
<Byte>86</Byte>
<Byte>A0</Byte>
<Byte>19</Byte>
<Byte>00</Byte>
<Byte>00</Byte>
</Actual>
<After>
<Byte>D8</Byte>
<Byte>4C</Byte>
<Byte>24</Byte>
<Byte>20</Byte>
<Byte>DE</Byte>
</After>
</CodeEntry>
<CodeEntry Color="20000000">
<Description>fov</Description>
<AddressString>PortalSystem.act+633F</AddressString>
<Before>
<Byte>C9</Byte>
<Byte>D9</Byte>
<Byte>5C</Byte>
<Byte>24</Byte>
<Byte>04</Byte>
</Before>
<Actual>
<Byte>D9</Byte>
<Byte>86</Byte>
<Byte>A0</Byte>
<Byte>19</Byte>
<Byte>00</Byte>
<Byte>00</Byte>
</Actual>
<After>
<Byte>D8</Byte>
<Byte>4C</Byte>
<Byte>24</Byte>
<Byte>20</Byte>
<Byte>DE</Byte>
</After>
</CodeEntry>
<CodeEntry Color="20000000">
<Description>Code :fld dword ptr [esi+000019A0]</Description>
<AddressString>PortalSystem.act+633F</AddressString>
<Before>
<Byte>C9</Byte>
<Byte>D9</Byte>
<Byte>5C</Byte>
<Byte>24</Byte>
<Byte>04</Byte>
</Before>
<Actual>
<Byte>D9</Byte>
<Byte>86</Byte>
<Byte>A0</Byte>
<Byte>19</Byte>
<Byte>00</Byte>
<Byte>00</Byte>
</Actual>
<After>
<Byte>D8</Byte>
<Byte>4C</Byte>
<Byte>24</Byte>
<Byte>20</Byte>
<Byte>DE</Byte>
</After>
</CodeEntry>
</CheatCodes>
<UserdefinedSymbols/>
<LuaScript>--TRAINERGENERATORSTART--
--This is autogenerated code. Changing code in this block will
--get erased and rewritten if you regenerate the trainer code
--Uncomment the following line if this is a Cheat Table format trainer and you don't want CE to show (Tip, save as .CETRAINER alternatively)
--hideAllCEWindows()
RequiredCEVersion=7.1
if (getCEVersion==nil) or (getCEVersion()<RequiredCEVersion) then
messageDialog('Please install Cheat Engine '..RequiredCEVersion, mtError, mbOK)
closeCE()
end
addresslist=getAddressList()
CETrainer.SEPERATOR.Visible=false
getAutoAttachList().add("sh5.exe")
gPlaySoundOnAction=false
CETrainer.show()
function AboutClick()
showMessage(gAboutText)
end
gAboutText=[[This trainer was made by Cheat
Engine
www.cheatengine.org]]
function CloseClick()
--called by the close button onClick event, and when closing the form
closeCE()
return caFree --onClick doesn't care, but onClose would like a result
end
--TRAINERGENERATORSTOP--
</LuaScript>
</CheatTable>
rfxcasey
11-13-20, 03:32 PM
Well, good news and bad news. Overall good news though, I got the FOV working but not through the script. I started Silent Hunter 5 and loaded my save game so I'm standing on the bridge of the sub. Then I alt tab out of the game and I loaded Cheat Engine with no script. I clicked on 'select process to open', found SH5.exe, selected it and then clicked open. Next under the scan settings on the right I set the 'value type' to 'Array of byte'. Then under 'value' I ticked the 'Hex' checkbox and pasted in under 'value' '5C420000AA420000003F0000C03F00'. Next I clicked 'New Scan' and 2 results came up on the left, address '30034C3E' and address '3048BCB6' both of which had values of '5C420000AA420000003F0000C03F00'. So I right clicked on them, one at a time, and changed the first 2 bytes of both to '40 43' from their original value of '5C 42'.
Alt tabbed back into the game and like magic, the FOV is perfect, no stretching at all and all the button clicks line up with the buttons. It's BEAUTIFUL! Ah, I'm so happy I could kiss you guys.
Only remaining issue is why the script isn't working. I'm no programmer so I'll need some help probably. I don't understand the code enough to know how to fix it. I can play now with the proper FOV but a automating everything, the script launching and the game starting, under one icon would be really great.:subsim:
rfxcasey
11-14-20, 03:39 AM
don't understand why my script dont work for you...but you have find perfect the correct values , if you create you proper script ( same as mine )
3 scripts and put on this " execute asynchronus"
ok !!!!!! understand your error !
you put 40 43 exact ? but no and no !!!!
only the first for you !!!! db: 40 42 (for exemple)
the seond value is only when your fov is more , your fov is only 48° (64 in byte)
simple edit my script and push and replace on it :
_place:
place:
db 94 43
to :
_place:
place:
db 40 42
and replace the key for activate and try ok ?
I've been playing with the values, yes I run 40 42, but 40 43 works well too when done manually. I've tried the script both ways and does not work for some reason. The hotkeys are OK, I like where you have them so I leave them. With Cheat Engine open I can see the hotkeys are working. In Cheat Engine I see the 3 script boxes at the bottom. When I hit the hotkey to start the scripts I see the scanner progress spinning on all three scripts but nothing else changes. Should I be seeing some kind of data update in Cheat Engine? Also, scripts don't seem to stop, it's like they aren't finishing the scan, like they aren't finding what they need or SH5.exe. If I got to 'open process' and click on SH5.exe Cheat Engine will stop responding. Is it possible the scripts are not finding SH5.exe?
rfxcasey
11-14-20, 03:46 AM
Let me just add, when I start the trainer SH5.ct their is a box over the 'select process to open' button that is flashing green and red, is that normal?
Also, if I have to make my own trainer after changing the FOV manually, how do I do that? I don't know Cheat Engine well enough to create a trainer from my manual changes that work for me.
I've been playing with the values, yes I run 40 42, but 40 43 works well too when done manually. I've tried the script both ways and does not work for some reason. The hotkeys are OK, I like where you have them so I leave them. With Cheat Engine open I can see the hotkeys are working. In Cheat Engine I see the 3 script boxes at the bottom. When I hit the hotkey to start the scripts I see the scanner progress spinning on all three scripts but nothing else changes. Should I be seeing some kind of data update in Cheat Engine? Also, scripts don't seem to stop, it's like they aren't finishing the scan, like they aren't finding what they need or SH5.exe. If I got to 'open process' and click on SH5.exe Cheat Engine will stop responding. Is it possible the scripts are not finding SH5.exe?
test my script with cheat engine updated version 7.2 and dont work !!!
downgrade to 7.1 and bingo !!! working !
try cheat engine v6.8.1 and.............working !
for me the 7.2 is very instable ,crash ....dont understand why...
7.1 is perfect , verify your version please !
rfxcasey
11-14-20, 03:55 AM
OK, maybe a clue, when I go into the memory viewer after starting the scripts, I see a lot of SH5.exe stuff so it looks like it's finding the executable BUT, at the top of the memory view window it says 'Symbols are being loading 0%' and never changes, is that a problem?
Let me just add, when I start the trainer SH5.ct their is a box over the 'select process to open' button that is flashing green and red, is that normal?
Also, if I have to make my own trainer after changing the FOV manually, how do I do that? I don't know Cheat Engine well enough to create a trainer from my manual changes that work for me.
delete your cheat engine ! scan regedit for all trace...
download only this version 7.1 and dont touch any setup
"your cheat table is not affected by deleting , only program"
verify the debugger in settings "use windows debugger"
after is work !
for create trainer is in "File" clic on generate generic trainer lua....
but try this CE 7.1 and my ce scipt , is good and working !
OK, maybe a clue, when I go into the memory viewer after starting the scripts, I see a lot of SH5.exe stuff so it looks like it's finding the executable BUT, at the top of the memory view window it says 'Symbols are being loading 0%' and never changes, is that a problem?
your version ????
update or downgrade to 7.1 !!!
rfxcasey
11-14-20, 03:06 PM
v 7.2 I'll downgrade and see what happens. I can't find a clean source for 7.1, everything keeps flagging it as 'dangerous'.
rfxcasey
11-18-20, 01:06 AM
Could you possibly make me a version of this using Cheat Engine 7.2? It would really help me out. I can't find an english version of 7.1 anywhere and the Polish versions I find are from unofficial sources and somewhat questionable. I'm trying to make my own trainer in 7.2 but I can't get the Debugger to work properly so I can make a pointer.
rfxcasey
11-18-20, 04:15 AM
J'ai finalement trouvé le fov de la première personne, mais j'ai besoin d'un peu d'aide ....
comme vous le savez, dès que la résolution dépasse
une certaine valeur, la caméra plante et aucune première personne
16: 9 n'est parfaite, 21 : 9 ça commence à avoir peur et 16: 3 rien! seulement noir!
avec le moteur de triche j'ai réussi à trouver 2 valeurs qui corrigent ceci:
92 & 66
très difficile à trouver ........
tableau d'octet code: 5C420000AA420000003F0000C03F00
attention il y a 2 lignes identiques ... évidemment c'est la seconde!
maintenant ce sont les 2 premiers! 5c & 42 (92 66)
J'ai essayé plusieurs nombres, pour ma résolution 16:3 (5760x1080) et finalement trouvé 77 90
comme si par magie la vue à la première personne fonctionne et le format est correct!
maintenant j'ai besoin d'automatiser cela, j'ai du mal avec les pointeurs, mais c'est déjà un grand pas en avant alors?
idées ???
sh5 no mod and version 1.1.5
je viens de tester la version 1.2 ......c'est identique , enfin de la chance !
il faut trouver maintenant un moyen de caler tout cela avec CE.....je bloque un peu ici , mais tout n'est pas fini !
https://www.youtube.com/watch?v=5yhjD9XaNk8
Comment avez-vous pu déterminer les valeurs qui affectent la vue? Les adresses semblent changer à chaque nouveau départ du jeu. Je pense que j'ai besoin de définir un pointeur sur la valeur, mais je ne peux pas faire fonctionner le débogueur sur le processus sh5.exe. Je pense que la sécurité d'Ubisoft DRM rend le débogage difficile. Je peux rechercher et modifier les valeurs manuellement dans Cheat Engine chaque fois que je joue au jeu, mais je ne peux pas faire fonctionner le script pour le faire automatiquement. Je ne suis pas un programmeur et j'ai peu d'expérience avec Cheat Engine. Le français n'est pas ma langue maternelle, c'est l'anglais donc j'utilise Google Traduction. J'espère que vous me comprendrez. Merci.
ENGLISH TRANSLATION:
How were you able to determine the values that effect the view? The addresses seem to change with every new start of the game. I think I need to set a pointer to the value but I cannot get the debugger to run on the sh5.exe process. I think the Ubisoft DRM security is making it difficult to debug. I can scan for and edit the values manually in Cheat Engine each time I play the game but I cannot get the script working to do it automatically. I'm not a programmer and have little experience with Cheat Engine. French is not my native language, it's English so I am using Google Translate. Hopefully you'll understand me. Thanks.
rfxcasey
11-18-20, 04:58 AM
your version ????
update or downgrade to 7.1 !!!
Ah, brilliant, it's working in version 7.0. I don't really need the disable function but it is working. I've only ever seen 2 results when searching for the data values, you had seen 3? Why the reason for the 3 scripts instead of two again? Also, how did you manage to debug the sh5.exe, mine keeps failing to attach every time. I've tested Cheat Engine on other processes and the debugger seem to work, just not on sh5.exe. I was thinking the DRM protection might be causing the problem? I'd like to know the answer. Thanks again. :Kaleun_Cheers::Kaleun_Salute::Kaleun_Cheers:
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.