LUA API v2 Gameplay Attribulator - xAranaktu/FC-25-Live-Editor GitHub Wiki

Gameplay Attribulator

Gameplay attribulator editor can be used to create gameplay mods. Over the years, several threads have been created in various forums (FIFA 23 Gameplay Lab for example) where people shared their knowledge about editing gameplay files in FIFA, so if you are new to gameplay modding you should start from there.

Live Editor gives you access to Fifa/Attribulator/Gameplay/groups & Fifa/Attribulator/PreMatch/groups that you can find in FET that to this day were used by gameplay modders. I believe that now, when it's possible to edit the gameplay with live editor it should make the process of modifying and understanding gameplay faster and easier because to test the changes you just need to restart the match, not the whole game.

Fields

This class doesn't have any fields.

Methods

SaveToFile

Export gameplay data to json file

Declaration

void GameplayAttribulatorManager:SaveToFile(string filepath)

Parameters

Type Name Description
string filepath Full file path where data should be exported. If not provided the data will be exported to "C:\FC 25 Live Editor\gameplayattribdb.json"

Returns

Doesn't return anything

Example

-- Export gameplayattribdb to "C:\FC 25 Live Editor\gameplayattribdb.json"

LE.gameplay_attribulator_manager:SaveToFile()

SetVar

Sets variable in gameplay database automatically detectings it's type. May be slower than other setters

Declaration

void GameplayAttribulatorManager:SetVar(string path, string value)

Parameters

Type Name Description
string path Variable to change
string value New value

Returns

Doesn't return anything

Example

-- Change soccer ball radius from 0.365 to 3.0

LE.gameplay_attribulator_manager:SetVar("AttribDBRuntime_gameplayattribdb/gp_physics/gp_physics_soccerball/Soccerball_Radius", "3.0")

SetFloatValue

Set new value for float variable in gameplay database

Declaration

void GameplayAttribulatorManager:SetFloatValue(string path, float value)

Parameters

Type Name Description
string path Variable to change
float value New value

Returns

Doesn't return anything

Example

-- Change soccer ball radius from 0.365 to 3.0

LE.gameplay_attribulator_manager:SetFloatValue("AttribDBRuntime_gameplayattribdb/gp_physics/gp_physics_soccerball/Soccerball_Radius", 3.0)

SetIntValue

Set new value for int variable in gameplay database

Declaration

void GameplayAttribulatorManager:SetIntValue(string path, int value)

Parameters

Type Name Description
string path Variable to change
int value New value

Returns

Doesn't return anything

Example

LE.gameplay_attribulator_manager:SetIntValue("AttribDBRuntime_gameplayattribdb/gp_ballhandler/gp_ballhandler_freemove/TrackBackAssistance_MaxAssistanceDuration", 90)

SetBoolValue

Set new value for bool variable in gameplay database

Declaration

void GameplayAttribulatorManager:SetBoolValue(string path, bool value)

Parameters

Type Name Description
string path Variable to change
bool value New value

Returns

Doesn't return anything

Example

GetVarType

Get type of the variable from gameplay database

Declaration

string GameplayAttribulatorManager:GetVarType(string path)

Parameters

Type Name Description
string path Variable to get

Returns

Type of the variable as string

Example

print(LE.gameplay_attribulator_manager:GetVarType("AttribDBRuntime_gameplayattribdb/gp_physics/gp_physics_soccerball/Soccerball_Radius"))
print(LE.gameplay_attribulator_manager:GetVarType("AttribDBRuntime_gameplayattribdb/gp_ballhandler/gp_ballhandler_freemove/TrackBackAssistance_MaxAssistanceDuration"))
> float
> __int32 

GetFloatValue

Get value of the float variable from gameplay database

Declaration

float GameplayAttribulatorManager:GetFloatValue(string path)

Parameters

Type Name Description
string path Variable to get

Returns

Value of the variable as float

Example

print(string.format("%.3f", LE.gameplay_attribulator_manager:GetFloatValue("AttribDBRuntime_gameplayattribdb/gp_physics/gp_physics_soccerball/Soccerball_Radius")))

> 0.365

GetIntValue

Get value of the int variable from gameplay database

Declaration

int GameplayAttribulatorManager:GetIntValue(string path)

Parameters

Type Name Description
string path Variable to get

Returns

Value of the variable as int

Example

print(LE.gameplay_attribulator_manager:GetIntValue("AttribDBRuntime_gameplayattribdb/gp_ballhandler/gp_ballhandler_freemove/TrackBackAssistance_MaxAssistanceDuration"))

> 90

GetBoolValue

Get value of the boolean variable from gameplay database

Declaration

bool GameplayAttribulatorManager:GetBoolValue(string path)

Parameters

Type Name Description
string path Variable to get

Returns

Value of the variable as bool

Example