![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
|
|||||||||
![]() |
|
|
Thread Tools | Display Modes |
|
|
04-06-14, 03:16 PM
|
#1 |
|
Ace of the deep .
|
How do you work out the direction of the flag in relation to the speed of the vessel ?
|
|
|
04-06-14, 03:58 PM
|
#2 | |
|
Black Magic
![]() |
Quote:
![]() For your question see here: http://www.subsim.com/radioroom/show...postcount=3117 I'm missing something big time and I just can't figure out what it is ![]() Basically what I'm trying to solve is: flag has yaw value that puts it in line with course of ship (it's always parallel with length of unit) I'm trying to get wind speed/direction to alter this yaw value |
|
|
|
04-06-14, 04:27 PM
|
#3 |
|
Samurai Navy
![]() |
Would this also work for flags attached to the submarine by mods? What exactly is the problem?
|
|
|
04-08-14, 06:01 PM
|
#4 | |
|
Black Magic
![]() |
Quote:
![]() Finishing up the patch currently. What a freakin pain in the you-know-what this patch was. There were so many things that I had to discover/figure out first and through trial and error. Those discoveries though are needed for some future patches - I had to do it now or later. These new discoveries will help me in trying to develop a signal light for the player's unit. My idea is to attach a searchlight to the player's unit but have it hidden so it's not rendered. Then when you ask to use the signal light (via a new game command) it shows and you can rotate it and turn it on/off. So it would actually be able to be used as signal light to signal to other players (communicate to other players via light messages) or as a search light at night time How this new flags affected by wind patch works: - I use a vector to model ship's heading and speed - I use a vector to model wind's direction and speed Then using vector math I add the two vectors together. Convert the resultant vector into polar coordinates. This gives me a magnitude and an angle. The angle is the angle the flag will reside at on the unit. The magnitude is not being used but could be later (scaling of flag - i.e. if magnitude is very small then render flag small thus simulating flag not extended due to wind) By doing the above the physics of the flag is modeled. This means unit's speed and heading and wind's speed and heading determine the resultant angle of the flag. Let's say unit is heading 270 @ 5 knots. Wind direction is 45 degrees @ 5 knots. The flag will be facing ~112 degrees: No wind: <-------unit @ 5 knots ------ flag @ 5 knots-------> With wind at 45 degrees @ 5 knots: <-------unit @ 5 knots \ --------------------------------\ ---------------------------------------\ flag As in real life the game also uses how wind is defined. If you say wind is 45 degrees @ 5 knots that means it's blowing from 45 degrees to 225 degrees (SW) at 5 knots. In the example above if the unit slows down then the flag's angle will increase (>112 degrees) or become more out of line with unit. If the unit speeds up the flag's angle will decrease (<112 degrees) or become more in line with the unit. Because of how this patch works none of the flags defined in the stock flags.dat have GlobalWind controllers attached to them. Those will need to be added in order to see this patch work
|
|
|
|
04-08-14, 09:16 PM
|
#5 |
|
Black Magic
![]() |
Time to add a completely new idea/feature to the Silent Hunter franchise that's never been available before in any of it's titles
![]() v1.0.162.0 released. See post #1 Starting with v1.0.162.0 added a new game file to the patcher: kernel.dll. Add a new patch to kernel: Objects follow wind direction. This new patch will have any objects that have _FLG in their name (flags for one) AND a GlobalWind controller attached to them take wind direction and speed into consideration. See the Files= and Notes= of the patch for more info. |
|
|
04-09-14, 12:42 AM
|
#6 | |
|
Count Dracula
|
Quote:
awesome work tdw thx
__________________
|
|
|
|
04-09-14, 03:25 AM
|
#7 |
|
Sparky
![]() Join Date: Aug 2005
Posts: 151
Downloads: 500
Uploads: 0
|
WOW!......Just WOW!!
![]() ![]() |
|
|
04-10-14, 12:12 PM
|
#8 |
|
Sea Lord
![]() Join Date: Jun 2008
Location: Noch dabei
Posts: 1,732
Downloads: 618
Uploads: 0
|
|
|
|
04-12-14, 03:09 PM
|
#9 |
|
Ocean Warrior
![]() |
Hi TDW
![]() Incredible work.. really.. ![]() That's Ru manual for this (latest) version - http://rghost.ru/54049368
__________________
. Where does human stupidity end? . ![]() ![]() El sueño de la razón produce monstruos © - and for some people awakening will be cruel |
|
|
04-12-14, 03:38 PM
|
#10 |
|
Grey Wolf
![]() Join Date: Apr 2005
Location: UK
Posts: 906
Downloads: 673
Uploads: 0
|
Hiya's,
Amazing work by all involved ![]() Installed sh5 after a few yrs ashore lol The progress seems amazing to say the least I took the plunge and have got my head around most of your utils TDW But one well two things i can't quite figure out Maybe someone can ...... I have just got this error through the debugger .......... which is a first and happened in the last 30mins (only time since messing with patcher/viewer/mods) [5100] SH_ServerOrbitProtocol.cpp (111): Failed to read packet from client. [5088] ..\..\..\..\..\..\Jenkins_p4ws\UPLAY-PC-STREAMS\client\release_iron_maiden_patch2-live\shared\libs\services\src\services\UplayCoreFa cadeGetActionsJob.cpp(123) : Expired token was refreshed, but subsequent call also failed, due to to access violation. [5088] ..\..\..\..\..\..\Jenkins_p4ws\UPLAY-PC-STREAMS\client\release_iron_maiden_patch2-live\shared\libs\services\src\services\UplayCoreFa cadeGetRewardsJob.cpp(128) : Expired token was refreshed, but subsequent call also failed, due to to access violation. I have for several days been happily trying the amazing ai now and of course the special-singles In the generic patcher, i adjust etc (even got to page 147 lastnight/today reading for help/hints) snapshot-remove all mods-add new snapshot etc etc, only to find after a enable-disable-all 3 for the damn orbit i get error on entry to game (about can't connect etc) I have tried this so many times (To use: Disable ALL Orbit listener patches in the sh5.exe using the OLD version of the app first! Install new version of app Enable Disable UPlay browser patch enabling all 3 changes If you do not enable change 3 then you will NOT be able to load/save/create career games) Been trying to remove orbit, sods law as i can't i get a damn error lmao Would it help if i drop all jsgme mods etc / then default patches back to vanilla (1.2) in games dir (with my saved items from game directory 1.2) Then, now i know what i'm doing option-wise in the patcher try again with this latest version (which i'm using now anyways) Sorry to waffle I know it's what i've done or doing, but can't quite grasp the fix lol Cheers to All Def ps : i use the patcher as a standalone from folder on desktop, my optionviewer i have through jsgme (for sticking the snorkel options, but i aint got that far to use snorkel but i live in hope Def
__________________
Have Fun Bye Def Last edited by Defiance; 04-12-14 at 03:43 PM. Reason: added text |
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
