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, 02:26 PM   #1
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

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.
TheDarkWraith is offline   Reply With Quote
Old 03-21-12, 03:36 PM   #2
Rubini
Ocean Warrior
 
Join Date: May 2005
Location: São Paulo Brazil
Posts: 2,728
Downloads: 149
Uploads: 0
Default

Any news on new Material issue?
__________________
One gamer's must-have mod is another gamer's waste of time.
-Sailor Steve
Rubini is offline   Reply With Quote
Old 03-22-12, 09:23 PM   #3
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by Rubini View Post
Any news on new Material issue?
The code has been written and just a little more work to do on it. The finding of this wicked bug reported by Vanilla has taken my time for the last couple of days so I haven't been able to work on anything other than finding and correcting the source of this bug.
TheDarkWraith is offline   Reply With Quote
Old 03-23-12, 12:15 AM   #4
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

test version 1.1.132.1 available here: http://www.mediafire.com/?n934te4y21yjvp4

Fixes problem when 5 or more new bones are added to GR2 file and app can't open file and shows error "Pointer to bone not found in pointers"

If the app won't open up your GR2 file that you added 5+ new bones to but Granny Viewer will then you will need to recreate those new bones using the data from Granny Viewer. If Granny Viewer can't open up the file then it's shredded and thus lost
TheDarkWraith is offline   Reply With Quote
Old 03-23-12, 05:01 AM   #5
Vanilla
Lieutenant
 
Join Date: Nov 2006
Location: St. Petersburg, Russia
Posts: 264
Downloads: 73
Uploads: 0
Default

Quote:
Originally Posted by TheDarkWraith View Post
test version 1.1.132.1 available here: http://www.mediafire.com/?n934te4y21yjvp4

Fixes problem when 5 or more new bones are added to GR2 file and app can't open file and shows error "Pointer to bone not found in pointers"

If the app won't open up your GR2 file that you added 5+ new bones to but Granny Viewer will then you will need to recreate those new bones using the data from Granny Viewer. If Granny Viewer can't open up the file then it's shredded and thus lost
Thank you! My modding itch was particularly strong last night but I couldn't do anything I'd planned without the Editor so I kept reloading this thread like 100 times in 2 hours. Only then had I figured that it is not an easy bug to kill, great you've squashed it for good!

BTW, I've made a char walk from the very stern to the very bow and back smooth (except cross-compartment teleports) without any turns, gymnastics and major clipping and this is with just giving him the destination waypoint - that is the routing is repaired, you don't have to care about teleporting him manualy or anything. Next thing to tackle is to create 'run' waypoints network.
Vanilla is offline   Reply With Quote
Old 03-23-12, 06:51 AM   #6
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by Vanilla View Post
Thank you! My modding itch was particularly strong last night but I couldn't do anything I'd planned without the Editor so I kept reloading this thread like 100 times in 2 hours. Only then had I figured that it is not an easy bug to kill, great you've squashed it for good!

BTW, I've made a char walk from the very stern to the very bow and back smooth (except cross-compartment teleports) without any turns, gymnastics and major clipping and this is with just giving him the destination waypoint - that is the routing is repaired, you don't have to care about teleporting him manualy or anything. Next thing to tackle is to create 'run' waypoints network.
Excellent A video would be nice to see
TheDarkWraith is offline   Reply With Quote
Old 03-23-12, 07:16 AM   #7
pedrobas
Seasoned Skipper
 
Join Date: Apr 2007
Location: Huelva, Spain
Posts: 664
Downloads: 301
Uploads: 0
Default

Quote:
Originally Posted by TheDarkWraith View Post
Excellent A video would be nice to see
Yes please Vanilla
pedrobas is offline   Reply With Quote
Old 03-21-12, 03:39 PM   #8
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   #9
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   #10
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:02 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.