PDA

View Full Version : Is it possible to make available as many playable units as wanted ?


Mister_M
11-08-21, 10:23 AM
Hello,

Is it possible to make available (at the same time, without reloading the game) as many playable units as wanted (submarines, battleships, schnellboot, etc.) ? And without modifying the hard code ?

Thanks for info.

Jeff-Groves
11-08-21, 11:59 AM
Short answer is No.
We are limited to the stock number of playable units by hard code.
That's why new playable Units have to be installed with JSGME.
That replaces stock files of a target Unit.

Mister_M
11-08-21, 06:29 PM
Short answer is No.
We are limited to the stock number of playable units by hard code.
That's why new playable Units have to be installed with JSGME.
That replaces stock files of a target Unit.

Thank you for your message. Did anyone already try to break this barrier ?

CapZap1970
11-08-21, 08:13 PM
If I am not mistaken, it is hard coded...

Jeff-Groves
11-09-21, 03:20 PM
Thank you for your message. Did anyone already try to break this barrier ?
The only way to 'Break' this would be to change the Hard Code like some patches do.
Then say you add 7 more playable units in the hard code.
Now you have a TON of other files to address!!!

Years ago I was nearly a full time Modder. That almost cost me my Wife and Job.
I do know people that it did cost them things like that!
I pick and choose what I want to look at doing now and only do it when it works with my Real Life.

Mister_M
11-09-21, 05:27 PM
The only way to 'Break' this would be to change the Hard Code like some patches do.
Then say you add 7 more playable units in the hard code.
Now you have a TON of other files to address!!!

Years ago I was nearly a full time Modder. That almost cost me my Wife and Job.
I do know people that it did cost them things like that!
I pick and choose what I want to look at doing now and only do it when it works with my Real Life.

I'm not asking you to work for me, I'm just asking questions, and then I do the job myself. :03: And yes, I perfectly know that modding requires a lot of time ! :wah: Thank you for your time and past efforts. :yep:

Currently, I'm trying to convert a playable soviet submarine from a supermod made for SH4 (Soviet Waterway). The 3D models and textures are excellent. But I get a CTD each time I load a mission with this new playable sub (which replaces the german type IXD2).

:k_confused:

I'm going to look even deeper in the files, and then, if nothing works, I will ask for help.

Greetings.

Mister_M
11-09-21, 06:57 PM
Ok. Interesting fact :

I've just opened the vanilla NSS_Uboat9d2.dat and replaced the 3D model of the hull by the new one from Soviet Type C. With only this modification (all files are from vanilla), I get a CTD while loading a mission with the type IXD2...

Original 3D model : 9262 triangles.
New 3D model : 40424 triangles.

Is this the problem ? Is there a hardcoded limitation for the number of triangles of the hull's 3D model ? :hmmm:

There are mods out there for SH3 which gives extremly detailed playable submarines (Ahnenerbe, Wise), so I just don't understand... :doh:

CapZap1970
11-09-21, 07:47 PM
Ok. Interesting fact :

I've just open the NSS_Uboat9d2.dat and replaced the 3D model of the hull by the new one from Soviet Type C. With only this modification, I get instant CTD while loading a mission with the type IXD2...

Original 3D model : 9262 triangles.
New 3D model : 40424 triangles.

Is this the problem ? Is there a hardcoded limitation for the number of triangles of the hull's 3D model ? :hmmm:

There are mods out there for SH3 which gives extremly detailed playable submarines (Ahnenerbe, Wise), so I just don't understand... :doh:
I think the problem is more complex that just triangles....
I think the textures , the files ID's and in general all the files that belong to the new sub you are trying to use...
Also, there are lots of .cfg files involved in other folders, Basic.Cfg, Flotilla, Cfg, Library folder, Objects folder, and a looong etc.....
Those are the names of files and folders that come to my mind thinking hastily, I am sure that there are many more, and in this case, you can take Jeff-Groves's words very seriously, since he is one of the most highly qualified modders here, among many others.... :yep:

Mister_M
11-10-21, 03:47 AM
I think the problem is more complex that just triangles....
I think the textures , the files ID's and in general all the files that belong to the new sub you are trying to use...
Also, there are lots of .cfg files involved in other folders, Basic.Cfg, Flotilla, Cfg, Library folder, Objects folder, and a looong etc.....
Those are the names of files and folders that come to my mind thinking hastily, I am sure that there are many more, and in this case, you can take Jeff-Groves's words very seriously, since he is one of the most highly qualified modders here, among many others.... :yep:

