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 03-15-12, 04:07 PM   #1
Rubini
Ocean Warrior
 
Join Date: May 2005
Location: São Paulo Brazil
Posts: 2,728
Downloads: 149
Uploads: 0
Default

Quote:
Originally Posted by TheDarkWraith View Post
1) There are two reasons why this is slow: 1) this is a managed app (C#) so there is overhead on everything and 2) when you elect to hide the UI the 'device' is 'lost' and thus has to be 'reset'. Once 'lost' all textures, meshes, basically anything in video memory has to be recreated (device reset). It's this recreating of everything that is really slowing everything down. Help menu should still work - I tested that many times using different combinations of full screen/normal screen UI hidden/not hidden to ensure it worked. You'll have to give me a step by step of what you did so I can try and recreate the problem.

2) I'm not sure why. Which material is this? What file do I need to open to see this?

3) I just coded in cloning of bones so next on list is adding/cloning new materials
Thanks again by the reply!

1.I will look again at the "H" key/help on screen issue. On the anterior version it was working. But you know...isn't the first time that in the end I found something messed at my end, so hold on!

2.The files in question:Room_CR.GR2, bone CR_bec_sticla, matetrial 4-Default, cfg#498, bec_submarine.dds. (IIRC - I'm at my work now - anyway this bone only have one material attached to it)

3.Will be a great advance to we edit/change/add material and textures on SH5 models!
__________________
One gamer's must-have mod is another gamer's waste of time.
-Sailor Steve
Rubini is offline   Reply With Quote
Old 03-15-12, 10:32 PM   #2
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

test version 1.1.112.0 available here: http://www.mediafire.com/?n9unlfo3vc5am6j

Enter key does nothing anymore. I have taken the app into the modern area as far as windows is concerned - context menu strips (These are those menus that appear when you right click on things). Now what you used to use enter for you right click and select what you want to do (tooltips have been revised and added as needed). This applies to the main render window also. If you have an item selected in the render window you can right click to see what options you have.

Fixed more PInvoke errors (those that I have found/encountered while using the app). These PInvoke 'errors' are because I took the app multi-threaded many versions ago.

Cloning of bones has been added. The new bone will be a clone of the original except:
- it's extendeddata will only be MaxProperties data
- it's name will default to the original bone's name + _clone. You are free to change the name to whatever you want after it's created

