In order to perform some modding methods, it is important to have a good modding environment.
If you are new to modding, it is recommended to get started with the basic method, and as you get more used to modding, the advanced approach might suits you better. But do not worry, the advanced approach is a more in-depth method of the basic one, so no need to start everything from scratch !
基础
In the first place, a main folder for modding is necessary.
Creating a Titanfall 2 folder inside a Modding folder is a preferred method. The location of this root folder will depend of your personal preference.
If you are using different storage devices, for better performance, the root folder can be in your faster SSD.
If you are using a dedicated storage device for your games, consider having your root folder there.
As a result, your Titanfall 2 modding folder should look like as in the following screenshot. The purpose of each folders will be explained in details.
备份文件夹
As the name of the folder suggest, it will be used to store backup of your vpk archives. To perform a backup of a specific VPK archive, the main file and all it's subsequent (typo here) will need to be copied over the backup folder.
A example of a typical backup of the common VPK archive.
This folder will be the main folder for extracted VPK files, where the different file to be edited will be in.
As the common and frontend VPK are the most common to work on, they have their own folder, single player (levels) and multiplayer (maps) VPK will have their own sub folder.
In the example following, the folders common, frontend and angel city, would be populated. You don't need to create all the folders inside them, that would be done as their respective VPK archive are extracting.
The folder used for the output of the VPK tool while repacking a VPK archive. It is a bad practice to repack directly into your game directory. For VPK use of the VPK tool, check:
Using git for your extracted VPK files allow you to have different set of VPK (main, dev, research, etc.) while keeping things under a decent amount of sub folders.
Git is a powerful tool that can be used in numerous way, your CLI, dedicated software, your code editor of choice, etc.
For the common and frontend VPK, having a separate copy, vanilla (not modded) that will stay vanilla is a time saver, comparing files, restore certain files, etc.Git can be used for a extracted VPK. Idealy, setting up git would be done for the most used VPK, but that is up to personal preference to adapt each users workflow.
Each VPK folder that has git setup has a extra sub folder so the .git folder is not included while repacking a VPK. The VPK tool does not have the ability to exclude files / folder.
The *.vpk in the folder structure aren't VPK archive. They are folders name.
Be careful while using the scripts. If you launch a script for the wrong VPK, it will lead to your game crashing.
The script has no way to tell the difference between the correct VPK to rename automatically. With that said, if mistakes are done, it can easily be fixed using your backup files.
资源专用文件夹
Depending of what you are doing in modding, you might want to have dedicated folder for some type of game assets.