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 04-08-12, 02:10 PM   #1141
Vanilla
Lieutenant
 
Join Date: Nov 2006
Location: St. Petersburg, Russia
Posts: 264
Downloads: 73
Uploads: 0
Pathetic! This Goblin cannot add a new sapiens controller to a submarine waypoints GR2 file, it can add one to a linked-in room GR2 file but not to the main sub's file. That means we cannot add a new char to TRA, EXT, or CT rooms. EXT and CT are not a problem but TRA is where E-machinen a located and there must be at least one more Matrose there but we cannot create him. I hoped to circumvent this by creating a new GR2 with waypoints for TRA room (I created an extra waypoints_info.txt already before) but this is not possible since I am not able to delete the bones from the main sub's waypoints file. I can rename them and move them somewhere off the screen, but this will be confusing, particularly for future modders. Hence the question:
@TDW,
I know it is problematic but can deletion of bones be enabled or is it to early/too much to ask?
Vanilla is offline   Reply With Quote
Old 04-08-12, 03:34 PM   #1142
THE_MASK
Ace of the deep .
 
THE_MASK's Avatar
 
Join Date: Jan 2006
Posts: 9,153
Downloads: 901
Uploads: 73


Default

Quote:
Originally Posted by Vanilla View Post
Pathetic! This Goblin cannot add a new sapiens controller to a submarine waypoints GR2 file, it can add one to a linked-in room GR2 file but not to the main sub's file. That means we cannot add a new char to TRA, EXT, or CT rooms. EXT and CT are not a problem but TRA is where E-machinen a located and there must be at least one more Matrose there but we cannot create him. I hoped to circumvent this by creating a new GR2 with waypoints for TRA room (I created an extra waypoints_info.txt already before) but this is not possible since I am not able to delete the bones from the main sub's waypoints file. I can rename them and move them somewhere off the screen, but this will be confusing, particularly for future modders. Hence the question:
@TDW,
I know it is problematic but can deletion of bones be enabled or is it to early/too much to ask?
Is this valid ?
[UserPlayerUnit 1.Compartment 8.CrewMemberSlot 2]
ID=CrewMemberSlot_CR_CT2
NameDisplayable= Command Room Crew
Type= Sailor
ActivityCategory= BaseActivity-Diesel-Engine-Category
WatchIndex= 2
; csaitan: hack - use this human here (to change this!! a human must NOT be placed on 2 or more slots)
IDLinkCrewMember= Crew-Seaman-Rank-1-QRF
WatchCrewMemberSlot3D= NULL
BattleStationsCrewMemberSlot3D= PM_dummy
WatchAccessoriesForAdding3DObjects= NULL
WatchAccessoriesForSubtracting3DObjects= NULL
BattleAccessoriesForAdding3DObjects= NULL
BattleAccessoriesForSubtracting3DObjects= NULL
THE_MASK is offline   Reply With Quote
Old 04-09-12, 11:52 AM   #1143
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by Vanilla View Post
Regarding the missing waypoints. I am 99% sure those are erroneous entries (i.e. that is a bug) in the waypoints_info files. If you have a waypoint in a waypoints_info it will show in Goblin tree but it will not be rendered as there is obviously nothing to render, opposite is true as well, if you have a waypoint in a GR2 but not in the waypoints_info it will be shown in the tree and when you click on it the axii (red, blue, green) will be shown but the waypoint will not be rendered and cannot be used.
As I said I am pretty much sure those three are erroneous extra entries ***8212; somebody had added them (or at least had planned to add) to the 3dsmax's file and to the waypoints_info but then did not imported it into gr2. Did I mention unfinished game already?
I deleted those entries in my modding. Had no problems so far.
The same is true for this one-way edge in the radio room, you can as well delete it since it is not used anywhere in the scripts and the animation defined for it does not exist (which is true for like half of the animations defined in the edges files but not existing in SH5 as released). In this case I replaced the missing animations with WALK for now. Hopefuly will be able to create the missing animations later, though I have no knowledge whatsoever on 3d animations.

As a side note - the turning problem struck again. I cannot get rid of turning when transiting from one animation to another inside a compartment. If I use for example a jump out animation and then walk the bl**dy char first faces the stern then turn then walks. And it appears that I wrongy supposed that I can define orientation of animations in animations_info files, these two numbers that supposed to define the orientation have no effect on the game whatsoever, I wonder if they are there just for reference (?). So again, unless we can tap into the animations somehow we won't be able to get rid of this turning once and for all. As of now we will have to live with some extra turning and clipping for now, I proceed with what we have, then we'll see. At least I got rid of this cross-compartment turning. I already have several guys running towards the bows when crash dive happens.
Good info The joys of voyaging into unchartered waters

