Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Session and dependencies

Methods about the state of the session.

session.status

Returns the selected game, what’s loaded for it, and the open packs.

Params (GetSessionStatus)

Empty object: {}.

Result (SessionStatus)

NameTypeRequiredDescription
gamestringyesKey of the selected game, like warhammer_3.
schema_loadedbooleanyesIf a schema is loaded for the selected game. Tables can’t be read without one.
dependenciesDependenciesStatusyesWhat’s loaded of the dependencies of the selected game.
packsarray of PackSummaryyesThe open packs.

session.configure

Replaces the settings the session runs with.

Sessions start with the settings in the settings file. Clients owning their own settings send them with this before anything else, and again whenever they change.

Params (Configure)

NameTypeRequiredDescription
settingsanyyesThe settings.

Result (Done)

Empty object: {}.

session.disconnect

Tells the server the client is closing, so its WebSocket session is removed right away instead of waiting for the timeout. Only for WebSocket clients.

Params (Disconnect)

Empty object: {}.

Result (Done)

Empty object: {}.

session.set_game

Selects a game, loading its schema and, optionally, its dependencies.

Runs as a job: answers right away with a job ID, and sends its result when the job ends (see Jobs).

Params (SetGame)

NameTypeRequiredDescription
gamestringyesKey of the game, like warhammer_3.
rebuild_dependenciesbooleanno, default trueIf the dependencies (vanilla files, Assembly Kit tables, parent packs) are loaded for the game.

Result (SessionStatus)

NameTypeRequiredDescription
gamestringyesKey of the selected game, like warhammer_3.
schema_loadedbooleanyesIf a schema is loaded for the selected game. Tables can’t be read without one.
dependenciesDependenciesStatusyesWhat’s loaded of the dependencies of the selected game.
packsarray of PackSummaryyesThe open packs.

dependencies.generate_cache

Generates the dependencies cache of the selected game from its files and Assembly Kit, and loads it.

Runs as a job: answers right away with a job ID, and sends its result when the job ends (see Jobs).

Params (GenerateDependenciesCache)

NameTypeRequiredDescription
ignore_game_files_in_assembly_kitboolean or nullnoIf tables in the game files are skipped when reading the Assembly Kit. Defaults to the server’s setting.

Result (SessionStatus)

NameTypeRequiredDescription
gamestringyesKey of the selected game, like warhammer_3.
schema_loadedbooleanyesIf a schema is loaded for the selected game. Tables can’t be read without one.
dependenciesDependenciesStatusyesWhat’s loaded of the dependencies of the selected game.
packsarray of PackSummaryyesThe open packs.

dependencies.rebuild

Reloads the dependencies of the selected game, like after changing the packs the open packs depend on.

Runs as a job: answers right away with a job ID, and sends its result when the job ends (see Jobs).

Params (RebuildDependencies)

NameTypeRequiredDescription
only_parent_packsbooleanno, default falseIf only the parent packs are reloaded, instead of the whole dependencies.

Result (SessionStatus)

NameTypeRequiredDescription
gamestringyesKey of the selected game, like warhammer_3.
schema_loadedbooleanyesIf a schema is loaded for the selected game. Tables can’t be read without one.
dependenciesDependenciesStatusyesWhat’s loaded of the dependencies of the selected game.
packsarray of PackSummaryyesThe open packs.

dependencies.tables

Returns the tables of the game files, and the startpos, twad and CEO tables of the schema, with their version.

Params (ListDependencyTables)

Empty object: {}.

Result (DependencyTables)

NameTypeRequiredDescription
tablesmap of integeryesVersion of each table, by table name. Empty if the dependencies are not loaded.

dependencies.info

Returns the files of the dependencies of the selected game.

Meant for clients showing the dependencies as a tree. Others should use files.list.

Params (GetDependenciesInfo)

Empty object: {}.

Result (DependenciesInfo)

One of RPFM’s own types, without a schema. See its docs in rpfm_lib or rpfm_extensions.

dependencies.table_data

Returns every decoded table of a type in the game files and the parent packs.

Meant for clients comparing whole tables. Others should use table.rows.

Params (GetDependencyTableData)

NameTypeRequiredDescription
table_namestringyesName of the table, like units_tables.

Result (DependencyTableData)

NameTypeRequiredDescription
tablesarray of anyyesThe tables.

Types

Type DependenciesStatus

What’s loaded of the dependencies of the selected game.

NameTypeRequiredDescription
vanilla_loadedbooleanyesIf the vanilla files of the game are loaded.
assembly_kit_loadedbooleanyesIf the tables of the game’s Assembly Kit are loaded.
parent_filesintegeryesAmount of files loaded from the parent packs of the open packs.
errorstring or nullnoWhy the dependencies couldn’t be fully loaded, like a missing or outdated dependencies cache, if they couldn’t.

Type PackSummary

Short description of an open pack.

NameTypeRequiredDescription
keystringyesKey identifying the pack in every method that works on it: a UUID, like 0b4c5a62-7d3e-4f1a-9c2b-8e6d5f4a3b21. It never changes while the pack is open.
namestringyesFile name of the pack, like my_mod.pack.
pathstring or nullyesPath of the pack on disk, if it’s saved there.
pack_typestringyesType of the pack: Boot, Release, Patch, Mod or Movie.
file_countintegeryesAmount of files in the pack.