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 > SH4 Mods Workshop
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 11-26-24, 09:50 AM   #1
iambecomelife
Silent Hunter
 
Join Date: Apr 2005
Posts: 4,709
Downloads: 300
Uploads: 0


Default

Woohoo! I got it!!:

IMPORTANT: If you have an ATI graphics card, AMD Pro software stops you from being able to use CONTROL+SHIFT+[KEY] combos. I disabled the hotkey assignments in AMD Pro software, and now I'm in business!

I suspect Jeff Groves and vickers either have Nvidia graphics cards, or do not use AMD Pro for ATI cards - that's why it was working for them.

The brief period on 11/23/2024 when it worked for me? Coincided with when AMD Pro happened to crash. It all makes sense.

If skwasjer ever comes back we should tell him.
iambecomelife is offline   Reply With Quote
Old 12-19-24, 02:10 AM   #2
Senf-Man82
Gunner
 
Join Date: Aug 2014
Location: Wilhelmshaven
Posts: 96
Downloads: 388
Uploads: 0
Default OBJ-Import error

Hi folks,

I am trying to import a fixed OBJ-file into my .dat and I keep getting this weird error message:

startIndex cannot be less than zero:

>>

System.ArgumentOutOfRangeException: StartIndex darf nicht kleiner als Null sein.
Parametername: startIndex
bei System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy)
bei System.String.Substring(Int32 startIndex)
bei e3.a(String A_0, IList`1& A_1)
bei c.w()
bei gv.c(Object A_0, LinkLabelLinkClickedEventArgs A_1)
bei System.Windows.Forms.LinkLabel.OnLinkClicked(LinkL abelLinkClickedEventArgs e)
bei System.Windows.Forms.LinkLabel.OnMouseUp(MouseEven tArgs e)
bei System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
bei System.Windows.Forms.Control.WndProc(Message& m)
bei System.Windows.Forms.Label.WndProc(Message& m)
bei System.Windows.Forms.LinkLabel.WndProc(Message& msg)
bei System.Windows.Forms.Control.ControlNativeWindow.O nMessage(Message& m)
bei System.Windows.Forms.Control.ControlNativeWindow.W ndProc(Message& m)
bei System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
<<

I tried to alter every possible export setting from Blender, but it keeps happening :/
Senf-Man82 is offline   Reply With Quote
Old 12-19-24, 09:22 AM   #3
iambecomelife
Silent Hunter
 
Join Date: Apr 2005
Posts: 4,709
Downloads: 300
Uploads: 0


Default

Quote:
Originally Posted by Senf-Man82 View Post
Hi folks,

I am trying to import a fixed OBJ-file into my .dat and I keep getting this weird error message:

startIndex cannot be less than zero:

>>

System.ArgumentOutOfRangeException: StartIndex darf nicht kleiner als Null sein.
Parametername: startIndex
bei System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy)
bei System.String.Substring(Int32 startIndex)
bei e3.a(String A_0, IList`1& A_1)
bei c.w()
bei gv.c(Object A_0, LinkLabelLinkClickedEventArgs A_1)
bei System.Windows.Forms.LinkLabel.OnLinkClicked(LinkL abelLinkClickedEventArgs e)
bei System.Windows.Forms.LinkLabel.OnMouseUp(MouseEven tArgs e)
bei System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
bei System.Windows.Forms.Control.WndProc(Message& m)
bei System.Windows.Forms.Label.WndProc(Message& m)
bei System.Windows.Forms.LinkLabel.WndProc(Message& msg)
bei System.Windows.Forms.Control.ControlNativeWindow.O nMessage(Message& m)
bei System.Windows.Forms.Control.ControlNativeWindow.W ndProc(Message& m)
bei System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
<<

I tried to alter every possible export setting from Blender, but it keeps happening :/
Did you make sure the entire model is textured? If even one polygon is untextured, the import via Silent 3ditor will not work.

Also, how many polygons is the model? Silent 3ditor will usually give error messages when you try to import items of more than 35,000 - 40,000 polygons. For that reason, I usually separate the hull and superstructure of my ships as different objects.
iambecomelife is offline   Reply With Quote
Old 12-19-24, 12:12 PM   #4
Jeff-Groves
GLOBAL MODDING TERRORIST
 
Jeff-Groves's Avatar
 
Join Date: Sep 2014
Posts: 5,654
Downloads: 137
Uploads: 0


