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 11-25-16, 06:24 PM   #1
Kendras
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default How to make my campaign files lighter ?

Hello,

I have a bad laptop, and I would like to have smaller campaign files, but with the campaign of the supermods.

So, I would like to create a campaign files for each year. How could I delete all the units of the campaign that don't appear during a determined year ?

For example, I would like to play during 1944. So, I would like to delete all the units which dissapear before January 1944 and all the units which appear after December 1944. How to do this ????

  Reply With Quote
Old 11-26-16, 12:31 AM   #2
allievo
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

I don't know much about editing the campaign files the way you mentioned but you should check this mod:
http://www.subsim.com/radioroom/down...o=file&id=1536
It doesn't have year-based campaign layers you're looking for but it contains six different areas of the map for traffic.
  Reply With Quote
Old 11-26-16, 04:43 AM   #3
Kendras
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

Quote:
Originally Posted by allievo View Post
I don't know much about editing the campaign files the way you mentioned but you should check this mod:
http://www.subsim.com/radioroom/down...o=file&id=1536
It doesn't have year-based campaign layers you're looking for but it contains six different areas of the map for traffic.
It's not my case, I have a campaign for the S-Boot mod. But I thank you very much for this link, I didn't know this mod and it's looking likke very awesome ! Big campaigns make me stop playing supermods ... and thanks to you and LGN1, I think I'm going to play GWX again !

Now, for my problem, I have an idea.

But I need a small tool to help me.

In fact, for example, I want only the units sailing in 1944. I could open the Mission Editor, select start of 1938 to end of 1943 and delete everything. But I will also delete units sailing before 1944 but sailing also after the start of 1944. And if I select 1945, I will delete also the units sailing before start of 1945....



So, I need a programm to modify my campaign text. Here it is :

IF GameEntryDate=1938, 1939, 1940, 1941, 1942 or 1943 AND IF GameExitDate=1944 or 1945, THEN replace GameEntryDate=XXXXX by GameEntryDate=19440101

Then, a second tool to check again all the file :

IF GameEntryDate=1944,
THEN replace GameExitDate=XXXXX by GameExitDate=19441231




If i'm not wrong, BL!TZKR!EG is good with programms to modify campaign text. If you are reading this, BL!TZKR!EG, could you help me ?

Thanks in advance !

Last edited by Kendras; 11-26-16 at 04:51 AM.
  Reply With Quote
Old 11-26-16, 04:18 PM   #4
LGN1
Ace of the Deep
 
Join Date: Mar 2006
Posts: 1,138
Downloads: 147
Uploads: 12
Default

Hi Kendras,

this might help:

http://www.subsim.com/radioroom/down...o=file&id=1681

Best, LGN1
LGN1 is offline   Reply With Quote
Old 11-26-16, 04:38 PM   #5
Kendras
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

Quote:
Originally Posted by LGN1 View Post
Hi Kendras,

this might help:

http://www.subsim.com/radioroom/down...o=file&id=1681

Best, LGN1
Hi mate !

Thank you for the help; If I understand correctly, your "PosTimeFilter.pl script" will allow me to delete all the units which are not sailing during a specific year ?

If I want the year 1944, it won't delete the units sailing from 1939 to 1944 for example ?
  Reply With Quote
Old 11-27-16, 02:23 PM   #6
LGN1
Ace of the Deep
 
Join Date: Mar 2006
Posts: 1,138
Downloads: 147
Uploads: 12
Default

Hi Kendras,

the script removes all units which do not enter the area you specify and which do not sail during the time period you specify.

If you specify 19440101 and 19441231 then all units/groups with GameExitDate before 1944 will be deleted. Units/groups with GameEntryDate after 19441231 will also be deleted.

I hope this explains it.

Best, LGN1
LGN1 is offline   Reply With Quote
Old 11-27-16, 02:42 PM   #7
itadriver
Commander
 
Join Date: Aug 2007
Location: Italia Venezia
Posts: 465
Downloads: 223
Uploads: 0
Default

1) Is there a script that replace all ships of a class whit ships of an other class? Thank you.

2) I have noticed that in your typefilter script, if you search for "1", it consider also 1xx.
With classfilter if you search for KSS, it consider also KSSx. Is there a solution?

Thank you
itadriver is offline   Reply With Quote
Old 11-28-16, 01:53 PM   #8
LGN1
Ace of the Deep
 
Join Date: Mar 2006
Posts: 1,138
Downloads: 147
Uploads: 12
Default

Quote:
Originally Posted by itadriver View Post
1) Is there a script that replace all ships of a class whit ships of an other class? Thank you.

2) I have noticed that in your typefilter script, if you search for "1", it consider also 1xx.
With classfilter if you search for KSS, it consider also KSSx. Is there a solution?

Thank you
Hi itadriver,

1) This can be easily done with almost all editors via "search and replace" (if the type is the same).

2) There is definitely a solution, however, I don't have time to implement it. Therefore, as a 'quick fix' I have added a RemoveType.pl script. Now you can first remove all the classes/types with longer names than the one you are interested in and then extract the desired class/type. Sorry for this uncomfortable solution.

Best, LGN1
LGN1 is offline   Reply With Quote
Old 11-28-16, 02:21 PM   #9
itadriver
Commander
 
Join Date: Aug 2007
Location: Italia Venezia
Posts: 465
Downloads: 223
Uploads: 0
Default



Your scripts help me very much. Thanks to you my mod is now at 90% done
itadriver is offline   Reply With Quote
Old 11-28-16, 04:06 PM   #10
Kendras
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

Quote:
Originally Posted by LGN1 View Post
Hi Kendras,

the script removes all units which do not enter the area you specify and which do not sail during the time period you specify.

If you specify 19440101 and 19441231 then all units/groups with GameExitDate before 1944 will be deleted. Units/groups with GameEntryDate after 19441231 will also be deleted.

I hope this explains it.

Best, LGN1
Yes OK. Thank you so much my friend !

Quote:
Originally Posted by itadriver View Post


Your scripts help me very much. Thanks to you my mod is now at 90% done
Mmmh, interesting ... What is this mod about ?
  Reply With Quote
Old 11-29-16, 12:43 AM   #11
itadriver
Commander
 
Join Date: Aug 2007
Location: Italia Venezia
Posts: 465
Downloads: 223
Uploads: 0
Default

@kendras: a new WSM based on WAC 4.1
itadriver is offline   Reply With Quote
Old 12-01-16, 02:05 PM   #12
Kendras
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Icon14

That's fantastic, LGN1 ! Thanks to your scripts, I obtained in a few seconds something that I would have obtained after maybe several months of work !

Incredible !

  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 07:29 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.