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 02-18-14, 09:12 PM   #2866
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,962
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by gap View Post
Is there a special routine telling sea units that they must reach a point on map by following the campaign nodes? Thinking out loud, your code might be bypassing it



Probably not relevant, but under this respect coastal artillery is more similar to aircraft than it is to sea units: I am sure you are aware that their cannon controller is directly linked to the main model (through sim file indeed), rather than to an external gun equipment.
For the first one no. My code doesn't bypass anything. All it does is allow the game to set the pointer to the contact detected by another unit for the unit using the existing game code.

The coastal artillery is completely different than aircraft because of the cmdr_xxxx controller assigned to it. This controller does not have the routines that iterate over all the unit's equipment and activate weapons if unit has a contact. This is a major blunder by the devs
TheDarkWraith is offline   Reply With Quote
Old 02-19-14, 08:56 AM   #2867
Gotmilk
Planesman
 
Join Date: Sep 2007
Posts: 192
Downloads: 35
Uploads: 0
Default

@ TheDarkWraith i am so sorry for hijacking this thread like this but i dont know how to reach you. I cannot contact you in PM because posts have exceeded.

Could you take a look at this thread and give your input ???? http://www.subsim.com/radioroom/showthread.php?t=208057

I am so close to having a working Oculus solution for SH5

Thanks for your time.
Gotmilk is offline   Reply With Quote
Old 02-19-14, 10:05 AM   #2868
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,962
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by Gotmilk View Post
@ TheDarkWraith i am so sorry for hijacking this thread like this but i dont know how to reach you. I cannot contact you in PM because posts have exceeded.

Could you take a look at this thread and give your input ???? http://www.subsim.com/radioroom/showthread.php?t=208057

I am so close to having a working Oculus solution for SH5

