This action might not be possible to undo. Are you sure you want to continue?
By scouser09 About The .lua files are written in the programming language Lua. I have been able to add new code to some of these files to change which files are loaded so the graphics loaded in matches can be conditional to custom settings. Some of these functions allow things which where not previously possible, some are currently possible but avoid editing the database so they can be used in saved careers. Using To use this mod, open the needed file in a text editor such as Notepad. Then add the statements you want to add near the start of the file (the file is annotated to help you), and then save. List of Statements Make sure you put each statement in the correct .lua file. Each parameter within the brackets must be replaced with an appropriate value. Typically, each value should be an integer, however namecolour is in a more complex format (see below). Some complex statements allow you to use the value -1 for certain parameters, which will just use the value from the database. The parameter namecolour sets the name colour of a kit and is in the format 0xARGB, which is similar to a hexcode (RGB) but with an alpha channel (for transparency). The value of the alpha channel should be FF (opaque) so just append the hex code for the colour to 0xFF. For example, red (hexcode FF0000) would be 0xFFFF0000. BALL.LUA useGlobalBall(ballid) Use specified ball ID in all matches. assignTournamentBall(tournamentassetid,ballid) Assign a ball to a tournament. assignTeamBall(teamid,ballid) Assign a ball to a team. setArenaModeBall(ballid) Set ball used in arena mode.
namefont) Assign player kit set to tournament.namecolour.rx3 setArenaModeGKKit(teamid.playerkttype.collarnumber) Set the name and number type and colours of a kits.numberset.numbercolourshort .gkkittype) Assign GK kit to a outfield player kit.PLAYER.namefont. numberset. assignPlayerBoot(playerid. numberset and namefont can be set to -1 to use the database values. Kit sets are defined in the filename as kit_teamid_kittype_kitset. assignGKPants(playerid) Assign GK pants to a player. assignKitDetails(teamid.tournamentassetid.numbercolourshirt.LUA assignGKKit(teamid.kittype) Set kit used by arena mode goalkeeper . numbercolourshort and collarnumber can be set to -1 to use the database values. Kit sets are defined in the filename as kit_teamid_kittype_kitset. numbercolourshirt.rx3 assignTournamentRefereeKits(tournamentassetid. assignSpecificGKKit(teamid) Assign a specific GK kit to a team which currently uses a generic GK kit.kittype) Set kit used by arena mode player setArenaModePlayerKit(teamid.bootid) Assign a boot to a player assignPlayerFace(playerid) Assign a real face to a player if player currently has generic face.set) Assign referee kit set to tournament.set. namecolour. kittype.kittype. namefont. assignTournamentPlayerKits(teamid. also the collar.numberset. assignPlayerSkinTone(playerid.toneid) Assign a player a skin tone (for tattoos).
tournamentassetid.wipeset) Assign a specific wipe to a tournament.1. Examples assignTeamAdboard(241.0xFFFFFFFF.102) This will assign adboard ID 100 to Barcelona. This arrangement will force all teams to use adboard ID 102 in UEFA Champions League games.set) Assign stadium textures to a tournament.STADIUM. assignGKKit(9. Stadium set is defined in the filename as stadium_id_lighttype_container_set.1. and will allow Barcelona and Real Madrid to use their specific adboards in all other matches.18.rx3 setArenaModeAdboard(adboardid) Set adboard used in arena mode.LUA useGlobalAdboard(adboardid) Use specified adboard ID in all matches.1.LUA assignTournamentWipe(tournamentassetid. assignTournamentAdboard(tournamentassetid. WIPE3D.wipeid. adboard ID 101 to Real Madrid and adboard ID 102 to UEFA Champions League games. assignTournamentStadTex(stadiumid.100) assignTeamAdboard(243.adboardid) Assign an adboard to a team.0) .adboardid) Assign an adboard to a tournament.12.12) assignKitDetails(9.101) assignTournamentAdboard(223. assignAdboard(teamid.adboardid) Assign an adboard to a team.16. assignTeamAdboard(teamid.
For both this precedence is: 1. There is a small limitation with alternate GK kits which caused when you play a match with the home team the same as the away team. Please note that if you set a parameter to -1 in the assignKitDetails statement. Original FIFA 12 choice Arena Mode Statements The statements that can be used to define which graphics are used in arena mode have the limitation that causes then to be shown in the pre-match arena until the training stadium switches to the match stadium. then it will use the values from the database for kit type 2. This only applies when the team has been allocated alternate GK kits. Precedence of Statements Some statements have precedence over others. Global 2. number and collar choices of the default GK kit (type 2). These are related to the ball and adboard choice. You can use the assignKitDetails statement to so set these for the alternate kit. Team assignment 5. Arena assignment 3. . You can use the assignKitDetails statement to correct this. the away team will use the same GK kit as the home team rather than it’s own assignment. This kit is then assigned white Premier League style name and numbers. You should not add any records for alternate GK kits to the database. Tournament assignment 4. assignPlayerFace(166706) This will give Martin Škrtel a specific face instead of a generic one.This assigns a GK kit (type 12) to Liverpool’s away kit. please note that the name. numbers and collar will be from the kit which would appear if you did not use that statement. In this case. If you use the kit assignment statements. however you must replicate all the values from the database and not set any parameters to -1. also collar 0. Alternate GK Kits When you assign alternate GK kits. the game will use the name.
lua to see the new face in your game. you can do so by typing “--“. editing your database can cause problems with saved careers. Wipes Please note that this assignment has not been tested. Using with Saved Careers In FIFA 12. . Therefore you can use Creation Master 12 to import graphics to your game. I have forced only set 0 to be used. however. Commenting If you want to add some comments into the code.Compatibility with Adboard Revolution The custom assignments from your stadium. just do not save the database. For example: --Player Faces assignPlayerFace(166706) --Martin Skrtel Face Adboard Set The game has four adboards for each adboard ID. This means you only have to import one adboard texture rather than four. For example. To simplify things. only set 0 seems to be used in game (this is show far left when viewed in Creation Master 12). the old assignAdboard can still be used for the functionality. and then add the needed line of code to player. French Referee Kits The game included a set of referee kits which where used by French teams in Ligue 1 and 2 matches.lua from this mod. Although the statement assignTeamAdboard for assigning adboards to teams is added as the function is more obvious. I have disabled these kits. This is standard Lua syntax which stops the rest of the line being read as code. you can assign a specific referee kit set to these tournaments using the new naming convention with the assignTournamentRefereeKits statement.lua from Adboard Revolution can be copied into the stadium. This can be done on a new line or after a statement. followed by your comments. The general rule is graphics can be changed but the database can not. you can use CM12 to import a specific face for a player.
This action might not be possible to undo. Are you sure you want to continue?
We've moved you to where you read on your other device.
Get the full title to continue reading from where you left off, or restart the preview.