Quote:
Originally Posted by Vanilla View Post
WT* waypoints are defined in the conning towers' gr2s.
Ah yes, I didn't think about that This leads me to think about adding something else to the app...

Quote:
Originally Posted by Vanilla View Post
Pathetic! This Goblin cannot add a new sapiens controller to a submarine waypoints GR2 file, it can add one to a linked-in room GR2 file but not to the main sub's file. That means we cannot add a new char to TRA, EXT, or CT rooms. EXT and CT are not a problem but TRA is where E-machinen a located and there must be at least one more Matrose there but we cannot create him. I hoped to circumvent this by creating a new GR2 with waypoints for TRA room (I created an extra waypoints_info.txt already before) but this is not possible since I am not able to delete the bones from the main sub's waypoints file. I can rename them and move them somewhere off the screen, but this will be confusing, particularly for future modders. Hence the question:
@TDW,
I know it is problematic but can deletion of bones be enabled or is it to early/too much to ask?
Aren't the sapiens controller defined in the CHR file I seem to recall seeing that controller in there.

Deletion of anything I'm still sorting out. My deallocater can remove the object no problem. It's the left over pointers (and datatype definition defines) that I have to deal with. I have to ensure they aren't referenced to anything before removing them. If I remove one that shouldn't be removed then the GR2 file is shredded. So this feature is still a WIP.
TheDarkWraith is offline   Reply With Quote
Old 04-09-12, 02:02 PM   #1144
Vanilla
Lieutenant
 
Join Date: Nov 2006
Location: St. Petersburg, Russia
Posts: 264
Downloads: 73
Uploads: 0
Default

Quote:
Originally Posted by sober View Post
Is this valid ?
[UserPlayerUnit 1.Compartment 8.CrewMemberSlot 2]
ID=CrewMemberSlot_CR_CT2
NameDisplayable= Command Room Crew
Type= Sailor
ActivityCategory= BaseActivity-Diesel-Engine-Category
WatchIndex= 2
; csaitan: hack - use this human here (to change this!! a human must NOT be placed on 2 or more slots)
IDLinkCrewMember= Crew-Seaman-Rank-1-QRF
WatchCrewMemberSlot3D= NULL
BattleStationsCrewMemberSlot3D= PM_dummy
WatchAccessoriesForAdding3DObjects= NULL
WatchAccessoriesForSubtracting3DObjects= NULL
BattleAccessoriesForAdding3DObjects= NULL
BattleAccessoriesForSubtracting3DObjects= NULL
Hey sober! Now you've got me puzzled! Sorry, I am not of much help I doesn't even know from which file is this piece! By all means please tell me!

Last edited by Vanilla; 04-09-12 at 02:19 PM.
Vanilla is offline   Reply With Quote
Old 04-09-12, 02:19 PM   #1145
Vanilla
Lieutenant
 
Join Date: Nov 2006
Location: St. Petersburg, Russia
Posts: 264
Downloads: 73
Uploads: 0
Quote:
Originally Posted by TheDarkWraith View Post
...
Aren't the sapiens controller defined in the CHR file I seem to recall seeing that controller in there.

Deletion of anything I'm still sorting out. My deallocater can remove the object no problem. It's the left over pointers (and datatype definition defines) that I have to deal with. I have to ensure they aren't referenced to anything before removing them. If I remove one that shouldn't be removed then the GR2 file is shredded. So this feature is still a WIP.
You're right abouth the CHR file, the problem is that the Goblin just cannot get its binary head around assigning a new controller to a bone defined in the main sub file not a one linked to it, that is it crashes even befre you even get to CHR part of it. The way you do it normaly is you just right-click on a waypoint in Goblin's Scene Tree, then choose Edit controllers, then add Sapiens controller, when you've finished creating a sapiens controller, you then drag it to the respective CHR file. It works for all the waypoints except the ones defined in the sub's main waypoints file (NSS_Uboat7a.waypoints.GR2 for example), it crashes as soon as you move Sapiens controller to the right in the controllers window. The main waypoints file contains only TRA (e-machined and aft-torpedo room) room and EXT room. EXT room only waypoint is the deck-gun so no problems here, but TRA room have many chars in it. I could create a new file for TRA waypoints and link it in, then we will be able to use Goblin, but I wil need to delete bones in the files I'll have cloned.
On the other hand it is not a major problem, it would be much better if each char was born on its 'home' waypoint if we hope to create watch-shifts later and 'home' (that is the bunks they sleep in) for the guys in the E-machinen and aft-torpedo rooms are the forward torpedo room where all the sailors sleep and live and the aft 'unteroffizieren' room - the room where all the juinor officiers reside. So I created the chars in the TRF room and don't actualy need to tinker with this Goblin problem at all. So don't bother too much!
Sorry if I am not explaining all this clear enough.
Vanilla is offline   Reply With Quote
Old 04-10-12, 03:55 AM   #1146
THE_MASK
Ace of the deep .
 
THE_MASK's Avatar
 
Join Date: Jan 2006
Posts: 9,153
Downloads: 901
Uploads: 73


Default

So to change the color in the red box i need an external program ?
THE_MASK is offline   Reply With Quote
Old 04-10-12, 08:55 AM   #1147
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by sober View Post
So to change the color in the red box i need an external program ?
You'll need to select the faces and then export the UVs and texture. If those UV coordinates don't overlap with anything then you can color them whatever you want via the texture assigned to those UV coordinates (using Photoshop or Gimp or the likes). Make sense? BIGREG can probably explain it better than I can
TheDarkWraith is offline   Reply With Quote
Old 04-10-12, 05:18 PM   #1148
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Been working heavily on the next test version concentrating mainly on bug fixes, render fixes, and improving what the app can currently do. I expanded the LNK@ feature so that you can choose to automatically link in those entries that are Object_, Room_, and anything else (called Others in the menu's options). I tested this on the King George V and exposed a major overlook in my code: the same GR2 file can be assigned to many LNK@ entries Prime example is the 1X10X6_version_01 on the King George V. It's used in two places. One of which was placed poorly:


Notice one of the waypoints is off the side of the ship Well this 'error' gave me some insight into what the #01, #02, etc. mean after an entry: it's the current number of the item. Duh. Why I didn't realize that before I don't know For example: the two 1X10X6_version_01's are LNK@1X10X6_version01#01 and LNK@1X10X6_version01#02.

After thinking about the problem above for some time I realized that this 'problem' would rear it's ugly head again but this time be even more sinister. Every GR2 file opened with the app has a variable that is a list of bones - these are the LNK@ bones that it is linked to. When I go to render the GR2 file I check to see if it has any LNK@ bones. If not, then I just render the file normally. If it does then it iterate over every link bone calculating the needed rendering position and rendering it. This is all fine and dandy. What I failed to plan for was user picking

If the GR2 file is linked to only one bone then everything is ok. If it's linked to more than one then the problem rears it's ugly head. The code was taking the first link bone if it had one and calculating whether the picking ray intersected anything or not. If the user was trying to pick the second rendering of the GR2 file it would always fail (never be picked). I have to change the code to iterate over every link bone, calculating that position, and seeing whether the picking ray intersected it or not.

Even if the GR2 file is linked to only one bone there was still an underlying problem that didn't expose itself until I tried picking something in a room of one of the subs. In Room_TRF I tried picking the pinup poster that's mounted on the right wall. It took about 3 minutes for it to finally find it and pick it. I was thinking to myself WTH? I dove into the code and saw my error - I was iterating over every file's model's mesh finally testing for intersection at the mesh level. HIGHLY INEFFICIENT I have to change the code so that it looks at the file's overall bounding sphere first. If it passes that test then I check the overall bounding sphere of each model. If that passes then I check the overall bounding sphere of each model's mesh. If a mesh passes then I add it to a list of positives. I then iterate over all the positives and find the one that's closest to the user - thus rendering the selected mesh (this all applies to selecting vertices and bones also).

Found many problems in the menu also (logic wise). Those have been fixed.

The 3 numbers in the bottom right corner are for memory usage: current / max used at any time / max allowed. Max allowed can vary based on the current 'demand' placed on the app.

I adjusted the app so that it's process asks for more min and max memory. This resulted in a very noticeable speed improvement in loading and unloading GR2 files. I was checking GC (garbage collection) stats while the app was running and loading/unloading GR2 files and saw way too much activity. This made me realize that the app needed more working memory to play with!

I still haven't been able to code the UI for the waypoints. I have to stop finding my own errors

Last edited by TheDarkWraith; 04-10-12 at 11:18 PM.
TheDarkWraith is offline   Reply With Quote
Old 04-10-12, 05:27 PM   #1149
The General
The Old Man
 
Join Date: Aug 2006
Location: Aberdare, Wales, U.K.
Posts: 1,551
Downloads: 190
Uploads: 3
Default

You're a one-man army
__________________
***THE GENERAL***
The General is offline   Reply With Quote
Old 04-10-12, 11:23 PM   #1150
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Had to take back what I said about the one waypoint being offscreen and it being because of Ubi's poor quality control (and edited my previous post about it). That was my fault. One little typo caused an incorrect matrix multiplication. Now the rendering of duplicate LNK@ nodes is correct. Even the user picking of them is working correctly In the below I picked one bone from the LNK@ file and since it is duplicated on the other side of the ship it shows that I picked 2 bones


TheDarkWraith is offline   Reply With Quote
Old 04-11-12, 12:27 PM   #1151
PL_Andrev
Grey Wolf
 
Join Date: Feb 2009
Posts: 995
Downloads: 91
Uploads: 0
Default

Please forgive me my stupid question, but...

What do bones do at KGV?
I expected that bones are used in animations (uboat crew) only...
__________________

PL_Andrev is offline   Reply With Quote
Old 04-11-12, 01:59 PM   #1152
BIGREG
Grey Wolf
 
Join Date: Oct 2005
Location: Bretagne-FRANCE
Posts: 813
Downloads: 155
Uploads: 0
Quote:
Originally Posted by sober View Post
So to change the color in the red box i need an external program ?
Quote:
TheDarkWraith:You'll need to select the faces and then export the UVs and texture. If those UV coordinates don't overlap with anything then you can color them whatever you want via the texture assigned to those UV coordinates (using Photoshop or Gimp or the likes). Make sense? BIGREG can probably explain it better than I can
Hi

I just tried to write, how to explain simply , but it is quite complicated or i need to redo a thread , the trick is to know that:

- There are duplicates, as well as, the "Material and Maps" not used and both the same number of "Map" can be used by other Meshes !
- take a good look: The number and names of "Maps" used. by the "subset" of the mesh

If necessary, tell me what name. GR2 you want to redo (outside of the conning tower?)
And if you need my help and more advice for making the change
I also wanted to tell you that , I managed to add "halos "of light, for the lights indicators in the conning tower with the addition of" Bones "
Merci TDW you it's really convenient because with "Bones" is an open door for adding full things (sounds, lights, objects
I should try the principle of antennas and other items taken in other files . GR2 (kinds of objects from other rooms or parts of charatere .gr2 )

TDW have you find a way to delete Material and/or Maps in .GR2
__________________
~~~~BigReg~BigRegOne~~~~



"Better watch where you do not go, because where were going, we will know what it is when we get there, and anyway, it will never be only water."

Proverbe Shadok
BIGREG is offline   Reply With Quote
Old 04-11-12, 04:21 PM   #1153
The General
The Old Man
 
Join Date: Aug 2006
Location: Aberdare, Wales, U.K.
Posts: 1,551
Downloads: 190
Uploads: 3
Default

Quote:
Originally Posted by BIGREG View Post
I also wanted to tell you that , I managed to add "halos "of light, for the lights indicators in the conning tower with the addition of" Bones "
Could we see a screenshot?
__________________
***THE GENERAL***
The General is offline   Reply With Quote
Old 04-11-12, 04:38 PM   #1154
BIGREG
Grey Wolf
 
Join Date: Oct 2005
Location: Bretagne-FRANCE
Posts: 813
Downloads: 155
Uploads: 0
Default

I just watched the file: data \ Submarine \ NSS_Uboat7c \ Submarine Parts \ Conning_7C_01.GR2 and no luck , only two Materials, and Maps used
(one for the deck Map # 13 and the other for the coating Map # 12 )

Therefore no way to use many textures for the moment

Edit: @ The General ,Tomorrow, I'll post a screenshot ,but here it is midnight ,and i must going to sleep
But is easy to do ,i have just use goblin editor and attach of the new bone the SHcontrollers: LightHallo in the merged .sim to have a white light hallo (no animation)
__________________
~~~~BigReg~BigRegOne~~~~



"Better watch where you do not go, because where were going, we will know what it is when we get there, and anyway, it will never be only water."

Proverbe Shadok

Last edited by BIGREG; 04-11-12 at 05:00 PM.
BIGREG is offline   Reply With Quote
Old 04-13-12, 10:13 AM   #1155
The General
The Old Man
 
Join Date: Aug 2006
Location: Aberdare, Wales, U.K.
Posts: 1,551
Downloads: 190
Uploads: 3
Default

How 'bout that screenshot BigReg?
__________________
***THE GENERAL***
The General is offline   Reply With Quote
Reply


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 04:39 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.