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-29-10, 07:16 AM   #166
Arclight
Navy Seal
 
Join Date: Jun 2008
Location: Land of windmills, tulips, wooden shoes and cheese. Lots of cheese.
Posts: 8,467
Downloads: 53
Uploads: 10
Default

You do the editing there. You can acces all the pages from that point by navigating in the editor, and the window will update to show the components you selected and are working on.

You'll have to start the game without the menu editor if you want to actually load a mission.
__________________

Contritium praecedit superbia.
Arclight is offline   Reply With Quote
Old 03-29-10, 07:39 AM   #167
thfeu58
Officer
 
Join Date: Mar 2006
Location: Berlin
Posts: 243
Downloads: 142
Uploads: 0
Default

Thank you Arclight, if I a side to work on chooses, the window is updated. I can open the ScriptManager, the AIScriptDebugger, but with the TerrainEditor I fail. In a post of Urfisch I have read that this works only in land nearness. This is the point, how is it possible?
thfeu58 is offline   Reply With Quote
Old 03-29-10, 07:45 AM   #168
Arclight
Navy Seal
 
Join Date: Jun 2008
Location: Land of windmills, tulips, wooden shoes and cheese. Lots of cheese.
Posts: 8,467
Downloads: 53
Uploads: 10
Default

When the little window pops up at game start-up asking if you want to start the menu editor, select "no". The game will start normally and you can load a mission, after that you can rightclick on the titlebar to bring up the other editors.

I'd disable the menu-editor unless you actually want to edit any menu's.
__________________

Contritium praecedit superbia.
Arclight is offline   Reply With Quote
Old 03-29-10, 08:51 AM   #169
thfeu58
Officer
 
Join Date: Mar 2006
Location: Berlin
Posts: 243
Downloads: 142
Uploads: 0
Default

Yes, that's it !
Thank you!
Had I ever tried so, but the editors were inactive. Had probably done something wrong .
Now it's ok!
thfeu58 is offline   Reply With Quote
Old 03-30-10, 10:16 AM   #170
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,962
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by Seeadler View Post
With the tool from that site, it is possible to extract 3D data from GR2 and inport it into 3DSMax. The other way round from Max to GR2 should work with the Neverwinter Nights 2 Mod tools

Here I tried to get the La Pallice model into 3DSMax


BTW:
Good job devs , the La Pallice harbour layout now looks as near as in real life, although by today's time because in the 40's the harbor was a little different, but that could be possibly modded
what tool(s) did you use specifically? How did you do it? What version of 3DS max?
TheDarkWraith is offline   Reply With Quote
Old 03-30-10, 03:31 PM   #171
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,962
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by privateer View Post
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.
this was done using freely available tools from Microsoft so don't anyone give me any crap about it 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
TheDarkWraith is offline   Reply With Quote
Old 03-30-10, 03:36 PM   #172
Heretic
Commodore
 
Join Date: Mar 2005
Location: Nebraska
Posts: 617
Downloads: 240
Uploads: 2


Default

If a dev or someone knowledgable should happen to drop by, I'd really like know what the different values for Character Posture represent. The crew AI scripts reference values of A,B,C,D,and E for Wp:IsCharacterPosture(). Any info on what they mean would be greatly appreciated.
Heretic is offline   Reply With Quote
Old 03-30-10, 04:19 PM   #173
Madox58
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

The GR2 files are not compressed in SH5.
Open one with a Hex editor and you can see what plug-ins were used
on the 3DS Max 2010 system that exported them.

You can't read that info with Hex on a compressed file.
I can send you a compressed GR2 file if you wish to check.


However, the compressed files can be opened with Goblin.
  Reply With Quote
Old 03-31-10, 12:26 PM   #174
Anvart
Admiral
 
Join Date: Jan 2006
Location: Russia ®
Posts: 2,492
Downloads: 122
Uploads: 1
Default

Quote:
Originally Posted by privateer View Post
...
on the 3DS Max 2010 system that exported them.
...
???
3ds Max 10 <---> 3ds Max 2008
__________________
Alex ®


Moses said: "Don't create yourself an idol"...
Anvart is offline   Reply With Quote
Old 04-02-10, 04:40 PM   #175
reaper7
sim2reality
 
Join Date: Jun 2007
Location: AM 82
Posts: 2,280
Downloads: 258
Uploads: 30
Default

