Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --- This script will edit all players in your Career Mode save.
- --- All attributes, potential and ovr will be 99
- --- Age will be 18
- --- https://i.imgur.com/F9BbWiH.gifv
- --- HOW TO USE:
- --- 1. While in game main menu open Live Editor
- --- 2. Activate "FIFA Database Tables" script
- --- 3. Load your career mode save.
- --- 4. In Cheat Engine click on "Memory View" button.
- --- 5. Press "CTRL + L" to open lua engine
- --- 6. Then press "CTRL + O" and open this script
- --- 7. Click on 'Execute' button to execute script and wait for 'done' message box.
- --- AUTHOR: ARANAKTU
- require 'lua/consts';
- start_time = os.time()
- local comp_desc = get_components_description_player_edit()
- -- list of attributes
- local attributes_to_edit = {
- "Potential",
- "Crossing",
- "Finishing",
- "HeadingAccuracy",
- "ShortPassing",
- "Volleys",
- "Marking",
- "StandingTackle",
- "SlidingTackle",
- "Dribbling",
- "Curve",
- "FreeKickAccuracy",
- "LongPassing",
- "BallControl",
- "GKDiving",
- "GKHandling",
- "GKKicking",
- "GKPositioning",
- "GKReflex",
- "ShotPower",
- "Jumping",
- "Stamina",
- "Strength",
- "LongShots",
- "Acceleration",
- "SprintSpeed",
- "Agility",
- "Reactions",
- "Balance",
- "Aggression",
- "Composure",
- "Interceptions",
- "AttackPositioning",
- "Vision",
- "Penalties",
- }
- -- Find all links
- local i = 0
- local playerid_arr = {}
- local sizeOf = 16 -- Teamplayerlinks sizeOf record
- local teamid = 46 - 1
- while true do
- local tplinks_playerid_record = ADDR_LIST.getMemoryRecordByID(3533)
- local current_playerid = bAnd(bShr(readInteger(string.format('[%s]+%X', 'ptrFirstTeamplayerlinks', tplinks_playerid_record.getOffset(0)+(i*sizeOf))), tplinks_playerid_record.Binary.Startbit), (bShl(1, tplinks_playerid_record.Binary.Size) - 1))
- if current_playerid == 0 then
- break
- end
- writeQword('ptrTeamplayerlinks', readPointer('ptrFirstTeamplayerlinks') + i*sizeOf)
- local current_teamid = tonumber(ADDR_LIST.getMemoryRecordByID(3527).Value)
- -- Player from user team
- if current_teamid == teamid then
- table.insert(playerid_arr, tonumber(tplinks_playerid_record.Value))
- end
- i = i + 1
- end
- -- players table
- local sizeOf = 112 -- Size of one record in players database table (0x70)
- -- iterate over all players in 'players' database table
- local i = 0
- local current_playerid = 0
- while true do
- local playerid_record = ADDR_LIST.getMemoryRecordByID(CT_MEMORY_RECORDS['PLAYERID'])
- local current_playerid = bAnd(bShr(readInteger(string.format('[%s]+%X', 'firstPlayerDataPtr', playerid_record.getOffset(0)+(i*sizeOf))), playerid_record.Binary.Startbit), (bShl(1, playerid_record.Binary.Size) - 1))
- if current_playerid == 0 then
- break
- end
- writeQword('playerDataPtr', readPointer('firstPlayerDataPtr') + i*sizeOf)
- playerid_record = ADDR_LIST.getMemoryRecordByID(CT_MEMORY_RECORDS['PLAYERID'])
- for j, playerid in ipairs(playerid_arr) do
- if tonumber(current_playerid) == playerid then
- -- 99 on all attributes
- for k=1, #attributes_to_edit do
- local attr_name = attributes_to_edit[k] .. 'Edit'
- ADDR_LIST.getMemoryRecordByID(comp_desc[attr_name]['id']).Value = 98
- end
- ADDR_LIST.getMemoryRecordByID(comp_desc['OverallEdit']['id']).Value = 98
- -- 18 yo
- ADDR_LIST.getMemoryRecordByID(CT_MEMORY_RECORDS['BIRTHDATE']).Value = 152986 - 365
- end
- end
- i = i + 1
- if i >= 26000 then
- break
- end
- end
- elapsed_time = os.difftime(os.time(),start_time)
- print(elapsed_time)
- showMessage("Done")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement