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 players 17 yo
- --- Because it's iterating over around 20k records it can take a while
- --- on my PC it needs around 15 seconds
- --- 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()
- -- 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)
- --- 17 yo
- --- 8 May 2002
- --- https://www.timeanddate.com/date/durationresult.html?y1=1582&m1=10&d1=15&y2=2002&m2=5&d2=8&ti=on
- ADDR_LIST.getMemoryRecordByID(CT_MEMORY_RECORDS['BIRTHDATE']).Value = 153243
- 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