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 04-14-11, 03:47 PM   #1
Madox58
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

What I'm working on is a script for 010 Editor that would read the coords
of the waypoint gr2 files.
It would translate those and create small boxes placed just as they would be in the Game and save as an obj file.

With any 3D program, load that file and the 3D object of where your working, say the 7C hull, and you can now move the boxes as you wish.
delete the 7C hull object and save the waypoint obj file.

Useing 010 again, you run a second script and it converts that file back into the waypoint gr2 file.

Wham bam your done.


Now 010 costs about $50 bucks U.S. but is a very slick piece of work.
The scripting is just like coding in C so is very robust, very adaptable.

For the most part, I could create the obj files of all the waypoints gr2's of interest.

I upload those and anyone could download and adjust as they wished.
Send it back to me and I could convert it back to the waypoint gr2 and send it back.
That way no one has to buy 010 Editor or resort to pirateing a copy.

I really see no need for a stand alone program at this time as there are few extra needed waypoints, is that correct?


Last edited by Madox58; 04-14-11 at 03:58 PM.
  Reply With Quote
Old 04-14-11, 05:26 PM   #2
Vanilla
Lieutenant
 
Join Date: Nov 2006
Location: St. Petersburg, Russia
Posts: 264
Downloads: 73
Uploads: 0
Default

Quote:
Originally Posted by privateer View Post
What I'm working on is a script for 010 Editor that would read the coords
of the waypoint gr2 files.
It would translate those and create small boxes placed just as they would be in the Game and save as an obj file.

With any 3D program, load that file and the 3D object of where your working, say the 7C hull, and you can now move the boxes as you wish.
delete the 7C hull object and save the waypoint obj file.

Useing 010 again, you run a second script and it converts that file back into the waypoint gr2 file.

Wham bam your done.
That's just what we need! Do I get it right that we will be able to add/delet boxes as well (that script is able to handle extra waypoints added)?

Quote:
Now 010 costs about $50 bucks U.S. but is a very slick piece of work.
The scripting is just like coding in C so is very robust, very adaptable.

For the most part, I could create the obj files of all the waypoints gr2's of interest.

I upload those and anyone could download and adjust as they wished.
Send it back to me and I could convert it back to the waypoint gr2 and send it back.
That way no one has to buy 010 Editor or resort to pirateing a copy.

I really see no need for a stand alone program at this time as there are few extra needed waypoints, is that correct?

That's correct. This job should be done only once for every model we want to mod. So far the intention is to mod all the subs and docks. Later I guess people will be asking for modding ships as well (like adding crew to AI boats). That boils down to 10-15 conversions - stand-alone thingy doesn't worth it.

[offtopic]I am thinking of buying 010, is it really that good? I use hex plugin for notepad++ and it's useless pice of...

Last edited by Vanilla; 04-14-11 at 05:41 PM.
Vanilla is offline   Reply With Quote
Old 04-14-11, 05:56 PM   #3
Madox58
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

Quote:
That's just what we need! Do I get it right that we will be able to add/delet boxes as well (that script is able to handle extra waypoints added)?
No, we can't add or subtract.
But there are other waypoint gr2 files with a lower amount of bones.
We use those and adjust as needed.

Quote:
That's correct. This job should be done only once for every model we want to mod. So far the intention is to mod all the subs and docks. Later I guess people will be asking for modding ships as well (like adding crew to AI boats). That boils down to 10-15 conversions - stand-alone thingy doesn't worth it.
That's my thinking. At a later date?
Other options will be out there.

Quote:
[offtopic]I am thinking of buying 010, is it really that good? I use hex plugin for notepad++ and it's useless pice of...
If you know C or C++ already? It's a GREAT TOOL!
There are a few limitations to the Scripting and Template commands.
But those are pretty easily worked around if you think the problem through.
Scripting does not allow the 'if' stuff.
But useing Scripting with Templates allows you to work around that issue.
I see a newer version someday with full C support if they know what they have and don't pull an UBI!

  Reply With Quote
Old 04-14-11, 06:03 PM   #4
TheBeast
The Old Man
 
