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-20-13, 06:13 PM   #1831
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,215
Downloads: 793
Uploads: 10
Default

Quote:
Originally Posted by TheDarkWraith View Post
You'll have to send me v2.9.1.0 so I can RE it to find out where to inject my code and where to tell my code to install it's hooks.
v2.9.1.0:

https://www.dropbox.com/s/z5pajescgo...y%20Viewer.rar

Let me know if you find a more up-to-date version online

Quote:
Originally Posted by TheDarkWraith View Post
I had a feeling that I was unknowingly corrupting GR2 files with previous versions I'm still learning this file format to this very day.
Rethink of all the progress you have done since when you started this project, I feel optistic

Quote:
Originally Posted by TheDarkWraith View Post
Just adding missing strings shouldn't be causing you any problems. Have you tried this on a stock unmodified file?
yes, unmodified vegetation.GR2. I can't save the missing strings on file. Previously modified files are not opened at all. In both cases I get a "broken chains in section 0" message.
gap is offline   Reply With Quote
Old 02-20-13, 06:14 PM   #1832
Targor Avelany
Ace of the Deep
 
Join Date: Jan 2010
Location: Vancouver, BC, Canada
Posts: 1,183
Downloads: 225
Uploads: 0


Default

Quote:
Originally Posted by TheDarkWraith View Post
You'll have to send me v2.9.1.0 so I can RE it to find out where to inject my code and where to tell my code to install it's hooks.

I had a feeling that I was unknowingly corrupting GR2 files with previous versions I'm still learning this file format to this very day.

Just adding missing strings shouldn't be causing you any problems. Have you tried this on a stock unmodified file?

The next version should discern between ridig and non-rigid (deformable) meshes in the meshes list box. This should help with that.

Working on the mixed values now so I can remove that file limitation on the next version.
Awesome! Very excited!
It is possible that it also will eventually lead to my problem with the textures in the lifeboat project. I still haven't had time to sit down and write up w/ screenshots the process how the mess reproduced, but hopefully will be able to do it today.
Targor Avelany is offline   Reply With Quote
Old 02-20-13, 08:57 PM   #1833
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,962
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by gap View Post
Rethink of all the progress you have done since when you started this project, I feel optistic


yes, unmodified vegetation.GR2. I can't save the missing strings on file. Previously modified files are not opened at all. In both cases I get a "broken chains in section 0" message.
I'll check this problem of adding the strings.

I wish the learning experience with this file type would end It seems every time I turn around I learn something new! I'm nowhere near the end yet either as I have to decode animations yet

The good news is I just finished the code for reading these new special datatype definitions that describe vertex data (more specifically vertex data with mixed values) and all the error checking for them. Wow. It's amazing to me how important these suckers are. So much depends on these if the section's mixed values are > 0. The layout of the vertex data and each vertex data's size (for those that contain mixed values) is linked with these special datatype definitions!

The bad news is if you have added/removed vertices from a mesh that was defined by one of these special datatype definitions before the next version of the app I release then the file is corrupt The next version of the app with all this special datatype definition checking will tell you if your file is corrupt or not

Quote:
Originally Posted by Targor Avelany View Post
Awesome! Very excited!
It is possible that it also will eventually lead to my problem with the textures in the lifeboat project. I still haven't had time to sit down and write up w/ screenshots the process how the mess reproduced, but hopefully will be able to do it today.
High probability.
TheDarkWraith is offline   Reply With Quote
Old 02-20-13, 11:21 PM   #1834
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,962
Downloads: 147
Uploads: 5


Default

all my mixed values code works flawlessly Thus I can lift the mixed values restriction (for certain sections) on the app now

My mixed values code knows how to deal with mixed values in sections 1 and 3. If it finds mixed values code in other sections it will refuse to open the file and will prompt you to contact me and send me the file you tried to open so I can examine it. I've actually added many of these contact me with file for anything that I'm unsure about/have no idea about. If you encounter one of these dialog boxes please send me the file and the error you encountered with it.