Default

Perhaps provide the obj file/files so We can check them.
You might have different counts in V between the main obj and AO obj.
S3D don't like that!
Jeff-Groves is offline   Reply With Quote
Old 12-23-24, 08:32 AM   #5
Senf-Man82
Gunner
 
Join Date: Aug 2014
Location: Wilhelmshaven
Posts: 96
Downloads: 388
Uploads: 0
Default

Quote:
Originally Posted by Jeff-Groves View Post
Perhaps provide the obj file/files so We can check them.
You might have different counts in V between the main obj and AO obj.
S3D don't like that!

It is simply the hull model from the 641-Foxtrot Sub published here many many years ago.


I only exported it from S3D into Blender to slightly correct its orientation. After export from Blender (trying out numerous settings) upon reimport in S3D that error message keeps occuring.
Senf-Man82 is offline   Reply With Quote
Old 12-23-24, 11:36 AM   #6
Jeff-Groves
GLOBAL MODDING TERRORIST
 
Jeff-Groves's Avatar
 
Join Date: Sep 2014
Posts: 5,654
Downloads: 137
Uploads: 0


Default

Quote:
Originally Posted by Senf-Man82 View Post
It is simply the hull model from the 641-Foxtrot Sub published here many many years ago.


I only exported it from S3D into Blender to slightly correct its orientation. After export from Blender (trying out numerous settings) upon reimport in S3D that error message keeps occuring.
Without the obj files that you did? I can't help you. Sorry.
Jeff-Groves is offline   Reply With Quote
Old 12-23-24, 12:52 PM   #7
Senf-Man82
Gunner
 
Join Date: Aug 2014
Location: Wilhelmshaven
Posts: 96
Downloads: 388
Uploads: 0
Default

Quote:
Originally Posted by Jeff-Groves View Post
Without the obj files that you did? I can't help you. Sorry.

I have no option to attach them here, are you on discord subsim? I tried to do the required x-axis rotation in S3D, but the game keeps ignoring in. I don't suppose there is a function to apply rotation in (so new value goes "0") in S3D?
Senf-Man82 is offline   Reply With Quote
Old 12-23-24, 02:00 PM   #8
propbeanie
CTD - it's not just a job
 
propbeanie's Avatar
 
Join Date: May 2016
Location: One hour from Music City USA!
Posts: 10,103
Downloads: 451
Uploads: 2


Default

Quote:
Originally Posted by Senf-Man82 View Post
It is simply the hull model from the 641-Foxtrot Sub published here many many years ago.


I only exported it from S3D into Blender to slightly correct its orientation. After export from Blender (trying out numerous settings) upon reimport in S3D that error message keeps occuring.
Check your import / export settings in Blender Senf-Man82. You might notice that Blender imports with the boat looking to be setting on its tail. When you export, it might lay it flat on its hull, plus there are the the other settings that matter in the export dialog. I'll see if I can find mine here in a bit... Nothing too difficult, just frustrating to get set correctly.
__________________

"...and bollocks to the naysayers" - Jimbuna
propbeanie is offline   Reply With Quote
Old 12-23-24, 02:15 PM   #9
Jeff-Groves
GLOBAL MODDING TERRORIST
 
Jeff-Groves's Avatar
 
Join Date: Sep 2014
Posts: 5,654
Downloads: 137
Uploads: 0


Default

I don't believe his is a matter of X or Y up.
It's a total failure to import. I think it's a mismatch of Verts between the main obj file and the AO obj file.
That's an easy mistake to make for newer users of S3D.

You can set Blender to Import with the Y axis as up to avoid that standing on tail thing you know.
Do I need to get my box of crayons out and draw a picture?

Jeff-Groves is offline   Reply With Quote
Old 12-22-24, 07:04 AM   #10
skwasjer
The Old Man
 
Join Date: Apr 2007
Location: Netherlands
Posts: 1,549
Downloads: 28
Uploads: 3
Default

Quote:
Originally Posted by iambecomelife View Post
If skwasjer ever comes back we should tell him.
skwasjer is offline   Reply With Quote
Old 12-22-24, 09:52 AM   #11
Aktungbby
Gefallen Engel U-666
 
Aktungbby's Avatar
 
Join Date: Jul 2013
Location: On a tilted, overheated, overpopulated spinning mudball on Collision course with Andromeda Galaxy
Posts: 30,049
Downloads: 24
Uploads: 0