Join Date: Jan 2010
Location: Lynnwood, WA
Posts: 1,533
Downloads: 888
Uploads: 23


Default

Quote:
Originally Posted by privateer View Post
No, we can't add or subtract.
But there are other waypoint gr2 files with a lower amount of bones.
We use those and adjust as needed.



That's my thinking. At a later date?
Other options will be out there.



If you know C or C++ already? It's a GREAT TOOL!
There are a few limitations to the Scripting and Template commands.
But those are pretty easily worked around if you think the problem through.
Scripting does not allow the 'if' stuff.
But useing Scripting with Templates allows you to work around that issue.
I see a newer version someday with full C support if they know what they have and don't pull an UBI!

Question:
Since the same interior is used for all type-VII. Can you add character waypoint for exterior to the interior models?
They you do it once and done...
__________________
Fear me! I am, TheBeastBelow

SHIV-MediaFire | SHV-MediaFire
TheBeast is offline   Reply With Quote
Old 04-14-11, 06:06 PM   #5
Madox58
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

Exactly!
That's why creating a program that does it is a waste of time!
Do it once since we have a limited number of animations and your done.
To move the waypoints other files handle that.
We just need a few extras to work with.

As an example:

We only need say 3 extra points in the CR.
Waypoints_Room_CR.gr2 has 22!!
So I use Waypoints_Room_CT.gr2.
It has 3 useable bones.
And the names mean we can edit everything without removeing or adding bytes!
We just need to move a few values and sort the other files.
  Reply With Quote
Old 04-15-11, 12:15 AM   #6
Paris_England
Soundman
 
Join Date: Aug 2010
Posts: 144
Downloads: 79
Uploads: 0
Default

Hi guys,

if it's any help here's how I added xtra waypoints:

For each room:

Copy GR2 & CHR files
OPEN the GR2 in a hex editor. You should see the waypoint names for the room. Change these to something unique and memorable --I'm not a hex editor so I just change a letter in each eg: QR2_BOSUN01 to QR3_BOSUN01

To get these waypoint to work in the game I cal them the same way as the engines are called by using the PRT file -- it's kinda like using 'includes' if you'e a programmer I guess

So in goblin open the submarine PRT file and insert a MERGE CTRL behaviour which points to your copied GR2 (with the renamed waypoints)

To add crewmembers to these new waypoints add SAPIENS to the ORIGINAL CHR file -- my memory is fuzzy here I'v been away from this for a long time but in Goblin you'll have to open the sub GR2 file I think which then loads in the relevant files. Select one of the new wayboints and add a Sapiens behavior and crate your new crewmember

And you can position the new waypoints the same as the old by referencing them in the ORIGINAL room_waypoints.TXT file.

Rinse and repeat for each room and each sub.

The existing crewmember behaviours file can be used to control their actions (idles etc).

NOTES:
Crewmembers cannot move from one room to another unless they are respawned in another compartment. There's some odd masking on the bulkheads which will give odd effects if you try to walk a crewmember from one room to another.

I never tried his technique with the external waypoints, but I expect i to work.

Sorry I can't be more specific -- I'm not in front of th machine I used for this, but I hope this is of some use.

And my apologies for not being able to work up my mod as yet -- too busy with RL -- but I'm very happy to see this issue being worked on.

Hope this helps.

.
Paris_England is offline   Reply With Quote
Old 04-15-11, 08:14 AM   #7
Vanilla
Lieutenant
 
Join Date: Nov 2006
Location: St. Petersburg, Russia
Posts: 264
Downloads: 73
Uploads: 0
Default

Phew! It's like Wrights' flight to me - simple but effective. Mindblowing! How could I have overlooked these prt files...

I cannot wait to get home to the computer and try this out. Making new waypoints work in the game was the only issue that was holding me, if it works as expected, then I know everything and expect a mod soon!

Paris and privateer - thank you both so much!
Vanilla is offline   Reply With Quote
Reply

Thread Tools
Display Modes

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 01:21 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Copyright © 1995- 2026 Subsim®
"Subsim" is a registered trademark, all rights reserved.