anyone having problems with munging core lvl in windows 10 ?

Started by wsa30h, August 12, 2019, 04:00:44 PM

Previous topic - Next topic
does anyone have a solution for localization not munging in windows 10 ?
mods and maps in progress:<br />--Bf1 expanded edition 3.0 version
-- bf1 tcw battles
-- bf1 seasons mod season 1
-- bf2 expanded edition tbh

I think someone posted the solution to that in the forums already! Make sure you search before posting :)

Let us know if you can't find it, otherwise! Good luck :)
Anyder | Talent, Ops & Culture | SWBF & Player Engagement
Email: communityambassador@swbfgamers.com
SWBFSpy Discord: http://discord.swbfspy.com
SWBFSpy Info: http://info.swbfspy.com

thanks anyrider but i cant find it.
mods and maps in progress:<br />--Bf1 expanded edition 3.0 version
-- bf1 tcw battles
-- bf1 seasons mod season 1
-- bf2 expanded edition tbh

I haven't tested this extensively but it should work.

Open up "BFBuilder/Data/MergeLocalize.bat" in a text editor and replace it's contents with this. (Or make the same edits I have manually.) Instead of using "more" (which iirc is what causes problems) for merging localization it'll use PowerShell's "Get-Content" command. The end result should be identical, I think.
@echo off


:: //-----------------------------------------------------------
:: // Create some cleaner variable names
:: //-----------------------------------------------------------

if "%3"=="" (
ECHO.
Echo Format: .\MergeLocalize.Bat InputDir1 inputDir2 TempDir
ECHO.
GOTO DONE
)

set Source1Dir=%1
set Source2Dir=%2
set TempDir=%3


:: //-----------------------------------------------------------
:: // Copy and merge the two text files for each language
:: //-----------------------------------------------------------

if NOT EXIST %TempDir% mkdir %TempDir%

setlocal ENABLEDELAYEDEXPANSION


:: Make sure PowerShell is on the path.
SET PATH="%SYSTEMROOT%"\System32\WindowsPowerShell\v1.0\;%PATH%

FOR %%i IN (%Source1Dir%\*.cfg %Source2Dir%\*.cfg) DO (
echo Merging %%i...

:: Use "Get-Content" from PowerShell instead of "more".
powershell -Command Get-Content %%i >>  %TempDir%\%%~ni%%~xi
)

ECHO.

:DONE

thanks sleep killer that works.
mods and maps in progress:<br />--Bf1 expanded edition 3.0 version
-- bf1 tcw battles
-- bf1 seasons mod season 1
-- bf2 expanded edition tbh