SUBSIM Radio Room Forums

SUBSIM Radio Room Forums (https://www.subsim.com/radioroom/index.php)
-   SH5 Mods Workshop (https://www.subsim.com/radioroom/forumdisplay.php?f=249)
-   -   [WIP] Type IX for sh5 (https://www.subsim.com/radioroom/showthread.php?t=233811)

mkiii 11-10-17 06:06 AM

https://s19.postimg.org/fojjzh6n7/SH...0_10.52.45.png

https://s19.postimg.org/c4xm9mlwz/SH...0_10.52.07.png


Good news is things are progressing :)

Bad news is due to inexperience I made a fundamental mistake right at the very begining, which means doing everything again from scratch. :hmmm:

OldCoder 11-11-17 01:07 PM

Must be gutting to have to start again if necessary, but just as some encouragement the screenshots look incredible! :Kaleun_Cheers:

mkiii 11-12-17 09:28 AM

https://s19.postimg.org/mi01j2v1v/SH...1_17.31.37.png


ok needed a break from bones and meshes, and Brest!
so I renamed all my 7c41 files to IXB, did roster names flotillas etc, and loaded it with mod enabler.

problem 1....still no conning tower on the sub, even tried putting it in the objects folder and linking to that....still no joy:hmmm:

problem 2 ...why is it screwing up my ui, on the face of it there is nothing in there that should do this, it must be a script thing,

on a positive note, it did not crash the engine, so not a complete disaster

disable the mod, all is back to normal.
on a stock game just get the no conning tower thing.

vdr1981 11-12-17 03:29 PM

This must be a minor mistake in some file , I'm sure of it...
At the beginning of submarine upcge file you'll find few lines which defines stock and other available conning towers. Did you see them?
I can't copy paste parts of code. sorry, posting from phone...

mkiii 11-12-17 04:09 PM

Quote:

Originally Posted by vdr1981 (Post 2524847)
This must be a minor mistake in some file , I'm sure of it...
At the beginning of submarine upcge file you'll find few lines which defines stock and other available conning towers. Did you see them?
I can't copy paste parts of code. sorry, posting from phone...

yes vecko seen those, Ihave altered everything that seems to need altering.

as a 7c41 the ct loads fine as you have already seen,
but as a ix using the same files no ct, I get the hull in the bunker and a messed up ui instead.

no time for it now, shower and bed, up at 5am for the start of nother glorious work week:har:

mkiii 11-13-17 02:43 PM

@ Vecko

[UnitPart 1]
ID= VIIC41Tower1
Type= VIIC41ConningTower ;Can only placed on unit parts slot of this type
NameDisplayable= VIIC41c1-Conning-Name
Info=VIIC41c1-Conning-Info
Notes=VIIC41c1-Conning-Notes
UnitPartInterval=NULL, NULL
ExternalLinkName3D= Conning_7c41_01,data\Submarine\NSS_Uboat7c41\Subma rine Parts\Conning_7C41_01
HullTextureNameOverride=NULL
HullLightmapTextureNameOverride=NULL
HullNormalmapTextureNameOverride= NULL
MenuSilhouetteTextureNameOverride= data\Textures\TNormal\tex\7C.dds
ImageIndex=2
TrackingID=103

each sub has its own numbered unitspart file 7c41 is unitparts3VIIC41

I made a new file called unitparts6IXB (next number in sequence after last sub in list)

my changes for IXB

[UnitPart 1]
ID= IXBTower1
Type= IXBConningTower ;Can only placed on unit parts slot of this type
NameDisplayable= IXB-Conning-Name
Info=
Notes=
UnitPartInterval=NULL, NULL
ExternalLinkName3D= Conning_IXB_01,Data\submarine\NSS_UboatIXB\Submari ne Parts\Conning_IXB_01
HullTextureNameOverride=NULL
HullLightmapTextureNameOverride=NULL
HullNormalmapTextureNameOverride= NULL
MenuSilhouetteTextureNameOverride= NULL
ImageIndex=2
TrackingID=103............I ALSO TRIED WITH THE LAST 2 ENTRIES DELETED, MADE NO DIFFERENCE

I loaded SH5 and if it CTD, I just went and looked through all the files again for any I had missed, until it loaded. FYI....even 1 wrong/missed entry in a single file would cause CTD

going to run file access monitor when sh5 loads, see if it throws any light on the situation,

qiaoyech 11-13-17 07:07 PM

Don't remember much but [UnitPart 1] sounds like trouble. I seem to recall the IDs have to be unique.

Edit: nvm this is inside a different file.

ExternalLinkName3D= Conning_IXB_01,Data\submarine\NSS_UboatIXB\Submari ne Parts\Conning_IXB_01

You sure this node is correct? Has to exist in dat/zon i think.

vdr1981 11-14-17 02:17 AM

Mkii, I'm afraid I wont be able to Involve actively for next 10 days or so because I'll use only my phone for internet access. After that I'll ask you to upload the files so we can start digging together...

vdr1981 11-14-17 02:31 AM

Quote:

Originally Posted by qiaoyech (Post 2525035)
Don't remember much but [UnitPart 1] sounds like trouble. I seem to recall the IDs have to be unique.

Edit: nvm this is inside a different file.

ExternalLinkName3D= Conning_IXB_01,Data\submarine\NSS_UboatIXB\Submari ne Parts\Conning_IXB_01

You sure this node is correct? Has to exist in dat/zon i think.

I don't think that Objects IDs are the problem here because we are dealing with playable sub which can be rendered only once all the time. It is more likely that the problem is somewhere in between upc/upcge and 3d object files, bones designations ect...

mkiii 11-14-17 11:32 AM

Quote:

Originally Posted by qiaoyech (Post 2525035)
Don't remember much but [UnitPart 1] sounds like trouble. I seem to recall the IDs have to be unique.

Edit: nvm this is inside a different file.

ExternalLinkName3D= Conning_IXB_01,Data\submarine\NSS_UboatIXB\Submari ne Parts\Conning_IXB_01

You sure this node is correct? Has to exist in dat/zon i think.


the node is Z01. its defined in another file, that is just the file link, actually moved z01 around in the mesh to position the tower on the new hull better, don`t think thats an issue.

mkiii 11-14-17 11:39 AM

Quote:

Originally Posted by vdr1981 (Post 2525055)
Mkii, I'm afraid I wont be able to Involve actively for next 10 days or so because I'll use only my phone for internet access. After that I'll ask you to upload the files so we can start digging together...

:up: no problem, still lots of other stuff to do vecko, lol I ran process monitor whilst loading sh5, got 14,434.200 file access events, about 12 million are sh5. it produced a 4.4 gb log file, got as far as the roster files last night, nothing is missing, all sub files loaded successfully, going to look for the conning tower entries later.

also need to figure out how to debug script files, because the default hud py file is reading something in the IX files, that is making it load what looks like the sh4 interface and freezing all the other parts on screen.

mkiii 11-14-17 12:59 PM

well I knew there was a lot of sh4 stuff left in all the folders, but going through the file listings sh5.exe is actually looking for data/library/ sh4 guns and radars. (it can`t find it coz its not there, but its still in the code to look for it)

propbeanie 11-14-17 01:03 PM

There's liable to be leftovers from SH3 in there also, if it's anything like SH4... :o

Jeff-Groves 11-14-17 08:49 PM

Python files can be viewed with a text editor.
Note pad or whatever you prefer. I use SweetScape 010 myself.
I scanned all the files in SH5 with 010 and can find no calls to the data/library/sh4 stuff you mention.

Granted it could be coded so a hex scan does not see it but it's easy to test.
Just put the called file in place and do a few edits to test it.

mkiii 11-15-17 12:28 PM

Quote:

Originally Posted by Jeff-Groves (Post 2525251)
Python files can be viewed with a text editor.
Note pad or whatever you prefer. I use SweetScape 010 myself.
I scanned all the files in SH5 with 010 and can find no calls to the data/library/sh4 stuff you mention.

Granted it could be coded so a hex scan does not see it but it's easy to test.
Just put the called file in place and do a few edits to test it.


its reading everything in the data folder Jeff, if it needs it or not, probably gets flushed further along in the code.


All times are GMT -5. The time now is 06:25 AM.

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