Gotta couple of things to wrap up before I can release the new version. With this new upcoming version you should be able to decompress most of the units in Civ5

@gap - how does the app know which granny viewer? Simple. I tell it which versions it's allowed to use. Currently it's only allowed to use the one I specified earlier. Once I RE the one you have a link to I'll add it to the list of acceptable Granny Viewer versions. If the app cannot find the Granny Viewer (a virgin app starts with this path in the cfg file as blank) it will prompt you to point the app to it via an openfiledialog box. Once you open the correct Granny Viewer it will write the path to the cfg file so it remembers it
TheDarkWraith is offline   Reply With Quote
Old 02-20-13, 11:43 PM   #1835
Ekmek
Mate
 
Join Date: Nov 2011
Posts: 53
Downloads: 4
Uploads: 0
Default

Looks like TDW is using GrannyViewer 2.8.33.0.

http://www.mediafire.com/view/?0rk1wjlr7fl9ha8#

I couldn't find alink anywhere. Does someone have it? I have 2.8.46.0


After we decompress Civ5 files will we be able to recompress them?
Ekmek is offline   Reply With Quote
Old 02-20-13, 11:59 PM   #1836
Targor Avelany
Ace of the Deep
 
Join Date: Jan 2010
Location: Vancouver, BC, Canada
Posts: 1,183
Downloads: 225
Uploads: 0


Default

ugh, lovely... You fixing things, broke most things I worked on, lol.

Also, replacing the names of bones and meshes via hex editor now breaks the chains and you cannot open it with the GR2 app.

So, I'm sitting renaming bones and meshes as it, via app. Which is painful. But I'm glad that it will be right!

I will also try and re-do the lifeboat and see what happens.
Targor Avelany is offline   Reply With Quote
Old 02-21-13, 02:58 AM   #1837
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,962
Downloads: 147
Uploads: 5


Default

v1.1.337.1 released . See post #1

Current restrictions (app will fail to load file):
- no trackgroups
- no animations

Restrictions lifted:
- mixed values

Bugs fixed:
- adding missing strings to GR2 file bug

Enhancements:
- when adding missing strings you no longer have to close and reload. App will add missing strings and continue loading the file
- more error checking

TheDarkWraith is offline   Reply With Quote
Old 02-21-13, 06:30 AM   #1838
V13dweller
Grey Wolf
 
Join Date: Dec 2012
Location: Perth, Western Australia
Posts: 768
Downloads: 101
Uploads: 2
Default

I can't edit Aircraft, I just get this error.
********* Section 0 (arttoolinfo) has 74 mixed values defined.
The app has been temporarily disabled from reading any section that has mixed values defined. *********

Can anyone help me fix this? because I want to give the JU-290 bomber, bombs, because it doesn't carry any.
Also, what is a "Mixed value"?
V13dweller is offline   Reply With Quote
Old 02-21-13, 09:09 AM   #1839
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,962
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by V13dweller View Post
I can't edit Aircraft, I just get this error.
********* Section 0 (arttoolinfo) has 74 mixed values defined.
The app has been temporarily disabled from reading any section that has mixed values defined. *********

Can anyone help me fix this? because I want to give the JU-290 bomber, bombs, because it doesn't carry any.
Also, what is a "Mixed value"?
Interesting Section 0 has mixed values...I will take a look at this file and see if I can't figure out what these mixed values are defining I don't know if mixed values are the correct term for these items in the GR2 file. It's a name I used to define them that makes sense to me.
TheDarkWraith is offline   Reply With Quote
Old 02-21-13, 10:41 AM   #1840
Targor Avelany
Ace of the Deep
 
Join Date: Jan 2010
Location: Vancouver, BC, Canada
Posts: 1,183
Downloads: 225
Uploads: 0


Default

Well, tested primarily on uboat7b_ai gr2, but will test some more on various files today.

So, as I mentioned before, now I cannot rename the bones/meshes via hex editor en-mass and then open the file with GR2 Editor/Viewer and change the checksum error, fix it and it's all awesome.

