SUBSIM Radio Room Forums

SUBSIM Radio Room Forums (https://www.subsim.com/radioroom/index.php)
-   SH4 Mods Workshop (https://www.subsim.com/radioroom/forumdisplay.php?f=219)
-   -   [REL]Kim Ronhof's SH4 Report generator ver. 5102 (https://www.subsim.com/radioroom/showthread.php?t=194635)

stanger 06-02-12 06:45 PM

No, changed mods folder name to MODS, and changed it in jsgme.ini too, jsgme still works, but the generator doesn't. Maybe it reads jsgme.ini to find the mods folder (and second jsgme.ini with mods list), but I did look at the generator exe file with hex editor and found "Mods" folder specified there, so I thought I was onto something, but not (it looks like).
It's either too long name of sh4 folder or some programming issue (but why it decided to manifest itself now and not before).
What double quotation - " ,the one from one of the error messages - means, if anything, in delphi (cause it looks like it was written in delphi), maybe its some wrong usage of it in the code, I don't know :-?
And just in case: one more difference between my current sh4 installation and previous are mods used - TMO before (when report gen was working) and tmo+RSRD now (not working). But it probably doesnt matter in this case.

aanker 06-02-12 08:35 PM

Too bad. I doubt RSRD would matter.
We didn't use the stock campaign, added similar bases as RSRD does, and the stock special missions were not used, instead all special missions were 'new'.

Post back if you figure yours out please.

Luckily I never had any trouble even though I was always editing and changing mods.

TG626 02-05-14 01:37 AM

Am I the only one getting reports where aircraft all have the last letter of their name deleted?

I.E. Zero Fighte, G4M Bett, and Search Plan

aanker 02-05-14 11:49 AM

AFAIK you may be. I've never seen that 'last letter drop' before. He programed the names of all stock aircraft, marus & warships - some with longer names, and may have included TMO extras the mighty 'D' added too.

Curious....

TG626 02-05-14 12:34 PM

Looks like it reads SaveData.clg and that ALL the entries are having the last letter removed.

1850 tons appears as 1850 ton

Oh and I'm running stock v1.5

It also appears to ignore when you receive a new command.

I started in the Porpoise then was transferred to the Drum, but when I run the program on the post First Patrol savegame it still says USS Porpoise.

aanker 02-05-14 08:38 PM

Quote:

Originally Posted by TG626 (Post 2171845)
Looks like it reads SaveData.clg and that ALL the entries are having the last letter removed.

1850 tons appears as 1850 ton

Oh and I'm running stock v1.5

It also appears to ignore when you receive a new command.

I started in the Porpoise then was transferred to the Drum, but when I run the program on the post First Patrol savegame it still says USS Porpoise.

Okay, maybe something is corrupt in your install... (??)
... or, more likely, are you making a fresh save just before returning to base, maybe call it, "Last Save" then resume your patrol into port and End your patrol. You would then double click "Last Save" to try making your report using the tool. That might fix it....

I'm using Stock v1.5 for this example, except my roster includes hull numbers, so basically thee same conditions as yours:

Report tool recognized 'new' command, from USS Pampanito (SS-383) to USS Skate (SS-305):
Quote:

190101 APR 1944
Report from USS Skate (SS-305)
Patrol area : Pearl SpecOPS 08
"ton" is correct in the program, not tons:
'Large Old Passenger Carrier' includes the " r " in "Carrier".
Quote:

040155 APR 1944
Ship sunk! Large Old Passenger Carrier, 9557 ton
Long 130° 27' E, Lat 26° 10' N
- although I'd prefer to list the Lat first and would usually hand edit it to Lat _, Long _:
Lat 26° 10' N, Long 130° 27' E

He removed the "'s" in "Precipitation " through the program so that is correct:
Quote:

141501 APR 1944
Clouds Partly, Precipitation None, Fog None
Wind Speed 8 meters per second, direction 231.
- I learned meters per second can easily be converted to mph:
meters per second x (roughly) 2 = mph
.... and:
(roughly) 0.5 meters per second = 1 knot.... to help you decide what to wear on deck.... lol

See if a fresh "Last Save" helps because I'm stumped...

Happy Hunting!

TG626 02-05-14 11:03 PM

Do me a favor and shoot down a plane or two.

While ton may be correct, I don't see aircraft in your example, and I'd like to know what you get.

I have been using fresh save games.

I done some coding, and I wonder if the program is set to truncate the last letter to make tons ton as that's the last word of ship sinkings, and that planes weren't taken into account.

TG626 02-06-14 12:46 AM

Hmmm.

Now every save game, even ones that had been OK (save for the aircraft names) are now FUBAR. All now come up with no sinkings and 0 torps fired etc.

Game works perfectly, but the report generator does not.

One final question, is it supposed to work with Career save games? That's what I've been using.

aanker 02-06-14 12:10 PM

Yes, on patrol saves, not in port saves.

The report generator is in the folder where your saved game folders are which is correct.

You've only used a text editor like notepad to open the *.clg files, not Word or Wordpad etc.

Your clg file seems to be corrupted.

You aren't adding previous patrols to it and keep a running total, which is possible to do... some people like to do this.

To rule out the report generator, download a new copy.

Here are 100's of successful reports:
http://pacificthundercampaign62842.yuku.com/

Stock games, TMO ships are also listed, RFB installs too.

TG626 02-07-14 11:50 PM

I'll try it when I get a chance, but I will say that I have only read the CLG files, not saved them. I did so with notepad+

As far as corrupt files go, as I said they load in game fine.

One thing that did change was that I activated a mod that adds a nomograph to the nav map, so menu_1024_768.INI was changed, but I would not expect the report generator to even look at that file.

aanker 02-08-14 12:30 PM

Quote:

Originally Posted by TG626 (Post 2172538)
I'll try it when I get a chance, but I will say that I have only read the CLG files, not saved them. I did so with notepad+

As far as corrupt files go, as I said they load in game fine.

One thing that did change was that I activated a mod that adds a nomograph to the nav map, so menu_1024_768.INI was changed, but I would not expect the report generator to even look at that file.

No, you're right, menu_1024_768.ini wouldn't do it.

I also prefer to use a text editor called NoteTab Pro which is a plain text editor (I set the font to Courier New 10 pt).

If Notepad+ is a "rich text" editor, that may be the culprit. Ideally Notepad should be used, or a similar plain text editor so there are no hidden characters typically used in rich text editors.

An astronomy program I use specified that any plain text font used to edit its files needed to be Courier New, Regular, 10pt - and I've always used that for text editing anything, however I'm unsure if that is important...

Quote:

from Wikipedia:
Notepad+ is a freeware text editor for Windows operating systems and is intended as a replacement for the Notepad editor installed by default on Windows. It has more formatting features but, like Notepad, works only with plain text. It can open text files of any size, and a single instance of the program can have multiple files open simultaneously. It supports dragging and dropping text within a file and between files, and supports multiple fonts and colours.
Man, I'm stumped.

On the website with patrol reports, I recall one member for sure sunk numerous aircraft and they were correctly listed in his reports. The aircraft were 'parked' for the night/day at a Jap base, and were on floats. The generator correctly listed & credited him for sinking them.

I really wish I could help you, however I can't think of anything that would cause this behavior in the generated report.

If you ever find out, please post the solution here to help someone else if they encounter this.

TG626 02-08-14 06:24 PM

http://pacificthundercampaign62842.y...ort-USS-Gunnel
http://pacificthundercampaign62842.y...-Patrol-Report

Best of all
http://pacificthundercampaign62842.y...-Patrol-Report

He shot down multiple fighte and bombe ! :stare:

So, I'm thinking this is an issue that has simply gone unnoticed....

aanker 02-09-14 06:53 PM

Quote:

Originally Posted by TG626 (Post 2172878)
http://pacificthundercampaign62842.y...ort-USS-Gunnel
http://pacificthundercampaign62842.y...-Patrol-Report

Best of all
http://pacificthundercampaign62842.y...-Patrol-Report

He shot down multiple fighte and bombe ! :stare:

So, I'm thinking this is an issue that has simply gone unnoticed....

BINGO - Nice find, though I doubt there is any interest in changing it, best option is to hit Search and Replace >>> fighte >>> fighter... etc.

When he first made the tool I was mostly happy to just have the Lat and Long computerized to lessen the tedium of writing that down from screenshots of the logbook before we knew what files to look at and when.

TG626 02-10-14 12:54 AM

I think I've nailed it down.

What you called a "port save" has far fewer files the saves you make at sea. Among the files NOT in a port save is "savedata.CLG"

The lines for aircraft destroyed and ships sunk is taken word for word from "savedata.clg" and the last letter is being stripped from them.

I take it that you didn't code this little utility, and I assume the source code is unavailable?

aanker 02-10-14 12:27 PM

No, however I helped test the alpha & beta versions on my install, others on their installs. There were a variety of different modded installs used & tested.

I almost never shot down planes, well there is the SHCE trick shot with the deck gun but that gets old, same in SH4.

Attempting to be historically accurate, I always dived for aircraft.

Everyone was begged to report errors, nobody reported any, and I didn't experience any.

I can contact Kim & see if he is interested in 'fixing it'. I don't want to impose however I'll ask.... point him to this thread anyway.

Typically I made a save just prior to ending my patrol and used that extra save for the report data.

A simple Search & Replace can add the missing last letter if Kim isn't interested in revisiting the past.

Think of all the info the report generator does conveniently gather and spit out, Date, Lat & Long, ship class sunk, torpedo data, weather data, orders, 'warnings', a pop up box for listing special missions. None of this was easily accessed before, especially those who didn't enjoy digging through files.

Happy Hunting!


All times are GMT -5. The time now is 12:09 PM.

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.