To clone a bone:
- select bone from Bones treeview
- File-->Clone-->Bone (I'll add a context menu strip item for this in the Bones treeview in next version)
- edit bone name if wanted

TheDarkWraith is offline   Reply With Quote
Old 03-16-12, 01:09 AM   #3
BIGREG
Grey Wolf
 
Join Date: Oct 2005
Location: Bretagne-FRANCE
Posts: 813
Downloads: 155
Uploads: 0
Default

Hi







What is this texture's name and in which file is it located ? i talking about the bec_submarine.dds
__________________
~~~~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 03-16-12, 02:22 AM   #4
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

test version 1.1.114.0 available here: http://www.mediafire.com/?19vtglwls1bwvql

You can now add new textures (File-->New-->Texture)

To change a material's texture:
- select material's Texture in materials tab
- right click and select 'Select new Texture from avaible textures'

@BIGREG - I'll look into the above tomorrow
TheDarkWraith is offline   Reply With Quote
Old 03-16-12, 05:34 AM   #5
Vanilla
Lieutenant
 
Join Date: Nov 2006
Location: St. Petersburg, Russia
Posts: 264
Downloads: 73
Uploads: 0
Default

Quote:
Originally Posted by TheDarkWraith View Post
...
Cloning of bones has been added.
...
Much awaited! Thank you!
Vanilla is offline   Reply With Quote
Old 03-16-12, 12:19 PM   #6
Rubini
Ocean Warrior
 
Join Date: May 2005
Location: São Paulo Brazil
Posts: 2,728
Downloads: 149
Uploads: 0
Default

Here some quick feedback on your last version 114:

1. The "H" help key contend works at first but continues not be showing after you hide/show UI.

2. The clone bone function works, but not for the bone that i´m working on!!. Confirm here: file Rom_CR.gr2, bone CR_bec_sticla. It gives a error and stop the GR2 editor.

3. To solve the light bulb and the rod antenna issue (that i´m working on) we need to have the hability to add/delete a material for a bone. As it is now i can only change names (material and textures) but not really "edit" the material for a bone.

4. I can´t open the file UBoot_Sensors.GR2 without an error and automatically close of GR2 editor.
It says: "extendeddata unknown x is not 0x0!" (where x = 1, 2, 3...etc)
__________________
One gamer's must-have mod is another gamer's waste of time.
-Sailor Steve

Last edited by Rubini; 03-16-12 at 01:50 PM.
Rubini is offline   Reply With Quote
Old 03-16-12, 02:07 PM   #7
Vanilla
Lieutenant
 
Join Date: Nov 2006
Location: St. Petersburg, Russia
Posts: 264
Downloads: 73
Uploads: 0
Default

'New->Bone' stopped doing anything for me (the skeleton is selected). My bad?

When panning view with the RMB 'Edit' context menu always appears when you release right button, makes zooming a bit clumsy.
Vanilla is offline   Reply With Quote
Old 03-16-12, 04:15 PM   #8
Vanilla
Lieutenant
 
Join Date: Nov 2006
Location: St. Petersburg, Russia
Posts: 264
Downloads: 73
Uploads: 0
Default

It is getting buisier in the Unteroffizierenraum (or how this room is called?).

Vanilla is offline   Reply With Quote
Old 03-17-12, 04:38 AM   #9
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by Rubini View Post
@TDW,

One more thing "Material" related. I was tryiing to change my Rod antenna texture to avoid that feeling that it is the "same as periscopes" but obviously that material/texture is used for a lot of others sensors objects. So i need to change the attached Material (or must be able to create a new one ) to the round antena. This way i can use a exclusive texture only for it. But as it is now GR2 Editor don´t allow me to do this "simple" task. Any idea? Am i doing something wrong?
Creating a new texture won't work? Or many other materials reference this material as a map?

Quote:
Originally Posted by BIGREG View Post
other way is to able to change just the texture of the mesh needed without change the other in the "tree" Please TDW

Edit : For the errors one exemple

If you change the diffuse map of the mesh you want , all works fine
(see in the "Meshes" menu -> select the Mesh->Subset->material and look in material to know how to "map number" is used)

But if you change the BumpMap ( relief ) in the editor you get not see the new one ,but just a "flat" one or not be loaded and when you look again in the menu "Meshes" the "material" is present !?
But that work ingame and in the goblin editor
I fixed the renaming problem. I knew that the Granny System hates duplicates of anything but I still went ahead and renamed the object vice creating a new embedded string for it. Now I create a new embedded string in the GR2 file for the object you change the name of. Now word of caution: everytime you rename an object I create a new embedded string in the GR2 file (even if it already exists). This means that if you change an object's name and then you go and change it again the first name is now 'orphaned' in the GR2 file (akin to memory leaks in windows).

Quote:
Originally Posted by Rubini View Post
1. Also I noticed that the help menu is gone (when pressing "H")

2. the new material's edition isn't available for that light bulb issue. It continues without possibility to edit/change/add anything. I tried to use a new real dds texture for bec_submarine.dds (so, no changes on .GR2 files at all). The game reads it but it loss the light emission...then probably the light emission/color for this material is yet hidden somewhere.

3.About to change a texture (now the rod antenna issue), it don't work because a lot of others objects uses the same material/texture. What need to be made here is to change/create a new material only for the rod antenna.
The rendering of the text (key H) bug has been fixed. This bug happened when you had text being rendered (help screen or the likes) and you minimized the app and then restored it.

You have multiple materials referencing a given texture? Why can't you create a new texture and have one of those materials reference the new texture? Creating new materials I'll be working on in the next coupe of days.

Quote:
Originally Posted by Rubini View Post
2.The files in question:Room_CR.GR2, bone CR_bec_sticla, matetrial 4-Default, cfg#498, bec_submarine.dds. (IIRC - I'm at my work now - anyway this bone only have one material attached to it)

3.Will be a great advance to we edit/change/add material and textures on SH5 models!
2. I'll take a look at these files

3. You can edit/change/add new textures currently. Materials are coming shortly.

Quote:
Originally Posted by Rubini View Post
1. The "H" help key contend works at first but continues not be showing after you hide/show UI.

2. The clone bone function works, but not for the bone that i´m working on!!. Confirm here: file Rom_CR.gr2, bone CR_bec_sticla. It gives a error and stop the GR2 editor.

3. To solve the light bulb and the rod antenna issue (that i´m working on) we need to have the hability to add/delete a material for a bone. As it is now i can only change names (material and textures) but not really "edit" the material for a bone.

4. I can´t open the file UBoot_Sensors.GR2 without an error and automatically close of GR2 editor.
It says: "extendeddata unknown x is not 0x0!" (where x = 1, 2, 3...etc)
1. see above

2. I'll load this file up tomorrow and try to clone it to see what's going on

3. As I mentioned above I'll be working on adding new materials in the upcoming days. Deleting of anything will come much later (I have the code to do it it's just figuring out the correct order to remove everything that I need to figure out)

