![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
|
|
04-08-12, 02:10 PM
|
#1 |
|
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? |
|
|
04-08-12, 03:34 PM
|
#2 | |
|
Ace of the deep .
|
Quote:
[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 |
|
|
|
04-09-12, 02:02 PM
|
#3 | |
|
Lieutenant
![]() Join Date: Nov 2006
Location: St. Petersburg, Russia
Posts: 264
Downloads: 73
Uploads: 0
|
Quote:
By all means please tell me!
Last edited by Vanilla; 04-09-12 at 02:19 PM. |
|
|
|
04-09-12, 11:52 AM
|
#4 | ||
|
Black Magic
![]() |
Quote:
The joys of voyaging into unchartered waters ![]() Ah yes, I didn't think about that Quote:
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. |
||
|
|
04-09-12, 02:19 PM
|
#5 | |
|
Lieutenant
![]() Join Date: Nov 2006
Location: St. Petersburg, Russia
Posts: 264
Downloads: 73
Uploads: 0
|
Quote:
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.
|
|
|
|
04-10-12, 03:55 AM
|
#6 |
|
Ace of the deep .
|
So to change the color in the red box i need an external program ?
|
|
|
04-10-12, 08:55 AM
|
#7 | |
|
Black Magic
![]() |
Quote:
|
|
|
|
04-10-12, 05:18 PM
|
#8 |
|
Black Magic
![]() |
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 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 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. |
|
|
04-10-12, 05:27 PM
|
#9 |
|
The Old Man
![]() Join Date: Aug 2006
Location: Aberdare, Wales, U.K.
Posts: 1,551
Downloads: 190
Uploads: 3
|
You're a one-man army
__________________
***THE GENERAL*** |
|
|
04-10-12, 11:23 PM
|
#10 |
|
Black Magic
![]() |
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 ![]()
|
|
|
04-11-12, 12:27 PM
|
#11 |
|
Grey Wolf
![]() Join Date: Feb 2009
Posts: 995
Downloads: 91
Uploads: 0
|
Please forgive me my stupid question, but...
What do bones do at KGV? I expected that bones are used in animations (uboat crew) only...
__________________
![]() |
|
|
04-11-12, 01:59 PM
|
#12 | ||
|
Grey Wolf
![]() Join Date: Oct 2005
Location: Bretagne-FRANCE
Posts: 813
Downloads: 155
Uploads: 0
|
Quote:
Quote:
![]() 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 |
||
|
|
04-11-12, 04:21 PM
|
#13 | |
|
The Old Man
![]() Join Date: Aug 2006
Location: Aberdare, Wales, U.K.
Posts: 1,551
Downloads: 190
Uploads: 3
|
Quote:
__________________
***THE GENERAL*** |
|
|
|
04-11-12, 04:38 PM
|
#14 |
|
Grey Wolf
![]() Join Date: Oct 2005
Location: Bretagne-FRANCE
Posts: 813
Downloads: 155
Uploads: 0
|
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. |
|
|
04-13-12, 10:13 AM
|
#15 |
|
The Old Man
![]() Join Date: Aug 2006
Location: Aberdare, Wales, U.K.
Posts: 1,551
Downloads: 190
Uploads: 3
|
How 'bout that screenshot BigReg?
__________________
***THE GENERAL*** |
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
