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 > SH4 Mods Workshop
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 07-19-22, 06:15 AM   #1
propbeanie
CTD - it's not just a job
 
propbeanie's Avatar
 
Join Date: May 2016
Location: One hour from Music City USA!
Posts: 9,788
Downloads: 444
Uploads: 2


Default

Quote:
Originally Posted by razark View Post
Pretty useful. I know I would have liked it a few years ago when I did it all by hand.
Exactly!! lol - much easier to use the Delete key to get rid of those you don't want / need, than to have to find and build the ones you want. Very nice, Ataraxzy!
__________________

"...and bollocks to the naysayer/s" - Jimbuna
propbeanie is offline   Reply With Quote
Old 07-19-22, 12:18 PM   #2
Ataraxzy
Watch
 
Join Date: Apr 2021
Posts: 16
Downloads: 37
Uploads: 0
Default

Quote:
Originally Posted by razark View Post
Pretty useful. I know I would have liked it a few years ago when I did it all by hand.

That's how this started, but I looked at the nearly 100Gb of sound files I'd downloaded and silently cried. Then I went, "Waitaminute... I can automate this."


Quote:
Originally Posted by propbeanie View Post
Exactly!! lol - much easier to use the Delete key to get rid of those you don't want / need, than to have to find and build the ones you want. Very nice, Ataraxzy!
That's a great idea!

I just hope someone finds this useful.
Ataraxzy is offline   Reply With Quote
Old 07-20-22, 10:18 AM   #3
propbeanie
CTD - it's not just a job
 
propbeanie's Avatar
 
Join Date: May 2016
Location: One hour from Music City USA!
Posts: 9,788
Downloads: 444
Uploads: 2


Default

This idea is definitely useful to me, Ataraxzy. I just have to remember to bookmark this, so I can find it later when we go to do a radio mod... Thank you again!
__________________

"...and bollocks to the naysayer/s" - Jimbuna
propbeanie is offline   Reply With Quote
Old 07-20-22, 02:20 PM   #4
Ataraxzy
Watch
 
Join Date: Apr 2021
Posts: 16
Downloads: 37
Uploads: 0
Default

Quote:
Originally Posted by propbeanie View Post
This idea is definitely useful to me, Ataraxzy. I just have to remember to bookmark this, so I can find it later when we go to do a radio mod... Thank you again!



Here's another oneliner to help you out:


Code:
grep -r "mm\.dd\.yyyy" -A 1
Run that in the .../Radio subfolder. It will return all StartDate and StartTime for the particular day you've put in. (Or return nothing if there's nothing scheduled for that day.)

If you want, I've downloaded ~67gb of Radio files from various mod sources. I could upload them somewhere in chunks. All the work is already done, all you'd have to do is download them.


Code:
grep -r "\.yyyy" -A 1
Will get you everything that matches that particular year


examples:


Code:
 $ grep -r "06\.12\.1941" -A 1
KGMB/Events/events.ini:StartDate=06.12.1941
KGMB/Events/events.ini-StartTime=19.30.00
--
KLVW/1941/Events/events.ini:StartDate=06.12.1941
KLVW/1941/Events/events.ini-StartTime=17.00.00
--
KNX/1941/Events/events.ini:StartDate=06.12.1941
KNX/1941/Events/events.ini-StartTime=15.45.00


$ grep -r "\.1939" -A 1
DHB/Events/events.ini:StartDate=12.09.1939
DHB/Events/events.ini-StartTime=12.00.00
--
DHB/Events/events.ini:StartDate=01.10.1939
DHB/Events/events.ini-StartTime=12.00.00
--
DHB/Events/events.ini:StartDate=01.11.1939
 DHB/Events/events.ini-StartTime=12.00.00
...
 ...

in the oneliner:
-A 1 gets you the "following line"
-B 1 gets you the "preceding line"
-C 1 gets you BOTH.

increase the number to get more than just the next/previous lines.

Last edited by Ataraxzy; 07-20-22 at 02:41 PM.
Ataraxzy is offline   Reply With Quote
Old 07-20-22, 02:49 PM   #5
propbeanie
CTD - it's not just a job
 
propbeanie's Avatar
 
Join Date: May 2016
Location: One hour from Music City USA!
Posts: 9,788
Downloads: 444
Uploads: 2


Default

Thanks for the offer of the broadcasts, but I already have most that I use, but I'm building one that would definitely benefit from your scripts... excellent, and sorting by date is good too! Thank yoiu!
__________________

"...and bollocks to the naysayer/s" - Jimbuna
propbeanie is offline   Reply With Quote
Old 07-20-22, 03:15 PM   #6
Ataraxzy
Watch
 
Join Date: Apr 2021
Posts: 16
Downloads: 37
Uploads: 0
Default

Kick ass!

Lemme know when it's done, I wanna see it!

And if you have any questions, have an idea for another oneliner, lemme know.



Ataraxzy is offline   Reply With Quote
Old 07-20-22, 03:33 PM   #7
propbeanie
CTD - it's not just a job
 
propbeanie's Avatar
 
Join Date: May 2016
Location: One hour from Music City USA!
Posts: 9,788
Downloads: 444
Uploads: 2


Default

Copy that! Will do.
__________________

"...and bollocks to the naysayer/s" - Jimbuna
propbeanie is offline   Reply With Quote
Reply

Tags
events, radio, scripts, sound mods


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 03:15 AM.


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.