In light of that, as I assumed that it breaks the chains when I edit with hex, I decided to rename via app itself. Unfortunately, it does not work either. The app gives 2 variations of error:
1) There are broken chains in section 0, so no opening the file
2) can't find bone bindings, so no opening the file

Steps to reproduce:
1) open NSS_Uboat7b_AI. GR2 with the app.
2) rename 1-2 bones or meshes.
3) save the gr2 (doesn't matter if you save with the same name or "Save As..."
4) close the file
5) attempt to open the above saved file.

Rename of 1 bone (Model), the top bone, sometimes works. But not when trying to rename the rest of them.
Targor Avelany is offline   Reply With Quote
Old 02-21-13, 11:21 AM   #1841
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,962
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by Targor Avelany View Post
Well, tested primarily on uboat7b_ai gr2, but will test some more on various files today.

So, as I mentioned before, now I cannot rename the bones/meshes via hex editor en-mass and then open the file with GR2 Editor/Viewer and change the checksum error, fix it and it's all awesome.

In light of that, as I assumed that it breaks the chains when I edit with hex, I decided to rename via app itself. Unfortunately, it does not work either. The app gives 2 variations of error:
1) There are broken chains in section 0, so no opening the file
2) can't find bone bindings, so no opening the file

Steps to reproduce:
1) open NSS_Uboat7b_AI. GR2 with the app.
2) rename 1-2 bones or meshes.
3) save the gr2 (doesn't matter if you save with the same name or "Save As..."
4) close the file
5) attempt to open the above saved file.

Rename of 1 bone (Model), the top bone, sometimes works. But not when trying to rename the rest of them.
I will follow your above to try and simulate the problem now

v1.1.339.1 released. See post #1

- fixes bug where duplicate data could possibly not be updated correctly
- linked list now correctly handles removing the main object of duplicates
- Essential embedded strings now displays only the missing strings to be added to the GR2 file when asking if user wants to add them
TheDarkWraith is offline   Reply With Quote
Old 02-21-13, 11:38 AM   #1842
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,962
Downloads: 147
Uploads: 5


Default

Just tried v1.1.339.1 and everything works excellent. I was able to rename any number of meshes or bones without error. Saved and reloaded with no problems either. Probably the bugs I just fixed with the new version fixed the problem

You should still be able to edit the names with hex editor. As long as you don't change the number of characters in the name with the hex editor the app will have no problem with them
TheDarkWraith is offline   Reply With Quote
Old 02-21-13, 11:56 AM   #1843
Targor Avelany
Ace of the Deep
 
Join Date: Jan 2010
Location: Vancouver, BC, Canada
Posts: 1,183
Downloads: 225
Uploads: 0


Default

Quote:
Originally Posted by TheDarkWraith View Post
Just tried v1.1.339.1 and everything works excellent. I was able to rename any number of meshes or bones without error. Saved and reloaded with no problems either. Probably the bugs I just fixed with the new version fixed the problem

You should still be able to edit the names with hex editor. As long as you don't change the number of characters in the name with the hex editor the app will have no problem with them
WOOOOT!!!!!!!!!!!!

Will test as soon as I get home today!
Targor Avelany is offline   Reply With Quote
Old 02-21-13, 07:19 PM   #1844
V13dweller
Grey Wolf
 
Join Date: Dec 2012
Location: Perth, Western Australia
Posts: 768
Downloads: 101
Uploads: 2
Default

In your update, did you allow aircraft to be edited?
V13dweller is offline   Reply With Quote
Old 02-21-13, 07:46 PM   #1845
Targor Avelany
Ace of the Deep
 
Join Date: Jan 2010
Location: Vancouver, BC, Canada
Posts: 1,183
Downloads: 225
Uploads: 0


Default

not quiet sure if I am doing something wrong or missing something:

this is an attempt to open a file, which was saved after editing from NSS_Uboat7b to NSS_Uboat9b via hex editor en-mass.



Targor Avelany 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:04 AM.


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