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

Reply
 
Thread Tools Display Modes
Old 07-28-09, 09:02 PM   #1
The Joker
Watch
 
Join Date: May 2007
Posts: 19
Downloads: 40
Uploads: 0
[REL] SH4 Wind Changer Utility

It's been a while since I played SH4, so just the other day I decided to have a go at it again. So, after a few mod updates I leave port. After a few days, I get some stormy weather. No big deal, except the storm wouldn't go away. So, about that time, I saved my game, exited, and wrote this little program. Thought I'd share it.

Warning: I've only tested this program on XP, but I *think* it should work on Vista. Just make sure that you run the utility with administrator privileges.

Silent Hunter 4 Wind Changer v1.0
---------------------------------
SH4 Wind Changer is a small utility that allows you to change the wind direction
and speed in the currently running game.

Usage
-----
1. While the game is running Alt+Tab out.
2. Run the utility.
3. The utility should automatically find the running game and start displaying values.
4. Enter the wind speed and/or direction and press the appropriate "Set" button(s).
5. Close the utility and get return to the game!

Notes
-----
* This program requires administrator privilege as it reads/writes to another program's memory. (sh4.exe)
* The wind speed/heading change is not instant.
* Wind speed changes more quickly than wind heading.

FileFront Download: http://www.filefront.com/14146109/SH...%20Changer.zip
The Joker is offline   Reply With Quote
Old 07-29-09, 06:39 AM   #2
ReallyDedPoet
Canadian Wolf
 
ReallyDedPoet's Avatar
 
Join Date: Jul 2006
Location: Canada. The one and only, East Coast
Posts: 10,888
Downloads: 946
Uploads: 5


Default

Nice
__________________

Back in the Day



ReallyDedPoet is offline   Reply With Quote
Old 08-04-09, 02:05 PM   #3
TH0R
XO
 
Join Date: Jul 2009
Location: Croatia
Posts: 420
Downloads: 52
Uploads: 0
Default

I just came back from a patrol with 7 days long flat sea. I'm DL-ing this ASP. Many thanks.


EDIT: It can't seem to find the game. Says game time 00:00 every time I run it. XP here.

Last edited by TH0R; 08-04-09 at 02:16 PM.
TH0R is offline   Reply With Quote
Old 08-04-09, 06:55 PM   #4
The Joker
Watch
 
Join Date: May 2007
Posts: 19
Downloads: 40
Uploads: 0
Default

Quote:
Originally Posted by TH0R View Post
I just came back from a patrol with 7 days long flat sea. I'm DL-ing this ASP. Many thanks.


EDIT: It can't seem to find the game. Says game time 00:00 every time I run it. XP here.
Have you renamed the SH4 exe file by any chance? The program looks for sh4.exe, so if you've renamed it, the program won't find the game.
The Joker is offline   Reply With Quote
Old 08-04-09, 11:25 PM   #5
Wilcke
The Old Man
 
Join Date: Jan 2007
Posts: 1,441
Downloads: 234
Uploads: 0
Default

The Joker,

Well done on this one. Simple, elegant and oh so satisfying just like well distilled tequila. A must have!

Thank you!
__________________
Wilcke


For the best in Fleet Boats go to: Submarine Sim Central. http://forum.kickinbak.com/index.php
Check out: A Brief Introduction to the Pacific Submarine War by Ducimus
http://www.subsim.com/radioroom/showthread.php?t=128185
Operation Monsun plus OMEGU, the #1 ATO Solution for SH4!

Signature Art by Gunfighter
Wilcke is offline   Reply With Quote
Old 08-05-09, 02:27 AM   #6
TH0R
XO
 
Join Date: Jul 2009
Location: Croatia
Posts: 420
Downloads: 52
Uploads: 0
Default

Quote:
Originally Posted by The Joker View Post
Have you renamed the SH4 exe file by any chance? The program looks for sh4.exe, so if you've renamed it, the program won't find the game.
No I didn't rename it. Does it might have something to do with the fact I didn't install the game to C:/program Files/Ubisoft...?
TH0R is offline   Reply With Quote
Old 08-05-09, 11:12 AM   #7
The Joker
Watch
 
