SFE legacy
Old callback names kept so existing mods work without changes.
File writers take the file content as the only argument. Replace targets accept an empty string and truncate the file; the append target rejects an empty string. They copy the content into xScal's file queue and return true when the request is accepted, not when the file is written. The queue holds at most 64 requests and 20 MiB; one request is at most 5 MiB. Only a completed write is logged. A request accepted just before the game exits may not be written.
FCM diagnostic log
__SFCodeObj.call("log", payload:Object):Boolean
Arguments
| Name | Type | Description |
payload | Object | Object with vendor, message, level, category. |
Returns Boolean
True when accepted, false for an invalid payload.
Writes message to xscal.log with an FCM: prefix. vendor must be FCMChatWidget and message must be a string. level and category are ignored.
Replace Data\BuffData.ini
__SFCodeObj.call("writeBuffDataFile", content:String):Boolean
Arguments
| Name | Type | Description |
content | String | Complete file content, at most 5 MiB. |
Returns Boolean
True when the content was accepted and queued, false when it was rejected or the queue is full.
Replace Data\ChallengeData.ini
__SFCodeObj.call("writeChallengeDataFile", content:String):Boolean
Arguments
| Name | Type | Description |
content | String | Complete file content, at most 5 MiB. |
Returns Boolean
True when the content was accepted and queued, false when it was rejected or the queue is full.
Replace Data\perkloadoutmanager.ini
__SFCodeObj.call("writePerksFile", content:String):Boolean
Arguments
| Name | Type | Description |
content | String | Complete file content, at most 5 MiB. |
Returns Boolean
True when the content was accepted and queued, false when it was rejected or the queue is full.
Replace Data\saveeverything.ini
__SFCodeObj.call("writeSaveEverythingFile", content:String):Boolean
Arguments
| Name | Type | Description |
content | String | Complete file content, at most 5 MiB. |
Returns Boolean
True when the content was accepted and queued, false when it was rejected or the queue is full.
Replace Data\itemsmod.ini
__SFCodeObj.call("writeItemsModFile", content:String):Boolean
Arguments
| Name | Type | Description |
content | String | Complete file content, at most 5 MiB. |
Returns Boolean
True when the content was accepted and queued, false when it was rejected or the queue is full.
Replace Data\LegendaryMods.ini
__SFCodeObj.call("writeLegendaryModsFile", content:String):Boolean
Arguments
| Name | Type | Description |
content | String | Complete file content, at most 5 MiB. |
Returns Boolean
True when the content was accepted and queued, false when it was rejected or the queue is full.
Append to Data\vendorlog.txt
__SFCodeObj.call("writeVendorLogFile", content:String):Boolean
Arguments
| Name | Type | Description |
content | String | Complete file content, at most 5 MiB. |
Returns Boolean
True when the content was accepted and queued, false when it was rejected or the queue is full.
Replace Data\DPSMeter.txt
__SFCodeObj.call("writeDPSMeterFile", content:String):Boolean
Arguments
| Name | Type | Description |
content | String | Complete file content, at most 5 MiB. |
Returns Boolean
True when the content was accepted and queued, false when it was rejected or the queue is full.
Replace Data\CAMPSearch.ini
__SFCodeObj.call("writeCampSearchConfigFile", content:String):Boolean
Arguments
| Name | Type | Description |
content | String | Complete file content, at most 5 MiB. |
Returns Boolean
True when the content was accepted and queued, false when it was rejected or the queue is full.
Replace Data\configuration\blocklist.ini
__SFCodeObj.call("writeBlockFile", content:String):Boolean
Arguments
| Name | Type | Description |
content | String | Complete file content, at most 5 MiB. |
Returns Boolean
True when the content was accepted and queued, false when it was rejected or the queue is full.
Replace Data\CampData.ini
__SFCodeObj.call("writeCampDataFile", content:String):Boolean
Arguments
| Name | Type | Description |
content | String | Complete file content, at most 5 MiB. |
Returns Boolean
True when the content was accepted and queued, false when it was rejected or the queue is full.
Replace Data\CharacterData.ini
__SFCodeObj.call("writeCharacterDataFile", content:String):Boolean
Arguments
| Name | Type | Description |
content | String | Complete file content, at most 5 MiB. |
Returns Boolean
True when the content was accepted and queued, false when it was rejected or the queue is full.