![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
![]() |
#1 |
Silent Hunter
![]() Join Date: Apr 2005
Location: Riverside, California
Posts: 3,610
Downloads: 41
Uploads: 5
|
Exporting and Creating New Nodes in S3D
I'm trying to learn how this whole process works, but all the options that come up when trying to export and import a raw chunk are a bit confusing to me at the moment. Basically, what I want to do is create new nodes for animated crewmen on the board the AI ships. Could somebody write up a step-by-step process for this? Thanks!
__________________
![]() ROW Sound Effects Contributor RFB Team Leader |
![]() |
![]() |
![]() |
#2 |
Rear Admiral
![]() |
![]()
@ work so breif.
- node parent in dat, child (controller) in sim file. Locate both, and note where it resides in the file. - export every little chunk of the child. Name each carefully so you dont get confused when you reconstrcut it. (you'll end up with like 6 different saves sometimes, name them carefully. example: CharacterInstantition.RAWCHUNK, and then CharacterInstantition_properties.RAWCHUNK) ) - Export node, and its "label". - go to your dat file, import node, and then its Label. Position it where it needs to be by changing its parent ID. Do not change anything else yet. - go to your sim file, import child of your dat, and position it where it needs to be, and import all of its properties. - Go back to your node, change its ID. copy new id to buffer. NOTE: Node ID must be unique. - go to your sim file, change your objects parent ID to your nodes new ID (paste from buffer). - If neccessary, change naming convention of new node so its unique in ID handle (NOTE: note always neccessary, and sometimes you can't rename it and have it work) Ill try and make a tutroial later on when i have the time. |
![]() |
![]() |
![]() |
#3 |
Navy Seal
![]() Join Date: Mar 2007
Location: New Mexico, USA
Posts: 9,023
Downloads: 8
Uploads: 2
|
![]()
Good description, that's what I do. If you try and make a new ID and it is taken I think S3D won't take it, which is nice. I haven't messed with the latest version, does it generat them for you now (IDs)?
|
![]() |
![]() |
![]() |
#4 |
The Old Man
![]() Join Date: Apr 2007
Location: Netherlands
Posts: 1,549
Downloads: 26
Uploads: 3
|
![]()
Let me clarify a few things:
http://www.subsim.com/radioroom/show...&postcount=435 Now, for all the export/import options, I agree the dialogs can be a bit confusing and I already considered a revision in the future, but here's how it works: EXPORT With the checkbox checked the entire chunk WITH header is exported. If unchecked, only the chunk data is exported. Without the header, S3D cannot 'figure out' what kind of chunk it is when you import it again. You have to explicitly tell it then. For regular use (cloning nodes), leave this option checked. ![]() IMPORT The two radio buttons are basically there to ask you what kind of raw chunk is going to be imported. We have a raw chunk with header? The first radiobutton should be on. You now have the option to ignore the header and basically replace data of the selected chunk. If this is selected you will not end up with a new inserted node, just the one selected will be updated. Usually you'd want a new node, so leave it off. We have a chunk without header? The 2nd radio button should be on. Since we don't have a header, S3D doesn't know what type of chunk it is going to read. It will therefor use the selected node as 'type' and reads the chunk with the rules set out for that type. And you will not end up with a new node, but the current node is updated. ![]() Bottom line, leave all the default import/export settings on, and you're good to go. The options are there if you want more control or want to use/edit/modify chunk data in hex editors, without the requirement of a valid header (size specifier to be exact). Basically these options are there for advanced use... If any questions, go ahead... ![]()
__________________
![]() SH5 mods: Speech Recognition for SH5 | Digital UI Clock Tutorials: [TEC] Import/export 3D models to/from game using S3D [TEC] How to work with the model viewer in S3D - VIDEO |
![]() |
![]() |
![]() |
#5 |
Stowaway
Posts: n/a
Downloads:
Uploads:
|
![]()
I like advanced use.
![]() |
![]() |
![]() |
|
|