Yes, thank you mate, I know all that, there are many files to change and I know how. Encountering a CTD, I now go step by step. So I kept the original (vanilla) .dat file of the type IXD2 submarine, and made ONLY ONE change : a new 3D model. This only modification makes the game crash... :doh: (all other files are vanilla files).

So, I open the complexe 3D model with a 3D editor and removed meshes in order to have a model of around 14000 triangles (Wise's IXD2 3D model is around 19000 and there isn't any CTD when loading a mission). There is still a CTD. I will try a last thing : importing Wise's model directly into the vanilla .dat file to see if it works...

Mister_M
11-10-21, 04:07 AM
I will try a last thing : importing Wise's model directly into the vanilla .dat file to see if it works...

CTD again... :/\\!!:/\\!!:/\\!!:/\\!!:/\\!!:/\\!!

Difference between vanilla and Wise 3D model of the type IXD2 :

https://nsm09.casimages.com/img/2021/11/10//21111010353318069017661333.png (https://www.casimages.com/i/21111010353318069017661333.png.html)

I'm completly lost... :dead:

Maybe something is broken when I export or import the 3D model...

My import settings :

https://nsm09.casimages.com/img/2021/11/10//21111010434418069017661367.png (https://www.casimages.com/i/21111010434418069017661367.png.html)

The 2 successive error messages I have when I get a CTD :

https://nsm09.casimages.com/img/2021/11/10//21111010455918069017661369.png (https://www.casimages.com/i/21111010455918069017661369.png.html)

https://nsm09.casimages.com/img/2021/11/10//21111010455918069017661368.png (https://www.casimages.com/i/21111010455918069017661368.png.html)

Mister_M
11-10-21, 02:17 PM
It works very well as a sea unit :

https://nsm09.casimages.com/img/2021/11/10//21111008360418069017662513.png (https://www.casimages.com/i/21111008360418069017662513.png.html)

https://nsm09.casimages.com/img/2021/11/10//21111008360518069017662514.png (https://www.casimages.com/i/21111008360518069017662514.png.html)

Mister_M
11-16-21, 07:13 AM
So, is anyone able to explain to me why SH3 crashes to desktop after I've changed the 3D model of a playable submarine ??? :/\\!!

areo16
12-30-21, 12:41 PM
So, is anyone able to explain to me why SH3 crashes to desktop after I've changed the 3D model of a playable submarine ??? :/\\!!

Is the Silent Hunter 3ditor base Id the same as the original human playable base Id? (I mean the hex Id it uses to remap all the hex Ids in the dat file)

I forget if this matters or not, but it may.

Anvar1061
12-31-21, 02:40 AM
Why are you doing this? There is no need to export the model. Make the necessary copy and paste it into the expected area. Delete the old one by remembering its Id and assigning it to the copied one. Change the serial number (usually by 1 up) and voila. You may have to change the texture. Also by copying the entire Alt+Ctl+C block and pasting Ctl+V above.

Mister_M
03-11-22, 02:19 PM
I would need Russian Subsim members to find technical plans of the type C soviet submarine showing the internal compartments. I would like to add realistic zones disposition. Thanks in advance.

By the way, who is interested in a soviet type C submarine for SH3 ? See pictures in my previous post.

Anvar1061
03-12-22, 04:54 AM
https://wiki.gcdn.co/images/e/ec/Перископ.jpghttps://wiki.gcdn.co/images/d/de/ТорпАпп.jpghttps://wiki.gcdn.co/images/3/30/Кают-компС-IX.jpghttps://wiki.gcdn.co/images/1/1b/Отсек.jpg

Mister_M
03-12-22, 10:45 AM
Thank you, very good pictures ! But do you have technical plans ?

A simpler model like this one https://free3d.com/3d-model/soviet-submarine-c-56-5379.html would be more appropriate for SH3 IMO...

Anvar1061
03-12-22, 12:03 PM
https://wiki.gcdn.co/images/2/23/Продольный_срез_С-56.jpeg

https://web.archive.org/web/20070825010121/http://mkmagazin.almanacwhf.ru/ships/draw/s_7.rar

Mister_M
03-12-22, 04:40 PM
Thank you ! Good pictures, but a bit hard to see the different compartments.

If someone is interested in creating a simple 3D model (and texture) of this soviet submarine, I can provide him my files : 3D model (from the Soviet Waterways mod, this model is a good template to start from), files created for SH3 including the library files (guns), technical plans & pictures (for correct paint colors).

I won't release a mod for this unit, it's just a waste of ressources for SH3...

Mister_M
03-20-22, 10:14 AM
I won't release a mod for this unit, it's just a waste of ressources for SH3...

Number of triangles :

Submarine : 109488
Main gun : 63090
Secondary gun : 13740

In total : 186318 ! ... :timeout: