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-13-20, 03:32 PM   #7
rfxcasey
Bosun
 
Join Date: Jun 2009
Posts: 68
Downloads: 10
Uploads: 0
Default

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.
rfxcasey is offline   Reply With Quote
Old 11-14-20, 03:39 AM   #8
rfxcasey
Bosun
 
Join Date: Jun 2009
Posts: 68
Downloads: 10
Uploads: 0
Default

Quote:
Originally Posted by prouha View Post
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 is offline   Reply With Quote
Old 11-14-20, 03:46 AM   #9
rfxcasey
Bosun
 
Join Date: Jun 2009
Posts: 68
Downloads: 10
Uploads: 0
Default

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

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

Last edited by prouha; 11-14-20 at 04:06 AM. Reason: cool
prouha is offline   Reply With Quote
Old 11-14-20, 03:55 AM   #11
rfxcasey
Bosun
 
Join Date: Jun 2009
Posts: 68
Downloads: 10
Uploads: 0
Default

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

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

Last edited by prouha; 11-14-20 at 04:23 AM. Reason: cool
prouha is offline   Reply With Quote
Old 11-14-20, 04:25 AM   #13
prouha
Swabbie
 
Join Date: May 2015
Posts: 10
Downloads: 47
Uploads: 0
Default

Quote:
Originally Posted by rfxcasey View Post
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 !!!
prouha is offline   Reply With Quote
Old 11-14-20, 03:06 PM   #14
rfxcasey
Bosun
 
Join Date: Jun 2009
Posts: 68
Downloads: 10
Uploads: 0
Default

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'.

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

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 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 08:19 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.