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 > SH5 Mods Workshop
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 09-02-12, 07:43 PM   #1186
Cybermat47
Willing Webfooted Beast
 
Cybermat47's Avatar
 
Join Date: Aug 2012
Location: Australia
Posts: 4,570
Downloads: 300
Uploads: 23


Default

How do I open the patcher and sh5.exe?
Sorry, I'm a complete noob at modding.
__________________
Historical TWoS Gameplay Guide: http://www.subsim.com/radioroom/showthread.php?p=2572620
Historical FotRSU Gameplay Guide: https://www.subsim.com/radioroom/sho....php?p=2713394
Cybermat47 is offline   Reply With Quote
Old 09-02-12, 08:47 PM   #1187
volodya61
Ocean Warrior
 
volodya61's Avatar
 
Join Date: Feb 2012
Location: Rostov-on-Don, local time GMT+4
Posts: 3,292
Downloads: 374
Uploads: 0


Default

Quote:
Originally Posted by Cybermat47 View Post
How do I open the patcher and sh5.exe?
Sorry, I'm a complete noob at modding.
http://www.subsim.com/radioroom/showthread.php?t=197960
__________________
.
Where does human stupidity end?

.


El sueño de la razón produce monstruos © - and for some people awakening will be cruel
volodya61 is offline   Reply With Quote
Old 09-02-12, 09:37 PM   #1188
Cybermat47
Willing Webfooted Beast
 
Cybermat47's Avatar
 
Join Date: Aug 2012
Location: Australia
Posts: 4,570
Downloads: 300
Uploads: 23


Default

Quote:
Originally Posted by volodya61 View Post
Thx
__________________
Historical TWoS Gameplay Guide: http://www.subsim.com/radioroom/showthread.php?p=2572620
Historical FotRSU Gameplay Guide: https://www.subsim.com/radioroom/sho....php?p=2713394
Cybermat47 is offline   Reply With Quote
Old 09-02-12, 10:45 PM   #1189
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

I've randomized the responses back from Bdu.

You can receive back one of these responses when you send in a contact report (the |s are line breaks or new lines):
- Dispatching available submarines to your patrol area|Remain undetected and in a favorable position|Send status reports||Bdu
- All available submarines have been dispatched to your patrol area
- Submarines in your area have received instructions to join your attack|Stay in front of contact/convoy, remain undetected, and send regular status reports|||B.d.u



Currently they are hard coded in my data section. Tomorrow I will make them menu.txt entries

I am now using the stock game function to detemine whether you are able to receive radio messages or not

New version of the patcher coming here soon...
TheDarkWraith is offline   Reply With Quote
Old 09-02-12, 11:25 PM   #1190
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

v1.0.70.0 released. See post #1

revised the Contact reports wolfpack patch. When Bdu responds back it now uses the radio message window instead of the messagebox. There are 3 possible responses that Bdu can send back. Now using the game's function to determine if able to receive radio messages or not.

The responses are currently hard-coded in my data section. I will turn them into menu.txt entries tomorrow.

TheDarkWraith is offline   Reply With Quote
Old 09-02-12, 11:52 PM   #1191
volodya61
Ocean Warrior
 
volodya61's Avatar
 
Join Date: Feb 2012
Location: Rostov-on-Don, local time GMT+4
Posts: 3,292
Downloads: 374
Uploads: 0


Default

Great news and great job TDW!
As always..
Thank you very much!




PS:
What do I say on sukhoi.ru to those who don't use your interface?
Will they be able to use this patch when you turn the responses into menu.txt?
__________________
.
Where does human stupidity end?

.


El sueño de la razón produce monstruos © - and for some people awakening will be cruel
volodya61 is offline   Reply With Quote
Old 09-03-12, 12:01 AM   #1192
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by volodya61 View Post
Great news and great job TDW!
As always..
Thank you very much!




PS:
What do I say on sukhoi.ru to those who don't use your interface?
Will they be able to use this patch when you turn the responses into menu.txt?
You don't have to use any UI mod (or any mod) to get these radio messages from Bdu. Since I'm calling the stock function that displays these radio messages it'll work with anything.

Turning these responses into menu.txt entries will allow you to translate them into any language. Currently as they are hard coded in my data section they will always be in English. It will also allow you to add more responses for Bdu in the menu.txt file
TheDarkWraith is offline   Reply With Quote
Old 09-03-12, 12:15 AM   #1193
volodya61
Ocean Warrior
 
volodya61's Avatar
 
Join Date: Feb 2012
Location: Rostov-on-Don, local time GMT+4
Posts: 3,292
Downloads: 374
Uploads: 0


Default

Thanks!

I'll describe this in your patcher's thread on sukhoi.ru..
http://www.sukhoi.ru/forum/showthread.php?t=76762

__________________
.
Where does human stupidity end?

.


