![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
![]() |
#61 |
Admiral
![]() Join Date: May 2005
Location: Berlin
Posts: 2,015
Downloads: 165
Uploads: 0
|
![]()
Great!
We should start very simple. If you can provide me with some info about the most important targets in HT1.47, it should be my task to come up with a convincing demo. Once this is accomplished, we can think about the concept another time, and more seriously. For the beginning, an unformatted text file with 10-20 units would do. I would analyze it and make a list of all the different types of entities I find, as well as make a proposal for the metadata format. In the interest of analysis, it might be better if you try to write down one example of every type of unit you can thnk of, but of course not every single entity of this class. One is already enough. IMO, the most important types of units would be: - suppliers (docked or milchcows) - commerce raiders (Atlantis) - warships and taskgroups (WeserĂĽbung etc) - concentrations of landing crafts or troop ships (d-day) -german and italian convoys (north africa) - concentrations of U-Boats (wolfpacks) For some reason, atm I can't think of any more, but there are loads. All should be from static layer (SCR), because I think this information should be reliable. The info should always contain: [Group/UnitId from Campaign_SCR, so I can match the info, this is very important!] Name=<Historic or fictional name> Class/Type=try to verbalize the type of unit Why is is there? What type of action does perform (i.e. warship patrol, commerce raiding, etc), could also be put into Class/Type Anthing else I didn't think of. I don't need info about waypoints, EntryDate, ExitDate, etc, because this is already in Campaign_SCR, and we should never duplicate data. As I said, lets keep it very simple. I have already been approached with some grand ideas, but I prefer to work on something that will work, and without the user having to understand it. The metadata strategy always works, because the application will check if the metadata file is available, and if it's not, work as usual.
__________________
|
![]() |
![]() |
![]() |
#62 |
Ocean Warrior
![]() Join Date: May 2005
Location: Săo Paulo Brazil
Posts: 2,728
Downloads: 132
Uploads: 0
|
![]()
Ok GlobalExplorer,
Can you send your email adress to me? This way we can share files easily. Contact me by PM. ![]() Rubini. |
![]() |
![]() |
![]() |
#63 | |
Medic
![]() Join Date: Jun 2005
Location: AN85
Posts: 167
Downloads: 55
Uploads: 0
|
![]() Quote:
![]() ![]() |
|
![]() |
![]() |
![]() |
#64 |
Ensign
![]() Join Date: Apr 2005
Location: Poland
Posts: 226
Downloads: 138
Uploads: 0
|
![]()
I have still error
![]() Instaled: XP SP2 .net 1.1 Sh3Gen 0.3.0 commander 2 RUB 1.45 HT 1.47 Mesage : See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box. ************** Exception Text ************** System.NullReferenceException: Object reference not set to an instance of an object. at Sh3Gen2.Database.Campaign.Interpreter.CInterpreter .prime(CGroups Groups) at Sh3Gen2.Database.Campaign.Interpreter.CInterpreter .Run() at Sh3Gen2.Database.Campaign.CCampaign.initializeCamp aignData() at Sh3Gen2.Applications.MapGen2.CMapGenerator.Run(Str ing PatrolGrid) at Sh3Gen2.Applications.MapGen2.CMapGen2.Button_OK_Cl ick(Object sender, EventArgs e) at System.Windows.Forms.Control.OnClick(EventArgs e) at System.Windows.Forms.Button.OnClick(EventArgs e) at System.Windows.Forms.Button.OnMouseUp(MouseEventAr gs mevent) at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.ButtonBase.WndProc(Message& m) at System.Windows.Forms.Button.WndProc(Message& m) at System.Windows.Forms.ControlNativeWindow.OnMessage (Message& m) at System.Windows.Forms.ControlNativeWindow.WndProc(M essage& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) ************** Loaded Assemblies ************** mscorlib Assembly Version: 1.0.5000.0 Win32 Version: 1.1.4322.573 CodeBase: file:///c:/windows/microsoft.net/framework/v1.1.4322/mscorlib.dll ---------------------------------------- Sh3Gen2 Assembly Version: 1.0.2216.30497 Win32 Version: 1.0.2216.30497 CodeBase: file:///F:/Gry/SilentHunterIII/Sh3Gen/Sh3Gen.exe ---------------------------------------- System.Windows.Forms Assembly Version: 1.0.5000.0 Win32 Version: 1.1.4322.573 CodeBase: file:///c:/windows/assembly/gac/system.windows.forms/1.0.5000.0__b77a5c561934e089/system.windows.forms.dll ---------------------------------------- System Assembly Version: 1.0.5000.0 Win32 Version: 1.1.4322.573 CodeBase: file:///c:/windows/assembly/gac/system/1.0.5000.0__b77a5c561934e089/system.dll ---------------------------------------- System.Drawing Assembly Version: 1.0.5000.0 Win32 Version: 1.1.4322.573 CodeBase: file:///c:/windows/assembly/gac/system.drawing/1.0.5000.0__b03f5f7f11d50a3a/system.drawing.dll ---------------------------------------- ************** JIT Debugging ************** To enable just in time (JIT) debugging, the config file for this application or machine (machine.config) must have the jitDebugging value set in the system.windows.forms section. The application must also be compiled with debugging enabled. For example: <configuration> <system.windows.forms jitDebugging="true" /> </configuration> When JIT debugging is enabled, any unhandled exception will be sent to the JIT debugger registered on the machine rather than being handled by this dialog. |
![]() |
![]() |
![]() |
#65 |
Admiral
![]() Join Date: May 2005
Location: Berlin
Posts: 2,015
Downloads: 165
Uploads: 0
|
![]()
Version 0.3.1 has been uploaded. I made some changes in reaction to the problem posted above. Because this is related with the way I use quadrants, I have added the missing arctic quadrants AA,AB,AC,AW and AT. Unfortunately UBI left these quadrants from Sh3, but they are easily locateable. Basically they are an extension to the north of the current quadrants, stretching from Greenland to Novaya Semlja.
NOTE: This version exludes every unit outside the current quadrant system, so at the moment there will be no info about traffic in the Black Sea and Eastern Mediterranean. Who can give me information about Kriegsmarine Grid system used in these regions? @NiKuTa: Check your pm.
__________________
|
![]() |
![]() |
![]() |
#66 |
Ensign
![]() Join Date: Apr 2005
Location: Poland
Posts: 226
Downloads: 138
Uploads: 0
|
![]()
Oki, but where is a link to new ver of Sh3Gen??????
![]() |
![]() |
![]() |
![]() |
#67 | |
Grey Wolf
![]() Join Date: Nov 2005
Location: Mar del Plata, Argentina
Posts: 871
Downloads: 0
Uploads: 0
|
![]() Quote:
http://www.global-explorer.de/ |
|
![]() |
![]() |
![]() |
#68 |
Grey Wolf
![]() Join Date: Nov 2005
Location: Mar del Plata, Argentina
Posts: 871
Downloads: 0
Uploads: 0
|
![]()
I don´t know if this is related to sh3gen or a bug in my save files, but when I use sh3 commander and try to update my personell file I got an error message "list index out of bounds", anyone else is getting it?.
Suggestion, for those of us with slow machines, a progress bar should be appreciated. @global explorer, thanks for the file. |
![]() |
![]() |
![]() |
#69 |
Admiral
![]() Join Date: May 2005
Location: Berlin
Posts: 2,015
Downloads: 165
Uploads: 0
|
![]()
This must be a problem when Sh3Commander reads the changed .clg file. I had been in contact with JScones, and he said there should be no problem, but since I have changed the output recently this deserves review.
How about that: I could offer an option to remove all Sh3Gen entries after the patrol is finished.
__________________
|
![]() |
![]() |
![]() |
#70 |
Navy Seal
![]() Join Date: Apr 2005
Posts: 5,501
Downloads: 19
Uploads: 0
|
![]()
SH3Cmdr does not read any "in mission" save files - when creating a Personnel File, SH3Cmdr reads:
From the selected career folder Careers.cfg Careers_0.cfg Patrols.cfg Patrols_0.cfg Log_x.cfg files From SH3 **_menu.txt Basic.cfg UboatAces.cfg EnglishNames.cfg/GermanNames.cfg If SH3Gen doesn't modify any of the above files, email me the career files and I'll have a look. |
![]() |
![]() |
![]() |
#71 |
Admiral
![]() Join Date: May 2005
Location: Berlin
Posts: 2,015
Downloads: 165
Uploads: 0
|
![]()
@JScones: Thanks for coming
![]() I am indirectly modifying the following files: Log_x.cfg That is of course, because the <savegame>.clg file gets copied after the patrol. So it's pretty much obvious that my entries cause this problem when Sh3Commander reads the Log_x.cfg files. I have uploaded a sample Log_0.cfg. Could you please have a look? http://www.global-explorer.de/Log_0.cfg I have two suggestions how this can be solved: 1st: I offer an option two remove Sh3Gen entries after the patrol (why would you look at them anyway). Hoewever that it is somewhat awkward. 2nd: I could use a format that is easily recognizable. For instance I could make use of the entrytitle property and make my titles always begin with "---", not just sometimes. Also, right now I am not using the entrytitle property, but I think I should do that. Could it be a solution that you simply skip reading all entries without entrytitle? I don't need it because it is useless for formatting. The first entry with the patrol dates doesn't use the title either, so as I assume you are reading only the sinking´s and summary, you could consider these entries as a new class which is non-relevant.
__________________
|
![]() |
![]() |
![]() |
#72 |
Navy Seal
![]() Join Date: Apr 2005
Posts: 5,501
Downloads: 19
Uploads: 0
|
![]()
Yeah, I can see where SH3Cmdr is getting upset. Whilst the sample file is fine, if you insert an entry that contains less than three elements (ie "<data>|<data>" or just "<data>"), SH3Cmdr will error with "List index out of bounds (2)". This is because SH3Cmdr is expecting three elements for these entries.
Of course, the flow on is that even where the added entry does have three or more data elements, the resulting HTML file won't be formatted correctly for those "new" entries. The easiest fix is for you, and anyone else writing to the log file, to write a non-zero number to the "Type" key. I can then add one line to SH3Cmdr to ignore any entry where Type <> 0. But, whilst this workaround is very simple, I won't be in a position to release an updated version of SH3Cmdr for a few weeks at the earliest, although I could provide just the updated SH3Cmdr.exe file to anyone who's using SH3Gen. And also, this fix (presumably) won't exclude the extra text from displaying in the relevant Patrol Log summary displayed in SH3 - is this an issue (I assume SH3 will still present the entries OK, but is this what you/users really want)? |
![]() |
![]() |
![]() |
#73 | |||
Admiral
![]() Join Date: May 2005
Location: Berlin
Posts: 2,015
Downloads: 165
Uploads: 0
|
![]() Quote:
Quote:
I'm also indebted to Ref for being the first one to report this problem. I have offered him my help for a manual fix, which is in fact pretty simple. Every one else with this problem is invited to contact me for the manual solution. Quote:
As far as Cmdr is concerned, I think the check for entries without EntryTitle might be better. Something like: try { EntryTitle = ClgFile.Read("Log entry " + index, "EntryTitle"); //proceed with reading the entry //... } catch { //EntryTitle doesn't exist, so entry will be skipped }
__________________
|
|||
![]() |
![]() |
![]() |
#74 | |
Swabbie
![]() Join Date: Oct 2005
Posts: 8
Downloads: 0
Uploads: 0
|
![]()
Seems quadrant AH is also needed?
1.4b, RUB 1.45, HT 1.47, TeddyBear Campaign RND and LND. New career 09/39, 2. Fltl, started via SH3Commander. Quote:
Edit: Forgot to mention: SH3Gen 0.3.1 |
|
![]() |
![]() |
![]() |
#75 |
Admiral
![]() Join Date: May 2005
Location: Berlin
Posts: 2,015
Downloads: 165
Uploads: 0
|
![]()
@KaleunPeter: You really helped me by pointing to Teddy Bär's NYGM campaign. I could reproduce your error! Problem was that he has hand edited the entries for hospital ships, and mixed up the order of two properties. Seems to be only a problem for Sh3Gen, as I am reading sequentially.
I have uploaded 0.3.2, which fixes this problems. NiKuTa should download the new version, too. I think he had the same problem.
__________________
|
![]() |
![]() |
![]() |
|
|