Editor.saveFolderToArchive

If you know something thats not in here please share it
Post Reply
duffman
Posts: 55
Joined: Tue Apr 15, 2014 8:02 am

Editor.saveFolderToArchive

Post by duffman »

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
freddy
Posts: 1267
Joined: Sun Oct 18, 2009 4:58 pm

Re: Editor.saveFolderToArchive

Post by freddy »

For some reason the debug.exe (bf1942_r.exe) doesnt work for me anymore.
Post Reply