Editor.saveFolderToArchive

If you know something thats not in here please share it

Editor.saveFolderToArchive

Postby duffman » Sat Apr 29, 2017 9:44 am

NAME
Editor.saveFolderToArchive

SYNOPSIS
Editor.saveFolderToArchive [FOLDER_NAME/RFA_NAME] [0=FILES ONLY|1=RECURSIVE FOLDERS] [0=UNCOMPRESSED|1=COMPRESSED]

FUNCTION
Generate RFA from within the console on the debug exectuable (bf1942_r.exe).
Single folder files, or recursive folder structure.
Save compressed version or without.

CATEGORY
In-game console command.

RESULT
Creates .RFA file, and .LST file (text file with list of filenames inside the .RFA archive)

NOTES
Root path is:
"C:\Program Files\EA GAMES\Battlefield 1942\" (Windows XP)
"C:\Program Files (x86)\EA GAMES\Battlefield 1942\" (Windows 7 etc.)

Example:
Editor.saveFolderToArchive bf1942 1 1
Will add the folder: "C:\Program Files (x86)\EA GAMES\Battlefield 1942\bf1942"
Recursive (all sub-folders and files), with compression on.
File will be saved with same name as folder: bf1942.rfa in "C:\Program Files (x86)\EA GAMES\Battlefield 1942\".
And it creates bf1942.lst containing list of all files added to the rfa with compressed size and real size.

Which is probably an inline console command for the similar command line argument to make RFA's:

(batch script)
SET GAME_INSTALL_PATH=C:\Program Files\EA GAMES\Battlefield 1942
SET BUILD_NAME=my_awesome_map
bf1942_r.exe" +workingFolder "%GAME_INSTALL_PATH%" +makeArchive bf1942/levels/%BUILD_NAME% 1 1

SEE ALSO
+makeArchive Command line arguments for bf1942_r.exe
duffman
 
Posts: 33
Joined: Tue Apr 15, 2014 8:02 am

Re: Editor.saveFolderToArchive

Postby freddy » Sat Jun 10, 2017 3:49 am

For some reason the debug.exe (bf1942_r.exe) doesnt work for me anymore.
User avatar
freddy
 
Posts: 1186
Joined: Sun Oct 18, 2009 4:58 pm


Return to Modding/Mapping Tutorials

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 1 guest