SUBSIM Radio Room Forums

SUBSIM Radio Room Forums (https://www.subsim.com/radioroom/index.php)
-   SHIII Mods Workshop (https://www.subsim.com/radioroom/forumdisplay.php?f=195)
-   -   Map Colors (https://www.subsim.com/radioroom/showthread.php?t=186996)

TheDarkWraith 08-27-11 12:02 PM

interesting...:hmmm:

test version v0.0.4: http://www.megaupload.com/?d=3A6F25NA

now I should see why it's not creating the gradients

run the Dbgview app first then the SHMapViewer app. This way I have some debug feedback to see what's going on. Send me output of Dbgview app if doesn't work.

SquareSteelBar 08-27-11 12:13 PM

Quote:

Originally Posted by TheDarkWraith (Post 1737411)
...run the Dbgview app first then the SHMapViewer app...

I did that [v0.0.3] but nothing happened [no output]...

____________________________

Same with v0.0.4 - no luck :shifty:

TheDarkWraith 08-27-11 12:17 PM

Quote:

Originally Posted by SquareSteelBar (Post 1737422)
I did that [v0.0.3] but nothing happened [no output]...

use the new version 0.0.4 and under Dbgview-->Capture ensure:
- Capture Win32 is checked
- Pass-Through is checked
- Capture events is checked

SquareSteelBar 08-27-11 12:21 PM

Capture Win32 wasn't checked. Now DebugView works at least.

Log file for v0.0.4:

Code:

00000000    0.00000000    [3992] workingfolder=D:\Downloads\SHMapViewer_0_0_4_by_TheDarkWraith   
00000001    0.03987956    [3992] DirectX initialized   
00000002    2.45530152    [3992] using Silent Hunter III   
00000003    2.45592070    [3992] 32bit Key found. Value='W:\SilentHunterIII\'   
00000004    2.45594144    [3992] \ found as last character in install path from registry!   
00000005    2.45596075    [3992] InstallPath=W:\SilentHunterIII   
00000006    3.41812611    [3992] using Map1   
00000007    3.41866851    [3992] gradient filename=gradient.tga   
00000008    3.41868949    [3992] creating the map   
00000009    3.42153192    [3992] gradientx.tga's were found   
00000010    4.37000322    [3992] map: creating gradients   
00000011    4.37176704    [3992] Error creating the map gradient   
00000012    5.26326323    [3992] Error creating the editing gradient   
00000013    5.71093035    [3992] Error creating the selected gradient   
00000014    6.51549768    [3992] Unable to generate gradients   
00000015    7.38776684    [3992] failed to create map   
00000016    7.38811398    [3992] closing   
00000017    7.38871384    [3992] destroying map


HW3 08-27-11 12:49 PM

When I tried it I noticed the install path listed for SH3, was not the same as my SH3 install path.

TheDarkWraith 08-27-11 12:55 PM

Quote:

Originally Posted by SquareSteelBar (Post 1737428)
Capture Win32 wasn't checked. Now DebugView works at least.

Log file for v0.0.4:

Code:

00000000    0.00000000    [3992] workingfolder=D:\Downloads\SHMapViewer_0_0_4_by_TheDarkWraith   
00000001    0.03987956    [3992] DirectX initialized   
00000002    2.45530152    [3992] using Silent Hunter III   
00000003    2.45592070    [3992] 32bit Key found. Value='W:\SilentHunterIII\'   
00000004    2.45594144    [3992] \ found as last character in install path from registry!   
00000005    2.45596075    [3992] InstallPath=W:\SilentHunterIII   
00000006    3.41812611    [3992] using Map1   
00000007    3.41866851    [3992] gradient filename=gradient.tga   
00000008    3.41868949    [3992] creating the map   
00000009    3.42153192    [3992] gradientx.tga's were found   
00000010    4.37000322    [3992] map: creating gradients   
00000011    4.37176704    [3992] Error creating the map gradient   
00000012    5.26326323    [3992] Error creating the editing gradient   
00000013    5.71093035    [3992] Error creating the selected gradient   
00000014    6.51549768    [3992] Unable to generate gradients   
00000015    7.38776684    [3992] failed to create map   
00000016    7.38811398    [3992] closing   
00000017    7.38871384    [3992] destroying map


thanks for taking the time to test and help me figure out why some users are having problems :up:

test version 0.0.5: http://www.megaupload.com/?d=W0N9I8WM

Still trying to figure out why can't create gradients for some :hmmm: Hopefully this sheds more light on it

SquareSteelBar 08-27-11 12:56 PM

Quote:

Originally Posted by HW3
When I tried it I noticed the install path listed for SH3, was not the same as my SH3 install path.

Maybe there's an entry of an older SH3 installation in registry?

Look for this hive key:

HKEY_LOCAL_MACHINE\SOFTWARE\Ubisoft\Silent Hunter III
InstalledPath...... REG_SZ -> ????
Path ................ REG_SZ -> ????


???? = entries of an old installation ?


Did you move or copy the SH3 installation folder to a different path?



.

TheDarkWraith 08-27-11 12:59 PM

Quote:

Originally Posted by HW3 (Post 1737445)
When I tried it I noticed the install path listed for SH3, was not the same as my SH3 install path.

I'm reading the registry to get this info. What does your registry key say the install path is? I'm looking for this key:

HKEY_LOCAL_MACHINE\Software\Ubisoft\Silent Hunter III

could also be:

HKEY_LOCAL_MACHINE\Software\Wow6432Node\Ubisoft\Si lent Hunter III

and I'm looking for the value of InstalledPath

SquareSteelBar 08-27-11 01:04 PM

Two fewer lines in v0.0.5:

Code:

00000000    0.00000000    [2296] workingfolder=D:\Downloads\SHMapViewer_0_0_5_by_TheDarkWraith   
00000001    0.03920336    [2296] DirectX initialized   
00000002    2.21269226    [2296] using Silent Hunter III   
00000003    2.21332407    [2296] 32bit Key found. Value='W:\SilentHunterIII\'   
00000004    2.21334338    [2296] \ found as last character in install path from registry!   
00000005    2.21336269    [2296] InstallPath=W:\SilentHunterIII   
00000006    2.78954148    [2296] using Map1   
00000007    2.79008770    [2296] gradient filename=gradient.tga   
00000008    2.79010868    [2296] creating the map   
00000009    2.79309416    [2296] 6 gradientx.tga's were found   
00000010    3.56502461    [2296] map: creating gradients   
00000011    3.56692958    [2296] Error creating the map gradient   
00000012    4.70796585    [2296] Unable to generate gradients   
00000013    5.68955231    [2296] failed to create map   
00000014    5.68991041    [2296] closing   
00000015    5.69051790    [2296] destroying map


TheDarkWraith 08-27-11 01:20 PM

Quote:

Originally Posted by SquareSteelBar (Post 1737459)
Two fewer lines in v0.0.5:

Code:

00000000    0.00000000    [2296] workingfolder=D:\Downloads\SHMapViewer_0_0_5_by_TheDarkWraith   
00000001    0.03920336    [2296] DirectX initialized   
00000002    2.21269226    [2296] using Silent Hunter III   
00000003    2.21332407    [2296] 32bit Key found. Value='W:\SilentHunterIII\'   
00000004    2.21334338    [2296] \ found as last character in install path from registry!   
00000005    2.21336269    [2296] InstallPath=W:\SilentHunterIII   
00000006    2.78954148    [2296] using Map1   
00000007    2.79008770    [2296] gradient filename=gradient.tga   
00000008    2.79010868    [2296] creating the map   
00000009    2.79309416    [2296] 6 gradientx.tga's were found   
00000010    3.56502461    [2296] map: creating gradients   
00000011    3.56692958    [2296] Error creating the map gradient   
00000012    4.70796585    [2296] Unable to generate gradients   
00000013    5.68955231    [2296] failed to create map   
00000014    5.68991041    [2296] closing   
00000015    5.69051790    [2296] destroying map


okay this finally tells me something.
you see the 'map: creating gradients' which is good. The next entry should be 'Gradient: creating gradient'. This entry is the first thing the class's constructor does but since it doesn't show up then during class initialization it's failing (variable initialization) :hmmm:
What version of DirectX do you have installed on your computer? What OS are you using?

test version 0.0.6: http://www.megaupload.com/?d=O624VRC2

this will give me info on the exception being raised when it tries to create the gradients

Gotta love these problems that only some people experience :shifty: Nature of the beast I guess :-?

Does this app work for anyone here in SH3? I know it works for me but that does me no good.

Magic1111 08-27-11 01:49 PM

Quote:

Originally Posted by TheDarkWraith (Post 1737473)
Does this app work for anyone here in SH3? I know it works for me but that does me no good.

...I would like to test when anybody answered me my question from post #23 here...:hmmm:

I don´t know furthermore the sense behind this tool, sorry ! :oops:

For what is it ? What can I do with this tool ? How I see this tool work when I start the game ?

Sorry folks, but what are "gradients" ? :hmmm:

Hope I become a longer clearify, then I will test...!

Best regards,
Magic

SquareSteelBar 08-27-11 01:52 PM

Quote:

Originally Posted by TheDarkWraith (Post 1737473)
...What version of DirectX do you have installed on your computer? What OS are you using?...

DirectX 9.0c (4.09.0000.0904) from June 2010
WinXP Home SP3

Code:

00000000    0.00000000    [3056] workingfolder=D:\Downloads\SHMapViewer_0_0_6_by_TheDarkWraith   
00000001    0.04085844    [3056] DirectX initialized   
00000002    1.23838973    [3056] using Silent Hunter III   
00000003    1.23901415    [3056] 32bit Key found. Value='W:\SilentHunterIII\'   
00000004    1.23903477    [3056] \ found as last character in install path from registry!   
00000005    1.23905444    [3056] InstallPath=W:\SilentHunterIII   
00000006    2.09912920    [3056] using Map1   
00000007    2.09968209    [3056] gradient filename=gradient.tga   
00000008    2.09970760    [3056] creating the map   
00000009    2.10310245    [3056] 6 gradientx.tga's were found   
00000010    3.17238021    [3056] map: creating gradients   
00000011    3.23547411    [3056] Error creating the map gradient.   
00000012    3.23547411    [3056]  Exception=System.IO.FileNotFoundException: Die Datei oder Assembly System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 oder eine Abhängigkeit davon wurde nicht gefunden. Das System kann die angegebene Datei nicht finden.   
00000013    3.23547411    [3056] Dateiname: System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089   
00000014    3.23547411    [3056]    bei TheDarkWraith.SilentHunter5.SH5MapViewer.SHGradient..ctor(String installpath, String workfolder, String fn, String fnextension, Device& dv, enumgradienttype gt, Boolean sh5, Boolean useactfile, Boolean showwarnings)   
00000015    3.23547411    [3056]    bei TheDarkWraith.SilentHunter5.SH5MapViewer.SHMap..ctor(String installpath, String workfolder, String fn, String fnextension, ShowInformationDialog sid, Device& d3dd, Control cf, Int32 mw, Int32 mh, Boolean uSH5, Boolean umap1)   
00000016    3.23547411    [3056]     
00000017    3.23547411    [3056] WRN: Protokollierung der Assemblybindung ist AUS.   
00000018    3.23547411    [3056] Sie können die Protokollierung der Assemblybindungsfehler aktivieren, indem Sie den Registrierungswert [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) auf 1 festlegen.   
00000019    3.23547411    [3056] Hinweis: Die Protokollierung der Assemblybindungsfehler führt zu einer gewissen Leistungseinbuße.   
00000020    3.23547411    [3056] Sie können dieses Feature deaktivieren, indem Sie den Registrierungswert [HKLM\Software\Microsoft\Fusion!EnableLog] entfernen.   
00000021    3.23547411    [3056]     
00000022    3.23547411    [3056] Die Datei oder Assembly System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 oder eine Abhängigkeit davon wurde nicht gefunden. Das System kann die angegebene Datei nicht finden.   
00000023    12.76314163    [3200] 26  50   
00000024    12.76336098    [3200] 54  78   
00000025    12.76352310    [3200] 78  102   
00000026    12.76367378    [3200] 102  126   
00000027    12.76382351    [3200] 126  150   
00000028    12.76408863    [3200] 150  174   
00000029    12.76424026    [3200] 174  198   
00000030    12.76438999    [3200] 198  222   
00000031    12.76453972    [3200] 222  246   
00000032    12.76475143    [3200] 250  274   
00000033    12.76489449    [3200] 274  298   
00000034    13.04039764    [3200] 250  274   
00000035    13.07571411    [3200] 250  274   
00000036    13.08507347    [3200] 222  246   
00000037    13.11180782    [3200] 222  246   
00000038    13.11268616    [3200] 198  222   
00000039    13.13058472    [3200] 198  222   
00000040    13.13143921    [3200] 174  198   
00000041    13.17606068    [3200] 174  198   
00000042    13.17696857    [3200] 150  174   
00000043    13.22222519    [3200] 150  174   
00000044    13.22309303    [3200] 126  150   
00000045    13.26051903    [3200] 126  150   
00000046    13.26139164    [3200] 102  126   
00000047    13.31892490    [3200] 102  126   
00000048    13.31979942    [3200] 78  102   
00000049    13.39695072    [3200] 78  102   
00000050    13.39783192    [3200] 54  78   
00000051    13.49793148    [3200] 54  78   
00000052    13.52020264    [3200] 26  50   
00000053    13.89844894    [3200] 26  50   
00000054    13.92071152    [3200] 54  78   
00000055    18.25417900    [3200] 54  78   
00000056    28.34757805    [3056] Unable to generate gradients   
00000057    30.67541122    [3056] failed to create map   
00000058    30.67577553    [3056] closing   
00000059    30.67642403    [3056] destroying map

http://img193.imageshack.us/img193/3082/000wru.jpg

TheDarkWraith 08-27-11 02:04 PM

Quote:

Originally Posted by Magic1111 (Post 1737492)
...I would like to test when anybody answered me my question from post #23 here...:hmmm:

I don´t know furthermore the sense behind this tool, sorry ! :oops:

For what is it ? What can I do with this tool ? How I see this tool work when I start the game ?

Sorry folks, but what are "gradients" ? :hmmm:

Hope I become a longer clearify, then I will test...!

Best regards,
Magic

You know the map that shown in game? This lets you change the colors of it. Plain and simple. SH5 uses a .tga file that specifies the gradient (a list of colors in a line) for the map. SH3 uses an .act file to specify them. This will let you make custom gradients and see what they look like before applying them to the SH3 .act file.

TheDarkWraith 08-27-11 02:13 PM

Quote:

Originally Posted by SquareSteelBar (Post 1737495)
DirectX 9.0c (4.09.0000.0904) from June 2010
WinXP Home SP3

see if the following files exist on your computer:
C:\Windows\Microsoft.NET\DirectX for Managed Code\1.0.2902.0\Microsoft.DirectX.dll

C:\Windows\Microsoft.NET\DirectX for Managed Code\1.0.2902.0\Microsoft.DirectX.Direct3D.dll

C:\Windows\Microsoft.NET\DirectX for Managed Code\1.0.2902.0\Microsoft.DirectX.Direct3DX.dll

C:\Windows\Microsoft.NET\DirectX for Managed Code\1.0.2902.0\Microsoft.DirectX.DirectInput.dll

SquareSteelBar 08-27-11 02:29 PM

Yep, all these files exist.

http://img11.imageshack.us/img11/1790/000jh.jpg


All times are GMT -5. The time now is 11:17 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.