(SWBF2) Batch files and Win7 [Solved]

How To's, Questions, and Solutions for problems. This covers anything from computer hardware problems to software recommendations to tutorials for various software programs.

Note: Neither Gametoast nor any of its members/visitors are responsible for any damage to your computer as a result from advice given in this forum. Follow advice at your own risk and be sure to back up any important files.

Moderator: Moderators

Post Reply
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

(SWBF2) Batch files and Win7 [Solved]

Post by Fiodis »

This is sort've modding-related. A lot of my bat files aren't working. Someone released a fix for the maing Visual Munge utility, but not for everything else. For example, my editlocalize.bat crashes upon startup. What is it about Win7 and the Mod Tools that causes .bat files to fail? And how can I fix it?
501st_commander
Master Bounty Hunter
Master Bounty Hunter
Posts: 1570
Joined: Wed Dec 10, 2008 7:48 pm

Re: (SWBF2) Batch files and Win7

Post by 501st_commander »

I dont have that problem, maybe try replacing them with a new copy?
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: (SWBF2) Batch files and Win7

Post by Fiodis »

Perhaps, but look at this:

Code: Select all

cd common\localize
..\..\..\ToolsFL\Bin\MultiLanguageTool.exe
That's the contents of my stock editlocalize.bat in data_MED. You'll note that there's three spaces before "ToolsFL" (that is, three ".."). I'm not much of a programmer, but the proper path to MultiLanguageTool.exe is C:\BF2_ModTools\ToolsFL\bin\MultiLanguageTool.exe. There's only two directories before "ToolsFL". So I edited it to reflect the new path, and instead of popping up and vanishing like it used to, it comes up with the Localize utility, but without any tree heirarchy to edit.

So I tried not running it as an administrator, and would you believe it, it worked. Odd. I have yet to see if it made any changes in-game, though.

Edit: works. Solved. :)
Post Reply