SUBSIM Radio Room Forums

SUBSIM Radio Room Forums (https://www.subsim.com/radioroom/index.php)
-   Silent Hunter III (https://www.subsim.com/radioroom/forumdisplay.php?f=182)
-   -   How to make my campaign files lighter ? (https://www.subsim.com/radioroom/showthread.php?t=228536)

Kendras 11-25-16 06:24 PM

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 ? :06:

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 ????

:k_confused:

allievo 11-26-16 12:31 AM

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.

Kendras 11-26-16 04:43 AM

Quote:

Originally Posted by allievo (Post 2448679)
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 ! :o Big campaigns make me stop playing supermods ... and thanks to you and LGN1, I think I'm going to play GWX again ! :subsim:

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....

:k_confused:

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


:know:

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 ! :yep:

LGN1 11-26-16 04:18 PM

Hi Kendras,

this might help:

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

Best, LGN1

Kendras 11-26-16 04:38 PM

Quote:

Originally Posted by LGN1 (Post 2448779)
Hi Kendras,

this might help:

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

Best, LGN1

Hi mate ! :Kaleun_Salute:

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 ? :o

If I want the year 1944, it won't delete the units sailing from 1939 to 1944 for example ?

LGN1 11-27-16 02:23 PM

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

itadriver 11-27-16 02:42 PM

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

LGN1 11-28-16 01:53 PM

Quote:

Originally Posted by itadriver (Post 2448894)
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

itadriver 11-28-16 02:21 PM

;) :)

Your scripts help me very much. Thanks to you my mod is now at 90% done :)

Kendras 11-28-16 04:06 PM

Quote:

Originally Posted by LGN1 (Post 2448892)
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 ! :up:

Quote:

Originally Posted by itadriver (Post 2449078)
;) :)

Your scripts help me very much. Thanks to you my mod is now at 90% done :)

Mmmh, interesting ... What is this mod about ?

itadriver 11-29-16 12:43 AM

@kendras: a new WSM based on WAC 4.1

Kendras 12-01-16 02:05 PM

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 !

:yeah: :yeah: :yeah: :yeah:


All times are GMT -5. The time now is 08:07 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.