![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
![]() |
#31 |
The Old Man
![]() Join Date: Apr 2005
Posts: 1,336
Downloads: 6
Uploads: 0
|
![]()
Thanks for your post - I'd seen some stray references to SH3 Gen but somehow had missed getting around to checking it out. It looks very cool, and I'm definitely going to play around with it some more.
Unfortunately, however, there is a truncation effect as you mention below: "Another important thing is that no entry must be longer than 255 characters. Even though SHIII will load and display the text correctly the first time, it will not save it, and therefore the entry will be truncated at the next reload." This truncation effect is definitely interfering with the "personal entries" portion of my modified log file approach. Basically, with this truncation effect the personal entries have to be so short that the process loses a lot of its fun/appeal. This truncation appears to be a result of something SH3 Gen is doing, rather than SH3 itself - I have had no problem with personal diary log entries much longer than 255 characters both being displayed in game and being saved down into the next saved game's log file, but when I run SH3 Gen on the new saved game and then look at the log in game, the entries have indeed been truncated. Do you have any idea why this truncation occurs with SH3 Gen and do you think there is any way it can be fixed/tweaked so that it won't truncate the entries in this fashion? I'd love to play around with SH3 Gen now that I've discovered it, but I'd hate to have to give up my newly-personalized captain's log to do so. [edit] - BTW - I D/L'ed and am using the .NET 2.0 version 0.7.1 of SH3 Gen, in case that matters.
__________________
![]() Last edited by panthercules; 09-17-06 at 01:25 AM. |
![]() |
![]() |
![]() |
#32 | ||
Admiral
![]() Join Date: May 2005
Location: Berlin
Posts: 2,015
Downloads: 165
Uploads: 0
|
![]() Quote:
In fact, I would expect this kind of problem is caused by a too tiny array declaration in SHIII's .clg write routine. In other words, some programmer had a bad day and declared string entry[256] somewhere - had he simply typed, for example, string[2048] we would be so much better off! Of course, it might be that I screw up something through the use of a redundant tag (header, entrytype etc) - but I need confirmation. Right now I am not convinced. HINT: If you want to make a check, it is pretty simple. Use notepad to add a very long entry of at least 300-500 characters to the log. Load the savegame. Save it again under another name and reload this re-saved data. You will see that the text is truncated. You will also see that this is because the re-saved .clg does already contain the truncated entries (the glitch is in the writing, not the reading part). If not, and you can confirm this with entries of 300, 400, 600 characters, please post here and contact me because this would definitely prove me wrong, and mean I screw up something. Quote:
__________________
|
||
![]() |
![]() |
![]() |
#33 | |
The Old Man
![]() Join Date: Apr 2005
Posts: 1,336
Downloads: 6
Uploads: 0
|
![]() Quote:
Here's a couple of screenshots of my log in-game (pages 1 and 2), in "Patrol22f" (after originally having been made in "Patrol22e" saved game): ![]() ![]() I hope you can figure out why this is happening and fix it, cause SH3Gen does look like a very cool piece of work. ![]()
__________________
![]() |
|
![]() |
![]() |
![]() |
#34 |
Rear Admiral
![]() Join Date: Apr 2006
Location: Swindon, England
Posts: 10,151
Downloads: 35
Uploads: 0
|
![]() Quote:
|
![]() |
![]() |
![]() |
#35 |
The Old Man
![]() Join Date: Apr 2005
Posts: 1,336
Downloads: 6
Uploads: 0
|
![]()
I did PM him as he suggested - hopefully he'll get a chance to check into this and figure out what's going on.
__________________
![]() |
![]() |
![]() |
![]() |
#36 |
Rear Admiral
![]() Join Date: Apr 2006
Location: Swindon, England
Posts: 10,151
Downloads: 35
Uploads: 0
|
![]()
He is very cooperative
Hope you guys can get this sorted as its looking real good Very usefull idea ![]() |
![]() |
![]() |
![]() |
#37 | |
Admiral
![]() Join Date: May 2005
Location: Berlin
Posts: 2,015
Downloads: 165
Uploads: 0
|
![]() Quote:
@panthercules: I will send you a small patch when it's ready, and I hope you will report back to me if it solved the problem. Thanks a lot for your patience and for reporting your findings. GE
__________________
|
|
![]() |
![]() |
![]() |
#38 | ||
The Old Man
![]() Join Date: Apr 2005
Posts: 1,336
Downloads: 6
Uploads: 0
|
![]() Quote:
![]() ![]() ![]()
__________________
![]() |
||
![]() |
![]() |
![]() |
#39 |
Admiral
![]() Join Date: May 2005
Location: Berlin
Posts: 2,015
Downloads: 165
Uploads: 0
|
![]()
I have a theory that my usage of GetPrivateProfileString might be to blame and I hope I can look into it over the weekend or so. If my theory is right, it should be easily fixed.
__________________
|
![]() |
![]() |
![]() |
#40 |
Helmsman
![]() Join Date: Jul 2005
Posts: 103
Downloads: 0
Uploads: 0
|
![]()
28. Oktober 1939
00:00 Uhr AN 95 Haben Helgoland passiert. 30. Oktober 1939 06:50 Uhr AN 14 Schiff in Orkney-Shetland Passage gesichtet. Gehe auf Abfangkurs. 08:00 Uhr Zweierfächer. Ein Treffer. Drei Versuche einen Fangschuß zu setzen schlagen aufgrund Ausweichmaneuver des Gegners fehl. Nach fünfundvierzig Schuß Artillerie sinkt der Frachter schließlich über seine gesamte Länge. 13:05 Uhr Vor Flugzeug getaucht. Wirft Bomben im zweiten Anflug. Keine Schäden. Bleibe bis Sonnenuntergang im Keller. 1. November 1939 07:45 Uhr AN 24 Haben unser Operationsgebiet erreicht. 14:20 Uhr Frachter mit Kurs NW gesichtet. Gehe auf Abfangkurs. 15:50 Uhr Gegner zackt um Generalkurs 325° bei 3 Knoten Fahrt. 16:10 Uhr Zweierfächer. Beides Volltreffer. Frachter gerät schnell mit Heck unter Wasser und sinkt nach wenigen Minuten über Achtersteven. 2. November 1939 03:10 Uhr I WO meldet Schiff auf 319 Grad. Erkenne selbst nichts, gehe aber auf Abfangkurs. 04:40 Uhr Zweierfächer auf kleinen Frachter. Zwei Treffer am Bug. Schiff sinkt schnell über Vordersteven. 3. November 1939 18:00 Uhr Setze Kurs durch Orkney-Shetland-Passage auf neues Operationsgebiet in AN 79. 5. November 1939 12:41 Uhr AN 12 Vor Flugzeug getaucht. Gebombt. Keine Schäden. Bleibe bis Dämmerung auf 40 Meter. 6. November 1939 12:10 Uhr AN 41 Schiff im Süden gesichtet. Gehe auf Abfangkurs. 13:30 Uhr Küstenfahrzeug. Nach zwei Fehlschüssen breche ich den Angriff aufgrund Wetterlage ab. 9. November 1939 01:30 Uhr AN 84 Mehreren Zerstörern ausgewichen. Setze Kurs fort. 09:45 Uhr AN 79 Kurz nach Eintreffen in Operationsgebiet von Elco Torpedoboot angegriffen. Lasse Artillerie Feuer erwidern. Elco nach mehreren Treffern versenkt. Leichte Schäden. Mit Bordmitteln zu reparieren. 10:00 Uhr Werde von zwei weiteren Elcos und zwei Zerstörern angegriffen. Tauche weg. - - -U-47 GING NACH EINER STUNDE WABO-VERFOLGUNG IM PQ AN79 AM 9. NOVEMBER 1939 GEGEN 11:15 VERLOREN - - - |
![]() |
![]() |
![]() |
#41 |
Ace of the Deep
![]() Join Date: Feb 2003
Location: Northern Illinois
Posts: 1,052
Downloads: 135
Uploads: 0
|
![]()
Just a note to say thanks to you guys for digging this up. I just successfully edited and saved my clg file and it showed up as advertized as a log entry in game.
__________________
Nuke 'em till they glow! |
![]() |
![]() |
![]() |
#42 | |
The Old Man
![]() Join Date: Apr 2005
Posts: 1,336
Downloads: 6
Uploads: 0
|
![]() Quote:
![]()
__________________
![]() |
|
![]() |
![]() |
![]() |
|
|