4. Problem is due to a multi-threading problem in the app. There are mutliple objects (thread) trying to read from one/many () variables all at the same time which is a problem. I have to narrow down the offenders and use locks on them. Because of this I have taken the app back to single-threaded (loading times will increase some).

Quote:
Originally Posted by Vanilla View Post
'New->Bone' stopped doing anything for me (the skeleton is selected). My bad?

When panning view with the RMB 'Edit' context menu always appears when you release right button, makes zooming a bit clumsy.
Fixed the New-->Bone problem. The problem appeared when I enabled the ability to clone bones.

The panning view RMB 'Edit' context menu has been removed from the render window.

More context menus and menu items have been added to the treeviews.

Fixed other errors I encountered while using the app.

Test version 1.1.116.0 available here: http://www.mediafire.com/?8z7tw2q9lpd7qiq
TheDarkWraith is offline   Reply With Quote
Old 03-17-12, 09:08 AM   #10
BIGREG
Grey Wolf
 
Join Date: Oct 2005
Location: Bretagne-FRANCE
Posts: 813
Downloads: 155
Uploads: 0
Default

Hi TDW

Here a little picture

__________________
~~~~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 03-17-12, 04:47 PM   #11
Vanilla
Lieutenant
 
Join Date: Nov 2006
Location: St. Petersburg, Russia
Posts: 264
Downloads: 73
Uploads: 0
Default

Quote:
Originally Posted by TheDarkWraith View Post
...
I fixed the renaming problem. I knew that the Granny System hates duplicates of anything but I still went ahead and renamed the object vice creating a new embedded string for it. Now I create a new embedded string in the GR2 file for the object you change the name of. Now word of caution: everytime you rename an object I create a new embedded string in the GR2 file (even if it already exists). This means that if you change an object's name and then you go and change it again the first name is now 'orphaned' in the GR2 file (akin to memory leaks in windows).
So we'd better not rename anything or risk unnecessary increasing file-size? I mean I am creating several 'layers' of waypoints for different situations and needs (like 'run-web' layer in addition to standart 'walk-web' layer, or 'crash-dive TRF positions' layer in addition to standard TRF one) by copying and editing original files and then linking them through @LNK, I guess it will be easier to understand and edit, but this requires renaming of many waypoints in the copied files, should I better not do this but rather create complete new bones instead?

- bug: cannot clone bone SQ_SQ_WP02_DOOR, gives unhandled exception: cannot convert bone to skeleton error

- issue noticed: when I 'add' waypoints.gr2 to the room.gr2 linking the waypoints to their intended locations in the room no longer work. I mean the waypoints appear at 0, 0, 0 world coordinates.

