Hard Light Productions Forums
Modding, Mission Design, and Coding => FS2 Open Tools => Topic started by: FreeSpaceFreak on March 09, 2011, 04:37:40 pm
-
Ever tried to use a spellchecker on a .fs2 file? Sucks, doesn't it? I wrote this little EXE to remedy this. Drop it in any data\missions folder and execute; it will search for all .fs2 files present and copy relevant texts to a file "all.txt" in the same directory. Then you can copy-paste the contents to Word and use the spellchecker on it.
Now, this is my first useful C++ program ever, so don't expect much of it. It's (probably) Windows-only, readability of the output is not great, and if you already happen to have a file "all.txt" in that directory, it will be overwritten. $semicolon and $quote entries are not filtered out. Luckily, the mission files are opened as read-only, so at least they shouldn't be affected.
Download the EXE here (http://www.mediafire.com/?wpzm3dxhkdyt9n0) from MediaFire; if you're interested in the source code, look here (http://www.hard-light.net/forums/index.php?topic=75002.0).
-
I get an error message when I run it. The program requests a DLL file.
-
What dll? Is it probably just a MSVC runtime? Or did he write it with Qt or something? :P
-
MSVCP100.dll is the file it's looking for.
-
You need the Visual Studio 2010 Redistributable package for Windows 32bit (http://www.microsoft.com/downloads/en/details.aspx?FamilyID=a7b7a05e-6de6-4d3a-a423-37bf0912db84) or 64bit (http://www.microsoft.com/downloads/en/details.aspx?familyid=BD512D9E-43C8-4655-81BF-9350143D5867&displaylang=en). Actually, which one you get probably depends on the app, not the Windows OS, so I'd get the 32bit one first no matter what.
-
Okay, thanks.
Ran this progy in CoW2's mission folder and here are my findings:
- The mission files remained unaffected
- The all.txt lists a lot of "Nothing"s. I suggest it disregard all "$Cargo: Nothing" (or whatever the exact code is) when copying from the mission files.
- A feature that marks the beginning of (de)briefing stages would be nice.
Good work on it. :) If I weren't so stubborn, I'd be using this nice little program for its intended purpose. :)
-
Btw, shouldn't the stuff this looks for be done via tstrings and not text directly in the mission files?
-
Btw, shouldn't the stuff this looks for be done via tstrings and not text directly in the mission files?
Perhaps... thought I'd leave tables to m!m's tool, for now.
Version 0.2 is up - it now should work without the VS2010 package (can anyone confirm?), read missions in their proper order, and contain the improvements suggested by TopAce.
-
It's also worth noting that FRED2_Open's Voice Acting Manager can export mission text to text files for this purpose... :nervous: