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 > Silent Hunter III
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 06-23-06, 11:37 AM   #1
U-Bones
Grey Wolf
 
Join Date: Mar 2005
Location: Treading Water
Posts: 847
Downloads: 56
Uploads: 0
Default U-331 Gets Punished

I have been playing around with damage/repair settings, and also was interested in the thread about log files here and this sort of happened out of it.

If anyone is mildly entertained, its paid for

Oh yea, SH4 better have permanent logging capability with html options. If you forget to save prior to quitting in SH3 the logs go to the bit bucket.
U-Bones is offline   Reply With Quote
Old 06-23-06, 12:40 PM   #2
Grey Legion
Loader
 
Join Date: Jun 2006
Location: Ontario, Canada
Posts: 86
Downloads: 0
Uploads: 0
Default

Looks Amazing !!

Couple of questions if you don't mind.

#1 Please provide all the damage mods you use with NYGM ??

#2 what program/editor did you use to create that list ??

Thank you in adavance !!

__________________
Gilligan & The Skipper were more than just "friends"
Grey Legion is offline   Reply With Quote
Old 06-23-06, 04:59 PM   #3
U-Bones
Grey Wolf
 
Join Date: Mar 2005
Location: Treading Water
Posts: 847
Downloads: 56
Uploads: 0
Default

Quote:
Originally Posted by Grey Legion
Looks Amazing !!

Couple of questions if you don't mind.

#1 Please provide all the damage mods you use with NYGM ??

#2 what program/editor did you use to create that list ??

Thank you in adavance !!

The damage stuff is my own, based on nvdrifter's observation about crew efficiency, almost completely contained in zones.cfg and cfg/basic.cfg. See this thread http://www.subsim.com/radioroom/showthread.php?t=94238

I used a simple perl script to get the log info one line text entries. I htmlized it by hand afterwards. Real programmers please don't lol.
Win usage: type logfile | perl sh3log.pl >newlogfile

#!/usr/bin/perl -w
use Getopt::Std;
use Cwd;
$entries = 0 ;
$lines = 0 ;
$stamp = "0";
$now = "0";
$atype = "0";
$who = "0";
$entry = "New Log\n";
$speaker = "";

while (<STDIN>) {
$dummy = "";
( $dummy, $filler )=split("\=");
if ($dummy eq "Type") { $atype = $filler ; } #not used
if ($dummy eq "EntryText") { $entry = $filler }
if ($dummy eq "Date") { $stamp = $filler } #new day line later
if ($dummy eq "Time") { $now = $filler }
if ($dummy eq "Categ") { $who = $filler }
if ($who == 0) { $speaker = "CE" }
if ($who == 1) { $speaker = "NA" }
if ($who == 2) { $speaker = "WE" }
if ($who == 3) { $speaker = "RA" }
if ($who == 4) { $speaker = "SO" }
if ($who == 5) { $speaker = "WO" }
$lines ++;
if ($dummy =~ /Log.Entry/ ) { $entries++ ; next; }
if ($dummy =~ /\n/ ) {printf "%8d:%4.4d %s: %s", $stamp, $now, $speaker, $entry;}
}

if ($lines > 0) { printf "%d Lines %d Entries\n",$lines,$entries; exit }
{ printf "0\n"; }
U-Bones is offline   Reply With Quote
Old 06-23-06, 06:01 PM   #4
Grey Legion
Loader
 
Join Date: Jun 2006
Location: Ontario, Canada
Posts: 86
Downloads: 0
Uploads: 0
Default

So it looks to be a longer operation than I thought ??

Hmmm...I'll have to look into that at a later date.
__________________
Gilligan & The Skipper were more than just "friends"
Grey Legion is offline   Reply With Quote
Reply


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 08:45 PM.


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.