Thanks for your time.
The default camera (or you could call it the captain's camera) does not have a camera entry defined for it in the camera.cam file. It is hard coded in the sh5.exe.

I know where the game switches cameras so I'll have a look at it when I have free time. Currently concentrating on getting the coastal guns to fire their guns (already fixed them not being able to acquire and track a contact)
TheDarkWraith is offline   Reply With Quote
Old 02-19-14, 10:20 AM   #2869
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,214
Downloads: 793
Uploads: 10
Default

Quote:
Originally Posted by TheDarkWraith View Post
The coastal artillery is completely different than aircraft because of the cmdr_xxxx controller assigned to it. This controller does not have the routines that iterate over all the unit's equipment and activate weapons if unit has a contact. This is a major blunder by the devs
Someone (I think it was Mikemike47 or Serge65) reported that coastal artillery worked in SH4. It is probably easier for you to build from scratch the SH5's missing routine than looking at SH4's code, but I thought I would inform you anyway
__________________
_____________________
|May the Force be with you!|
...\/
gap is offline   Reply With Quote
Old 02-19-14, 10:33 AM   #2870
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,962
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by gap View Post
Someone (I think it was Mikemike47 or Serge65) reported that coastal artillery worked in SH4. It is probably easier for you to build from scratch the SH5's missing routine than looking at SH4's code, but I thought I would inform you anyway
As I have not mapped out anything in any of the SH4 files they do me absolutely no good. I would be starting from scratch looking at it's files in a debugger.

Right now I am writing the missing routines from scratch for SH5 that are missing for the coastal defenses. This is a long and slow process
TheDarkWraith is offline   Reply With Quote
Old 02-19-14, 10:41 AM   #2871
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,214
Downloads: 793
Uploads: 10
Default

Quote:
Originally Posted by TheDarkWraith View Post
As I have not mapped out anything in any of the SH4 files they do me absolutely no good. I would be starting from scratch looking at it's files in a debugger.
I suspected it

Quote:
Originally Posted by TheDarkWraith View Post
Right now I am writing the missing routines from scratch for SH5 that are missing for the coastal defenses. This is a long and slow process
Sorry, I am afraid that, other than with morale support, no one here will be able to help you on this task
__________________
_____________________
|May the Force be with you!|
...\/
gap is offline   Reply With Quote
Old 02-19-14, 12:01 PM   #2872
Mikemike47
Grey Wolf
 
Join Date: Sep 2006
Location: NY
Posts: 994
Downloads: 1078
Uploads: 6
Default

Quote:
Originally Posted by gap View Post
Someone (I think it was Mikemike47 or Serge65) reported that coastal artillery worked in SH4.
Yep, it was me.
Quote:
Originally Posted by gap View Post
Sorry, I am afraid that, other than with morale support, no one here will be able to help you on this task
I have faith in TDW and gap! More morale support given.
Mikemike47 is offline   Reply With Quote
Old 02-19-14, 09:17 PM   #2873
THE_MASK
Ace of the deep .
 
THE_MASK's Avatar
 
Join Date: Jan 2006
Posts: 9,226
Downloads: 901
Uploads: 73


Default

Which zones cfg do I use with these mods ?
FX_Update_0_0_22_ByTheDarkWraith
OPEN HORIZONS II v2.4
SM_Wounded_Unit_Radioing
AI_Crew_Damage_Control_Revised_Zones_cfg_Based_On_ FX_Update_By_TheDarkWraith

THE_MASK is offline   Reply With Quote
Old 02-20-14, 08:30 AM   #2874
Gotmilk
Planesman
 
Join Date: Sep 2007
Posts: 192
Downloads: 35
Uploads: 0
Default

thansk for the answer TDW. Take all the time you need. I am a patient person and i am no hurry with it. I got to tell that SH5 with Oculus experience is wonderful and it works really well. Especially when consumer version with HD screen comes out.
Gotmilk is offline   Reply With Quote
Old 02-20-14, 10:15 AM   #2875
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,962
Downloads: 147
Uploads: 5


Default

The coastal guns firing their guns outlook looks very bleak. They are missing an important pointer and they are missing a pointer to their AI routines (for manipulating their weapons, firing their weapons, etc.). I have one last thing to try and if that doesn't pan out then coastal guns will not be able to fire weapons. I have fixed them in the regard that they can acquire contacts and radio them out to other units though.

What is interesting though is they have a pointer to AI routines for manipulating any searchlights attached to them. I have not tried attaching any searchlights to them though to see if they work or not.
TheDarkWraith is offline   Reply With Quote
Old 02-20-14, 12:56 PM   #2876
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,214
Downloads: 793
Uploads: 10
Default

Quote:
Originally Posted by TheDarkWraith View Post
The coastal guns firing their guns outlook looks very bleak.

...

I have one last thing to try and if that doesn't pan out then coastal guns will not be able to fire weapons.


We rely on you, fingers crossed

Quote:
Originally Posted by TheDarkWraith View Post
What is interesting though is they have a pointer to AI routines for manipulating any searchlights attached to them. I have not tried attaching any searchlights to them though to see if they work or not.
That would be awesome. We could have artillery coastal defenses (hoping that you can still fix them), sonar/magnetic detection coastal defenses, and visual detection coastal defenses equipped with searchlights

By the way, can you make them to be attacked by enemy surface/air units? During my last tests with them, they were ignored by the AI, even though they were reported by my watch crew.
__________________
_____________________
|May the Force be with you!|
...\/
gap is offline   Reply With Quote
Old 02-20-14, 01:03 PM   #2877
tonschk
Admiral
 
Join Date: Mar 2007
Posts: 2,200
Downloads: 172
Uploads: 0
Default



Quote:
Originally Posted by gap View Post
We rely on you, fingers crossed
__________________
What we do in life echoes in Eternity
tonschk is offline   Reply With Quote
Old 02-20-14, 06:57 PM   #2878
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,962
Downloads: 147
Uploads: 5


Default

v1.0.152.0 released. See post #1

It just wasn't in the cards for the artillery (coastal defenses) and anti-aircraft units to fire their guns when they have a contact. They are able to acquire and track contacts though with the new patch (and radio that contact to other units)
TheDarkWraith is offline   Reply With Quote
Old 02-20-14, 07:06 PM   #2879
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,962
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by Gotmilk View Post
thansk for the answer TDW. Take all the time you need. I am a patient person and i am no hurry with it. I got to tell that SH5 with Oculus experience is wonderful and it works really well. Especially when consumer version with HD screen comes out.
send me the files you are currently using for this (camera.cam, etc.)
TheDarkWraith is offline   Reply With Quote
Old 02-20-14, 07:55 PM   #2880
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,214
Downloads: 793
Uploads: 10
Default

Quote:
Originally Posted by TheDarkWraith View Post
v1.0.152.0 released. See post #1


What about my questions?

Quote:
Originally Posted by gap View Post
...can you make them [coastal guns] to be attacked by enemy surface/air units? During my last tests with them, they were ignored by the AI, even though they were reported by my watch crew.
Quote:
Originally Posted by TheDarkWraith View Post
It just wasn't in the cards for the artillery (coastal defenses) and anti-aircraft units to fire their guns when they have a contact.
I still don't give up my hopes on this subject. Many times you gave up on a particular task, and then, against any prediction, you came back after a while with a brilliant solution.
__________________
_____________________
|May the Force be with you!|
...\/
gap 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 06:56 AM.


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.