Character Swapping Framework Documentation
The "Character Swapping Framework" is a mod for Sonic Unleashed that adds in the ability for a user to install one or more model mods to their game and then toggle between each model mod in game.
The mod has a few major iterations that a modder could fork for their own work.
Glossery:
CSF : Character Swapping Framework
Data Archive: The archive containing character model, sound and ui data, such as "ActD_Char_Custom.ar"
Data Bridge: The archive used to bridge between the Data Archive and the stage instance, such as "#Custom_Africa.ar"
SR_Enter Scripts: The stage entry scripts primarily modified to facilitate this mods functions.
How The Core System Works In All Iterations.
All iterations use the same fundamental system where you require:
An archive containing your "characters" data, this for example would be similar to "Sonic.ar", but labled something like "ActD_Char_Custom.ar".
Archives to hook the Data Archive to the stage, such as "#Custom_Africa.ar" or "#Sub_Custom_Africa1.ar".
A custom archive tree, referenced as additional in the main archive trees.
Entries for Data Archives and Data Bridge archives in the "swa.arcinfo".
Entires for your flag type [integer or bool] in the "Flaglist.xml".
Flag modifier scripts for your characters, these dictate what region within the script sets the bool or integer flag.
Relevent per version cases in the "SR_Enter" scripts.
Stagelist entries directing to the flag modifer scripts.
Major Iterations.
Version 1.0.