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)
-   -   [tec] Need help with clickable TBT while on bridge (https://www.subsim.com/radioroom/showthread.php?t=129237)

Ducimus 01-18-08 02:34 PM

[tec] Need help with clickable TBT while on bridge
 
Ok, ive been spending alot of time in S3D lately. I blame skwasjer for fueling my modding addiction. Anyway, im at an impass right now because i cannot understand why it this doesnt work!

First, after much digging around, i found that the gyocompass, and throttle gauge you see on the bridge are located in the US_Sensors.* files. (locating those, helped me locate where the TBT stuff is being kept)

So then, let me explain my findings:

http://www.ducimus.net/sh4/tbt_help_01.jpg
It appears theres two acutal views to the TBT, similar to how the attack periscope works where you can "take your eye" off of it , but still be attached to it. The object in this screenshot here i believe is basically saying, "If your on the bridge, click me, and i will give you a zoomed in view of the TBT, but not acutally looking inside the TBT"


http://www.ducimus.net/sh4/tbt_help_02.jpg
The object here, appears to be saying, "If your looking at the TBT, click me again, and you'll be in the TBT view.

Sounds pretty cool so far. More robust then i gave it credit for. Hell, its better then Sh3's functionality of this from the looks of things.

So then, onto our next slide:
http://www.ducimus.net/sh4/tbt_help_03.jpg
Both of the above focusable objects have a child to parent relationship with this object (see ID's and parent ID's).


So, now the big question is,..

why won't it work? Ive tried adding tooltip info to all of the above, and they never show up in game. Ive said, time and time again, 3d modeling is not my forte. Im basicaly swinging a sword in a pitch black room, hoping i get lucky hit.

sergbuto 01-18-08 03:07 PM

I had a brief try before the patch to make a clickable TBT. It did not work out. My guess is that this procedure does not work for cfg# nodes.

Ducimus 01-18-08 03:27 PM

Quote:

Originally Posted by sergbuto
I had a brief try before the patch to make a clickable TBT. It did not work out. My guess is that this procedure does not work for cfg# nodes.

Was just experimenting with the CFG nodes. No luck as of yet.

skwasjer 01-18-08 04:47 PM

I think you have to start playing with the conning tower files, and work with the TBT node (the placeholder). You can attach a Focusable3DObj in the .sim file and a CamUserData in the .cam file. I'll have a look as well :up:

sergbuto 01-18-08 04:58 PM

Quote:

Originally Posted by Ducimus
Was just experimenting with the CFG nodes. No luck as of yet.

I did not mean the actual cfg# nodes, I meant what is sitting on them or similar nodes. I should've said "cfg# nodes/external objects". In this context what one could check is to put the 3D model of TBT in conning tower's Dat file as an internal object or to merge the conning tower with sub's DAT file in the submarine folder and see if clickable TBT would work.

Ducimus 01-18-08 05:04 PM

The acutal TBT that is rendered, im thinking is in the tower dat files. I can add a second one via the sub.eqp file, and i can remove all stuff but the TBT from said eqp file. So the TBT assignment has to be in the dat file.

I tried adding a focusable object in the tower.sim file, and gave it a child relationship to the TBT model in the dat file, but it didnt work. I didnt however, try adding anything to the cam file.

skwasjer 01-18-08 05:07 PM

Quote:

Originally Posted by Ducimus
The acutal TBT that is rendered, im thinking is in the tower dat files. I can add a second one via the sub.eqp file, and i can remove all stuff but the TBT from said eqp file. So the TBT assignment has to be in the dat file.

I tried adding a focusable object in the tower.sim file, and gave it a child relationship to the TBT model in the dat file, but it didnt work. I didnt however, try adding anything to the cam file.

No, the TBT model sits in the sensors_sub_us.dat. The node that holds the TBT_Base is the node that is placed on every dummy_tbt node in the tower. Like I said above, I think the focusable should be added in those files and linked to the dummy. SH3 has it this way as well.

Mush Martin 01-18-08 05:10 PM

To my amateur ear this sounds like the same visual effect as the
periscope in shIII where if you clicked you would get a close up.
if you clicked again you would be looking through the eyepiece.

now I am definetely not the guy to know but shouldnt you find
a camera control in the cam file. as far as the triggered first view
goes anyway the other is just a command to switch to the existing
eyepiece view.

M:hmm:

Ducimus 01-18-08 05:24 PM

Quote:

Originally Posted by skwasjer
No, the TBT model sits in the sensors_sub_us.dat. The node that holds the TBT_Base is the node that is placed on every dummy_tbt node in the tower. Like I said above, I think the focusable should be added in those files and linked to the dummy. SH3 has it this way as well.

Ahh ok.. thats what was confusing me. I was staring at the dummy node. How ironic. :rotfl:

skwasjer 01-18-08 05:39 PM

Anyway, I just tried it and it doesn't seem to work. I just don't have enough experience with the files... :nope:

[edit] Just had another look at SH3. Seems like it's a little different after all. I think you should stop listening to me... :rotfl:


All times are GMT -5. The time now is 08:30 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.