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] Sh3 to SH4. The Grey Wolves way. (https://www.subsim.com/radioroom/showthread.php?t=239270)

Jeff-Groves 11-27-18 05:27 PM

Sh3 to SH4. The Grey Wolves way.
 
Years ago, a very brilliant programmer created this little gem for GWX4.
A project dropped based on the promise of what SH5 would be.

ref, a legend that needs no explanation, wrote many Tools for the GWX Team in the time that S3D was not yet started.

Since it has been over 9 years since last I heard from him. And he gave me his source code? I will now release to everyone his fantastic Tool for converting SH3 Units to SH4.

Given the state of SH5? This program will assist anyone to convert SH3 Units to SH5 also.

http://www.mediafire.com/file/py9zqj...2b/Sh3ToSh4.7z

propbeanie 11-27-18 10:04 PM

Jeff, thank you, and thank you to ref. :salute:

TheGreatElector 11-27-18 10:50 PM

Nice, thanks!:Kaleun_Salute:

KaleunMarco 11-27-18 11:06 PM

Quote:

Originally Posted by Jeff-Groves (Post 2579150)
Years ago, a very brilliant programmer created this little gem for GWX4.
A project dropped based on the promise of what SH5 would be.

jeff,

what is/was GWX? or GWX4?
i have played mostly SH4. i have cdrom versions of SH3 and SH5 but i have spent very little time with them.

mb

propbeanie 11-28-18 09:45 AM

Grey Wolves eXpansion mod. Groundbreakers in modding. aka: barrier destroyers. If you did SH3, you had to do Grey Wolves... :salute:

fitzcarraldo 11-28-18 09:49 AM

Many thanks! :Kaleun_Cheers:

Fitzcarraldo :Kaleun_Salute:

nik112 11-29-18 04:09 PM

Hi all
Tried to convert a sh3 ship to sh4-prossedure went well but in game ship its totaly black.
Its something to do about it?


cheers:Kaleun_Cheers:

Jeff-Groves 11-29-18 07:03 PM

Quote:

Originally Posted by nik112 (Post 2579422)
Hi all
Tried to convert a sh3 ship to sh4-prossedure went well but in game ship its totaly black.
Its something to do about it?


What Ship? I'll take a look at it, and did you do the roster file properly?
The Converter does not handle the roster file.

iambecomelife 11-29-18 10:15 PM

Quote:

Originally Posted by nik112 (Post 2579422)
Hi all
Tried to convert a sh3 ship to sh4-prossedure went well but in game ship its totaly black.
Its something to do about it?


cheers:Kaleun_Cheers:

You may need to place the TGA file in the DAT file. That can be done via S3ditor; it is very easy.

Or you may need to make sure that the DATA\ROSTER\[COUNTRY]\SEA\[UNIT].CFG file has a skin entry. SH3 does not handle skins via the CFG files like SH4, so there is a good chance that this is your problem. Note the text below from BBColorado.cfg (one of the stock SH4 ships):

[Texture 1]
TextureName=data/Sea/NBB_Colorado/NBB_Colorado_T01.tga
LightmapTextureName=data/Sea/NBB_Colorado/NBB_Colorado_O01.tga
NormalmapTextureName=data/Sea/NBB_Colorado/NBB_Colorado_N01.tga
StartDate=19000101
EndDate=19991231
Frequency=1

If you don't feel like including Lightmap or Normalmap textures, set them to "NULL" - for example:

[Texture 1]
TextureName=data/Sea/NBB_Colorado/NBB_Colorado_T01.tga
LightmapTextureName=NULL
NormalmapTextureName=NULL
StartDate=19000101
EndDate=19991231
Frequency=1

nik112 11-30-18 10:51 AM

Quote:

Originally Posted by Jeff-Groves (Post 2579438)
What Ship? I'll take a look at it, and did you do the roster file properly?
The Converter does not handle the roster file.


Hi Jeff
tried with NPTB



cheers

s7rikeback 11-30-18 07:57 PM

Quote:

Originally Posted by Jeff-Groves (Post 2579150)
Years ago, a very brilliant programmer created this little gem for GWX4.
A project dropped based on the promise of what SH5 would be.

ref, a legend that needs no explanation, wrote many Tools for the GWX Team in the time that S3D was not yet started.

Since it has been over 9 years since last I heard from him. And he gave me his source code? I will now release to everyone his fantastic Tool for converting SH3 Units to SH4.

Given the state of SH5? This program will assist anyone to convert SH3 Units to SH5 also.

http://www.mediafire.com/file/py9zqj...2b/Sh3ToSh4.7z

I been using this for a while now.... It makes conversions from SH3 to Sh4 so much easier, no more wake edits, or new Id's needed.

This does all of that, but as Jeff has said, you need to manually enter the unit name to the names.cfg.And you may also need to edit the EQP & SNS files manually.

And to also backup iambecomelife's posts, you also need to amend the SH4 roster.cfg to the examples given above...

Blimey, I'm begining to sound like a salesman...:har:

Jeff-Groves 11-30-18 08:19 PM

I did this Unit and it does have an issue.

Didn't have time to track it fully down and I'm sorry for the lack of time tonight.

I had planned to fully solve the issue tonite.

Then things went bad today.
https://www.gatewaytoairguns.org/GTA...368#msg1548368

propbeanie 11-30-18 09:16 PM

Jeff, I feel the pain man... sorry for your loss. :salute:

Jeff-Groves 12-01-18 12:23 PM

nik112,

There's a texture for the deck that gets exported from the dat.
Put that texture back in the dat just as the original SH3 Unit has it.
Use the tga version in the original dat.
This will apply to all units that have the separate deck texture or other images in them.

SH3 Units do not have Lightmaps so....
Your roster file should be as below.

[UnitClass]
ClassName=NPTB
UnitType=103
AppearanceDate=19380101
DisappearanceDate=19451201
DisplayName=Transport

[Texture 1]
TextureName=data/Sea/NPTB/NPTB_T01.dds
LightmapTextureName=NULL
NormalmapTextureName=NULL
AppearanceDate=19380101
DisappearanceDate=19451201

[Unit 1]
Name=Transport
DOC=19380101
DOD=19451201

There's a guide on how to create normalmapping around somewhere.

propbeanie 12-01-18 03:58 PM

Maybe this one: [TEC] SH4 models and texture maps from Skwasjer?

There is also [TUT] Bump mapping for SH4 in GFX Suites from danlisa, which has several rabbit hole links to go off into...

JapLance 12-02-18 04:07 AM

Quote:

Originally Posted by Jeff-Groves (Post 2579673)
nik112,

There's a texture for the deck that gets exported from the dat.
Put that texture back in the dat just as the original SH3 Unit has it.
Use the tga version in the original dat.

DOH... it was that.

I spent hours (literally) trying to properly make a original SH3 model appear in SH4 while testing this program. Always a black deck... because I was using the converted .dds file :timeout:

Using the TGA worked perfectly.

https://i.imgur.com/9SH8MZb.png

Needs some tweaking with the wake file, but it can save a lot of work.

nik112 12-02-18 01:44 PM

Hi there
tried using dds and tga. Result the same -take a look

https://i.postimg.cc/NyrJyj2b/sh4-xx.jpg

any ideas?

Jeff-Groves 12-02-18 01:50 PM

You need to fix the roster file as I showed above!

Data\roster\American\sea You should have the NPTB.cfg

It controls the textures.

Look at my files.
http://www.mediafire.com/file/it4rzf...verted_NPTB.7z

Jeff-Groves 12-02-18 02:23 PM

Quote:

Originally Posted by JapLance (Post 2579751)

Needs some tweaking with the wake file, but it can save a lot of work.

That is exactly what it was intended to do. Save A LOT of work!
Now it has it's limitations.
It DOES NOT create the roster file.
If the 3D models do not have normals or AO mappings? It does not add them.
No internal damage model is added. (The one you see through the hull when it's hit)
It's a time saver, not a complete, one click solution to converting Units.

How do we add normals?
All 3D models need to be exported, taken into a 3D program, then save again as an obj file with normals. Then re-import the 3D models being sure to import the normals!
(I only know of 2 programs that will MASS export the 3D models. Pack3D which is limited or the later versions of Jammu which will export all texture mappings)

How do we add AO mappings?
This is a longer process! While the 3D models are exported take them into a 3D program being sure to move some parts as needed to place them properly! Do the AO burn and export the texture and 3D models with the AO UV's! Do your re-import.
(The program you use will determine what you have to do to get a good burn and export)

How do we add the damages 3D model?
You can create a new one or try taking one from an existing SH4 Ship. Use S3D to add it to the dat by looking at a stock SH4 ship with the damage 3D model.

nik112 12-15-18 12:27 PM

Hi there
I want to ask if exists a prog to convert ships from sh4 to sh3


cheers


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