Log in

View Full Version : Deck gun,, solved one problem,, found another, Please, help!!


USS Sea Tiger
08-21-08, 10:33 PM
Hi

finally I am successful in exporting into the 7 and IX class boats.

The Type II and XXI are built bow facing z and top facing Y and flipped surfaces
the type VII and iX are built bow facing y and top facing Z, and non flipped surfaces.

but alas the problem I need help on as I do not understand.

It will only show the models if I delete the Cfg M01 line, the main deck gun, If I leave it in,, the game will crash every time.

I tryed Xcloning the dat file, but still same results.

Dietrich
08-22-08, 06:19 AM
It will only show the models if I delete the Cfg M01 line, the main deck gun, If I leave it in,, the game will crash every time.
I'm not sure which M01 you mean, but I'm guessing the one in data\cfg\Basic.cfg which reads:

M01_00=0

(depending on the year, the "00" will change). Right... here goes.

The "M01" should be included if your selected conning tower permits one. Thus, if you see "Z01_00=9" (which is the IX/1 tower), then because it permits a deck gun, you should include the M01 line. You can check which towers allow deck guns by going down to the "CONING_TYPE" section. Search for "CONING_TYPE0" (note the spelling of CONING) and you'll see what the tower would expect as default.

The "00" is a function of the year. For example, in the file there is a section for each year that the VIIC is available. In the 1939 section, it is M01_00, in 1940 it is M01_10, in 1941 it is M01_20, and so forth. A common mistake is that people cut-and-paste these lines into different years, and forget to change those digits.

Note also that "00" is not 1939 per se, it is the first year that the U-boat is listed. Thus, for a VIIC/41, M01_00 actually refers to 1942, as that is the first year that boat is availble.

Next point... you cannot alter the years of availability of the boat. Even if you replace the VIIC/41 with a IIB, it will still only be availble in 1942-1945. I know it looks like you can change the config file to alter that, but it DOESN'T WORK. This is due to the fact that the U-boat availabiltiy is also hard coded into the game.

Finally, to get rid of a deck gun, you can't just delete the line (see reasons given above). Instead you have to set it to "-1". For example:

M01_00=-1

I hope that helps. (And I hope it answered your question!)

USS Sea Tiger
08-22-08, 01:14 PM
it is the cfg line in the .DAT file for the main body/hull itself that is causing the crash when I import the new models.
if the cfg#M01 line is in there ,, even if not visible, it will cause a crash.

Once Deleted, there is no problem,, but also no Deck Gun.

DivingDuck
08-22-08, 10:37 PM
Moin USS Sea Tiger,

what happens, when you leave the M01 line in the *.cfg blank? Will the game crash then too? If so, there probably is one or more duplicate id´s. This will definitely cause a CTD. Check the new nodes you´ve imported for any doubles.

Regards,
DD

USS Sea Tiger
08-22-08, 11:32 PM
Hi

I added no new nodes,
Just imported the model is all
there is only the one preset M01 node
if I delete the node line,, then it runs fine,, just no deck gun

DivingDuck
08-23-08, 05:48 AM
Moin,

can you give a brief history of what you´ve done? Did you alter the *.dat file?

Regards,
DD

USS Sea Tiger
08-23-08, 12:52 PM
Hello

I too was thinking it might be a .dat file issue, so I fully restored the VIIb ANd Viic file in the .dat and in the basic/config, The stock subs showed then very correctly.

I then reimport just the models into the 7b and 7c .dat file, changed nothing,
and the boat then appeared with gun for one scenerio game, but then will crash every time thereafter when loading a scenerio, even though i change nothing or any values.

I still am confounded why it will show one time and not AGAIN

DivingDuck
08-26-08, 06:37 PM
How did you import the models?

Regards,
DD

USS Sea Tiger
08-26-08, 11:25 PM
I built in Gmax, convert to an .IM file, in my other 3d converter I then convert to .obj then import it into the game using s3d.

DivingDuck
09-04-08, 02:26 AM
Moin Sea Tiger,

have you ever tried to import the stock object back to the *.dat file? Maybe it´s an import problem. If it does import correctly and runs without CTD, try to export the stock 3d object and load/import it to your 3d graphics programm. Do not touch any of the vertices. Save/export it to *.obj again and re-import the 3d object to the stock model. Thus you can check whether the process of im-, exporting and converting is flawless.

Regards,
DD