Repository: xAranaktu/FIFA-23-Live-Editor Branch: main Commit: 757fe70f7d57 Files: 27 Total size: 124.0 KB Directory structure: gitextract_qfkohzri/ ├── .github/ │ └── FUNDING.yml ├── LICENSE ├── LiveEditorClearRegistry.reg ├── README.md ├── changelog.txt ├── lua/ │ ├── DOC.MD │ ├── libs/ │ │ └── live_editor.lua │ ├── scripts/ │ │ ├── 1ovr_99pot.lua │ │ ├── 99ovr_99pot.lua │ │ ├── capture_newheads.lua │ │ ├── custom_headassetid_to_playerid.lua │ │ ├── custom_tattoos_to_playerid.lua │ │ ├── export_season_stats.lua │ │ ├── extend_user_team_players_contracts.lua │ │ ├── generate_minifaces.lua │ │ ├── generate_minifaces_user_team.lua │ │ ├── is_retiring=0.lua │ │ ├── list_players.lua │ │ ├── medium_socklenghtcode.lua │ │ ├── modifier=0.lua │ │ └── untuck_shirts.lua │ └── tests/ │ └── main_test.lua └── mods/ ├── Extended Player and Manager Editor/ │ └── README.md ├── Increased PCM Level Cap/ │ └── README.md ├── More Stupid Transfers/ │ └── README.md ├── Quicksim Settings/ │ └── README.md └── World Cup LE Fix/ └── README.md ================================================ FILE CONTENTS ================================================ ================================================ FILE: .github/FUNDING.yml ================================================ patreon: xAranaktu ================================================ FILE: LICENSE ================================================ GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 Copyright (C) 2007 Free Software Foundation, Inc. Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The GNU General Public License is a free, copyleft license for software and other kinds of works. The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things. To protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others. For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it. For the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions. Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users. Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free. The precise terms and conditions for copying, distribution and modification follow. TERMS AND CONDITIONS 0. Definitions. "This License" refers to version 3 of the GNU General Public License. "Copyright" also means copyright-like laws that apply to other kinds of works, such as semiconductor masks. "The Program" refers to any copyrightable work licensed under this License. Each licensee is addressed as "you". "Licensees" and "recipients" may be individuals or organizations. To "modify" a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a "modified version" of the earlier work or a work "based on" the earlier work. A "covered work" means either the unmodified Program or a work based on the Program. To "propagate" a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well. To "convey" a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying. An interactive user interface displays "Appropriate Legal Notices" to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion. 1. Source Code. The "source code" for a work means the preferred form of the work for making modifications to it. "Object code" means any non-source form of a work. A "Standard Interface" means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language. The "System Libraries" of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A "Major Component", in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it. The "Corresponding Source" for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work. The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source. The Corresponding Source for a work in source code form is that same work. 2. Basic Permissions. All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law. You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you. Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary. 3. Protecting Users' Legal Rights From Anti-Circumvention Law. No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures. When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures. 4. Conveying Verbatim Copies. You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program. You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee. 5. Conveying Modified Source Versions. You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions: a) The work must carry prominent notices stating that you modified it, and giving a relevant date. b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to "keep intact all notices". c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it. d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so. A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an "aggregate" if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate. 6. Conveying Non-Source Forms. You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways: a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange. b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge. c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b. d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements. e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d. A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work. A "User Product" is either (1) a "consumer product", which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, "normally used" refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product. "Installation Information" for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made. If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM). The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network. Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying. 7. Additional Terms. "Additional permissions" are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions. When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission. Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms: a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or d) Limiting the use for publicity purposes of names of licensors or authors of the material; or e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors. All other non-permissive additional terms are considered "further restrictions" within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying. If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms. Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way. 8. Termination. You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11). However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation. Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice. Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10. 9. Acceptance Not Required for Having Copies. You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so. 10. Automatic Licensing of Downstream Recipients. Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License. An "entity transaction" is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts. You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it. 11. Patents. A "contributor" is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's "contributor version". A contributor's "essential patent claims" are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, "control" includes the right to grant patent sublicenses in a manner consistent with the requirements of this License. Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version. In the following three paragraphs, a "patent license" is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To "grant" such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party. If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. "Knowingly relying" means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid. If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it. A patent license is "discriminatory" if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007. Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law. 12. No Surrender of Others' Freedom. If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program. 13. Use with the GNU Affero General Public License. Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such. 14. Revised Versions of this License. The Free Software Foundation may publish revised and/or new versions of the GNU General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation. If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program. Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version. 15. Disclaimer of Warranty. THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 16. Limitation of Liability. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. 17. Interpretation of Sections 15 and 16. If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . Also add information on how to contact you by electronic and paper mail. If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode: Copyright (C) This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, your program's commands might be different; for a GUI interface, you would use an "about box". You should also get your employer (if you work as a programmer) or school, if any, to sign a "copyright disclaimer" for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see . The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read . ================================================ FILE: README.md ================================================ ### Welcome to the FIFA 23 Live Editor! - [Changes in latest version of the tool](https://raw.githubusercontent.com/xAranaktu/FIFA-23-Live-Editor/main/changelog.txt) - [FIFA 23 Live Editor & Cheat Table Development Board](https://bit.ly/F23-LE-CT-DEV-BOARD) - [FIFA 23 Live Editor & Cheat Table Release Schedule](https://bit.ly/F23-Projects-Release-Schedule) - Check [WIKI](https://github.com/xAranaktu/FIFA-23-Live-Editor/wiki) for Guides and Tutorials ### Read Me Before You Pledge or Buy The Game This year the game is protected with brand new EA Anticheat. Using the tool may flag your account and EA may ban it later on. You are using the tool at your own risk. - The tool is at early stage of developement, many features may not work or may be bugged. Wait until at least until December if you expect somewhat finished tool - If you are scared of being banned then don't use the tool (at least for a while until, situation will clarify) - This tool doesn't work online. You won't be able to connect with EA servers while using it. This is intended, and won't be "fixed". - I can't guarantee for how long the tool will be working. EA may update the game at any time and since then it may be not possible to update the Live Editor to make it compatible with latest game update. *** If you want to download the tool then DONT CLONE THE REPO... Get it from releases: ![](https://i.imgur.com/ocPeJiV.png) *** ![](https://i.imgur.com/W6lPg65.jpeg) ![](https://i.imgur.com/o1naouS.png) ![](https://i.imgur.com/0grWO3A.png) ![](https://i.imgur.com/4JGPfWK.png) ![](https://i.imgur.com/pwfIyfs.png) ![GitHub all releases](https://img.shields.io/github/downloads/xAranaktu/FIFA-23-Live-Editor/total) ![GitHub release (latest by date)](https://img.shields.io/github/downloads/xAranaktu/FIFA-23-Live-Editor/latest/total) ================================================ FILE: changelog.txt ================================================ v23.1.3.6: - Works with Title Update 17.1 v23.1.3.5: - Works with Title Update 17 - Some of the message boxes now have "Don't show this message box anymore" checkbox. - Added "HKEY_LOCAL_MACHINE\SOFTWARE\Live Editor\EAFC 24\Dir" key to win registry which points to the folder where live editor dll is located. v23.1.3.4: - Added: - AcceleRATE column to player list - AcceleRATE to player profile (No, you can't edit it) - AcceleRATE player advanced filter - Overall Rating player advanced filter - "Generate Youth Academy Report" to "Misc Features" -> "Career Mode" -> "Youth Academy" - Fixed "Goals For" and "Goals Against" in Standings Away tab. - Removed "Disable Chants" option from the settings v23.1.3.3: - Works with Title Update 15 v23.1.3.2: - Fixed problem with distorted chants - Added 100+ accessories to the accessory list in player editor v23.1.3.1: - Works with Title Update 14.1 v23.1.3.0: - Restored previous version of the launcher, so the fake EAAC should be copied properly when you run the game via MM v23.1.2.9: - Works with Title Update 14 - Fixed bug causing unability to change directiories in settings v23.1.2.8: - Added to "Misc Features" -> "Gameplay" -> "Perfect Timed Shot" - Changed the way that Live Editor adds players to teams, this should solve the issue with player not appearing in team after promotion from YA, or transfer. - Fixed game crash caused by created job offer. - Fixed transfer bans not being saved properly. v23.1.2.7: - Updated LUA from `5.3.4 (32 bit)` to `5.4.6 (x64)` - Locale.ini window is now hidden by default to reduce the false reports about bug with "key file not found" - In settings you can now define where your game is installed (to fix launcher error code 2) - Added: - "Reveal Player data" in "Misc Features" - "LiveEditorClearRegistry.reg" file to the live editor folder. (it clears windows registry from Live Editor related keys) - Option to generate job offer in manager career mode from any club/national team (you can find it in team editor). - Fixed: - Lacking name of the created club - Players not appearing in their new club after manual transfer v23.1.2.6: - Works with Title Update 12 - Added to Players Editor: - Other -> Team selection bias - Other -> Team selection bias position - Added to Formation Editor: - Offense -> Build Up Play - Offense -> Chance Creation - Freeze Lineup - Removed from Formation Editor: - Offense -> Offensive Style (seems to be no longer in use by FIFA 23) - Live Editor will now update cached formations in career mode when you change formation in Formation Editor. v23.1.2.5: - Live Editor settings can now also be changed from the launcher. - Added "locale.ini" editor in the launcher. - Added option allowing for player name change in player editor. v23.1.2.4: - You can now perform search by name or id by clicking "Enter" key, instead of mouse clicking the magnifier icon. - Fixed problems with Live Editor Mods Directory (hopefully for good) - Changed default directory for mods and other LE data from "\LiveEditorMods" to "C:\FIFA 23 Live Editor" - config.json is now stored in "C:\FIFA 23 Live Editor" instead of the LE folder to keep your settings even if you update the tool. v23.1.2.3: - Works with Title Update 10 v23.1.2.2: - Fixed game crash that were occurring on slower machines while waiting for game window. - Changed default injection delay to 100ms v23.1.2.1: - Added "Misc Features" with: - Unsackable - Club Transfer Budget - Added support for file paths containing UTF-16 characters (not fully tested). - Searching players/teams by name will now also match accented characters. (For example "makelele" will match "Makélélé") - Fixed artificialkey field error in "CreatePlayer" lua function - Reduced GPU & Power usage by the launcher. v23.1.2.0: - It's possible now to define custom score for favourite and disliked teams. - Added advanced filters for players and teams. v23.1.1.9: - Added to Teams Editor: - Stadium - Kits v23.1.1.8: - Added Fixtures to Teams Editor (Match-fixing & Rescheduling Games) - Fixed caching offsets, minor game updates shouldn't break the tool forcing you to redownload anymore. v23.1.1.7: - Added to Teams Editor: - Transfer Bans - Formation Editor v23.1.1.6: - Works with Title Update 6 - Added 2 new traits to players editor, First Time Shots & Round the Keeper (thanks tokke001) - Added Player OVR column in Transfer History list v23.1.1.5: - Added "Transfer History" with option to undo unwanted transfers. v23.1.1.4: - Added "Teams" and "Team Editor" with: - Basic info - Players - Manager - Standings v23.1.1.3: - Added "Season Statistics" to player editor v23.1.1.2: - Fixed blacksceen issue. - Launcher: - Fixed "Error access denied" (maybe, lol) v23.1.1.1: - Fixed: - Filtering values in the edit option popup - Launcher: - Fixed auto inject delay - Fixed "Error access denied" when starting the game manually v23.1.1.0: - Added: - Lua Engine - Fixed: - Editing player jersey number v23.1.0.9: - Launcher: - Fixed editing injection delay when using auto inject - Increased default injection delay from 300ms to 3000ms v23.1.0.8: - Works with Title Update 4 - UI Changes: - Replaced combo input with searchable input - Fixed: - Crash when loading player that doesn't exists, but have teamplayerlink v23.1.0.7: - Added: - Option to transfer players - Option to loan players - Option to terminate loan - Fixed: - Adding & Removing players from transfer & loan lists v23.1.0.6: - Added: - New launcher icon - Option to import miniface - Fixed: - Adding/Removing player injuries - Editing player performance bonus, wage, form & morale v23.1.0.5: - Chants are now disabled by default as workaround for the robotic sound issue. Can be enabled back in Settings->Other. - Added: - Menu Item for reloading Players - Menu Item for reloading Database v23.1.0.4: - Support for Trial game version - Support for command line arguments v23.1.0.3: - Launcher improvements: - Adde fake EAAntiCheat launcher. No more installerdata editing, no more clearing cache v23.1.0.2: - Fixed d-pad input lag - Launcher improvements: - Added option to auto close launcher after dll injection - Added error message if EA Anticheat detected - Added check for non-English characters in live editor & game path - Auto edit installerdata.xml (still requires to clear cache on EA App tho) v23.1.0.1: - Works with Title Update 2 - Added placeholders for missing accessorycolourcodes - Added option to generate minifaces in player editor - Fixed in player editor: - displaying minifaces of youth players - player role - editing age v23.1.0.0: - Update for FIFA 23 includes: - Legacy File Browser & option to modify them - Database Editor - Players & Basic Players Editor ================================================ FILE: lua/DOC.MD ================================================ # FIFA LIVE EDITOR LUA DOCUMENTATION FIFA Live Editor is using Lua 5.3.4 (32 bit) as main scripting language. You can execute lua code by opening Features -> Lua Engine -> execute. ![](https://i.imgur.com/blBXplH.png) Just for your info, Lua scripts created for cheat engine will not work. Also, LUA Engine allows you to switch between lua states to access also in-game lua functions. These functions aren't covered in this documentation. ## Functions * [Log](#Log) * [MessageBox](#MessageBox) * [IsInCM](#IsInCM) * [GetSaveUID](#GetSaveUID) * [GetCompetitionNameByID](#GetCompetitionNameByID) * [GetCompetitionNameByObjID](#GetCompetitionNameByObjID) * [GetCurrentDate](#GetCurrentDate) * [GetUserTeamID](#GetUserTeamID) * [GetTeamIdFromPlayerId](#GetTeamIdFromPlayerId) * [GetTeamName](#GetTeamName) * [GetPlayerName](#GetPlayerName) * [SetPlayerSharpness](#SetPlayerSharpness) * [SetPlayerMorale](#SetPlayerMorale) * [SetPlayerForm](#SetPlayerForm) * [SetPlayerFitness](#SetPlayerFitness) * [PlayerHasDevelopementPlan](#PlayerHasDevelopementPlan) * [PlayerSetValueInDevelopementPlan](#PlayerSetValueInDevelopementPlan) * [GetPlayersStats](#GetPlayersStats) * [GetPlayerStats](#GetPlayerStats) * [DeletePlayer](#DeletePlayer) * [CreatePlayer](#CreatePlayer) * [PlayerExists](#PlayerExists) * [TransferPlayer](#TransferPlayer) * [LoanPlayer](#LoanPlayer) * [ReleasePlayerFromTeam](#ReleasePlayerFromTeam) * [TerminateLoan](#TerminateLoan) * [DeletePresignedContract](#DeletePresignedContract) * [IsPlayerLoanedOut](#IsPlayerLoanedOut) * [IsPlayerPresigned](#IsPlayerPresigned) * [IsPlayerTransferListed](#IsPlayerTransferListed) * [IsPlayerLoanListed](#IsPlayerLoanListed) * [AddPlayerToTransferList](#AddPlayerToTransferList) * [AddPlayerToLoanList](#AddPlayerToLoanList) * [RemovePlayerFromLoanList](#RemovePlayerFromLoanList) * [RemovePlayerFromTransferList](#RemovePlayerFromTransferList) * [RemovePlayerFromLists](#RemovePlayerFromLists) * [CreateOfferForPlayer](#CreateOfferForPlayer) * [GetDBTablesNames](#GetDBTablesNames) * [GetDBTableFields](#GetDBTableFields) * [GetDBTableRows](#GetDBTableRows) * [InsertDBTableRow](#InsertDBTableRow) * [DeleteDBTableRow](#DeleteDBTableRow) * [EditDBTableField](#EditDBTableField) * [PlayerCaptureSetOutputDirectory](#PlayerCaptureSetOutputDirectory) * [PlayerCaptureSetSize](#PlayerCaptureSetSize) * [PlayerCaptureSetType](#PlayerCaptureSetType) * [PlayerCaptureSetCamera](#PlayerCaptureSetCamera) * [PlayerCaptureAddPlayer](#PlayerCaptureAddPlayer) * [PlayerCaptureStart](#PlayerCaptureStart) * [GetTransferBudget](#GetTransferBudget) * [SetTransferBudget](#SetTransferBudget) ## Data Types * [DBFieldDescription](#DBFieldDescription) * [DBRow](#DBRow) ## Log Write to log file and console window. ### Syntax ``` void Log(string text) ``` ## MessageBox Show MessageBox with given title and text ### Syntax ``` void MessageBox(string title, string text) ``` ## IsInCM Check if we are in career mode. ### Syntax ``` bool IsInCM() ``` ### Return Type: **Bool** - **True** if executed in career mode - **False** if executed outside of career mode ### Example ``` local is_in_career_mode = IsInCM() Log(type(is_in_career_mode)) if (is_in_career_mode) then Log("In career mode") else Log("Not in career mode") end ``` ``` > boolean > In career mode ``` ## GetSaveUID Get career save unique identifier. Identifier is stored in "sponsors" database table in "name" field as a 31 char long string where "adsponserid" == 8181 (I hope the 8181 ID isn't used by any mod). Generates new UID on first call if doesn't exists. In case of any problems the function will return empty string. **Constraints**: - Can be executed only in Career Mode. ### Syntax ``` string GetSaveUID() ``` ### Return Type: **String** - 31 char long string - OnError: Return empty string and write error in log file. ### Example ``` local bIsInCM = IsInCM(); if (bIsInCM) then local UID = GetSaveUID() Log(type(UID)) Log(string.len(UID)) Log(UID) end ``` ``` > string > 31 > 104cde1628794d4aad00d081fe19343 ``` ## GetCompetitionNameByID Get Competition name by ID. The name is loaded from "IdMap.json" file, from "compids" key. You can add there your custom competitions. ### Syntax ``` string GetCompetitionNameByID(int competition_id) ``` ### Return Type: **String** - Name of the Competition - OnError: Returns competition_id id with "C" prefix. ### Example ``` Log(GetCompetitionNameByID(10)) Log(GetCompetitionNameByID(19)) -- This doesn't exists Log(GetCompetitionNameByID(22222)) ``` ``` > Eredivisie > Bundesliga > C22222 ``` ## GetCompetitionNameByObjID Get Competition name by Object ID. The name is loaded from "IdMap.json" file, from "compobjids" key. You can add there your custom competitions. ### Syntax ``` string GetCompetitionNameByObjID(int competition_obj_id) ``` ### Return Type: **String** - Name of the Competition - OnError: Returns competition_id id with "COBJ" prefix. ### Example ``` Log(GetCompetitionNameByObjID(1098)) Log(GetCompetitionNameByObjID(985)) -- This doesn't exists Log(GetCompetitionNameByObjID(22222)) ``` ``` > Eredivisie > Bundesliga > COBJ22222 ``` ## GetCurrentDate Get current in-game date. In career it will return date from career_calendar. Outside of career it will be always 1st July 2021. ### Syntax ``` table GetCurrentDate() ``` ### Return Type: **Table** Key(string)-Value(int) pair. Valid keys: - day - month - year ### Example ``` local currentdate = GetCurrentDate() Log(type(currentdate)) Log(type(currentdate.day)) Log(type(currentdate.month)) Log(type(currentdate.year)) Log("Current Date (day/month/year): " .. currentdate.day .. "/" .. currentdate.month .. "/" .. currentdate.year ) ``` ``` > table > number > number > number > Current Date (day/month/year): 1/7/2021 ``` ## GetUserTeamID Get value from field "clubteamid" from first record in career_users table. Should be our teamid in manager career mode. **Constraints**: - Can be executed only in Career Mode. ### Syntax ``` int GetUserTeamID() ``` ### Return Type: **Int** - Teamid of the team managed by user. - OnError: Return 0 and write error in log file. ### Example ``` -- In Career mode -- Manager of Everton local user_teamid = GetUserTeamID() Log(type(user_teamid)) Log(user_teamid) ``` ``` > number > 7 ``` ## GetTeamIdFromPlayerId Get teamid from playerid. Should be id of the player club. Ignore teams in following leagues: - 78, International - 2136, International Women - 76, Rest of World - 383, Create Player League ### Syntax ``` int GetTeamIdFromPlayerId(int playerid) ``` ### Return Type: **Int** - Club TeamId for playerid - Returns -1 if team not found ### Example ``` -- Messi PlayerID: 158023 -- FC Barcelona TeamID: 241 local teamid1 = GetTeamIdFromPlayerId(158023) Log("teamid1 (158023): " .. teamid1) assert(type(teamid1) == "number", "GetTeamIdFromPlayerId(158023) not a number") -- Cristiano Ronaldo PlayerID: 20801 -- Piemonte Calcio TeamID: 114153 local teamid2 = GetTeamIdFromPlayerId(20801) Log("teamid2 (20801): " .. teamid2) assert(type(teamid2) == "number", "GetTeamIdFromPlayerId(20801) not a number") ``` ``` > teamid1 (158023): 241 > teamid2 (20801): 114153 ``` ## GetTeamName Get name of the team for passed teamid. Name is stored in localized database file. For example, for English game version it will be eng_us_db.db. ### Syntax ``` string GetTeamName(unsigned int teamid) ``` ### Return Type: **String** - Name of the team - OnError: Return empty string and write error in log file. ### Example ``` local teamname = GetTeamName(7) Log(type(teamname)) Log(teamname) teamname = GetTeamName(241) Log(teamname) ``` ``` > string > Everton > FC Barcelona ``` ## GetPlayerName Get name of the player for passed playerid. ### Syntax ``` string GetPlayerName(unsigned int playerid) ``` ### Return Type: **String** - Name of the player - OnError: Return empty string and write error in log file. ### Example ``` local playername = GetPlayerName(20801) Log(playername) playername = GetPlayerName(158023) Log(playername) ``` ``` > Cristiano Ronaldo > Lionel Messi ``` ## SetPlayerSharpness Set player sharpness. Use value from 0 to 100. **Constraints**: - Can be executed only in Career Mode. - Only for player in user team ### Syntax ``` void SetPlayerSharpness(playerid, new_sharpness) ``` ### Return None ### Example ``` -- Set Messi sharpness to 100 -- Will work only if Messi is in your team SetPlayerSharpness(158023, 100) ``` ## SetPlayerMorale Set player morale. Use value from 0 to 100. Min. Morale levels (may be different if you use an mod which changes them): - Below 15 for Very Unhappy - 40 for Unhappy - 65 for Content - 75 for Happy - 95 for Very Happy **Constraints**: - Can be executed only in Career Mode. - Only for player in user team ### Syntax ``` void SetPlayerMorale(playerid, new_morale) ``` ### Return None ### Example ``` -- Set Messi morale to 95 (Very Happy) -- Will work only if Messi is in your team SetPlayerMorale(158023, 95) ``` ## SetPlayerForm Set player form. Use value from 0 to 100. Min. Form levels (may be different if you use an mod which changes them): - Below 25 for Bad - 50 for Poor - 65 for Okay - 75 for Good - 90 for Excellent **Constraints**: - Can be executed only in Career Mode. - Only for player in user team ### Syntax ``` void SetPlayerForm(playerid, new_form) ``` ### Return None ### Example ``` -- Set Messi form to 90 (Excellent) -- Will work only if Messi is in your team SetPlayerForm(158023, 90) ``` ## SetPlayerFitness Set player match fitness/durability/fitness/stamina (call it as you want ;)). Use value from 5 to 95. Where 5 is completly tired and 95 is almost full fit. I don't recommend to set the value below 5 as it will probably bug the stamina bar. Above 95 may bug the whole player/game. **Constraints**: - Can be executed only in Career Mode. ### Syntax ``` void SetPlayerFitness(playerid, new_fitness) ``` ### Return None ### Example ``` -- Set Messi fitness to 95 (Almost Full Fit) SetPlayerFitness(158023, 95) ``` ## PlayerHasDevelopementPlan Players in Manager Career mode that are in team managed by user got developement plans. Data stored in these plans got higher priority than fields in players table. Following fields are part of the developement plan: - All attributes - Workrates - Skillmoves - Weakfoot **Constraints**: - Can be executed only in Career Mode. ### Syntax ``` bool PlayerHasDevelopementPlan(int playerid) ``` ### Return Type: **Bool** - **True** if player has developement plan - **False** if player doesn't have developement plan ### Example ``` PlayerHasDevelopementPlan(158023) ``` ## PlayerSetValueInDevelopementPlan Players in Manager Career mode that are in team managed by user got developement plans. Data stored in these plans got higher priority than fields in players table. Following fields are part of the developement plan: - All attributes - Workrates - Skillmoves - Weakfoot Use this to set corresponding XP points for given field. Use fieldnames same as in players table **Constraints**: - Can be executed only in Career Mode. ### Syntax ``` void PlayerSetValueInDevelopementPlan(int playerid, string field_name, int value) ``` ### Return None ### Example ``` local bIsInCM = IsInCM(); if (bIsInCM) then ReloadPlayersManager() if (PlayerHasDevelopementPlan(158023)) then PlayerSetValueInDevelopementPlan(158023, "composure", 99) end end ``` ## GetPlayersStats Get the current season stats of all players. Game generate the stats only for players that play in the same competitions as you + european & international cups. ### Syntax ``` array GetPlayersStats() ``` ### Return Type: **Array** Array of items: Key(string)-Value(int) pair. Valid keys: - teamid - playerid - compobjid - avg (needs to be devided by num of apps to get correct avg) - goals - yellow - red - app - assists - clean_sheets - motm (not sure if data is correct) - two_yellow (not sure if data is correct) - goals_conceded (not sure if data is correct) - saves (not sure if data is correct) ### Example ``` local stats = GetPlayersStats() Log(string.format("GetPlayersStats - N of items: %d", #stats)) -- First player, firt competition local player = stats[1] Log(string.format( "%s (ID: %d) - Goals: %d", GetPlayerName(player.playerid), player.playerid, player.goals )) ``` ``` > GetPlayersStats - N of items: 6962 > Pierluigi Gollini (ID: 211515) - Goals: 0 ``` ## GetPlayerStats Get the current season stats for player by ID. ### Syntax ``` Array GetPlayerStats(int playerid) ``` ### Return Type: **Array** Array of items: Key(string)-Value(int) pair. Valid keys: - teamid - playerid - compobjid - avg (needs to be devided by num of apps to get correct avg) - goals - yellow - red - app - assists - clean_sheets - motm (not sure if data is correct) - two_yellow (not sure if data is correct) - goals_conceded (not sure if data is correct) - saves (not sure if data is correct) ### Example ``` -- 211515 = Pierluigi Gollini -- He got stats in my career, may not in yours. local stats = GetPlayerStats(211515) Log(string.format("GetPlayerStats - N of items: %d", #stats)) for i=1, #stats do local player = stats[i] Log(string.format( "%s (ID: %d) in Competition: %s - Goals: %d", GetPlayerName(player.playerid), player.playerid, GetCompetitionNameByObjID(player.compobjid), player.goals )) end ``` ``` > GetPlayerStats - N of items: 3 > Pierluigi Gollini (ID: 211515) in Competition: FIFA World Cup - Goals: 0 > Pierluigi Gollini (ID: 211515) in Competition: EC Qualifiers - Goals: 0 > Pierluigi Gollini (ID: 211515) in Competition: UECL - Goals: 0 ``` ## DeletePlayer Delete Player by ID from the game. if player_current_teamid is 0 then the tool will call [GetTeamIdFromPlayerId](#GetTeamIdFromPlayerId) internally To be more precise, the function will: - Transfer Player to Free Agents - Delete first playerid related record from "players" table - Delete all playerid related records from "teamplayerlinks" table ### Syntax ``` void DeletePlayer(int playerid, int player_current_teamid=0) ``` ### Return None ### Example ``` -- Delete Messi DeletePlayer(158023) ``` ## CreatePlayer Create new player. By default the player is assigned to Free Agents team. Use [TransferPlayer](#TransferPlayer) to move him to other team. Leave playerid = 0 for random ID. players_row_data is table of items: Key(string)-Value(string) pair. where key is the fieldname of entry in "players" database table. ### Syntax ``` int CreatePlayer(int playerid, table players_row_data) ``` ### Return Type: **Int** - The ID of created player. - OnError: Return 0 and write error in log file. ### Example ``` -- Example creates Jerzy Dudek in Free Agents team local playerid = 44897 -- Make sure we won't create duplicate assert(PlayerExists(playerid) == false, string.format("Can't create. Player with ID: playerid %d already exists", playerid)) -- That will be inserted into players table -- Missing fields will be replaced with lowest possible value by default (except playerid) local player_data = { skintypecode = "2", trait2 = "0", haircolorcode = "6", facialhairtypecode = "3", curve = "14", jerseystylecode = "0", agility = "68", tattooback = "0", accessorycode4 = "0", gksavetype = "0", positioning = "16", tattooleftarm = "0", hairtypecode = "150", standingtackle = "19", preferredposition3 = "-1", longpassing = "27", penalties = "24", animfreekickstartposcode = "0", isretiring = "0", longshots = "19", gkdiving = "86", interceptions = "22", shoecolorcode2 = "15", crossing = "14", potential = "86", gkreflexes = "90", finishingcode1 = "0", reactions = "84", composure = "50", vision = "52", contractvaliduntil = "2025", finishing = "13", dribbling = "14", slidingtackle = "18", accessorycode3 = "0", accessorycolourcode1 = "0", headtypecode = "2508", driref = "90", sprintspeed = "56", height = "187", hasseasonaljersey = "1", tattoohead = "0", preferredposition2 = "-1", strength = "73", shoetypecode = "1", birthdate = "142605", preferredposition1 = "0", tattooleftleg = "0", ballcontrol = "26", phypos = "85", shotpower = "59", trait1 = "268435456", socklengthcode = "0", weight = "78", hashighqualityhead = "0", gkglovetypecode = "1", tattoorightarm = "0", balance = "61", gender = "0", headassetid = "44897", gkkicking = "78", defspe = "60", internationalrep = "4", shortpassing = "33", freekickaccuracy = "27", skillmoves = "0", faceposerpreset = "0", usercaneditname = "0", avatarpomid = "0", attackingworkrate = "0", finishingcode2 = "0", aggression = "42", acceleration = "62", paskic = "78", headingaccuracy = "11", iscustomized = "0", eyebrowcode = "0", runningcode2 = "0", modifier = "1", gkhandling = "83", eyecolorcode = "6", jerseysleevelengthcode = "1", accessorycolourcode3 = "0", accessorycode1 = "0", playerjointeamdate = "160139", headclasscode = "0", defensiveworkrate = "0", tattoofront = "0", nationality = "37", preferredfoot = "2", sideburnscode = "0", weakfootabilitytypecode = "3", jumping = "71", personality = "2", gkkickstyle = "3", stamina = "44", marking = "26", accessorycolourcode4 = "0", gkpositioning = "85", headvariation = "0", skillmoveslikelihood = "0", shohan = "83", skintonecode = "3", shortstyle = "0", overallrating = "86", smallsidedshoetypecode = "500", emotion = "2", runstylecode = "0", jerseyfit = "0", accessorycode2 = "0", shoedesigncode = "0", shoecolorcode1 = "0", hairstylecode = "0", bodytypecode = "5", animpenaltiesstartposcode = "0", pacdiv = "86", runningcode1 = "0", preferredposition4 = "-1", volleys = "13", accessorycolourcode2 = "0", tattoorightleg = "0", facialhaircolorcode = "3" } local created_playerid = CreatePlayer(playerid, player_data) -- Create the name local editedplayernames_row_data = { playerid = string.format("%d", created_playerid), firstname = "Jerzy", surname = "Dudek", playerjerseyname = "Dudek" } local row = InsertDBTableRow("editedplayernames", editedplayernames_row_data) Log(string.format("Created Player - %s %s (ID: %s). Check Free Agents.", editedplayernames_row_data.firstname, editedplayernames_row_data.surname, editedplayernames_row_data.playerid)) ``` ``` > Created Player - Jerzy Dudek (ID: 44897). Check Free Agents. ``` ## PlayerExists Checks if Player with given playerid exists. Player ids must be unique, so use this function to make sure you won't create duplicated players. ### Syntax ``` bool PlayerExists(int playerid) ``` ### Return Type: **Bool** - **True** if player exists - **False** if player doesn't exists - OnError: Return **False** and write error in log file. ### Example ``` -- Probably you don't have any guy with this ID if PlayerExists(1) then Log("Player with ID: 1 exists") else Log("Player with ID: 1 doesn't exists") end -- Messi, should be there. if PlayerExists(158023) then Log("Player with ID: 158023 exists") else Log("Player with ID: 158023 doesn't exists") end ``` ``` > Player with ID: 1 doesn't exists > Player with ID: 158023 exists ``` ## TransferPlayer **WARNING** This can damage/break your career save (especially if you do something stupid, like trying to transfer player who is on loan in other club). Use with caution. Remember about backups. Tested only in Manager Career Mode. May not work in Player Career Mode Immediately transfer player to any club (including yours). Can be used even if the transfer window is closed. Wage only matters if you transfer the player to your club. if from_teamid is 0 then the tool will call [GetTeamIdFromPlayerId](#GetTeamIdFromPlayerId) internally if release_clause is -1 then there won't be any release clause **Constraints**: - Can be executed only in Career Mode. ### Syntax ``` void TransferPlayer(playerid, to_teamid, transfersum, wage, contract_length_in_months, from_teamid=0, release_clause=-1) or void cTransferPlayer(playerid, from_teamid, to_teamid, transfersum, release_clause, wage, contract_length_in_months) ``` ### Return None ### Example ``` -- Transfer -- Cristiano Ronaldo (playerid: 20801) -- To Manchester United (ID: 11) -- For 500 euro/usd/gbp -- Wage = 600 -- contract length = 60 months (5 years) playerid = 20801 if (IsPlayerPresigned(playerid)) then -- Delete presigned contract to force transfer DeletePresignedContract(playerid) end if (IsPlayerLoanedOut(playerid)) then -- Terminate loan to force transfer TerminateLoan(playerid) end TransferPlayer(20801, 11, 500, 600, 60) ``` ## LoanPlayer **WARNING** This can damage/break your career save. Use with caution. Remember about backups. Tested only in Manager Career Mode. May not work in Player Career Mode Immediately loan player to any club (including yours). Can be used even if the transfer window is closed. if from_teamid is 0 then the tool will call [GetTeamIdFromPlayerId](#GetTeamIdFromPlayerId) internally For now keep the `loantobuy` == `-1`. I don't know how it works exactly, maybe will fix it later. **Constraints**: - Can be executed only in Career Mode. ### Syntax ``` void LoanPlayer(playerid, to_teamid, length_in_months, loantobuy, from_teamid=0) or void cLoanPlayer(playerid, from_teamid, to_teamid, length_in_months, loantobuy) ``` ### Return None ### Example ``` -- Loan -- Cristiano Ronaldo (playerid: 20801) -- To Manchester United (ID: 11) -- contract length = 12 months (1 year) -- loantobuy = -1 (no loan to buy) local playerid = 20801 local to_teamid = 11 if (IsPlayerPresigned(playerid)) then -- Delete presigned contract to force loan DeletePresignedContract(playerid) end if (IsPlayerLoanedOut(playerid)) then -- Terminate loan to force new loan TerminateLoan(playerid) end LoanPlayer(playerid, to_teamid, 12, -1) ``` ## ReleasePlayerFromTeam **WARNING** This can damage/break your career save (especially if you do something stupid, like trying to release player who is on loan in other club). Use with caution. Remember about backups. Release player from current club. Under the hood it's just transfering the player to free agents, like that: ``` player_teamid = GetTeamIdFromPlayerId(playerid) free_agents_teamid = 111592 cTransferPlayer(playerid, player_teamid, free_agents_teamid, 0, 0, 0, 12) ``` **Constraints**: - Can be executed only in Career Mode. ### Syntax ``` void ReleasePlayerFromTeam(playerid) ``` ### Return None ### Example ``` -- Make Messi Free Agent ReleasePlayerFromTeam(158023) ``` ## TerminateLoan **WARNING** This can damage/break your career save. Use with caution. Remember about backups. Terminates player loan. The player will immediately back to his club. **Constraints**: - Can be executed only in Career Mode. ### Syntax ``` void TerminateLoan(playerid) ``` ### Return None ### Example ``` -- Juan Camilo Hernndez will immediately back to Watford (if he is loaned out in your career) playerid = 237034 -- Juan Camilo Hernndez if (IsPlayerLoanedOut(playerid)) then TerminateLoan(playerid) end ``` ## DeletePresignedContract **WARNING** This can damage/break your career save. Use with caution. Remember about backups. Delete player related record from career_presignedcontract table. **Constraints**: - Can be executed only in Career Mode. ### Syntax ``` void DeletePresignedContract(playerid) ``` ### Return none ### Example ``` -- Delete Juan Camilo Hernndez presigned contract(if he has one) playerid = 237034 -- Juan Camilo Hernndez if (IsPlayerPresigned(playerid)) then DeletePresignedContract(playerid) end ``` ## IsPlayerLoanedOut Check if player is loaned out. **Constraints**: - Can be executed only in Career Mode. ### Syntax ``` bool IsPlayerLoanedOut(playerid) ``` ### Return Type: **Bool** - **True** if player is loaned out - **False** if player isn't loaned out ### Example ``` -- Check if Juan Camilo Hernndez is loaned out playerid = 237034 -- Juan Camilo Hernndez if (IsPlayerLoanedOut(playerid)) then Log("Player is Loaned out") else Log("Player isn't Loaned out") end ``` ## IsPlayerPresigned Check if player is has presigned contract. To be more precise, it checks if the player reladed record exist in career_presignedcontract table **Constraints**: - Can be executed only in Career Mode. ### Syntax ``` bool IsPlayerPresigned(playerid) ``` ### Return Type: **Bool** - **True** if player has got record in career_presignedcontract - **False** if player hasn't got record in career_presignedcontract ### Example ``` -- Juan Camilo Hernndez will immediately back to Watford (if he is loaned out in your career) playerid = 237034 -- Juan Camilo Hernndez if (IsPlayerPresigned(playerid)) then Log("Player is presigned") else Log("Player isn't presigned") end ``` ## IsPlayerTransferListed Check if player with given playerid is on transfer list. If given teamid == 0 then the tool will call [GetTeamIdFromPlayerId](#GetTeamIdFromPlayerId) internally. **Constraints**: - Can be executed only in Career Mode. ### Syntax ``` bool IsPlayerTransferListed(int playerid, int teamid=0) or bool cIsPlayerTransferListed(int playerid, int teamid) ``` ### Return Type: **Bool** - **True** if player is on transfer list - **False** if player isn't on transfer list ### Example ``` local bIsInCM = IsInCM(); if (bIsInCM) then -- Check if Messi is on transfer list local is_on_transferlist = IsPlayerTransferListed(158023) if (is_on_transferlist) then Log("Player is on transfer list") else Log("Player is not on transfer list") end end ``` ## IsPlayerLoanListed Check if player with given playerid is on loan list. If given teamid == 0 then the tool will call [GetTeamIdFromPlayerId](#GetTeamIdFromPlayerId) internally. **Constraints**: - Can be executed only in Career Mode. ### Syntax ``` bool IsPlayerLoanListed(int playerid, int teamid=0) or bool cIsPlayerLoanListed(int playerid, int teamid) ``` ### Return Type: **Bool** - **True** if player is on loan list - **False** if player isn't on loan list ### Example ``` local bIsInCM = IsInCM(); if (bIsInCM) then -- Check if Messi is on loan list local is_on_loanlist = IsPlayerLoanListed(158023) if (is_on_loanlist) then Log("Player is on loan list") else Log("Player is not on loan list") end end ``` ## AddPlayerToTransferList Adds player with given playerid to transfer list. If given teamid == 0 then the tool will call [GetTeamIdFromPlayerId](#GetTeamIdFromPlayerId) internally. **WARNING!!** Altho it's possible to make player transfer and loan listed, you shouldn't do that as it doesn't happen in "natural" game environment. So, player should be only on loan list **or** only on transfer list. **Constraints**: - Can be executed only in Career Mode. ### Syntax ``` void AddPlayerToTransferList(int playerid, int teamid=0) or void cAddPlayerToTransferList(int playerid, int teamid) ``` ### Return None ### Example ``` local bIsInCM = IsInCM(); if (bIsInCM) then -- Make Messi transferlisted AddPlayerToTransferList(158023) end ``` ## AddPlayerToLoanList Adds player with given playerid to loan list. If given teamid == 0 then the tool will call [GetTeamIdFromPlayerId](#GetTeamIdFromPlayerId) internally. **WARNING!!** Altho it's possible to make player transfer and loan listed, you shouldn't do that as it doesn't happen in "natural" game environment. So, player should be only on loan list **or** only on transfer list. **Constraints**: - Can be executed only in Career Mode. ### Syntax ``` void AddPlayerToLoanList(int playerid, int teamid=0) or void cAddPlayerToLoanList(int playerid, int teamid) ``` ### Return None ### Example ``` local bIsInCM = IsInCM(); if (bIsInCM) then -- Make Messi loanlisted AddPlayerToLoanList(158023) end ``` ## RemovePlayerFromLists Remove player with given playerid from transfer and loan list. If given teamid == 0 then the tool will call [GetTeamIdFromPlayerId](#GetTeamIdFromPlayerId) internally. **Constraints**: - Can be executed only in Career Mode. ### Syntax ``` void RemovePlayerFromLists(int playerid, int teamid=0) or void cRemovePlayerFromLists(int playerid, int teamid) ``` ### Return None ### Example ``` local bIsInCM = IsInCM(); if (bIsInCM) then -- Remove Messi from transfer and loan list RemovePlayerFromLists(158023) end ``` ## RemovePlayerFromTransferList Remove player with given playerid from transfer list If given teamid == 0 then the tool will call [GetTeamIdFromPlayerId](#GetTeamIdFromPlayerId) internally. **Constraints**: - Can be executed only in Career Mode. ### Syntax ``` void RemovePlayerFromTransferList(int playerid, int teamid=0) or void cRemovePlayerFromTransferList(int playerid, int teamid) ``` ### Return None ### Example ``` local bIsInCM = IsInCM(); if (bIsInCM) then -- Remove Messi from transfer list RemovePlayerFromTransferList(158023) end ``` ## RemovePlayerFromLoanList Remove player with given playerid from loan list If given teamid == 0 then the tool will call [GetTeamIdFromPlayerId](#GetTeamIdFromPlayerId) internally. **Constraints**: - Can be executed only in Career Mode. ### Syntax ``` void RemovePlayerFromLoanList(int playerid, int teamid=0) or void cRemovePlayerFromLoanList(int playerid, int teamid) ``` ### Return None ### Example ``` local bIsInCM = IsInCM(); if (bIsInCM) then -- Remove Messi from loan list RemovePlayerFromLoanList(158023) end ``` ## CreateOfferForPlayer Create Transfer or Loan offer for player. Offer type can be any value between 0 and 5 (maybe 6). Default offer type is 5. Game commonly uses offer type 3 or 5. For loan offer use offer type == 2 (sometimes you may get loan to buy offer instead of normal offer). Created offer should appear in-game after 2-5 days. Transfer window probably must be open. You can use this to create offers for your players and also to initiate transfers between CPU teams. Using this doesn't guarantee that the player will change his team. There is always chance that player or team will break negotiations. The unrealistic transfer offers may not even appear. For example if you will try to create an transfer offer for Messi from AFC Wimbledon game may ignore it and not even show it (because AFC Wimbledon doesn't have enough transfer budget). If the transfer offer will somehow appear then for 99% it will fail later on when Messi will negotiate his wage with team (AFC Wimbledon doesn't have enough wage budget to cover Messi salary). **Constraints**: - Can be executed only in Career Mode. ### Syntax ``` void CreateOfferForPlayer(int playerid, int offer_from_teamid, int offer_type=5) or void cCreateOfferForPlayer(int playerid, int offer_from_teamid, int offer_type) ``` ### Return None ### Example ``` local bIsInCM = IsInCM(); if (bIsInCM) then -- Create offer for Messi (playerid: 158023) -- From Manchester City (teamid: 10) -- With offer type == 5 CreateOfferForPlayer(158023, 10, 5) end ``` ## GetDBTablesNames Get names of database tables that we can access (same tables are available in Database Editor) ### Syntax ``` array GetDBTablesNames() ``` ### Return Type: **Array of strings** - List of database tables names - OnError: Return empty string and write error in log file. ### Example ``` local tables = GetDBTablesNames() Log(type(tables)) Log(type(tables[1])) Log(tables[1]) ``` ``` > table > string > assetcryptokeys ``` ## GetDBTableFields Get field (column) and their description for database table ### Syntax ``` table GetDBTableFields(string table_name) ``` ### Return Type: **Array of** [DBFieldDescription](#DBFieldDescription) ### Example ``` -- Get field names for career_users table_ local fields = GetDBTableFields("career_users") -- Number of fields Log(#fields) Log(fields[1]["name"]) Log(fields[2]["name"]) Log(fields[3]["name"]) Log(fields[4]["name"]) ``` ``` > 16 > sponsorid > leagueseasonmessagesent > seasoncount > playertype ``` ## GetDBTableRows Get all valid rows for database table ### Syntax ``` array GetDBTableRows(string table_name) ``` ### Return Type: **Array of** [DBRow](#DBRow) ### Example ``` -- Get all rows for teams table local rows = GetDBTableRows("teams") -- Number of rows Log(#rows) -- 1st row local row = rows[1] Log(row["teamname"]["value"]) Log(row["teamid"]["value"]) -- 6th row local row = rows[6] Log(row["teamname"]["value"]) Log(row["teamid"]["value"]) ``` ``` > 763 > Arsenal > 1 > Everton > 7 ``` ## InsertDBTableRow Inserts new row into database table. ### Syntax ``` table InsertDBTableRow(string table_name, table row_data) ``` ### Return Return newly created row Type: [DBRow](#DBRow) ### Example ``` -- Assign custom name to Messi (Playerid: 158023) local row_data = { playerid = "158023", firstname = "aaa", surname = "bbb", playerjerseyname = "ccc" } local row = InsertDBTableRow("editedplayernames", row_data) Log(type(row)) -- That's how to verify if row has been inserted if (row.addr == "0") then Log("Insert row failed. Check logs for more info") return end Log(row["playerid"]["value"]) ``` ``` > table > 158023 ``` ## DeleteDBTableRow Delete row from database table. ### Syntax ``` bool InsertDBTableRow(string table_name, table row_data) ``` ### Return Type: **Bool** - **True** if row has been deleted - **False** if failed ### Example ``` -- Assign custom name to Messi (Playerid: 158023) local row_data = { playerid = "158023", firstname = "aaa", surname = "bbb", playerjerseyname = "ccc" } local row = InsertDBTableRow("editedplayernames", row_data) -- That's how to verify if row has been inserted if (row.addr == "0") then Log("Insert row failed. Check logs for more info") return end -- Delete the row that we just created local success = DeleteDBTableRow("editedplayernames", row) if (success) then Log("Row deleted") else Log("Failed to delete row") end ``` ``` Row deleted ``` ## EditDBTableField Edit field in database table ### Syntax ``` bool EditDBTableField(table field) ``` ### Return Type: **Bool** - **True** if field edited succesfully - **False** if failed ### Example ``` local success = false; -- Get all rows for manager table local rows = GetDBTableRows("manager") -- first row local row = rows[1] -- Current Name of the manager Log(row.firstname.value) row.firstname.value = "Edited Firstname" -- Commit success = EditDBTableField(row["firstname"]) assert(success, "EditDBTableField false for firstname") -- Current NationalityID of the manager Log(row.nationality.value) row.nationality.value = "37" -- Commit success = EditDBTableField(row["nationality"]) assert(success, "EditDBTableField false for nationality") -- Check if values has changed Log("After Edit") -- Get all rows for manager table local rows = GetDBTableRows("manager") -- first row local row = rows[1] Log(row.firstname.value) Log(row.nationality.value) ``` ``` > Mikel > 45 > After Edit > Edited Firstname > 37 ``` ## PlayerCaptureSetOutputDirectory Set the directory where generated images will be saved. Directory must exist. Path is relative to the game installation directory, so "LiveEditorMods\\root\\Legacy\\data\\ui\\imgAssets\\heads" will store images in "\\LiveEditorMods\\root\\Legacy\\data\\ui\\imgAssets\\heads" **Constraints**: - Can be executed only in Career Mode. ### Syntax ``` void PlayerCaptureSetOutputDirectory(string output_directory) ``` ### Return void ### Example ``` -- Execute only if we are in career mode if not IsInCM() then return end -- Path is relative to the game installation directory PlayerCaptureSetOutputDirectory("LiveEditorMods\\root\\Legacy\\data\\ui\\imgAssets\\heads") -- 0 - Head and shoulders -- 1 - Head -- 2 - Body PlayerCaptureSetCamera(1) -- 256x256 PlayerCaptureSetSize(256, 256) -- Image Type -- 0 - PNG -- 1 - DDS PlayerCaptureSetType(1) -- Add Messi Capture PlayerCaptureAddPlayer(158023, GetTeamIdFromPlayerId(158023)) -- Add Cristiano Ronaldo Capture PlayerCaptureAddPlayer(20801, GetTeamIdFromPlayerId(20801)) -- Add Haaland Capture PlayerCaptureAddPlayer(239085, GetTeamIdFromPlayerId(239085)) -- Start Capturing PlayerCaptureStart() ``` ## PlayerCaptureSetSize Set size of the image output **Constraints**: - Can be executed only in Career Mode. ### Syntax ``` void PlayerCaptureSetSize(int width, int height) ``` ### Return void ### Example ``` -- Execute only if we are in career mode if not IsInCM() then return end -- Path is relative to the game installation directory PlayerCaptureSetOutputDirectory("LiveEditorMods\\root\\Legacy\\data\\ui\\imgAssets\\heads") -- 0 - Head and shoulders -- 1 - Head -- 2 - Body PlayerCaptureSetCamera(1) -- 256x256 PlayerCaptureSetSize(256, 256) -- Image Type -- 0 - PNG -- 1 - DDS PlayerCaptureSetType(1) -- Add Messi Capture PlayerCaptureAddPlayer(158023, GetTeamIdFromPlayerId(158023)) -- Add Cristiano Ronaldo Capture PlayerCaptureAddPlayer(20801, GetTeamIdFromPlayerId(20801)) -- Add Haaland Capture PlayerCaptureAddPlayer(239085, GetTeamIdFromPlayerId(239085)) -- Start Capturing PlayerCaptureStart() ``` ## PlayerCaptureSetType Set type of the image output 0 - PNG 1 - DDS (DXT5) **Constraints**: - Can be executed only in Career Mode. ### Syntax ``` void PlayerCaptureSetType(int typ) ``` ### Return void ### Example ``` -- Execute only if we are in career mode if not IsInCM() then return end -- Path is relative to the game installation directory PlayerCaptureSetOutputDirectory("LiveEditorMods\\root\\Legacy\\data\\ui\\imgAssets\\heads") -- 0 - Head and shoulders -- 1 - Head -- 2 - Body PlayerCaptureSetCamera(1) -- 256x256 PlayerCaptureSetSize(256, 256) -- Image Type -- 0 - PNG -- 1 - DDS PlayerCaptureSetType(1) -- Add Messi Capture PlayerCaptureAddPlayer(158023, GetTeamIdFromPlayerId(158023)) -- Add Cristiano Ronaldo Capture PlayerCaptureAddPlayer(20801, GetTeamIdFromPlayerId(20801)) -- Add Haaland Capture PlayerCaptureAddPlayer(239085, GetTeamIdFromPlayerId(239085)) -- Start Capturing PlayerCaptureStart() ``` ## PlayerCaptureSetCamera Set Capture Camera 0 - Head and Shoulders ![](https://i.imgur.com/Vhq9jdb.png) 1 - Head ![](https://i.imgur.com/4qA78rQ.png) 2 - Body ![](https://i.imgur.com/875CJY7.png) **Constraints**: - Can be executed only in Career Mode. ### Syntax ``` void PlayerCaptureSetCamera(int cameraID) ``` ### Return void ### Example ``` -- Execute only if we are in career mode if not IsInCM() then return end -- Path is relative to the game installation directory PlayerCaptureSetOutputDirectory("LiveEditorMods\\root\\Legacy\\data\\ui\\imgAssets\\heads") -- 0 - Head and shoulders -- 1 - Head -- 2 - Body PlayerCaptureSetCamera(1) -- 256x256 PlayerCaptureSetSize(256, 256) -- Image Type -- 0 - PNG -- 1 - DDS PlayerCaptureSetType(1) -- Add Messi Capture PlayerCaptureAddPlayer(158023, GetTeamIdFromPlayerId(158023)) -- Add Cristiano Ronaldo Capture PlayerCaptureAddPlayer(20801, GetTeamIdFromPlayerId(20801)) -- Add Haaland Capture PlayerCaptureAddPlayer(239085, GetTeamIdFromPlayerId(239085)) -- Start Capturing PlayerCaptureStart() ``` ## PlayerCaptureAddPlayer Add player to the queue for generating minifaces. Call [PlayerCaptureStart](#PlayerCaptureStart) to start generating. **Constraints**: - Can be executed only in Career Mode. ### Syntax ``` void PlayerCaptureAddPlayer(int playerid, int teamid) ``` ### Return void ### Example ``` -- Execute only if we are in career mode if not IsInCM() then return end -- Path is relative to the game installation directory PlayerCaptureSetOutputDirectory("LiveEditorMods\\root\\Legacy\\data\\ui\\imgAssets\\heads") -- 0 - Head and shoulders -- 1 - Head -- 2 - Body PlayerCaptureSetCamera(1) -- 256x256 PlayerCaptureSetSize(256, 256) -- Image Type -- 0 - PNG -- 1 - DDS PlayerCaptureSetType(1) -- Add Messi Capture PlayerCaptureAddPlayer(158023, GetTeamIdFromPlayerId(158023)) -- Add Cristiano Ronaldo Capture PlayerCaptureAddPlayer(20801, GetTeamIdFromPlayerId(20801)) -- Add Haaland Capture PlayerCaptureAddPlayer(239085, GetTeamIdFromPlayerId(239085)) -- Start Capturing PlayerCaptureStart() ``` ## PlayerCaptureStart Generate minifaces for players in queue. Add players by calling [PlayerCaptureAddPlayer](#PlayerCaptureAddPlayer) On my PC it takes around 2s to generate one miniface, so be prepared that if you want to generate a lot of minifaces you will need to wait a while. **Constraints**: - Can be executed only in Career Mode. ### Syntax ``` void PlayerCaptureStart() ``` ### Return void ### Example ``` -- Execute only if we are in career mode if not IsInCM() then return end -- Path is relative to the game installation directory PlayerCaptureSetOutputDirectory("LiveEditorMods\\root\\Legacy\\data\\ui\\imgAssets\\heads") -- 0 - Head and shoulders -- 1 - Head -- 2 - Body PlayerCaptureSetCamera(1) -- 256x256 PlayerCaptureSetSize(256, 256) -- Image Type -- 0 - PNG -- 1 - DDS PlayerCaptureSetType(1) -- Add Messi Capture PlayerCaptureAddPlayer(158023, GetTeamIdFromPlayerId(158023)) -- Add Cristiano Ronaldo Capture PlayerCaptureAddPlayer(20801, GetTeamIdFromPlayerId(20801)) -- Add Haaland Capture PlayerCaptureAddPlayer(239085, GetTeamIdFromPlayerId(239085)) -- Start Capturing PlayerCaptureStart() ``` ## GetTransferBudget Get user club transfer budget **Constraints**: - Can be executed only in Career Mode. ### Syntax ``` int GetTransferBudget() ``` ### Return Type: **Int** - Transfer budget value ### Example ``` SetTransferBudget(6777656) local transfer_budget = GetTransferBudget() Log("transfer_budget: " .. transfer_budget) Log(type(transfer_budget)) ``` ``` > transfer_budget: 6777656 > number ``` ## SetTransferBudget Set user club transfer budget **Constraints**: - Can be executed only in Career Mode. ### Syntax ``` void SetTransferBudget(int new_transfer_budget) ``` ### Return Type: **void** ### Example ``` SetTransferBudget(6777656) local transfer_budget = GetTransferBudget() Log("transfer_budget: " .. transfer_budget) Log(type(transfer_budget)) ``` ``` > transfer_budget: 6777656 > number ``` ================================================ FILE: lua/libs/live_editor.lua ================================================ --- Main live editor lib --- Documentation in -> DOC.MD Log("Init live_editor.lua") function DeleteDBTableRow(table_name, row) local addr = "0" for k,v in pairs(row) do addr = row[k].addr break end return DeleteDBTableRowByAddr(table_name, addr) end --- CreateOfferForPlayer(158023, 243, 5) function CreateOfferForPlayer(playerid, teamid, offer_type) cCreateOfferForPlayer(playerid, teamid, offer_type or 5) end --- TransferPlayer(20801, 1794, 500, 600, 60) --- TransferPlayer(188567, 7, 500000000, 600000, 60) --- TransferPlayer(158023, 1, 500000000, 600000, 60) function TransferPlayer(playerid, to_teamid, transfersum, wage, contract_length, from_teamid, release_clause) cTransferPlayer(playerid, from_teamid or 0, to_teamid, transfersum, release_clause or -1, wage, contract_length) end --- LoanPlayer(20801, 241, 12, -1) --- LoanPlayer(158023, 11, 12, -1) function LoanPlayer(playerid, to_teamid, loan_length, loantobuy, from_teamid) cLoanPlayer(playerid, from_teamid or 0, to_teamid, loan_length, loantobuy) end function ReleasePlayerFromTeam(playerid) player_teamid = GetTeamIdFromPlayerId(playerid) free_agents_teamid = 111592 cTransferPlayer(playerid, player_teamid, free_agents_teamid, 0, 0, 0, 12) end function IsPlayerTransferListed(playerid, teamid) return cIsPlayerTransferListed(playerid, teamid or 0) end function IsPlayerLoanListed(playerid, teamid) return cIsPlayerLoanListed(playerid, teamid or 0) end function AddPlayerToTransferList(playerid, teamid) cAddPlayerToTransferList(playerid, teamid or 0) end function AddPlayerToLoanList(playerid, teamid) cAddPlayerToLoanList(playerid, teamid or 0) end function RemovePlayerFromLoanList(playerid, teamid) cRemovePlayerFromLoanList(playerid, teamid or 0) end function RemovePlayerFromTransferList(playerid, teamid) cRemovePlayerFromTransferList(playerid, teamid or 0) end function RemovePlayerFromLists(playerid, teamid) cRemovePlayerFromLists(playerid, teamid or 0) end --- DEPRECATED -- Current not doing anything, keep for the compatiblity with old scripts function ReloadDB() end function ReloadPlayersManager() end ================================================ FILE: lua/scripts/1ovr_99pot.lua ================================================ --- This script will set all players attributes on 1 and potential on 99 -- Check if we are in Career Mode local bIsInCM = IsInCM(); -- Get all rows for players table local rows = GetDBTableRows("players") local fields_to_edit = { -- GK "gkdiving", "gkhandling", "gkkicking", "gkpositioning", "gkreflexes", -- ATTACK "crossing", "finishing", "headingaccuracy", "shortpassing", "volleys", -- DEFENDING "defensiveawareness", "standingtackle", "slidingtackle", -- SKILL "dribbling", "curve", "freekickaccuracy", "longpassing", "ballcontrol", -- POWER "shotpower", "jumping", "stamina", "strength", "longshots", -- MOVEMENT "acceleration", "sprintspeed", "agility", "reactions", "balance", -- MENTALITY "aggression", "composure", "interceptions", "positioning", "vision", "penalties", "overallrating" } local counter = 0; for i=1, #rows do local player = rows[i] local iplayerid = math.floor(player.playerid.value) local has_dev_plan = false if (bIsInCM) then has_dev_plan = PlayerHasDevelopementPlan(iplayerid) end for j=1, #fields_to_edit do local field = fields_to_edit[j] player[field].value = "1" EditDBTableField(player[field]) if (has_dev_plan) then PlayerSetValueInDevelopementPlan(iplayerid, field, 1) end end player.modifier.value = "0" EditDBTableField(player.modifier) player.potential.value = "99" EditDBTableField(player.potential) counter = counter + 1 end MessageBox("Done", string.format("Edited %d players\n", counter)) ================================================ FILE: lua/scripts/99ovr_99pot.lua ================================================ --- This script will set all players attributes on 99 and potential on 99 -- Check if we are in Career Mode local bIsInCM = IsInCM(); -- Get all rows for players table local rows = GetDBTableRows("players") local fields_to_edit = { -- GK "gkdiving", "gkhandling", "gkkicking", "gkpositioning", "gkreflexes", -- ATTACK "crossing", "finishing", "headingaccuracy", "shortpassing", "volleys", -- DEFENDING "defensiveawareness", "standingtackle", "slidingtackle", -- SKILL "dribbling", "curve", "freekickaccuracy", "longpassing", "ballcontrol", -- POWER "shotpower", "jumping", "stamina", "strength", "longshots", -- MOVEMENT "acceleration", "sprintspeed", "agility", "reactions", "balance", -- MENTALITY "aggression", "composure", "interceptions", "positioning", "vision", "penalties", "overallrating" } local counter = 0; for i=1, #rows do local player = rows[i] local iplayerid = math.floor(player.playerid.value) local has_dev_plan = false if (bIsInCM) then has_dev_plan = PlayerHasDevelopementPlan(iplayerid) end for j=1, #fields_to_edit do local field = fields_to_edit[j] player[field].value = "99" EditDBTableField(player[field]) if (has_dev_plan) then PlayerSetValueInDevelopementPlan(iplayerid, field, 99) end end player.modifier.value = "0" EditDBTableField(player.modifier) player.potential.value = "99" EditDBTableField(player.potential) counter = counter + 1 end MessageBox("Done", string.format("Edited %d players\n", counter)) ================================================ FILE: lua/scripts/capture_newheads.lua ================================================ local new_heads = { 150724, 167524, 171896, 181783, 189196, 192012, 192045, 214136, 224179, 235536, 239822, 242069, 252935, 253691, 258309 } -- Get all rows for players table local rows = GetDBTableRows("players") local counter = 0; for i=1, #rows do if counter > #new_heads then break end local player = rows[i] local iplayerid = math.floor(player.playerid.value) local teamid = 111 local headassetid = new_heads[counter+1] if (headassetid) then Log(string.format("PID: %d, headassetid: %d", iplayerid, headassetid)) player.hashighqualityhead.value = "1" EditDBTableField(player.hashighqualityhead) player.headclasscode.value = "0" EditDBTableField(player.headclasscode) player.headassetid.value = tostring(headassetid) EditDBTableField(player.headassetid) local path = string.format("generated minifaces/p%d.DDS", headassetid) AddMinifaceToGenerate(iplayerid, teamid, path) counter = counter + 1 end end Log("Start Generating") GenerateMinifaces() ================================================ FILE: lua/scripts/custom_headassetid_to_playerid.lua ================================================ --- This script can add/update headmodels from your frostymod --- You need to edit "headmodels_map" by yourself, pattern is simple: --- [playerid] = headassetid, --- by default it updates these faces: --- paqueta 205361 --- semedo 215556 --- de jong 235526 --- arthur 122574 --- ansu 230899 --- b fernandes 192565 --- tonali 202223 --- haaland 192641 --- neres 231436 --- odegaard 241651 --- Nicolas Pepe 226110 --- Sensi 183795 --- Kubo 232730 --- Carles Perez 230065 --- Yari Verscharen 208549 --- Which are part of Master Patch Revolution 1.0 by (MPR united modders). local headmodels_map = { [233927] = 205361, [227928] = 215556, [228702] = 235526, [230658] = 122574, [253004] = 230899, [212198] = 192565, [241096] = 202223, [239085] = 192641, [236632] = 231436, [222665] = 241651, [226110] = 226110, [229857] = 183795, [237681] = 232730, [240654] = 230065, [246419] = 208549 } -- Get all rows for players table local rows = GetDBTableRows("players") local counter = 0; for i=1, #rows do local player = rows[i] local iplayerid = math.floor(player.playerid.value) local headassetid = headmodels_map[iplayerid] if (headassetid) then player.hashighqualityhead.value = "1" EditDBTableField(player.hashighqualityhead) player.headclasscode.value = "0" EditDBTableField(player.headclasscode) player.headassetid.value = tostring(headassetid) EditDBTableField(player.headassetid) counter = counter + 1 end end MessageBox("Done", string.format("Edited %d players\n", counter)) ================================================ FILE: lua/scripts/custom_tattoos_to_playerid.lua ================================================ --- This script can add/update leftarm tattoos from your frostymod --- You need to edit "tattoos_map" by yourself, pattern is simple: --- [playerid] = tattooid, --- by default it updates these tattoos: --- 070 : Roberto Firmino 201942 --- 071 : Manuel Lanzini 188988 --- 072 : Dani Ceballos 222509 --- 073 : Emerson Palmieri 210736 --- 074 : Isco 197781 --- 075 : James Maddison 220697 --- 076 : Christian Pulisic 227796 --- 077 : Ricardo Quaresma 20775 --- 078 : Santi Mina 212623 --- 079 : Saul 208421 --- 080 : Arturo Vidal 181872 --- 081 : Maro Icardi 201399 --- 082 : Marcelo 176676 --- 083 : Nainggolan 178518 --- 084 : Gabriel Jesus 230666 --- 085 : Leonardo Bonucci 184344 --- 086 : Samu Castillejo 210617 --- 087 : Coutinho 189242 --- 088 : Joao Cancelo 210514 --- 089 : Milinkovic-Savic 223848 --- 090 : Perotti 183900 --- 091 : Pellegrini 228251 --- 092 : Spinazzola 202884 --- 093 : Douglas Costa 190483 --- 666 : Sergio Ramos 155862 local tattoos_map = { [201942] = 70, [188988] = 71, [222509] = 72, [210736] = 73, [197781] = 74, [220697] = 75, [227796] = 76, [20775] = 77, [212623] = 78, [208421] = 79, [181872] = 80, [201399] = 81, [176676] = 82, [178518] = 83, [230666] = 84, [184344] = 85, [210617] = 86, [189242] = 87, [210514] = 88, [223848] = 89, [183900] = 90, [228251] = 91, [202884] = 92, [190483] = 93, [155862] = 666, } -- Get all rows for players table local rows = GetDBTableRows("players") local counter = 0; for i=1, #rows do local player = rows[i] local iplayerid = math.floor(player.playerid.value) local tattooid = tattoos_map[iplayerid] if (tattooid) then player.tattooleftarm.value = tostring(tattooid) EditDBTableField(player.tattooleftarm) counter = counter + 1 end end MessageBox("Done", string.format("Edited %d players\n", counter)) ================================================ FILE: lua/scripts/export_season_stats.lua ================================================ -- This script will export current season stats (goals scored, assists etc.) to CSV. -- The SEASON_STATS.csv file will be created on Desktop. -- The game resets stats at the beginning of every season, so you need to run the script at the end of every season. local desktop_path = string.format("%s\\Desktop", os.getenv('USERPROFILE')) local current_date = GetCurrentDate() local file_path = string.format("%s\\SEASON_STATS_%d_%d_%d.csv", desktop_path, current_date.day, current_date.month, current_date.year) -- Don't Touch local columns = { "position", "playerid", "playername", --"team", "competition", "appearances", "AVG", "MOTMs", "goals", "assists", "yellow_cards", "two_yellow", "red_cards", "saves", "goals_conceded", "cleansheets", } local col_to_key = { position = "position", playerid = "playerid", playername = "playername", --team = "teamname", competition = "compname", appearances = "app", AVG = "avg", MOTMs = "motm", goals = "goals", assists = "assists", yellow_cards = "yellow", two_yellow = "two_yellow", red_cards = "red", saves = "saves", goals_conceded = "goals_conceded", cleansheets = "clean_sheets", } function get_pos_name(pos_id) POS_TO_NAME = { [0] = "GK", [1] = "SW", [2] = "RWB", [3] = "RB", [4] = "RCB", [5] = "CB", [6] = "LCB", [7] = "LB", [8] = "LWB", [9] = "RDM", [10] = "CDM", [11] = "LDM", [12] = "RM", [13] = "RCM", [14] = "CM", [15] = "LCM", [16] = "LM", [17] = "RAM", [18] = "CAM", [19] = "LAM", [20] = "RF", [21] = "CF", [22] = "LF", [23] = "RW", [24] = "RS", [25] = "ST", [26] = "LS", [27] = "LW" } return POS_TO_NAME[pos_id] or "INVALID" end function get_players() local result = {} local rows = GetDBTableRows("players") for i=1, #rows do local row = rows[i] local playerid = math.floor(row.playerid.value) local player = {} player.position = get_pos_name(math.floor(row.preferredposition1.value)) -- Get the names later, only if needed as it's very slow player.name = "" --player.teamname = "" result[playerid] = player end return result end function get_stats(players) local result = {} local all_stats = GetPlayersStats() for i=1, #all_stats do local stat = all_stats[i] local playerid = stat.playerid local app = stat.app if playerid > 0 and playerid < 4294967295 and app > 0 then local player = players[playerid] if player ~= nil then if player.name == "" then player.name = GetPlayerName(playerid) end local stats = player.stats or {} local compobjid = stat.compobjid stats[compobjid] = {} stats[compobjid]["playerid"] = playerid stats[compobjid]["playername"] = player.name stats[compobjid]["position"] = player.position stats[compobjid]["goals"] = stat.goals stats[compobjid]["yellow"] = stat.yellow stats[compobjid]["red"] = stat.red stats[compobjid]["assists"] = stat.assists stats[compobjid]["clean_sheets"] = stat.clean_sheets stats[compobjid]["compobjid"] = compobjid stats[compobjid]["compname"] = GetCompetitionNameByObjID(compobjid) -- Not sure stats[compobjid]["motm"] = stat.motm stats[compobjid]["saves"] = stat.saves stats[compobjid]["goals_conceded"] = stat.goals_conceded stats[compobjid]["two_yellow"] = stat.two_yellow local avg = stat.avg if app > 1 then avg = (avg / app) / 10 elseif app == 1 then avg = avg / 10 end stats[compobjid]["app"] = app stats[compobjid]["avg"] = string.format("%0.2f", avg) player.stats = stats result[playerid] = player end end end return result end assert(IsInCM(), "Script must be executed in career mode") local file = io.open(file_path, "w+") io.output(file) io.write(table.concat(columns, ",")) io.write("\n") local players_stats = get_stats(get_players()) for playerid, data in pairs(players_stats) do for compobjid, stat in pairs(data.stats) do local row = {} for i=1, #columns do local colname = columns[i] local _key = col_to_key[colname] table.insert(row, stat[_key]) end io.write(table.concat(row, ",")) io.write("\n") end end io.close(file) Log("Done") ================================================ FILE: lua/scripts/extend_user_team_players_contracts.lua ================================================ -- This script will automatically extend the contracts of players in your team -- 4 years by default local new_contract_length = 12 * 4 -- 4 years -- Don't Touch anything below assert(IsInCM(), "Script must be executed in career mode") function update_contractvaliduntil(contracts) local contracts_to_update = 0 local updated_contracts = 0 for playerid, contractvaliduntil in pairs(contracts) do contracts_to_update = contracts_to_update + 1 end local rows = GetDBTableRows("players") for i=1, #rows do if updated_contracts >= contracts_to_update then break end local row = rows[i] local playerid = math.floor(row.playerid.value) if playerid > 0 then local contractvaliduntil = contracts[playerid] if contractvaliduntil ~= nil then row.contractvaliduntil.value = contractvaliduntil EditDBTableField(row.contractvaliduntil) updated_contracts = updated_contracts + 1 end end end local failed_to_update = contracts_to_update - updated_contracts if failed_to_update > 0 then Log(string.format("Failed to update %d contracts", failed_to_update)) end Log(string.format("Updated Contracts: %d", updated_contracts)) end function update_contracts() local result = {} local currentdate = GetCurrentDate() local int_current_date = currentdate.year * 10000 + currentdate.month * 100 + currentdate.day local rows = GetDBTableRows("career_playercontract") for i=1, #rows do local row = rows[i] local contract_status = row.contract_status.value local is_loaned_in = contract_status == "1" or contract_status == "3" or contract_status == "5" -- Ignore players that are loaned in if not is_loaned_in then local playerid = math.floor(row.playerid.value) if playerid > 0 then local contract_date = math.floor(row.contract_date.value) local last_status_change_date = math.floor(row.last_status_change_date.value) -- Set contract date to current date if contract_date < int_current_date then row.contract_date.value = string.format("%d", int_current_date) EditDBTableField(row.contract_date) end -- last_status change date to current date if last_status_change_date < int_current_date then row.last_status_change_date.value = string.format("%d", int_current_date) EditDBTableField(row.last_status_change_date) end row.duration_months.value = string.format("%d", new_contract_length) EditDBTableField(row.duration_months) local contractvaliduntil = string.format("%d", currentdate.year + math.floor(new_contract_length / 12)) result[playerid] = contractvaliduntil end end end return result end update_contractvaliduntil(update_contracts()) Log("Done") ================================================ FILE: lua/scripts/generate_minifaces.lua ================================================ -- Generate miniface for everyplayer in playable league. -- THIS WILL TAKE A WHILE TO COMPLETE, like around 10h... -- and... if the game will crash (which is very possible) you will have to start from beginning... -- Execute only if we are in career mode if not IsInCM() then return end -- List of teams that cause game crashes or other problems local BLACKLISTED_TEAMS = { [112264] = true -- YOUTH ACADEMY } -- List of leagues that we want to skip local BLACKLISTED_LEAGUES = { [78] = true, -- International [2136] = true, -- International Women [76] = true, -- Rest of World [383] = true, -- Create Player League [2028] = true -- Youth Squad League } -- Path is relative to the game installation directory PlayerCaptureSetOutputDirectory("") -- 0 - Head and shoulders -- 1 - Head -- 2 - Body PlayerCaptureSetCamera(1) -- 256x256 PlayerCaptureSetSize(256, 256) -- Image Type -- 0 - PNG -- 1 - DDS PlayerCaptureSetType(1) -- Get all rows for leagueteamlinks table local rows = GetDBTableRows("leagueteamlinks") for i=1, #rows do local ltlink = rows[i] local ileagueid = math.floor(ltlink.leagueid.value) if BLACKLISTED_LEAGUES[ileagueid] then local iteamid = math.floor(ltlink.teamid.value) BLACKLISTED_TEAMS[iteamid] = true end end -- Get all rows for teamplayerlinks table rows = GetDBTableRows("teamplayerlinks") for i=1, #rows do local tplink = rows[i] local iteamid = math.floor(tplink.teamid.value) if not BLACKLISTED_TEAMS[iteamid] then local iplayerid = math.floor(tplink.playerid.value) PlayerCaptureAddPlayer(iplayerid, iteamid) end end -- Start Capturing PlayerCaptureStart() ================================================ FILE: lua/scripts/generate_minifaces_user_team.lua ================================================ -- Generate miniface for everyplayer in the user team -- May take around 5 mins to complete, so be patient. -- Execute only if we are in career mode if not IsInCM() then return end -- Path is relative to the game installation directory PlayerCaptureSetOutputDirectory("") -- 0 - Head and shoulders -- 1 - Head -- 2 - Body PlayerCaptureSetCamera(1) -- 256x256 PlayerCaptureSetSize(256, 256) -- Image Type -- 0 - PNG -- 1 - DDS PlayerCaptureSetType(1) local user_teamid = GetUserTeamID() -- Get all rows for teamplayerlinks table rows = GetDBTableRows("teamplayerlinks") for i=1, #rows do local tplink = rows[i] local iteamid = math.floor(tplink.teamid.value) if user_teamid == iteamid then local iplayerid = math.floor(tplink.playerid.value) PlayerCaptureAddPlayer(iplayerid, iteamid) end end -- Start Capturing PlayerCaptureStart() ================================================ FILE: lua/scripts/is_retiring=0.lua ================================================ --- This script sets is_retiring on 0 for all players. -- Get all rows for players table local rows = GetDBTableRows("players") local counter = 0; for i=1, #rows do local player = rows[i] player.isretiring.value = "0" EditDBTableField(player.isretiring) end MessageBox("Done", string.format("Edited %d players\n", counter)) ================================================ FILE: lua/scripts/list_players.lua ================================================ -- Check if we are in Career Mode local bIsInCM = IsInCM(); -- Get all rows for players table local rows = GetDBTableRows("players") for i=1, #rows do local player = rows[i] local iplayerid = math.floor(player.playerid.value) if (iplayerid > 0 and iplayerid < 280000) then local teamid = GetTeamIdFromPlayerId(iplayerid) local teamname = GetTeamName(teamid) Log(string.format("%d;%d;%s", iplayerid, teamid, teamname)) end end ================================================ FILE: lua/scripts/medium_socklenghtcode.lua ================================================ --- This script change socks length on medium -- Get all rows for players table local rows = GetDBTableRows("players") local counter = 0; for i=1, #rows do local player = rows[i] player.socklengthcode.value = "0" EditDBTableField(player.socklengthcode) end MessageBox("Done", string.format("Edited %d players\n", counter)) ================================================ FILE: lua/scripts/modifier=0.lua ================================================ --- This script will set modifier to 0 for all players. -- Get all rows for players table local rows = GetDBTableRows("players") local counter = 0; for i=1, #rows do local player = rows[i] player.modifier.value = "0" EditDBTableField(player.modifier) counter = counter + 1 end MessageBox("Done", string.format("Edited %d players\n", counter)) ================================================ FILE: lua/scripts/untuck_shirts.lua ================================================ --- This script untuck shirts -- Get all rows for players table local rows = GetDBTableRows("players") for i=1, #rows do local player = rows[i] player.jerseystylecode.value = "1" EditDBTableField(player.jerseystylecode) end MessageBox("Done", "Done") ================================================ FILE: lua/tests/main_test.lua ================================================ --- Test script registered in luarunner Log("Run LUA Test") local bIsInCM = IsInCM(); assert(type(bIsInCM) == "boolean", "IsInCM not a boolean") if (bIsInCM) then Log("Is In Career Mode") Log("Run the tests as Bolton (ID: 4) Manager ") local user_teamid = GetUserTeamID() Log("user_teamid: " .. user_teamid) assert(type(user_teamid) == "number", "user_teamid not a number") SetTransferBudget(6777656) local transfer_budget = GetTransferBudget() Log("transfer_budget: " .. transfer_budget) assert(type(transfer_budget) == "number", "transfer_budget not a number") assert(transfer_budget == 6777656, "transfer_budget != 6777656") local arr_table_names = GetDBTablesNames() assert(type(arr_table_names) == "table", "arr_table_names not a table") Log("Elements in arr_table_names: " .. #arr_table_names) local fields = GetDBTableFields("career_users") assert(#fields > 0, "fields <= 0") Log(#fields) Log(fields[1]["name"]) local rows = GetDBTableRows("teams") local row = rows[6] local success = false; row.teamname.value = "Edited String123" success = EditDBTableField(row["teamname"]) assert(success, "EditDBTableField false for teamname") row.clubworth.value = "6543210" success = EditDBTableField(row["clubworth"]) assert(success, "EditDBTableField false for clubworth") local playername1 = GetPlayerName(20801) Log("playername1 (20801): " .. playername1) assert(type(playername1) == "string", "GetPlayerName(20801) not a string") assert(playername1 == "Cristiano Ronaldo", "playername1 != Cristiano Ronaldo") local playername2 = GetPlayerName(158023) Log("playername2 (158023): " .. playername2) assert(type(playername2) == "string", "GetPlayerName(158023) not a string") assert(playername2 == "Lionel Messi", "playername2 != Lionel Messi") -- TODO Getters and check SetPlayerSharpness(279999, 100) SetPlayerMorale(279999, 95) SetPlayerForm(279999, 95) SetPlayerFitness(279999, 95) Log("Transfer test CPU") local transfer_test_playerid = 20801 local transfer_test_playerteamid = GetTeamIdFromPlayerId(transfer_test_playerid) TransferPlayer(transfer_test_playerid, 241, 500, 600, 60) assert(GetTeamIdFromPlayerId(transfer_test_playerid) == 241, "Ronaldo is not in FC Barcelona") TransferPlayer(transfer_test_playerid, user_teamid, 500000000, 60000, 60) assert(GetTeamIdFromPlayerId(transfer_test_playerid) == user_teamid, "Ronaldo is not in user team") ReleasePlayerFromTeam(transfer_test_playerid) assert(GetTeamIdFromPlayerId(transfer_test_playerid) == 111592, "Ronaldo is not in free agents") TransferPlayer(transfer_test_playerid, transfer_test_playerteamid, 500, 600, 60) assert(GetTeamIdFromPlayerId(transfer_test_playerid) == transfer_test_playerteamid, "Ronaldo is not in org club") Log("Transfer test CPU Done") Log("Transfer test USER") transfer_test_playerid = 279999 transfer_test_playerteamid = GetTeamIdFromPlayerId(transfer_test_playerid) TransferPlayer(transfer_test_playerid, 243, 500, 600, 60) assert(GetTeamIdFromPlayerId(transfer_test_playerid) == 243, "Murphy is not in Real Madrid") TransferPlayer(transfer_test_playerid, user_teamid, 500000000, 60000, 60) assert(GetTeamIdFromPlayerId(transfer_test_playerid) == user_teamid, "Murphy is not in user team") ReleasePlayerFromTeam(transfer_test_playerid) assert(GetTeamIdFromPlayerId(transfer_test_playerid) == 111592, "Murphy is not in free agents") TransferPlayer(transfer_test_playerid, transfer_test_playerteamid, 500, 600, 60) assert(GetTeamIdFromPlayerId(transfer_test_playerid) == transfer_test_playerteamid, "Murphy is not in org club") Log("Transfer test USER Done") Log("Transfer/Loan List Checks for user player") local listing_checks_playerid = 279999 local is_on_transferlist = IsPlayerTransferListed(listing_checks_playerid) assert(type(is_on_transferlist) == "boolean", "is_on_transferlist not a boolean") local is_on_loanlist = IsPlayerLoanListed(listing_checks_playerid) assert(type(is_on_loanlist) == "boolean", "is_on_loanlist not a boolean") RemovePlayerFromLists(listing_checks_playerid) is_on_loanlist = IsPlayerLoanListed(listing_checks_playerid) is_on_transferlist = IsPlayerTransferListed(listing_checks_playerid) assert(is_on_loanlist == false, listing_checks_playerid .. " is on loan list after RemovePlayerFromLists called") assert(is_on_transferlist == false, listing_checks_playerid .. " is on transfer list after RemovePlayerFromLists called") AddPlayerToTransferList(listing_checks_playerid) is_on_transferlist = IsPlayerTransferListed(listing_checks_playerid) assert(is_on_transferlist, listing_checks_playerid .. " is not on transfer list after AddPlayerToTransferList called") RemovePlayerFromTransferList(listing_checks_playerid) is_on_transferlist = IsPlayerTransferListed(listing_checks_playerid) assert(is_on_transferlist == false, listing_checks_playerid .. " is on transfer list after RemovePlayerFromTransferList called") AddPlayerToLoanList(listing_checks_playerid) is_on_loanlist = IsPlayerLoanListed(listing_checks_playerid) assert(is_on_loanlist, listing_checks_playerid .. " is not on loan list after AddPlayerToLoanList called") RemovePlayerFromLoanList(listing_checks_playerid) is_on_loanlist = IsPlayerLoanListed(listing_checks_playerid) assert(is_on_loanlist == false, listing_checks_playerid .. " is not on loan list after RemovePlayerFromTransferList called") RemovePlayerFromLists(listing_checks_playerid) is_on_loanlist = IsPlayerLoanListed(listing_checks_playerid) is_on_transferlist = IsPlayerTransferListed(listing_checks_playerid) assert(is_on_loanlist == false, listing_checks_playerid .. " is on loan list after second RemovePlayerFromLists called") assert(is_on_transferlist == false, listing_checks_playerid .. " is on transfer list after second RemovePlayerFromLists called") Log("Transfer/Loan List Checks for CPU player") local listing_checks_cpu_playerid = 158023 local listing_checks_cpu_teamid = GetTeamIdFromPlayerId(listing_checks_cpu_playerid) Log("listing_checks_cpu_playerid: " .. listing_checks_cpu_playerid) Log("listing_checks_cpu_teamid: " .. listing_checks_cpu_teamid) RemovePlayerFromLists(listing_checks_cpu_playerid) is_on_loanlist = IsPlayerLoanListed(listing_checks_cpu_playerid, listing_checks_cpu_teamid) is_on_transferlist = IsPlayerTransferListed(listing_checks_cpu_playerid, listing_checks_cpu_teamid) assert(is_on_loanlist == false, listing_checks_cpu_playerid .. " is on loan list after RemovePlayerFromLists called") assert(is_on_transferlist == false, listing_checks_cpu_playerid .. " is on transfer list after RemovePlayerFromLists called") AddPlayerToTransferList(listing_checks_cpu_playerid, listing_checks_cpu_teamid) AddPlayerToLoanList(listing_checks_cpu_playerid, listing_checks_cpu_teamid) is_on_loanlist = IsPlayerLoanListed(listing_checks_cpu_playerid, listing_checks_cpu_teamid) is_on_transferlist = IsPlayerTransferListed(listing_checks_cpu_playerid, listing_checks_cpu_teamid) assert(is_on_loanlist, listing_checks_cpu_playerid .. " is not on loan list after AddPlayerToLoanList called") assert(is_on_transferlist, listing_checks_cpu_playerid .. " is not on transfer list after AddPlayerToTransferList called") RemovePlayerFromTransferList(listing_checks_cpu_playerid, listing_checks_cpu_teamid) is_on_loanlist = IsPlayerLoanListed(listing_checks_cpu_playerid, listing_checks_cpu_teamid) is_on_transferlist = IsPlayerTransferListed(listing_checks_cpu_playerid, listing_checks_cpu_teamid) assert(is_on_loanlist, listing_checks_cpu_playerid .. " is not on loan list after RemovePlayerFromTransferList called") assert(is_on_transferlist == false, listing_checks_cpu_playerid .. " is on transfer list after RemovePlayerFromTransferList called") AddPlayerToTransferList(listing_checks_cpu_playerid, listing_checks_cpu_teamid) RemovePlayerFromLoanList(listing_checks_cpu_playerid, listing_checks_cpu_teamid) is_on_loanlist = IsPlayerLoanListed(listing_checks_cpu_playerid, listing_checks_cpu_teamid) is_on_transferlist = IsPlayerTransferListed(listing_checks_cpu_playerid, listing_checks_cpu_teamid) assert(is_on_loanlist == false, listing_checks_cpu_playerid .. " is on loan list after RemovePlayerFromLoanList called") assert(is_on_transferlist, listing_checks_cpu_playerid .. " is on not transfer list after RemovePlayerFromLoanList called") AddPlayerToLoanList(listing_checks_cpu_playerid, listing_checks_cpu_teamid) RemovePlayerFromLists(listing_checks_cpu_playerid, listing_checks_cpu_teamid) is_on_loanlist = IsPlayerLoanListed(listing_checks_cpu_playerid, listing_checks_cpu_teamid) is_on_transferlist = IsPlayerTransferListed(listing_checks_cpu_playerid, listing_checks_cpu_teamid) assert(is_on_loanlist == false, listing_checks_cpu_playerid .. " is on loan list after second RemovePlayerFromLists called") assert(is_on_transferlist == false, listing_checks_cpu_playerid .. " is on transfer list after second RemovePlayerFromLists called") Log("Transfer/Loan List Checks Done") local loan_test1 = IsPlayerLoanedOut(158023) local loan_test2 = IsPlayerLoanedOut(281425) assert(loan_test1 == false, "Messi shouldnt be on loan") assert(loan_test2, "Miranda should be on loan") TerminateLoan(281425) LoanPlayer(20801, 243, 12, -1) LoanPlayer(279999, 241, 12, -1) IsPlayerPresigned(158023) DeletePresignedContract(158023) else Log("Not in Career Mode") end local currentdate = GetCurrentDate() assert(type(currentdate) == "table", "GetCurrentDate() not table") Log("Current Date (day/month/year): " .. currentdate.day .. "/" .. currentdate.month .. "/" .. currentdate.year ) local team_name1 = GetTeamName(241) --- FC Barcelona Log("team_name1 (241): " .. team_name1) assert(type(team_name1) == "string", "GetTeamName(241) not a string") assert(team_name1 == "FC Barcelona", "team_name1 != FC Barcelona") local team_name2 = GetTeamName(7) --- Everton Log("team_name2 (7): " .. team_name2) assert(type(team_name2) == "string", "GetTeamName(7) not a string") assert(team_name2 == "Everton", "team_name2 != Everton") local teamid1 = GetTeamIdFromPlayerId(239085) Log("teamid1 (239085): " .. teamid1) assert(type(teamid1) == "number", "GetTeamIdFromPlayerId(158023) not a number") assert(teamid1 == 10, "teamid1 != 10") local teamid2 = GetTeamIdFromPlayerId(218667) Log("teamid2 (218667): " .. teamid2) assert(type(teamid2) == "number", "GetTeamIdFromPlayerId(218667) not a number") assert(teamid2 == 10, "teamid2 != 10") Log("LUA Test Passed") MessageBox("LUA TEST", "TEST PASSED") ================================================ FILE: mods/Extended Player and Manager Editor/README.md ================================================ **Extended Player & Manager Editor** **Mod Version**: 1.0 ``` Things you can edit through "Edit Manager" in manager career mode: - First Name - Last Name - Nationality - Gender - Head - Outfits Things you can edit through "Edit Player" in manager career mode: - Everything under "Info" except Team & Commentary Name - Height (130cm-255cm) - Weight (30kg-150kg) - Attributes (sprint speed, dribbling, shot power etc.) - Hairs (for players which don't have scanned face) - Animations (Goal celeb, freekick & pen style, run style) - Outfits (Only few will work) ``` There is tattoo tab also in players editor, but for 99% it won't work. **Edited files:** ``` - root\Legacy\data\avatar\avatarcustomizationcfg_mainmenu_edit_created.json - root\Legacy\data\avatar\avatarcustomizationcfg_mainmenu_edit_real.json - root\Legacy\data\avatar\avatarcustomizationcfg_managercareer_create.JSON - root\Legacy\data\avatar\avatarcustomizationcfg_managercareer_create_real.JSON - root\Legacy\data\avatar\avatarcustomizationcfg_managercareer_edit.json - root\Legacy\data\avatar\avatarcustomizationcfg_managercareer_edit_custom_player.JSON - root\Legacy\data\avatar\avatarcustomizationcfg_managercareer_edit_retiredreal.JSON - root\Legacy\data\avatar\avatarcustomizationcfg_managercareer_editplayers.json - root\Legacy\data\avatar\avatarcustomizationcfg_playercareer_create.JSON - root\Legacy\data\avatar\avatarcustomizationcfg_playercareer_edit_realplayer.json - root\Legacy\data\avatar\avatarcustomizationcfg_playercareer_edit_vpro.json - root\Legacy\data\avatar\avatarcustomizationcfg_playercareer_editplayers.json - root\Legacy\data\avatar\avatarcustomizationcfg_tournament_editplayers.json ``` **How to install:** ``` 1. Unzip archive 2. Move the root folder to C:\FIFA 23 Live Editor\mods (replace files if needed) 3. Run the game & Live Editor ``` ![](https://i.imgur.com/8BOzvnu.png) ![](https://i.imgur.com/vOQdSxn.jpeg) ================================================ FILE: mods/Increased PCM Level Cap/README.md ================================================ **Increased Player Career Mode Level Cap** **Mod Version**: 1.0 ``` This mod increases the level cap in player career mode from 40 to 99 IT DOESN'T GIVE YOU 99 LEVEL... ``` **Edited files:** ``` - dlc\dlc_FootballCompEng\dlc\FootballCompEng\data\PlayerGrowth\player_growth.json ``` **Changelog:** ``` ``` **How to install:** ``` 1. Unzip archive 2. Move the root folder to C:\FIFA 23 Live Editor\mods (replace files if needed) 3. Run the game & Live Editor ``` ![](https://i.imgur.com/8BOzvnu.png) ![](https://i.imgur.com/7puQBqY.png) ================================================ FILE: mods/More Stupid Transfers/README.md ================================================ **More Stupid Transfers** Trying to reproduce what was available in FIFA 18 cheat table. Basically, this "mod" should increase the transfer activity which means more transfers between teams, but don't expect that the transfers done will be somewhat "real". **Mod Version**: 1.0 **Edited files:** ``` - dlc\dlc_FootballCompEng\dlc\FootballCompEng\data\Transfers\TransfersShortlistConfig.csv ``` **Changelog:** ``` 1.0: - "Random Activity Chance Inside Deadline Day" changed from 30 to 90 - "Random Activity Chance Inside Transfer Window" changed from 15 to 75 - "Random Activity Chance Outside Transfer Window" changed from 0 to 55 - "Listed Activity Chance" changed from 35 to 95 - "Listed Activity Chance - PAP" changed from 50 to 90 - "Max Number Of Teams To Search" changed from 5 to 8 - "Min Days Between Offers" changed from 3 to 2 - "Max Attempts To Find Suitable Team" changed from 2 to 6 - "Overall Difference Per Attempt Transfer" changed from 4 to 3 - "Overall Difference Per Attempt Loan" changed from 8 to 6 ``` **How to install:** ``` 1. Unzip archive 2. Move the root folder to C:\FIFA 23 Live Editor\mods (replace files if needed) 3. Run the game & Live Editor ``` ![](https://i.imgur.com/8BOzvnu.png) ================================================ FILE: mods/Quicksim Settings/README.md ================================================ **Quicksim Settings** No cards & No injuries during quick sims **Mod Version**: 1.0 **Edited files:** ``` - dlc\dlc_FootballCompEng\dlc\FootballCompEng\data\simsettings.ini ``` **Changelog:** ``` 1.0: - Max number of cards in a game 4 -> 0 - Chance of a yellow card in the game 45 -> 0 - Percentage chance of a red card being brandished 32 -> 0 - Percentage chance of receiving two reds in a game 2 -> 0 - Possible maximum number of injuries in a game 2 -> 0 ``` **How to install:** ``` 1. Unzip archive 2. Move the root folder to C:\FIFA 23 Live Editor\mods (replace files if needed) 3. Run the game & Live Editor ``` ![](https://i.imgur.com/8BOzvnu.png) ================================================ FILE: mods/World Cup LE Fix/README.md ================================================ **World Cup LE Fix** Allows you to enter the world cup mode while playing with the live editor **Mod Version**: 1.1 **Author**: FIFER (?) **Edited files:** ``` - data/ui/nav/worldCupMainMenuFlow.nav - data/ui/nav/womenWorldCupMainMenuFlow.nav ``` **Changelog:** ``` 1.0: - Initial release 1.1: - Added support for Women's World Cup - Redid the edit for mens, EA updated the nav file so the old version might have some bugs, this should work better ``` **How to install:** ``` 1. Unzip archive 2. Move the root folder to C:\FIFA 23 Live Editor\mods (replace files if needed) 3. Run the game & Live Editor ``` ![](https://i.imgur.com/8BOzvnu.png) ![](https://i.imgur.com/7agnhy7.jpeg)