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

Reply
 
Thread Tools Display Modes
Old 07-26-07, 04:29 AM   #1
flakmonkey
Grey Wolf
 
Join Date: Jul 2006
Location: Staffordshire, Uk
Posts: 944
Downloads: 78
Uploads: 0


Default Help with PeriscopeTwistyThingyMod...

Well i thought it`d be nice to add the twisty wake deflector thingy to the periscopes.

There seems to be something odd going on though...
The periscopes should use NSS_Uboat7c_hull.tga as their texture, however as you can see in the shots, the texture being used is actually Turm7c_1_deck.tga.

http://i201.photobucket.com/albums/aa186/tris1066/bug1.jpg
http://i201.photobucket.com/albums/aa186/tris1066/bug2.jpg
http://i201.photobucket.com/albums/aa186/tris1066/bug3.jpg


I cant figure out just where this is coming from, the .obj files have NO references to this texture anywhere in them, the only texture in the file is NSS_Uboat7c_hull.tga, and yet still sh3 insists on using this darn deck texture.

Ive tried everything but whatever i do the model still ends up with the wrong texture, whats going on??

(The new models were imported with version 1 of pack3d as versions 4-5 wont open the turm dat files and versions 2-3 wont import .obj files.)
__________________
flakmonkey is offline   Reply With Quote
Old 07-26-07, 04:50 AM   #2
Alex
Dominant Wolf
 
Join Date: Nov 2006
Posts: 2,143
Downloads: 30
Uploads: 0
Default

No idea on how to help you, mate... But I want to say that it's a pretty detail all the same. Keep up the great work !
__________________
Alex is offline   Reply With Quote
Old 07-26-07, 05:02 AM   #3
DivingDuck
Grey Wolf
 
Join Date: Jul 2006
Location: Germany
Posts: 902
Downloads: 10
Uploads: 1
Default

Moin FM,

is your new twisted object a separate object you added to the *.dat or did you change the persicope´s 3d model?

which Turm...dat is it?

The *.dat files I checked have more than one texture node. So, if you use a separate model, the 3d models properties node (4/100) is pointing to the wrong texture. But I guess you´ve checked that already. If you changed the periscope model, make sure to use the same faces ID for the twisted thingy or adjust the properties node to use the correct texture.
Assuming you have used new face id´s for your thingy, here is what SHIII does. The properties node holds info about which texture to use for which face id. Let´s say you have 3 different face ids and 3 different textures. No problem at all. If you add a 4th face id, SHIII counts as follows:
  • face id #1 - texture #1
  • face id #2 - texture #2
  • face id #3 - texture #3
  • face id #4 - texture #1 ... (as there is no #4, SHIII starts counting at #1)
You´ll have to change the respective entries in the 4/100 properties node to tell SHIII there is a 4th texture to be used or assign the same face id.

Regards,
DD
DivingDuck is offline   Reply With Quote
Old 07-26-07, 11:17 AM   #4
dmlavan
Weps
 
Join Date: Oct 2006
Location: Jacksonville, FL
Posts: 351
Downloads: 69
Uploads: 0
Default

Flakmonkey,
This would be a great addition. I tried to do this but it greatly exceeded my meager modding capabilities.
dmlavan is offline   Reply With Quote
Old 07-27-07, 03:35 AM   #5
flakmonkey
Grey Wolf
 
Join Date: Jul 2006
Location: Staffordshire, Uk
Posts: 944
Downloads: 78
Uploads: 0


Default

It seems to be exceeding mine too.... i fall apart when it comes to hex editing etc... I guess im just more of a modeller than a modder.
__________________
flakmonkey is offline   Reply With Quote
Old 07-27-07, 03:50 AM   #6
DivingDuck
Grey Wolf
 
Join Date: Jul 2006
Location: Germany
Posts: 902
Downloads: 10
Uploads: 1
Default

Moin FM,

when I started modding i was a "never-touch-any-hex-code"-modeller myself.

Here´s my offer to you:
  1. tell me which *.dat you changed and I´ll guide you through hex-editing
  2. send me the *.dat and I´ll have a look at it
Regards,
DD
DivingDuck is offline   Reply With Quote
Old 07-27-07, 06:15 AM   #7
flakmonkey
Grey Wolf
 
Join Date: Jul 2006
Location: Staffordshire, Uk
Posts: 944
Downloads: 78
Uploads: 0


Default

Thanks for the kind offer, the dat im working with is Turm7c_1_hd.dat

Although once its up and working i hope to add it to all type7 and type9 turms.

Ive uploaded the edited dat to savefile so you can take a look.
http://www.savefile.com/files/921836


I edited the original scope models to include the twisty thing rather than add it as a seperate object, the only texture they should use is NSS_Uboat7c_hull.tga.
The original scopes also used Turm7c_1_deck.tga on a few faces, but for this mod id prefer the whole scope to use only the hull texture.

The objects i changed within the .dat are:
Turm7c_1_periscop F_High
Turm7c_1_periscop B_High
SHD_Turm7c_1_periscop F_High
SHD_Turm7c_1_periscop B_High

+Can you reccomend any good hex editing software, preferably free or at least cheap.

Thanks again - FM
__________________
flakmonkey is offline   Reply With Quote
Old 07-27-07, 06:52 AM   #8
ref
Grey Wolf
 
Join Date: Nov 2005
Location: Mar del Plata, Argentina
Posts: 871
Downloads: 0
Uploads: 0
Default

Quote:
Originally Posted by flakmonkey
I cant figure out just where this is coming from, the .obj files have NO references to this texture anywhere in them, the only texture in the file is NSS_Uboat7c_hull.tga, and yet still sh3 insists on using this darn deck texture.[/COLOR]

Ive tried everything but whatever i do the model still ends up with the wrong texture, whats going on??

(The new models were imported with version 1 of pack3d as versions 4-5 wont open the turm dat files and versions 2-3 wont import .obj files.)
Open the mtl file with a text editor, and make sure the entry for your texture is in the first place
For example :
#MTL generated by Pack3D NCA_Tuscaloosa.dat
newmtl NCA_Tuscaloosa
Ka 0.0 0.0 0.0
Kd 0.3 0.3 0.3
Ks 0.1 0.1 0.1
d 1.0
illum 1
Ns 0
map_Kd NCA_Tuscaloosa_T01.tga

newmtl Tuscaloosa_deck
Ka 0.0 0.0 0.0
Kd 0.3 0.3 0.3
Ks 0.1 0.1 0.1
d 1.0
illum 1
Ns 0
map_Kd Tuscaloosa_deck.tga
Here you have two textures NCA_Tuscaloosa and Tuscaloosa_deck, pack 3d uses the order in the mtl file to import the object so with this mtl file NCA_Tuscaloosa=material 0 and Tuscaloosa_deck=material 1
#MTL generated by Pack3D NCA_Tuscaloosa.dat
newmtl Tuscaloosa_deck
Ka 0.0 0.0 0.0
Kd 0.3 0.3 0.3
Ks 0.1 0.1 0.1
d 1.0
illum 1
Ns 0
map_Kd Tuscaloosa_deck.tga

newmtl NCA_Tuscaloosa
Ka 0.0 0.0 0.0
Kd 0.3 0.3 0.3
Ks 0.1 0.1 0.1
d 1.0
illum 1
Ns 0
map_Kd NCA_Tuscaloosa_T01.tga
with this mtl file NCA_Tuscaloosa=material 1 and Tuscaloosa_deck=material 0, the names you use are discarded, just the positoin in the mtl file matters.

The periscope has two textures, hull first, deck second, remember pack 3d uses the order in the mtl file when it imports the object

Ref
__________________
ref is offline   Reply With Quote
Old 07-27-07, 09:05 AM   #9
DivingDuck
Grey Wolf
 
Join Date: Jul 2006
Location: Germany
Posts: 902
Downloads: 10
Uploads: 1
Default

Moin,
Quote:
Originally Posted by flakmonkey

The objects i changed within the .dat are:
Turm7c_1_periscop F_High
Turm7c_1_periscop B_High
SHD_Turm7c_1_periscop F_High
SHD_Turm7c_1_periscop B_High

+Can you reccomend any good hex editing software, preferably free or at least cheap.

Thanks again - FM
I would recommend http://hexworkshop.com (ca 50USD), a free one that will do fine for the beginning is Nextsoft Hex-Editor (http://nextsoft.de).

I´ve checked your files. You´ve used face id 1 only. The object properties (F_High / B_High) addresses two different textures. But that´s no problem at all.
Use the tweakfile I´ve written.
  1. open turm7c_1_hd.dat with Pack3d (to find out the texture´s id)
  2. open the tweakfile with MiniTweaker
  3. put in the id of the texture you wish to use (all slots the same in this case)
That will do.

See pic below:




Download the tweakfile here.

Regards,
DD
DivingDuck is offline   Reply With Quote
Old 07-27-07, 03:52 PM   #10
dmlavan
Weps
 
Join Date: Oct 2006
Location: Jacksonville, FL
Posts: 351
Downloads: 69
Uploads: 0
Default

DD - This place will become boring if you ever quit. Every time I log in you're either working on or helping someone with a new mod!
dmlavan is offline   Reply With Quote
Old 07-27-07, 08:32 PM   #11
rascal101
Grey Wolf
 
Join Date: Jun 2006
Posts: 769
Downloads: 200
Uploads: 0
Default Nice twisty thing

Jesus, been away from SH3 for a wile now look what you guys have been up to, can this be downloaded yet or is it still a work in progress

Quote:
Originally Posted by DivingDuck
Moin,
Quote:
Originally Posted by flakmonkey

The objects i changed within the .dat are:
Turm7c_1_periscop F_High
Turm7c_1_periscop B_High
SHD_Turm7c_1_periscop F_High
SHD_Turm7c_1_periscop B_High

+Can you reccomend any good hex editing software, preferably free or at least cheap.

Thanks again - FM
I would recommend http://hexworkshop.com (ca 50USD), a free one that will do fine for the beginning is Nextsoft Hex-Editor (http://nextsoft.de).

I´ve checked your files. You´ve used face id 1 only. The object properties (F_High / B_High) addresses two different textures. But that´s no problem at all.
Use the tweakfile I´ve written.
  1. open turm7c_1_hd.dat with Pack3d (to find out the texture´s id)
  2. open the tweakfile with MiniTweaker
  3. put in the id of the texture you wish to use (all slots the same in this case)
That will do.

See pic below:




Download the tweakfile here.

Regards,
DD
rascal101 is offline   Reply With Quote
Old 07-28-07, 08:48 AM   #12
flakmonkey
Grey Wolf
 
Join Date: Jul 2006
Location: Staffordshire, Uk
Posts: 944
Downloads: 78
Uploads: 0


Default

DD ... your a star
__________________
flakmonkey is offline   Reply With Quote
Old 07-28-07, 09:49 AM   #13
A6Intruder
Seasoned Skipper
 
Join Date: Aug 2006
Location: Germany
Posts: 663
Downloads: 22
Uploads: 0
Quote:
Originally Posted by flakmonkey
DD ... your a star
......with helping hands
Kind regards
A6Intruder is offline   Reply With Quote
Old 07-28-07, 09:53 AM   #14
Hellraiser
Gunner
 
Join Date: Mar 2007
Location: Los Angeles
Posts: 99
Downloads: 82
Uploads: 0
Default Amazing

They;re right DD. You are one special guy around here. If the community ever loses you It will be a sad day.

Thanks for all that you do!
Hellraiser is offline   Reply With Quote
Old 07-28-07, 10:19 AM   #15
Alex
Dominant Wolf
 
Join Date: Nov 2006
Posts: 2,143
Downloads: 30
Uploads: 0
Default

Quote:
Originally Posted by DivingDuck
__________________
Alex 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 02:37 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.