![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
![]() |
#1 |
Stowaway
Posts: n/a
Downloads:
Uploads:
|
![]()
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 ???? ![]() |
![]() |
![]() |
#2 |
Stowaway
Posts: n/a
Downloads:
Uploads:
|
![]()
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. |
![]() |
![]() |
#3 | |
Stowaway
Posts: n/a
Downloads:
Uploads:
|
![]() Quote:
![]() ![]() 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. |
|
![]() |
![]() |
#4 |
Ace of the Deep
![]() Join Date: Mar 2006
Posts: 1,138
Downloads: 147
Uploads: 12
|
![]() |
![]() |
![]() |
![]() |
#5 | |
Stowaway
Posts: n/a
Downloads:
Uploads:
|
![]() Quote:
![]() 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 ? |
|
![]() |
![]() |
#6 |
Ace of the Deep
![]() Join Date: Mar 2006
Posts: 1,138
Downloads: 147
Uploads: 12
|
![]()
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 |
![]() |
![]() |
![]() |
#7 |
Commander
![]() Join Date: Aug 2007
Location: Italia Venezia
Posts: 465
Downloads: 228
Uploads: 0
|
![]()
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 |
![]() |
![]() |
![]() |
#8 | |
Ace of the Deep
![]() Join Date: Mar 2006
Posts: 1,138
Downloads: 147
Uploads: 12
|
![]() Quote:
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 |
|
![]() |
![]() |
![]() |
#9 |
Commander
![]() Join Date: Aug 2007
Location: Italia Venezia
Posts: 465
Downloads: 228
Uploads: 0
|
![]() ![]() ![]() Your scripts help me very much. Thanks to you my mod is now at 90% done ![]() |
![]() |
![]() |
![]() |
#10 | |
Stowaway
Posts: n/a
Downloads:
Uploads:
|
![]() Quote:
![]() Mmmh, interesting ... What is this mod about ? |
|
![]() |
![]() |
#11 |
Commander
![]() Join Date: Aug 2007
Location: Italia Venezia
Posts: 465
Downloads: 228
Uploads: 0
|
![]()
@kendras: a new WSM based on WAC 4.1
|
![]() |
![]() |
![]() |
#12 |
Stowaway
Posts: n/a
Downloads:
Uploads:
|
![]()
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 ! ![]() ![]() ![]() ![]() |
![]() |
![]() |
|
|