SUBSIM Radio Room Forums



SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997

Go Back   SUBSIM Radio Room Forums > Silent Hunter 3 - 4 - 5 > Silent Hunter 5
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 10-28-20, 01:22 PM   #1
prouha
Swabbie
 
Join Date: May 2015
Posts: 10
Downloads: 47
Uploads: 0
Default 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 !



Last edited by prouha; 10-30-20 at 04:22 AM.
prouha is offline   Reply With Quote
Old 11-11-20, 06:36 PM   #2
proutprout
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

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"
  Reply With Quote
Old 11-11-20, 11:14 PM   #3
rfxcasey
Bosun
 
Join Date: Jun 2009
Posts: 68
Downloads: 10
Uploads: 0
Default

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.
rfxcasey is offline   Reply With Quote
Old 11-12-20, 03:55 AM   #4
prouha
Swabbie
 
Join Date: May 2015
Posts: 10
Downloads: 47
Uploads: 0
Default

Quote:
Originally Posted by rfxcasey View Post
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.

I will test your resolution, and I will post the right values for it with my CE scipt to adapt for your values
prouha is offline   Reply With Quote
Old 11-12-20, 05:15 AM   #5
prouha
Swabbie
 
Join Date: May 2015
Posts: 10
Downloads: 47
Uploads: 0
Default

Quote:
Originally Posted by prouha View Post
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


hack fov exemple



mon CE : http://www.mediafire.com/file/o9taor...ss/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 ?


after you can try : http://www.mediafire.com/file/aea41k..._sh5_.ahk/file


5760x1080 you can see gui hud centered !

Last edited by prouha; 11-12-20 at 05:36 AM. Reason: cool
prouha is offline   Reply With Quote
Old 11-13-20, 02:03 PM   #6
rfxcasey
Bosun
 
Join Date: Jun 2009
Posts: 68
Downloads: 10
Uploads: 0
Default

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()&lt;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>

Last edited by rfxcasey; 11-13-20 at 02:52 PM.
rfxcasey is offline   Reply With Quote
Old 11-18-20, 04:15 AM   #7
rfxcasey
Bosun
 
Join Date: Jun 2009
Posts: 68
Downloads: 10
Uploads: 0
Default

Quote:
Originally Posted by prouha View Post
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 !


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 is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 03:11 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © 1995- 2024 Subsim®
"Subsim" is a registered trademark, all rights reserved.