Page 1 of 1

Load Screen picture help [Solved]

Posted: Wed Jun 17, 2015 1:48 pm
by Lorul1
so I followed all the instructions here I flowed them and it didn't work.
http://www.gametoast.com/viewtopic.php?f=27&t=6020
here's what I did
_____________________________________________________________________________________________________
1) Since I'm running windows 8 I replaced the munge.bat in "data_XXX/_BUILD/Load" with the vista fix one
after that I took out ALL (100%) of the "@" so at the end my munge.bat in "data_XXX/_BUILD/Load" looked like this
Hidden/Spoiler:
[code]REM WARNING: enabledelayedexpansion means ! is a special character,
REM which means it isn't available for use as the mungeapp recursive
REM wildcard character. Use the alternate $ instead.
setlocal enabledelayedexpansion

set MUNGE_ROOT_DIR=..\..
if not "%1"=="" set MUNGE_PLATFORM=%1
if %MUNGE_PLATFORM%x==x set MUNGE_PLATFORM=PC
REM if "%MUNGE_BIN_DIR%"=="" (
set MUNGE_BIN_DIR=%CD%\%MUNGE_ROOT_DIR%\..\ToolsFL\Bin
set PATH=%CD%\..\..\..\ToolsFL\Bin;%PATH%
REM echo MUNGE_BIN_DIR=!MUNGE_BIN_DIR!
REM )

set MUNGE_ARGS=-checkdate -continue -platform %MUNGE_PLATFORM%
set MUNGE_DIR=MUNGED\%MUNGE_PLATFORM%
set OUTPUT_DIR=%MUNGE_ROOT_DIR%\_LVL_%MUNGE_PLATFORM%\Load

set LOCAL_MUNGE_LOG="%CD%\%MUNGE_PLATFORM%_MungeLog.txt"
if "%MUNGE_LOG%"=="" (
set MUNGE_LOG=%LOCAL_MUNGE_LOG%
if exist %LOCAL_MUNGE_LOG% ( del %LOCAL_MUNGE_LOG% )
)

REM ===== Handle files in Load\
set SOURCE_SUBDIR=Load
set SOURCE_DIR=
if not %MUNGE_OVERRIDE_DIR%x==x (
for %%a in (%MUNGE_OVERRIDE_DIR%) do set SOURCE_DIR=%SOURCE_DIR% %MUNGE_ROOT_DIR%\%SOURCE_SUBDIR%\%%a
)
set SOURCE_DIR=%SOURCE_DIR% %MUNGE_ROOT_DIR%\%SOURCE_SUBDIR%

REM copy premunged data from source\munged
if not exist MUNGED mkdir MUNGED
if not exist %MUNGE_DIR% mkdir %MUNGE_DIR%
REM if exist %MUNGE_ROOT_DIR%\%SOURCE_SUBDIR%\MUNGED xcopy %MUNGE_ROOT_DIR%\%SOURCE_SUBDIR%\MUNGED\*.* %MUNGE_DIR% /D /Q /Y
REM if exist %MUNGE_ROOT_DIR%\%SOURCE_SUBDIR%\%MUNGE_DIR% xcopy %MUNGE_ROOT_DIR%\%SOURCE_SUBDIR%\%MUNGE_DIR%\*.* %MUNGE_DIR% /D /Q /Y

configmunge -inputfile $*.cfg %MUNGE_ARGS% -sourcedir %SOURCE_DIR% -outputdir %MUNGE_DIR% -chunkid load -ext config 2>>%MUNGE_LOG%

%MUNGE_PLATFORM%_texturemunge -inputfile $*.tga $*.pic %MUNGE_ARGS% -sourcedir %SOURCE_DIR% -outputdir %MUNGE_DIR% 2>>%MUNGE_LOG%
%MUNGE_PLATFORM%_modelmunge -inputfile $*.msh %MUNGE_ARGS% -sourcedir %SOURCE_DIR% -outputdir %MUNGE_DIR% 2>>%MUNGE_LOG%


REM === Create a temp folder to hold the req's
set TEMP_DIR=%SOURCE_DIR%\__TEMP__
if not exist %TEMP_DIR% mkdir %TEMP_DIR%

REM ========== for each backdrop create a level file
for /D %%b in (%MUNGE_ROOT_DIR%\%SOURCE_SUBDIR%\backdrops\*) do (
for %%a in (%MUNGE_ROOT_DIR%\%SOURCE_SUBDIR%\backdrops\%%b\*.tga %MUNGE_ROOT_DIR%\%SOURCE_SUBDIR%\backdrops\%%b\*.pic
%MUNGE_ROOT_DIR%\%SOURCE_SUBDIR%\backdrops\%%b\%MUNGE_PLATFORM%\*.tga %MUNGE_ROOT_DIR%\%SOURCE_SUBDIR%\backdrops\%%b\%MUNGE_PLATFORM%\*.pic) do (
echo ucft{ REQN { "texture" "%%~na" } } > %TEMP_DIR%\%%~na.req
)
)

levelpack -inputfile $*.req -common ..\Common\MUNGED\%MUNGE_PLATFORM%\core.files %MUNGE_ARGS% -sourcedir %TEMP_DIR% -inputdir %MUNGE_DIR% -outputdir %MUNGE_DIR% 2>>%MUNGE_LOG%