El sueño de la razón produce monstruos © - and for some people awakening will be cruel
volodya61 is offline   Reply With Quote
Old 09-03-12, 02:50 AM   #1194
lesec74
Ensign
 
Join Date: Mar 2010
Location: france(alps)
Posts: 230
Downloads: 259
Uploads: 0
Default

hello,
I've tried to install the patcher and when I click on sh5 tdw patches a message error says to me that bytes read is not the same than bytes expected!!?I've follwed the tutorial "how use sh5 patcher!"
lesec74 is offline   Reply With Quote
Old 09-03-12, 03:10 AM   #1195
lesec74
Ensign
 
Join Date: Mar 2010
Location: france(alps)
Posts: 230
Downloads: 259
Uploads: 0
Default

Quote:
Originally Posted by lesec74 View Post
hello,
I've tried to install the patcher and when I click on sh5 tdw patches a message error says to me that bytes read is not the same than bytes expected!!?I've follwed the tutorial "how use sh5 patcher!"

Uploaded with [
lesec74 is offline   Reply With Quote
Old 09-03-12, 04:36 AM   #1196
Kalleblom
Lieutenant
 
Join Date: May 2012
Location: Waterkant
Posts: 252
Downloads: 74
Uploads: 0
Default

Moin,

did you use clean files to patch, or the allready patched versions?
Kalleblom is offline   Reply With Quote
Old 09-03-12, 04:42 AM   #1197
Kalleblom
Lieutenant
 
Join Date: May 2012
Location: Waterkant
Posts: 252
Downloads: 74
Uploads: 0
Default

Quote:
Originally Posted by TheDarkWraith View Post
You don't have to use any UI mod (or any mod) to get these radio messages from Bdu. Since I'm calling the stock function that displays these radio messages it'll work with anything.

Turning these responses into menu.txt entries will allow you to translate them into any language. Currently as they are hard coded in my data section they will always be in English. It will also allow you to add more responses for Bdu in the menu.txt file
TDW,

two days absent and new pachtes available!

Great work, thank you!

Good news about the menu.txt, eagerly waiting.
Kalleblom is offline   Reply With Quote
Old 09-03-12, 05:49 AM   #1198
pioleen
Seaman
 
Join Date: Jan 2007
Posts: 39
Downloads: 206
Uploads: 0
Default

Quote:
Originally Posted by TheDarkWraith View Post
If I had the source code I could do many things but alas I only have what OllyDebug shows me and what I have decoded of the assembly. Thus while it would be nice to do the things you all mention and suggest sometimes it's impossible or next to impossible to do.

I've been working on decoding the sh5.exe and it's supporting files (.act files) for over 1.5 years. This is what allows me to do what I currently do with my patch files. I understand much of how the game works from this also. I don't think some of you understand just how difficult it is to add new ideas to an app via assembly. I don't have the luxury of having high-level source code that I can read over or study to know exactly what is going on in a particular function. Instead I have to make guesses and stumble my way around hoping that one or more of my guesses are correct so that I can set a label on them so that I know what they are doing. Over time when you stumble around and add enough labels things start to become more clear and start to make sense (it gets easier to figure out new functions and figure out what some pointers point to). Even then I may not know what a particular function call does 100% but I do know that if I mimmic it or pass certain parameters to it it will do what I want it to do. It's extremely frustrating and exhilarating at the same time working in assembly.

While some of my ideas may not be exactly what you think they should be realize that I'm making something from nothing, something from pure guesses on my part. As I continue to decode more and learn more about the inner workings of the game my patches will evolve to show that understanding
I guess how hard it is. I worked with Z80's assembler long time ago. You also are decoding an exe file from not you. UFFFF!!!! You surprise me. So, I give you a BIG thanks for your job, it is very hard.

An idea... It would be possible to call a dll with your code added by your patcher instead of adding code including all the functions using a more friendly computer languaje than assembler. I mean, your patcher adds the call to the dll but the dll includes the code. Your job would be easier. Ummmm . No, The problem would be to call some functionality residing in the exe file or delivering the result to the game. Well, It was an idea

Thank you, TDW.
pioleen is offline   Reply With Quote
Old 09-03-12, 07:34 AM   #1199
lesec74
Ensign
 
Join Date: Mar 2010
Location: france(alps)
Posts: 230
Downloads: 259
Uploads: 0
Default

Quote:
Originally Posted by Kalleblom View Post
Moin,

did you use clean files to patch, or the allready patched versions?
files are clean and my game is patch 1.2;
thanks for help
lesec74 is offline   Reply With Quote
Old 09-03-12, 09:08 AM   #1200
Kalleblom
Lieutenant
 
Join Date: May 2012
Location: Waterkant
Posts: 252
Downloads: 74
Uploads: 0
Default

Sorry,

I'm at my wits end.

Have sometimes similar problems, but didn´t recognize how to fit this exactly.

Last i try the tutorial and it works.
Kalleblom 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:23 AM.


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