• This is a reminder of 3 IMPORTANT RULES:

    1- External self-promotion websites or apps are NOT allowed here, like Discord/Twitter/Patreon/etc.

    2- Do NOT post in other languages. English-only.

    3- Crack/Warez/Piracy talk is NOT allowed.

    Breaking any of the above rules will result in your messages being deleted and you will be banned upon repetition.

    Please, stop by this thread SoccerGaming Forum Rules And Guidelines and make sure you read and understand our policies.

    Thank you!

lua Fix for Crashes due to no formation?

DT33

Club Supporter
Hi everyone...as you guys know there is this common problem of Fifa crashing when a team that one is coming up against (in a tournament or league career) has no formation set. This is sometimes the case with teams that were added in a patch. I assume this goes for other Fifas as well, not just 14. Of course the usual fix is to give the team in question a formation in Creation Master. However, when you're playing a career and you are already quite advanced (let's say half a season or even 2 or 3 seasons, relegating from the lower to upper leagues like in the European Epansion Patch) and then you are all of a sudden up agains a few teams that cause crashes it is really frustrating and disappointing. As fixing this via Creation Master will mean your current career is gone and you will have to start all over. (As it edits the db)

So I'm wondering....
in order to avoid this, shouldn't it be possible to assing a generic or specific formation via lua statement? In the specific team lua? For instance team ID 130041. Go to fifarna/ lua/ assignments/ teams and open up team_130041 (or create it). What is the proper lua statement?

assignTeamFormation(130041,4.1.3.2 1) ? (4-1-3-2 formation generic formation)
or
assignTeamFormation(130041,4-4-2 1) ? (4-2-2 formation generic formation)
or
assignTeamFormation(130041,4-4-2,1) ? (4-2-2 formation, generic formation)

or or assignTeamFormation(130041,0,4-4-2) ? (specific formation,4-4-2 formation)

I am going to try a few things but before I spent several hours on this I would appreciate it if someone can give me the correct statement. A google search brings up nothing and the statement examples in the read me pdf of the RevMod do not list formation assignments. :(

Obviously this would be an easy fix and should be possible. So thanks for any help, guys!
 

DT33

Club Supporter
Ok, one thing I figured out already is that you probably dont write the actual formation - instead you take the ID in the database for the corresponding formation. In the db is a table called 'formations' which list all the IDs. For instance, 4-1-3-2 has the ID 1. Or 4-4-2 is 16 or 17. And then there is 'relativeformationID' which I'm not sure about what it means...the IDs go up to about 40. And then at the end there is also 'formationfullnameID'. Hmmm....
I've tried a few things already but unfortunately no luck so far. :/
 

Masterleo10

Club Supporter
Ok, one thing I figured out already is that you probably dont write the actual formation - instead you take the ID in the database for the corresponding formation. In the db is a table called 'formations' which list all the IDs. For instance, 4-1-3-2 has the ID 1. Or 4-4-2 is 16 or 17. And then there is 'relativeformationID' which I'm not sure about what it means...the IDs go up to about 40. And then at the end there is also 'formationfullnameID'. Hmmm....
I've tried a few things already but unfortunately no luck so far. :/
Do you find any solution...? I want to solve these problem too :(
 

DT33

Club Supporter
Hello masterleo,
no, it appears that you can't set this via lua. Not in a way that the game acknowledges it. So you have to make sure via Creation Master that all the teams have a formation set, even if it's just generic. Then they won't crash anymore. :) (Of course that won't help you if you already started a career so it's best to always check before starting a career....at least with all the teams of the league and country you're gonna be playing in.)
 


Top