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 01-13-12, 02:37 AM   #1
lesec74
Ensign
 
Join Date: Mar 2010
Location: france(alps)
Posts: 230
Downloads: 259
Uploads: 0
Default

100% of what we need to make new units for SH5).

hello TDW,

You want to say a possibility to built new playable sub type?

thanks for your job
lesec74 is offline   Reply With Quote
Old 01-13-12, 06:02 AM   #2
Echolot
Seasoned Skipper
 
Join Date: Mar 2010
Location: Berlin, Germany
Posts: 715
Downloads: 575
Uploads: 0
Default

Hello TDW.

I just want to say again: Hats off!

This is great progress and I want to thank you for your work and sharing your knowledge.



Regards.

Echolt.
Echolot is offline   Reply With Quote
Old 01-13-12, 10:59 AM   #3
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by lesec74 View Post
100% of what we need to make new units for SH5).

hello TDW,

You want to say a possibility to built new playable sub type?

thanks for your job
The subs contain some additional data that I have yet to still figure out purpose and how to map it. Once I can register that data then I can move it around in the file. Currently I do nothing with it which clearly can't be the case anymore if I want to shuffle things around in the file/create new ones.

I wrote the code to adjust the pointers last night. Preliminary results are it works

Last edited by TheDarkWraith; 01-13-12 at 11:10 AM.
TheDarkWraith is offline   Reply With Quote
Old 01-13-12, 01:36 PM   #4
Vanilla
Lieutenant
 
Join Date: Nov 2006
Location: St. Petersburg, Russia
Posts: 264
Downloads: 73
Uploads: 0
Default

Quote:
Originally Posted by TheDarkWraith View Post
Now I start writing the code for it to make new GR2 files. The first file it will make will contain nothing as far as bones, models, etc. It'll just be a shell with the ArtToolInfo data in it. If it can make that (and it passes the Granny Viewer test) I'm more than half-way there.
Then I guess we will be able to add waypoints for the crew without using a hex-editor as well! That's just incredible!
Vanilla is offline   Reply With Quote
Old 01-13-12, 01:39 PM   #5
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by Vanilla View Post
Then I guess we will be able to add waypoints for the crew without using a hex-editor as well! That's just incredible!
I'm writing the allocater/deallocater currently. These two functions in my sentinel class will allocate or deallocate space in the GR2 file. This will allow one to add to and/or remove items from a GR2 file. Should be writing my first GR2 file with new information in it shortly. It has to pass the Granny Viewer test. If it passes then everything is working as it's supposed to
TheDarkWraith is offline   Reply With Quote
Old 01-13-12, 02:40 PM   #6
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

The allocater successfully allocated 500 bytes in a GR2 file. One major step forward. There was a slight problem with remapping the pointers. I forgot a major pointer in a section (forgot to read it in when reading the file) and that hosed everything else up in that section (didn't pass Granny Viewer test). I just have to account for this major pointer and everything should be golden.
TheDarkWraith is offline   Reply With Quote
Old 01-13-12, 06:12 PM   #7
longam
Admiral
 
Join Date: Jun 2005
Posts: 2,004
Downloads: 26
Uploads: 0
Default

Quote:
Originally Posted by TheDarkWraith View Post
The allocater successfully allocated 500 bytes in a GR2 file. One major step forward. There was a slight problem with remapping the pointers. I forgot a major pointer in a section (forgot to read it in when reading the file) and that hosed everything else up in that section (didn't pass Granny Viewer test). I just have to account for this major pointer and everything should be golden.
Silent hunter 6 on its way! No wait, super mod I mean.
longam is offline   Reply With Quote
Old 01-14-12, 02:42 PM   #8
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Today v1.0.530.0 of the GR2Editor/Viewer graduated Kindergarten...it's growing up so fast! It wrote it's first GR2 file that passed the granny viewer test and has no anomolies or defects that I can find

I took the lifeboat GR2 file, allocated 0x500 bytes into it right after the first embedded string (so that it impacts the most pointers and all), and changed all the exporter info that you see in Granny Viewer. Here is the file is you want to verify for yourself:

http://www.megaupload.com/?d=SU4X5ZSP

Open it up in Granny Viewer and my app. Check out the Exporter Info data in Granny Viewer

I couldn't find anything wrong with it. All names appeared ok in granny viewer, all the meshes rendered fine...if you can find something wrong let me know

So what does this mean? This means I can write new GR2 files. I can add/remove from existing GR2 files (via the allocater/deallocater in the sentinel class). I have much to do still on writing new bones, meshes, materials, etc. but the hard part is done - the updating of all pointers in the file

I'll work on adding new bones first. The process should be simple: allocate space in the GR2 file the size of the bone structure, add new pointers, update all pointers, add embedded string descriptors for the new embedded string describing the new bone name, update file contents, write file, done....

Last edited by TheDarkWraith; 01-14-12 at 03:22 PM.
TheDarkWraith 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 05:12 PM.


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.