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 02-24-14, 08:35 PM   #1
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by gap View Post
Hi TDW,

with the latest version of your editor I get the following unmanaged exception whenever I maximize its window:

v1.1.443.1 released. See post #1

This fixes the bug gap reported above
TheDarkWraith is offline   Reply With Quote
Old 02-25-14, 10:36 AM   #2
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
Default

Quote:
Originally Posted by TheDarkWraith View Post
v1.1.443.1 released. See post #1

This fixes the bug gap reported above
Thank you TDW, it works

Quote:
Originally Posted by TheDarkWraith View Post
Opens just fine in current version. In fact it opens incredibly faster than other versions Just click OK to the image error boxes.
I finally managed to open that file and correctly export the gun mesh that I wanted to texturize. It resulted that the mesh is already UV mapped. On the con side, it appears that the material mapped on the model has no texture assigned though (double checked it with an hex editor). Assigning a texture with a "regular" GR2 file would be very easy using your application, but the file that we are talking about would be probably corrupt on saving it
__________________
_____________________
|May the Force be with you!|
...\/
gap is offline   Reply With Quote
Old 02-25-14, 10:39 AM   #3
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by gap View Post
I finally managed to open that file and correctly export the gun mesh that I wanted to texturize. It resulted that the mesh is already UV mapped. On the con side, it appears that the material mapped on the model has no texture assigned though (double checked it with an hex editor). Assigning a texture with a "regular" GR2 file would be very easy using your application, but the file that we are talking about would be probably corrupt on saving it
Why would it be corrupt on saving it? Why not just update the texture in the original GR2 file? Or maybe add a new texture and material just for this to the original GR2 file?
TheDarkWraith is offline   Reply With Quote
Old 02-25-14, 12:17 PM   #4
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
Default

Quote:
Originally Posted by TheDarkWraith View Post
Why would it be corrupt on saving it?
When I open that file, GR2 Editor reports several image error messages, and your file verification thing tells me that the file is possibly corrupt. Moreover, many parts whose materials have textures (I know it from hex editor, and because they are rendered with their textures in Goblin), are shown as having no texture in mesh/material project tree

Quote:
Originally Posted by TheDarkWraith View Post
Why not just update the texture in the original GR2 file?
Which texture? object1_C_Gun01 (this is the name of the part I want to fix) is among those meshes whose materials are shown in GR2 Editor as having no texture assigned, and in hex editor I couldn't find any texture file name which might apply to it. Either it really has no texture assigned, or I missed it.

Quote:
Originally Posted by TheDarkWraith View Post
Or maybe add a new texture and material just for this to the original GR2 file?
yep, this one would be the best solution, if I was sure that GR2 editor won't mess things up