- this is one is long there: if you modify something, then save, then close not changing anything, the Editor still pops the 'The file was modified. Do you wish to save?' dialog, that's a bit confusing. Just opening and closing not doing anything does not invoke the dialog.

- On 1400 x 900 resolution bone creation dialog is messed: name, parent, gr2 file and flags fields are clipping onto each other.

And a wish: is it possible to have a default camera position, so that I don't have to 'zoom-in' everytime I open a file? I mean if it is not too difficult to do, there are many more important things I know.

Last edited by Vanilla; 03-17-12 at 05:19 PM.
Vanilla is offline   Reply With Quote
Old 03-17-12, 05:09 PM   #12
Rubini
Ocean Warrior
 
Join Date: May 2005
Location: São Paulo Brazil
Posts: 2,728
Downloads: 149
Uploads: 0
Default

Quote:
Originally Posted by TheDarkWraith View Post
Creating a new texture won't work? Or many other materials reference this material as a map?

You have multiple materials referencing a given texture? Why can't you create a new texture and have one of those materials reference the new texture? Creating new materials I'll be working on in the next coupe of days.
Yes, exactly this is the problem. I have one texture being used by a lot of materials. I can´t remember if others materials are using the same map in this case ... I will look at this now with this last GR2 Editor version (because i could not open the file on the lasts versions) feedback soon!
__________________
One gamer's must-have mod is another gamer's waste of time.
-Sailor Steve
Rubini is offline   Reply With Quote
Old 03-17-12, 03:24 AM   #13
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by Rubini View Post
1. The "H" help key contend works at first but continues not be showing after you hide/show UI.

2. The clone bone function works, but not for the bone that i´m working on!!. Confirm here: file Rom_CR.gr2, bone CR_bec_sticla. It gives a error and stop the GR2 editor.

3. To solve the light bulb and the rod antenna issue (that i´m working on) we need to have the hability to add/delete a material for a bone. As it is now i can only change names (material and textures) but not really "edit" the material for a bone.

4. I can´t open the file UBoot_Sensors.GR2 without an error and automatically close of GR2 editor.
It says: "extendeddata unknown x is not 0x0!" (where x = 1, 2, 3...etc)
1. will look into it

2. will check them out

3. You can add new textures. I'll work on adding new materials in the upcoming days

4. I broke extendeddata again I'll look into it
TheDarkWraith is offline   Reply With Quote
Old 03-17-12, 03:47 AM   #14
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

I didn't break extendeddata The problem is a multi-threading problem, more specifically more than one object (thread) trying to read from a variable at the same time. I know it has to do with GR2 files with more than one model so I have a place to start looking in the code. Multi-threaded bugs are the hardest to eliminate

One excellent thing I did was used pre-processor directives to allow me to enable the app as multi-threaded or single threaded. I switched it back to single-threaded and was able to load the UBoat_sensors.GR2 file which tells me a multi-threaded problem.

Good news is almost all the errors posted so far by you all have been fixed
TheDarkWraith is offline   Reply With Quote
Old 03-17-12, 03:56 AM   #15
pedrobas
Seasoned Skipper
 
Join Date: Apr 2007
Location: Huelva, Spain
Posts: 664
Downloads: 301
Uploads: 0
Default

Quote:
Originally Posted by TheDarkWraith View Post
I didn't break extendeddata The problem is a multi-threading problem, more specifically more than one object (thread) trying to read from a variable at the same time. I know it has to do with GR2 files with more than one model so I have a place to start looking in the code. Multi-threaded bugs are the hardest to eliminate

One excellent thing I did was used pre-processor directives to allow me to enable the app as multi-threaded or single threaded. I switched it back to single-threaded and was able to load the UBoat_sensors.GR2 file which tells me a multi-threaded problem.

Good news is almost all the errors posted so far by you all have been fixed
pedrobas is offline   Reply With Quote
Reply

Thread Tools
Display Modes

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 05:01 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.