How to change plane/ship in campaigns

Help for technical issues of IL-2:
Post Reply
blackshark
Posts: 35
Joined: Wed Jan 16, 2019 10:08 pm

How to change plane/ship in campaigns

Post by blackshark » Thu Mar 14, 2019 11:00 am

Hi
Is there an easy/fast way to change a plane or a carrier in all missions of a campaign with many missions ?

Not expert but if i change the plane/carrier name in the .mis it should work without any problem right?
So if, for example, I change essex with enterprise (using the names of the carrier in chief.ini) should it work fine? Even if the mission put planes on the deck of the carrier?

But if i have to change 30+ mission is there a program/utility to do it for all of them with just one input, i mean "change all 'ussessex...' in ' ussenterprise...' ?
User avatar
Mick
Posts: 670
Joined: Fri Jun 10, 2016 8:48 am

Re: How to change plane/ship in campaigns

Post by Mick » Thu Mar 14, 2019 12:50 pm

... the free Notepad2 does wonders, like:

"Can I do multiline find and replace?

This is possible when activating the Transform backslashes option in the find and replace dialog boxes. Enter \n to represent the LF character, or \r for the CR. If line ending mode is set to Windows (CR+LF), \r\n has to be used to represent newline sequences.

To perform a replacement operation with multiline text as the replacement, it's easier to copy the text to the clipboard first, and then use ^c as a placeholder for the clipboard contents in the replacement field."


Download it at the author's site:

http://www.flos-freeware.ch/notepad2.html
User avatar
BlackStaff
Posts: 123
Joined: Mon Jun 13, 2016 11:29 pm

Re: How to change plane/ship in campaigns

Post by BlackStaff » Thu Mar 14, 2019 6:00 pm

Mick wrote:
Thu Mar 14, 2019 12:50 pm
... the free Notepad2 does wonders, like:
Good choice! :lol:
But if there is the same modification to make on several files there is this program: TextCrawler Free 3.0!
https://www.digitalvolcano.co.uk/textcrawler.html
User avatar
dr strangelove
FM Modding Expert
Posts: 2938
Joined: Sun Dec 18, 2016 10:07 am

Re: How to change plane/ship in campaigns

Post by dr strangelove » Fri Mar 22, 2019 2:17 am

But if i have to change 30+ mission is there a program/utility to do it for all of them with just one input, i mean "change all 'ussessex...' in ' ussenterprise...' ?
yes, if you want to do all / or of *.mis files then you could create a .bat (batch) which will do all mission files in one shot

there is a script here somewhere already... i will try to find it
its also a function of REPL.bat
If you are looking for an Online Dogfight Server with players...
AleXServer Dogfight Server IP = 217.78.176.50:21000 (by HL or Direct Connect)
IL2 map vids https://www.youtube.com/watch?v=P2Xzx6v ... ow6YmEnjDG
User avatar
dr strangelove
FM Modding Expert
Posts: 2938
Joined: Sun Dec 18, 2016 10:07 am

Re: How to change plane/ship in campaigns

Post by dr strangelove » Fri Mar 22, 2019 3:28 am

for blackshark... 22/03/2019

MISSION_TEXT_CHANGE.bat
replaces text in all mission files (*.mis)

code is as follows...(to view only)(read below)
-----------------------------
for /r %%F in (*.mis) do (
type "%%F"|repl "TEXT TO CHANGE HERE" "NEW TEXT HERE" LI >"%%F.new"
move /y "%%F.new" "%%F" >nul
)
-----------------------------

How to :
1. Move (or copy) Mission (.mis) files into the folder "PUT MISSIONS IN THIS FOLDER !"
2. Edit the MISSION_TEXT_CHANGE.bat

3. Where is says TEXT TO CHANGE HERE change this to text you want to change
4. Where is says NEW TEXT HERE change this to new text you want
5. Run MISSION_TEXT_CHANGE.bat
done

Example ...
Open mission & change
CloudHeight 1000.0
(TEXT TO CHANGE HERE)

& change text to
CloudHeight 3000.0
(NEW TEXT HERE)

This will change CloudHeight 1000.0 to text CloudHeight 3000.0 in *all mision files (.mis)

Download mission change script > http://www.mediafire.com/file/wgsxcsiz8 ... t.rar/file

*REMEMBER TO PUT YOUR MISSION FILES INTO THE FOLDER
PUT MISSIONS IN THIS FOLDER !



------

It may look like a lot of instructions but this is so not to make mistakes.
Once you've edited the batch with the text you want just run it & it will process all mission files
you may adapt this batch to process any multiples of asci text files

uses REPL.bat
original thread https://superuser.com/questions/637904/ ... g-in-files
------
If you are looking for an Online Dogfight Server with players...
AleXServer Dogfight Server IP = 217.78.176.50:21000 (by HL or Direct Connect)
IL2 map vids https://www.youtube.com/watch?v=P2Xzx6v ... ow6YmEnjDG
blackshark
Posts: 35
Joined: Wed Jan 16, 2019 10:08 pm

Re: How to change plane/ship in campaigns

Post by blackshark » Fri Mar 22, 2019 8:48 am

Thank you all for the info
I really appreciate this community
Next weeks i will try your suggestions
Post Reply

Return to “IL-2 Help”

Who is online

Users browsing this forum: No registered users and 0 guests