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 03-21-12, 03:39 PM   #1
Vanilla
Lieutenant
 
Join Date: Nov 2006
Location: St. Petersburg, Russia
Posts: 264
Downloads: 73
Uploads: 0
Default

Quote:
Originally Posted by TheDarkWraith View Post
I can't get it to crash

I've been writing the code needed to read the trackgroup and animation data. Finished the trackgroups light night and should be finishing the animation today. This doesn't mean I can read animations, this means I'm reading the animation curve data (whatever that is).

Looking into problem with bones. Haven't found anything yet that would cause the problems Vanilla was having.
@TDW,

Let me send you a modded file, you try to clone a bone in it and let's see if it gives an error for you as well. Shall we?
Vanilla is offline   Reply With Quote
Old 03-21-12, 03:46 PM   #2
Vanilla
Lieutenant
 
Join Date: Nov 2006
Location: St. Petersburg, Russia
Posts: 264
Downloads: 73
Uploads: 0
Default

PM's sent
Vanilla is offline   Reply With Quote
Old 03-22-12, 08:16 PM   #3
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Quote:
Originally Posted by Vanilla View Post
@TDW,

Let me send you a modded file, you try to clone a bone in it and let's see if it gives an error for you as well. Shall we?
The problem was a wicked problem to find The problem is a serious one though and if you have created any bones then the text in the GR2 file before the/those bone(s) is mangled (only one or two entries depending on where it fell in the file * number of bones you have added). So what I'm saying is the GR2 file isn't shredded but some text may not display properly If you added 5 bones you'll notice that the file fails to load in the app but does load in Granny Viewer. Anything after 5 bones is a crap shoot until you finally crash Granny Viewer also.

UNTIL I RELEASE A NEW TEST VERSION DO NOT ADD ANY NEW BONES! THE APP IS FLAWED CURRENTLY WITH THE ADDING OF THE NEW EMBEDDED STRINGS FOR THE NEW BONES.

Now that the problem is fixed in the upcoming test version you can add unlimited number of bones without problems. I've added 20 new bones to every test file and saw no problems (before the fix once I added the 5th new bone the app would fail).

The problem was the new embedded string pointer was not being adusted for the bone size. This resulted in the embedded strings being written in incorrect places and usually overwriting other embedded strings. Once an embedded string was written at an offset < startofdataoffset2 the app would fail (and rightly so!)

I'm now verifying that the adding of new materials doesn't have this problem
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:01 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.