Default Welcome back!

skwasjer!after a 5-year 'silent run'!
__________________

"Only two things are infinite; The Universe and human squirrelyness?!!
Aktungbby is offline   Reply With Quote
Old 12-22-24, 01:21 PM   #12
Jeff-Groves
GLOBAL MODDING TERRORIST
 
Jeff-Groves's Avatar
 
Join Date: Sep 2014
Posts: 5,654
Downloads: 137
Uploads: 0


Default

Quote:
Originally Posted by skwasjer View Post
Great to see you pop in!


So maybe you just might Update S3D a tiny little bit? It seems all the rage to Update stuff here recently.


For an example.
Maybe take an SH4 animation file and render a 3D Model so one could change the animation and create a new one?
Allow MeshAnimation2 to be exported and imported without doing Hex Editor stuff?

Last edited by Jeff-Groves; 12-22-24 at 04:59 PM.
Jeff-Groves is offline   Reply With Quote
Old 12-22-24, 05:03 PM   #13
Jeff-Groves
GLOBAL MODDING TERRORIST
 
Jeff-Groves's Avatar
 
Join Date: Sep 2014
Posts: 5,654
Downloads: 137
Uploads: 0


Default

Incase you have not kept up?
I can rip animations from SH5 and import to SH4.
I've not released that information yet since no one even does much animation work. I'd say most animation work is really simple but high over head stuff.
Like Keyframe and simple MeshAnimation stuff.
There is a WHOLE nother World if one can access the Bones stuff!
Jeff-Groves is offline   Reply With Quote
Old 12-23-24, 04:47 AM   #14
skwasjer
The Old Man
 
Join Date: Apr 2007
Location: Netherlands
Posts: 1,549
Downloads: 28
Uploads: 3
Default

Hey Jeff,

I most definitely have not kept up, but good to see you still rockin' it. I just stopped by out of curiosity to see how SH and the community was doing.

I always said I'd be interested to just release the code so its development can continue without my (active) intervention. But even though I did manage to release the file parsers like 4-5 years ago IIRC, just this alone took a lot of work because I had to modernize the toolchain to make it work (for general consumption) and remove a lot of licensed code, and address some other issues.

But to give you an idea, the S3D application itself (which uses those parsers) contains probably 8-10x more code, uses old dependencies, has similar issues (with regards to licensing, dependencies, etc.), has an installer project that no longer works, etc.

The amount of work needed to modernize S3D is not trivial, and I am not sure it is worth the time anymore. Surely, the SH (mod) scene is not as active as it used to be?

Perhaps when I retire IRL, who knows, getting there
skwasjer is offline   Reply With Quote
Old 12-25-24, 09:17 PM   #15
iambecomelife
Silent Hunter
 
Join Date: Apr 2005
Posts: 4,709
Downloads: 300
Uploads: 0


Default

Quote:
Originally Posted by skwasjer View Post
Hey Jeff,

I most definitely have not kept up, but good to see you still rockin' it. I just stopped by out of curiosity to see how SH and the community was doing.

I always said I'd be interested to just release the code so its development can continue without my (active) intervention. But even though I did manage to release the file parsers like 4-5 years ago IIRC, just this alone took a lot of work because I had to modernize the toolchain to make it work (for general consumption) and remove a lot of licensed code, and address some other issues.

But to give you an idea, the S3D application itself (which uses those parsers) contains probably 8-10x more code, uses old dependencies, has similar issues (with regards to licensing, dependencies, etc.), has an installer project that no longer works, etc.

The amount of work needed to modernize S3D is not trivial, and I am not sure it is worth the time anymore. Surely, the SH (mod) scene is not as active as it used to be?

Perhaps when I retire IRL, who knows, getting there
It's so wonderful to see you again! S3D as it is has been absolutely addictive to me, it has been so wonderful to tweak the game in ways we never could have dreamed of before 2010.

I still remember the nightmare of hand-altering individual id's to clone my [ugly] HMS Renown into existence, around 2007. We here owe you and other tool creators a huge debt .... things that took days can now be done in seconds. You are responsible for consuming so many of my days off.

Even though the modding community at Subsim is small (and smaller than it was back in the day), we are devoted. I would really like to give you some substantial support with respect to modding tool development. I will PM you shortly!
iambecomelife 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 06:29 AM.


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