Quote:
Originally Posted by maerean_m View Post
* the FocusableMenuItem (button, check box, radio button) has 4 states: Disabled, Normal, Mouse Over, Pressed. So those are the colors for the 4 states.
I've being trying to create a Ckeckbox in the Menu Editor but The graphics does not display right.
I've created a 112x60 .dds file with 2 states for the switch (On and Off)

Now in the menu editor I add the Control type Ckeckbox.
Point it at the File above and it shows up as Tex Dim 112/60 ok.
I select then crop size in the Selected item dialog box as DX:60, DY:60.
I then set the start coordinates as X:1, Y:1 and this is what I get my graphics are cut nearly in half with No stretch selected.

What is going on
I have tried every value in the Tex Crop and still can not get the switch to display fully.

If I copy an existing Ckeckbox e.g. the AutoUpdate Ckeckbox for Auto/Manual switching and paste it in - it displays ok.
But if I recreate that Ckeckbox using exactly the same dimensions it displays in the Menu Editor, It gets cut up like my switch.

Somethings not working right In the Menu Editor when you create New Checkboxs. Is there a way around this.
reaper7 is offline   Reply With Quote
Old 04-05-10, 06:50 PM   #176
RFB Team
SH4 Mod Team
 
Join Date: Mar 2008
Posts: 165
Downloads: 3
Uploads: 0
Default Trouble with Goblin Editor

Whenever I try to edit a value in a drop-down box of the Goblin Editor, the drop down box flickers persistently, and when I try to make a choice from the drop-down options, they flash only briefly in the upper-left hand corner of my desktop. Is there a reason for this?
__________________
Thanks for everyone's encouragement and support.

The RFB team is an open group and our work is open to anyone. Although we have a separate forum for development and testing, it is not a private forum, so you can drop in and see what's going on or contribute. The forum is open to other developers that need a place to exchange ideas too.

http://forum.kickinbak.com/index.php...647a9120c08614
RFB Team is offline   Reply With Quote
Old 04-10-10, 03:39 AM   #177
Captain von Keldunk
Sonar Guy
 
Join Date: Dec 2007
Posts: 376
Downloads: 187
Uploads: 21
Default

Quote:
Originally Posted by RFB Team View Post
Whenever I try to edit a value in a drop-down box of the Goblin Editor, the drop down box flickers persistently, and when I try to make a choice from the drop-down options, they flash only briefly in the upper-left hand corner of my desktop. Is there a reason for this?
...................................
I have vista 32 bit, and for goblin editor, do not use themes setting is on, and use as adminstrator, and then no more flicker.
__________________
SH

Last edited by Captain von Keldunk; 04-10-10 at 03:57 AM.
Captain von Keldunk is offline   Reply With Quote
Old 04-10-10, 04:26 AM   #178
LukeFF
Silent Hunter
 
Join Date: Apr 2005
Location: Riverside, California
Posts: 3,610
Downloads: 41
Uploads: 5
Default

Quote:
Originally Posted by Captain von Keldunk View Post
...................................
I have vista 32 bit, and for goblin editor, do not use themes setting is on, and use as adminstrator, and then no more flicker.
Excellent tip, thanks!
__________________


ROW Sound Effects Contributor
RFB Team Leader
LukeFF is offline   Reply With Quote
Old 04-11-10, 07:46 AM   #179
TheBeast
The Old Man
 
Join Date: Jan 2010
Location: Lynnwood, WA
Posts: 1,533
Downloads: 876
Uploads: 23


Themes

Quote:
Originally Posted by Captain von Keldunk View Post
...................................
I have vista 32 bit, and for goblin editor, do not use themes setting is on, and use as adminstrator, and then no more flicker.
Where do I disable Themes?
__________________
Fear me! I am, TheBeastBelow

SHIV-MediaFire | SHV-MediaFire
TheBeast is offline   Reply With Quote
Old 04-11-10, 07:56 AM   #180
bigboywooly
Rear Admiral
 
Join Date: Apr 2006
Location: Swindon, England
Posts: 10,151
Downloads: 35
Uploads: 0
Default

Quote:
Originally Posted by TheBeast View Post
Where do I disable Themes?
Right click the SH5 exe
Properties
Compatability
__________________


My mediafire page http://www.mediafire.com/?11eoq19bq9r41
bigboywooly 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:07 AM.


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