del /q %TEMP_DIR%\*.*

REM ========== create an req for each directory
for /D %%b in (%MUNGE_ROOT_DIR%\%SOURCE_SUBDIR%\backdrops\* ) do (
echo ucft{ REQN { "lvl" > %TEMP_DIR%\%%~nb.req
for %%a in (%MUNGE_ROOT_DIR%\%SOURCE_SUBDIR%\backdrops\%%b\*.tga %MUNGE_ROOT_DIR%\%SOURCE_SUBDIR%\backdrops\%%b\*.pic
%MUNGE_ROOT_DIR%\%SOURCE_SUBDIR%\backdrops\%%b\%MUNGE_PLATFORM%\*.tga %MUNGE_ROOT_DIR%\%SOURCE_SUBDIR%\backdrops\%%b\%MUNGE_PLATFORM%\*.pic) do (
echo "%%~na" >> %TEMP_DIR%\%%~nb.req
)
echo } } >> %TEMP_DIR%\%%~nb.req
)


REM ===== Build LVL files

if not exist %MUNGE_ROOT_DIR%\_LVL_%MUNGE_PLATFORM% mkdir %MUNGE_ROOT_DIR%\_LVL_%MUNGE_PLATFORM%
if not exist %MUNGE_ROOT_DIR%\_LVL_%MUNGE_PLATFORM%\Load mkdir %MUNGE_ROOT_DIR%\_LVL_%MUNGE_PLATFORM%\Load

levelpack -inputfile $*.req -common ..\Common\MUNGED\%MUNGE_PLATFORM%\core.files %MUNGE_ARGS% -sourcedir %SOURCE_DIR% -inputdir %MUNGE_DIR% -outputdir %OUTPUT_DIR% 2>>%MUNGE_LOG%

del /q %TEMP_DIR%\*.*
rmdir %TEMP_DIR%

REM If the munge log was created locally and has anything in it, view it
if not %MUNGE_LOG%x==%LOCAL_MUNGE_LOG%x goto skip_mungelog
set FILE_CONTENTS_TEST=
if exist %MUNGE_LOG% for /f %%i in (%MUNGE_LOG:"=%) do set FILE_CONTENTS_TEST=%%i
if not "%FILE_CONTENTS_TEST%"=="" ( Notepad.exe %MUNGE_LOG% ) else ( if exist %MUNGE_LOG% (del %MUNGE_LOG%) )

:skip_mungelog
endlocal
[/code]

2) I created the "Load" folder in data_XXX
I made my image ( 1024x1024 ) then a common req that contained this exact text
Hidden/Spoiler:
[code]ucft
{
REQN
{
"texture"
"loadscreen"
}
}[/code]


so by the end of this step I had in my load folder located in Data_XXX two things:
a req file named "common" and a tga ( 1024x1024 ) of my pic that is titled loadscreen


3) I ran the "Modtools VisualMunge" application in "BF2_ModTools\data_XXX\_BUILD"
and I munged only the Load option

4) I went to "BF2_ModTools\data_XXX\_LVL_PC\Load" and found a lvl file labeled "common".
this common.lvl is only 1 KB
I KNOW THIS IS NOT SUPOSED TO HAPPEN BUT I DON'T KNOW HOW TO PREVENT THIS
AND YES I HAVE TRIED A CLEAN AND RE-DOING ALL THE STEPS AGAIN.

5)I took this common.lvl went to "SteamApps\common\Star Wars Battlefront II\GameData\addon\GZB\data\_LVL_PC" made a folder called "Load" and pasted the 1 KB common.lvl into the new "Load" folder

6) I opened up my map's lua and added:

ReadDataFile("dc:Load\\common.lvl")

under

function ScriptInit()

and saved my lua.

8 )I did another visual munge and munged only the common option along with "EVERYTHING" from the drop down menu
________________________________________________________________________________________________________

I'm about to finish this map for my map pack and this is the last thing I need to do :runaway:
anything I missed ?

Re: Load Screen picture help

Posted: Wed Jun 17, 2015 9:44 pm
by AceMastermind
Step 2 of the loadscreen tutorial isn't necessary.
It looks like there is something wrong with your loadscreen image, it isn't being munged.
Your common.lvl should be 3.33MB if using a 1024x1024 tga.

Re: Load Screen picture help

Posted: Wed Jun 17, 2015 10:34 pm
by Lorul1
well here's how I'm exporting the image

Image

When I go into " BF2_ModTools\data_XXX\_BUILD\Load\MUNGED\PC " I see a texture file named "loadscreen" its 3,415 KB , and I cant find that in my " BF2_ModTools\data_XXX\LVL_PC " so is it supposed to be in my LVL_PC ?

Re: Load Screen picture help

Posted: Wed Jun 17, 2015 11:19 pm
by AceMastermind
The common.lvl with the image is located here after munging Load:
data_ABC\_LVL_PC\LOAD\common.lvl

copy the LOAD folder to this location:
SteamApps\common\Star Wars Battlefront II\GameData\Addon\ABC\data\_LVL_PC

If you're using the Fixed and improved munge files then they'll do all of the copying for you.

Re: Load Screen picture help

Posted: Fri Jun 19, 2015 9:52 pm
by Lorul1
copying the load folder worked !!! Thanks Ace (: