SUBSIM Radio Room Forums

SUBSIM Radio Room Forums (https://www.subsim.com/radioroom/index.php)
-   SH4 Mods Workshop (https://www.subsim.com/radioroom/forumdisplay.php?f=219)
-   -   [REL] Bearing To AOB + Sonar FIX (https://www.subsim.com/radioroom/showthread.php?t=164448)

Nicolas 03-11-10 05:07 PM

[REL] Bearing To AOB + Sonar FIX
 
:hmmm:

Video (Mods used TMO, Env, Easy AOB, my own fixes.)

http://www.youtube.com/watch?v=PtNtJRUPNNU

Saw the difference? :yeah:


--------Sonar FIX, From ("[Test] AI-FIX" post):
Ok, i have been frustated because of enemy ai always detect you when you are in front of them, i made tests dumbing the enemy ai but it gets too easy, if you leave it normal is almost impossible sneak into convoys/tf.

It's hardcoded and the only posible way to fix this is patch the game, the files or modify data when the game is running.

The thing work like this:

- You try to sneak into a convoy, i set enemy sonar range 1 meter,
- You get detected by visual or hydrophone or when you fire torpedoes, i set the range to the original value, and the escorts can ping.
- The is a counter 'Lost contact time' that 'loops' until the escorts gives up, when that happen this counter is set to 0 and i set to 1 the sonar range again.

--------Bearing to AOB fix

This do the AOB in the PK, to change to reflect new bearing you send (SH3 like but only when you send bearing/range).

i had to do some math with asm. :doh:

--------

13/03. updated.
--------
The program now let you choose if you want enable both fixes, or only Bearing to AOB.
Changed from 4 to 1 (degrees) a value that validates if a bearing send is correct (comparing the previous one).
--------

Download:
http://www.filefront.com/16309923/SH...-SonarFIX.zip/

Use:
Copy the file to silent hunter 4 folder, run it, launch sh4, when sh4 is in the menu press Ctrl-Alt-T, or Ctrl-Alt-U to enable bearing to AOB only.
If you hear a beep it's enabled and it will be enabled until you close sh4, (also when enabled The labels "Bearing To AOB + Sonar FIX" turns red.)

Note:
- Only works with 1.5 version. It supposed to address problems with fleet boats only.
You can use it with or without any mod, only matters if is 1.5 game version.
- I have avast antivirus and it say nothing about the program but some other AV or security program may report something. Because it works with data in other process memory.

irish1958 03-11-10 06:36 PM

Thanks Nicolas; this solves real problems.

Nicolas 03-12-10 12:00 AM

Nobody told me nothing.
But i think i will stop here doing more of these kind of mods. Already subsim moderators were kind to allow the releases. And i don't want to abuse.

Thank you.

However i would like to help resolve in the future the fuel issue.

irish1958 03-12-10 09:07 AM

You are right; the refueling problem is a major issue that has not been solved. Fleet boats often traveled with the fleets which had refueling ships.
And I can't believed that if you run out of fuel 50 miles from a base you couldn't be refueled.

irish1958 03-12-10 09:31 AM

Quote:

Originally Posted by Nicolas (Post 1309932)
Nobody told me nothing.

I guess you mean lack of feedback. If a mod is clear and has no problems, you won't get any.
I have had over 1,000 downloads of my mods, and have received ZERO feedback. None, zip, nada.
Either they are so awful that they are discarded immediately, or they are so clear that they need no comment.
Nicolas, your mods are all terrific and solve real problems in the games you have modified. Please don't give up.

TH0R 03-12-10 10:30 AM

I am very interested in this mod. Many thanks for this.

But I am also curious - I see it is only an .exe which needs to be run after the game has been lunched. Does it change (temporary overwrites) files or just changes their values? I am asking this because of the compatibility.

There is no question about it, Bearing to AOB would be very useful in RFB. Which leads me to another question - is this how TDC could have been used in real life?

Nicolas 03-12-10 11:31 AM

"I guess you mean lack of feedback."

Irish, yes i feel like that sometimes it's true.
But i meant more to say, that the fix writes in sh4 'memory space' when it is running, and it's a hack. When Sh4 closes the code just dissapear with the game.
It's like a 'Trainer':
http://en.wikipedia.org/wiki/Cheating_in_video_games
See 'Trainer' section and 'Code injection'

This kind of hack is just innocent for me. And more when it suppose to address things the game makers left behind :stare::shifty:. Others don't feel like that.

I really had fun making this, learning assembler is actually a lot easier than i expected. It's something i always wanted to do...

Cheers.

virtualpender 03-12-10 12:04 PM

I concur - thank you, Nicolas. This was definitely needed. I have not tried this little fix yet but I am running the original AI FIX and it makes attacks feel more realistic. I appreciate you making this happen. Well done.

Munchausen 03-12-10 02:18 PM

Quote:

Originally Posted by Nicolas (Post 1310824)
This kind of hack is just innocent for me.

:hmmm: The word "hack" gets people nervous ... try using the phrase "unofficial patch" instead.

Nicolas 03-12-10 03:18 PM

Yeah. I know. But what i can do to it?

Hacking (English verb to hack, singular noun a hack) refers to the re-configuring or re-programming of a system to function in ways not facilitated by the owner, administrator, or designer. The term(s) have several related meanings in the technology and computer science fields, wherein a "hack" may refer to a clever or quick fix to a computer program problem, or to what may be perceived to be a clumsy or inelegant (but usually relatively quick) solution to a problem (see also "kludge").

:D

TH0R 03-12-10 05:06 PM

May I kindly ask for a stand alone Bearing to AOB mod? DD's in RFB are 'domestic' enough (for me at least). :D

Hylander_1314 03-12-10 10:47 PM

Thanks Nicholas for your unofficial patch! I was always frustrated about ai destroyers. Yeah it's fun to have them chase you and thrilling trying to outmanoeuver them, but after a while, it gets irritating when you can't even get close to a convoy or task force to make an attack.

Munchausen 03-13-10 01:52 PM

Quote:

Originally Posted by Nicolas (Post 1311344)
Yeah. I know. But what i can do to it?

:cool: Your quote looks to be taken directly from Wikipedia. Further down the same page, Wiki also says (about the word "hack"):
Quote:

The term has since acquired an additional and now more common meaning, since approximately the 1980s; this more modern definition was initially associated with crackers. This growing use of the term "hack" is to refer to a program that (sometimes illegally) modifies another program, often a computer game, giving the user access to features otherwise inaccessible to them.
... and also:
Quote:

Companies take different attitudes towards such practices, ranging from open acceptance (such as Texas Instruments for its graphing calculators and Lego for its Lego Mindstorms robotics gear) to outright hostility (such as Microsoft's attempts to lock out Xbox hackers or the DRM routines on Blu-ray Disc players designed to sabotage compromised players).
:03: But Wikipedia has this to say about the word "patch":
Quote:

Programmers publish and apply patches in various forms. Because proprietary software authors withhold their source code, their patches are distributed as binary executables instead of source. This type of patch modifies the program executable—the program the user actually runs—either by modifying the binary file to include the fixes or by completely replacing it.
So, you be the judge ... it's your mod. Which definition does it best fit?

Nicolas 03-13-10 05:13 PM

Quote:

Originally Posted by TH0R (Post 1311607)
May I kindly ask for a stand alone Bearing to AOB mod? DD's in RFB are 'domestic' enough (for me at least). :D

Yes. It's not hard at all.

Nicolas 03-13-10 06:36 PM

Quote:

Originally Posted by Munchausen (Post 1313237)
So, you be the judge ... it's your mod. Which definition does it best fit?

A good intended strange fix.


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

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.