Two more questions:
  • starting with one of the last versions of your Editor, I get a "Select location to save GetChainForSection 0 dump" message whenever I rename a model/skeleton/bone. This has to be some new feature, because I didn't get this message before. What is its use, and where should I save that file?
  • while setting a new character (cloned one of the stock character patches and remapped the id's of its Sapiens and SapiensManager controllers), Goblin gives me a division by zero error whenever I try to point the SapiensManager controller to the waypoint_info.txt in the new path. Is this normal? I have noticed that it also happens with the characters you have assembled for OH's PT boat, when their GR2 file is merged to the chr file.
  • related to the previous question: in its most basic version, characters' waypoint_info.txt looks like this:

    Code:
    start
    	1x1_version02_WPS01 offset 0 0 0 actions PATCH_1x1_V02_WPS01 end_actions
    end
    The first name declared (marked in orange above) obviously points to the name of the bone that the character gets attached to into the GR2 file, but what about the "action" name (in green)? I couldn't locate any softcoded file where character actions are set/listed

__________________
_____________________
|May the Force be with you!|
...\/
gap is offline   Reply With Quote
Old 02-25-14, 05:36 PM   #5
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by gap View Post
Which texture? object1_C_Gun01 (this is the name of the part I want to fix) is among those meshes whose materials are shown in GR2 Editor as having no texture assigned, and in hex editor I couldn't find any texture file name which might apply to it. Either it really has no texture assigned, or I missed it.


Two more questions:

  • starting with one of the last versions of your Editor, I get a "Select location to save GetChainForSection 0 dump" message whenever I rename a model/skeleton/bone. This has to be some new feature, because I didn't get this message before. What is its use, and where should I save that file?
  • while setting a new character (cloned one of the stock character patches and remapped the id's of its Sapiens and SapiensManager controllers), Goblin gives me a division by zero error whenever I try to point the SapiensManager controller to the waypoint_info.txt in the new path. Is this normal? I have noticed that it also happens with the characters you have assembled for OH's PT boat, when their GR2 file is merged to the chr file.
  • related to the previous question: in its most basic version, characters' waypoint_info.txt looks like this:

    Code:
    start
        1x1_version02_WPS01 offset 0 0 0 actions PATCH_1x1_V02_WPS01 end_actions
    end
    The first name declared (marked in orange above) obviously points to the name of the bone that the character gets attached to into the GR2 file, but what about the "action" name (in green)? I couldn't locate any softcoded file where character actions are set/listed

The material for the gun has two maps defined. Those two maps have no texture defined and thus is why you see no texture. I verified this with Granny Viewer and my app is correct in what it is telling you.

What you think is a new feature asking you where to save the file is actually some debug code I added that I forgot to turn off. It has been turned off in next version.

The 'actions' for what you posted can be found in \data\Scripts\AI\Crew\Secondary_Characters_Idle_Ac tions.aix
TheDarkWraith is offline   Reply With Quote
Old 02-25-14, 07:38 PM   #6
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
Default

Quote:
Originally Posted by TheDarkWraith View Post
The material for the gun has two maps defined. Those two maps have no texture defined and thus is why you see no texture. I verified this with Granny Viewer and my app is correct in what it is telling you.
Sure! Silly me, I dunno why I bothered to look for texture names with hex editor when I could have double checked the file with Granny Viewer

What do you think? can I set a new texture and save the file as normally, or GR2 editor would screw it, due to the image errors?

Quote:
Originally Posted by TheDarkWraith View Post
What you think is a new feature asking you where to save the file is actually some debug code I added that I forgot to turn off. It has been turned off in next version.
Quote:
Originally Posted by TheDarkWraith View Post
v1.1.444.1 released. See post #1

This fixes the bug above. It also fixes some bugs I found in the Materials tab and the Meshes tab (the Materials node of each mesh's subset).


Quote:
Originally Posted by TheDarkWraith View Post
The 'actions' for what you posted can be found in \data\Scripts\AI\Crew\Secondary_Characters_Idle_Ac tions.aix
Awesome, you are disclosing a new world to me! I also start understanding why your custom characters crashed Goblin: pointing to a action absent from the game folder (I was opening your files from the MODS folder with OH disabled), the editor probably encountered an unexpected exception
__________________
_____________________
|May the Force be with you!|
...\/
gap is offline   Reply With Quote
Old 02-25-14, 09:49 PM   #7
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by gap View Post
What do you think? can I set a new texture and save the file as normally, or GR2 editor would screw it, due to the image errors?

Awesome, you are disclosing a new world to me! I also start understanding why your custom characters crashed Goblin: pointing to a action absent from the game folder (I was opening your files from the MODS folder with OH disabled), the editor probably encountered an unexpected exception
I wouldn't set a new texture for two reasons:
1) my app will more than likely corrupt the file due to not reading the image data and the images themselves from the file (thus it will not write them back to a new file)
2) I'm pretty sure that there are no textures for a certain reason. That reason being the game 'fills' them in as needed. Think about it like this: if material has no texture defined then game is free to substitute whatever it needs but if material has texture defined game uses what is defined. So I'm fairly certain that if you set a texture then that is the only texture that will ever be used - i.e. there will be no variety.

Yes, Goblin was more than likely crashing because it couldn't find the 'actions' I defined for my characters on the PT boat.
TheDarkWraith is offline   Reply With Quote
Old 02-25-14, 06:43 PM   #8
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by gap View Post
Starting with one of the last versions of your Editor, I get a "Select location to save GetChainForSection 0 dump" message whenever I rename a model/skeleton/bone. This has to be some new feature, because I didn't get this message before. What is its use, and where should I save that file?

v1.1.444.1 released. See post #1

This fixes the bug above. It also fixes some bugs I found in the Materials tab and the Meshes tab (the Materials node of each mesh's subset).
TheDarkWraith 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 04:42 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.