![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
|
|
03-17-10, 03:18 AM
|
#1 | |
|
Admiral
![]() Join Date: Jan 2006
Location: Russia ®
Posts: 2,481
Downloads: 122
Uploads: 1
|
Quote:
__________________
Alex ® ![]() Moses said: "Don't create yourself an idol"... |
|
|
|
03-17-10, 06:31 AM
|
#2 |
|
Sea Lord
![]() Join Date: Mar 2005
Location: Deep down in Germany
Posts: 1,944
Downloads: 42
Uploads: 0
|
yes, that would be interesting...if this works!
__________________
|
|
|
03-17-10, 06:38 AM
|
#3 |
|
Stowaway
Posts: n/a
Downloads:
Uploads:
|
|
|
03-17-10, 07:43 AM
|
#4 |
|
Sea Lord
![]() Join Date: Mar 2005
Location: Deep down in Germany
Posts: 1,944
Downloads: 42
Uploads: 0
|
9? that hasnt worked for me...which exporter did you use?
__________________
|
|
|
03-17-10, 05:35 PM
|
#5 |
|
Stowaway
Posts: n/a
Downloads:
Uploads:
|
I'm exporting from Max 9 to a GR2 file. I've no interest in exporting from the SH5 files at this time. It's getting a proper import done that is important. I'm useing the Granny exporter from a link a page or 2 back.
|
|
03-30-10, 03:31 PM
|
#6 | |
|
Black Magic
![]() |
Quote:
A .dll file provides services to programs that dynamically link to it during runtime. The way the .dll exposes what 'functionality' it has is through what it makes publicly available defined in exports in the file.taking a look 'under the hood' of the granny2.dll file shows some interesting items available (exports). There are 1,014 functions available. Here are a few (some had a leading _ which for some reason the post underlined the whole thing): 285 3A 000942E4 GrannyFileInfoType 64 CA 00076A50 _GrannyBeginFile@20 65 CB 00076D00 _GrannyBeginFileCompression@20 66 CC 000766B0 _GrannyBeginFileDataTreeWriting@16 67 CD 00076A80 _GrannyBeginFileInMemory@16 68 CE 00077360 _GrannyBeginLocalPoseAccumulation@16 69 CF 00077E60 _GrannyBeginMesh@20 123 103 00076D30 _GrannyCompressContentsOfFile@12 136 110 000769E0 _GrannyConvertFileInfoToRaw@8 137 111 00076A00 _GrannyConvertFileToRaw@8 138 112 00079680 _GrannyConvertIndices@20 159 127 00077B40 _GrannyCreateMemoryFileReader@8 160 128 00077B60 _GrannyCreateMemoryFileWriter@4 237 149 00076C90 _GrannyDecompressData@32 238 14A 00076CD0 _GrannyDecompressDataChunk@24 256 15A 00076AA0 _GrannyEndFile@8 257 15B 00076D90 _GrannyEndFileCompression@8 258 15C 000766F0 _GrannyEndFileDataTreeWriting@4 259 15D 00076AE0 _GrannyEndFileRaw@8 260 15E 00076B00 _GrannyEndFileRawToWriter@8 261 15F 00076AC0 _GrannyEndFileToWriter@8 459 21C 00077CD0 _GrannyGetMeshBytesPerIndex@4 460 21D 00077CB0 _GrannyGetMeshIndexCount@4 461 21E 00077CE0 _GrannyGetMeshIndices@4 462 21F 00077BA0 _GrannyGetMeshMorphTargetCount@4 463 220 00077C10 _GrannyGetMeshMorphVertexCount@8 464 221 00077BE0 _GrannyGetMeshMorphVertexType@8 465 222 00077C80 _GrannyGetMeshMorphVertices@8 466 223 00077CC0 _GrannyGetMeshTriangleCount@4 467 224 00077BB0 _GrannyGetMeshTriangleGroupCount@4 468 225 00077BC0 _GrannyGetMeshTriangleGroups@4 469 226 00077C00 _GrannyGetMeshVertexCount@4 470 227 00077BD0 _GrannyGetMeshVertexType@4 471 228 00077C70 _GrannyGetMeshVertices@4 Now if you use the granny viewer you'll notice that it gives you information that has to come from these functions. In theory, it should be possible to extract the mesh data and re-import new mesh data into the .gr2 files using the granny2.dll. I found it interesting that the .gr2 files can be compressed (well it makes sense to save space). Even more interesting is the _GrannyConvertFileToRaw. If the SH5 files are compressed and we uncompress them then we should be able to 'map' the .gr2 file to undestand it. There is code available that I found on the internet that does uncompress a .gr2 file to an uncompressed format using one of the functions from the granny2.dll file. Now if you know how to look up what arguments a certain function 'takes' you can write code to use these functions |
|
|
|
03-17-10, 07:09 PM
|
#7 |
|
Ocean Warrior
![]() Join Date: Dec 2005
Location: Norway
Posts: 3,231
Downloads: 11
Uploads: 0
|
Problem solved, thanks for the assist.
__________________
|
|
|
03-19-10, 03:22 PM
|
#8 |
|
Navy Seal
![]() Join Date: Jun 2008
Location: Land of windmills, tulips, wooden shoes and cheese. Lots of cheese.
Posts: 8,373
Downloads: 53
Uploads: 10
|
Anyone tried the zone-linking in Goblin yet? Any info on what it does or how it works?
(keeps telling me "cannot link a box to itself" when I try to link a "NFlotMain" to "NEngineRoom")
__________________
Contritium praecedit superbia. |
|
|
03-20-10, 07:41 AM
|
#9 |
|
Sonar Guy
![]() Join Date: Dec 2007
Posts: 376
Downloads: 187
Uploads: 21
|
What version of IronPython
What version of IronPython is used for SH5
![]() Is version 2.6 (latest stable)OK Edit: hmm I think it is version 1.1.2
__________________
SH
Last edited by Captain von Keldunk; 03-20-10 at 09:08 AM. |
|
|
03-20-10, 07:56 AM
|
#10 |
|
Watch
![]() Join Date: Jan 2006
Posts: 25
Downloads: 21
Uploads: 0
|
1. How to change mouse sensitivity in this game?
2. Is it possible to tweak free camera for 2--4 levels of zoom, like periscopes or UZO have 2 levels of zooming. I wand wide ange, narrow and tele, for example 10 deg tele, 45 deg narrow and 75 deg wide FOV. |
|
|
03-20-10, 04:22 PM
|
#11 | |
|
Stowaway
Posts: n/a
Downloads:
Uploads:
|
Quote:
You can't link a damage Box to a damage Box as you found out. You can place a new box inside an old box by attaching it to the same 3D object. |
|
|
03-20-10, 05:42 PM
|
#12 |
|
Navy Seal
![]() Join Date: Jun 2008
Location: Land of windmills, tulips, wooden shoes and cheese. Lots of cheese.
Posts: 8,373
Downloads: 53
Uploads: 10
|
Can't do it, either tells me that or "only boxes can be linked". Either I don't get the procedure involved, or the links aren't showing up in the box (probably the former
).Is linking nescesary for proper functioning? I created a box that encased the superstructure and made a new entry in zones.cfg for it; worked as intended, without any linking involved.
__________________
Contritium praecedit superbia. |
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