Join Date: May 2007
Posts: 19
Downloads: 40
Uploads: 0
Default

Quote:
Originally Posted by TH0R View Post
No I didn't rename it. Does it might have something to do with the fact I didn't install the game to C:/program Files/Ubisoft...?
No, it doesn't matter where you install it, just what the name of the exe file is. When you run the program (with SH4 running), does the "SH4 PID" field show "????", or does it display numbers? Also, make sure you run the program as administrator, otherwise it may not be able to access sh4's memory.
The Joker is offline   Reply With Quote
Old 08-06-09, 05:53 AM   #8
TH0R
XO
 
Join Date: Jul 2009
Location: Croatia
Posts: 420
Downloads: 52
Uploads: 0
Default

Quote:
Originally Posted by The Joker View Post
No, it doesn't matter where you install it, just what the name of the exe file is. When you run the program (with SH4 running), does the "SH4 PID" field show "????", or does it display numbers? Also, make sure you run the program as administrator, otherwise it may not be able to access sh4's memory.
I'm running XP so it doesn't matter as I'm the only PC user. Yes the program shows PID numbers but thats all. All other values remain 000000. And I can't input any data on my own - 'set' buttons remain gray for me.
TH0R is offline   Reply With Quote
Old 08-06-09, 12:29 PM   #9
The Joker
Watch
 
Join Date: May 2007
Posts: 19
Downloads: 40
Uploads: 0
Default

Quote:
Originally Posted by TH0R View Post
I'm running XP so it doesn't matter as I'm the only PC user. Yes the program shows PID numbers but thats all. All other values remain 000000. And I can't input any data on my own - 'set' buttons remain gray for me.
Okay. If the PID field is showing numbers, that means it's found the program. So the problem is that it's not reading the values. When you run the program, are you in the middle of a mission? I mean, where you're actually playing the game, not at a menu or something. (The pause menu is okay, though.) You can test it quickly by starting a training mission. Also, are you running version 1.5?
The Joker is offline   Reply With Quote
Old 08-06-09, 02:12 PM   #10
DarkFish
Sea Lord
 
Join Date: Aug 2008
Location: Stinking drunk in Eindhoven, the Netherlands
Posts: 1,844
Downloads: 28
Uploads: 0
Default

I've got exactly the same problem. The PID field shows a number but all other values are 0. I too am running it as administrator on XP SP3, .NET framework v3.5. And I am running SH4 1.5 and am in the middle of a mission.

BTW, GREAT idea! could you do a similar thing for rain and fog? update this program to "SH4 Weather Changer Utility"?
__________________

DarkFish is offline   Reply With Quote
Old 08-06-09, 03:27 PM   #11
TH0R
XO
 
Join Date: Jul 2009
Location: Croatia
Posts: 420
Downloads: 52
Uploads: 0
Default

Quote:
Originally Posted by DarkFish View Post
I've got exactly the same problem. The PID field shows a number but all other values are 0. I too am running it as administrator on XP SP3, .NET framework v3.5. And I am running SH4 1.5 and am in the middle of a mission.

BTW, GREAT idea! could you do a similar thing for rain and fog? update this program to "SH4 Weather Changer Utility"?
That is exactly my kind of problem. I have XP SP3 + Net Framework 2, 3, 3.5.

Yes. I am playing the game, I am not in the menu. I'm on my 7th patrol in the career.
TH0R is offline   Reply With Quote
Old 08-07-09, 03:40 AM   #12
The Joker
Watch
 
Join Date: May 2007
Posts: 19
Downloads: 40
Uploads: 0
Default

Okay, so there's some other problem. I'll work on fixing it when I have some time. Sorry it didn't work.

As far as the fog and rain: The weather "system" seems to be scattered throughout the whole game. For example, the wind speed is set when the cloud shaders are reloaded. Anyway, I'll focus on getting this stupid thing working before adding any new features, but I do plan on doing more.
The Joker 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 10:59 AM.


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