• 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!

Compdata leagues and playoffs

Rizzaldio

Youth Team
Ok heres my notes for the first steps I had to follow - I apologise if this is overly complicated. When I have time I will explain fully.

The first thing to do is identify possible problems with the changes you are planning to make.


– Replacing the Polish league will break the structure of the champions league/Europa league/conference league. Therefore we need to have a plan to increase the number of qualifiers from other leagues to resolve this.

Solution – Tasks is the table where these tournament are filled from the other leagues. I need to take out any reference to the polish league in the European tournaments and also any references to Poland the country otherwise when you change the nation of the league it will break. I find the lines for compobj for these tournaments
Champions League – Line 95 to 178
Europa League – Line 179 to 249
Conference League – Line 250 to 326


Poland is nation 37 in the database. The polish leagueid is 66. So we are looking in the tasks table for
FillFromLeagueMaxFromCountry which mentions the league number 66 between line 95 and 326. In the excel link table I highlight them in red so I know which ones I am changing. There is also a polish cup so we need to identify FillFromCompTableBackupLeague lines which mention the cup which has a backup league of 66. The cup id is 1128. So I highlight this line too.

I am going to replace these lines with other tournaments/leagues. I have gave the Scottish league an extra spot in the champions league (qualifiers). So delete this line (109)

95​
startFillFromLeagueMaxFromCountry
100​
66​
1​
3​

and change line 110 so it looks like this:


95​
startFillFromLeagueMaxFromCountry
100​
50​
2​
4​


I then found the Scottish league reference in compobj

1255​
5​
G1FCE_Championship_Group
1254​

The compobj line reference is 1255 so I go to settings and I add this line:

1255​
info_color_slot_champ_cup
3​
And change


1255​
info_color_slot_uecl
3​
1255​
info_color_slot_uecl
4​

to

1255​
info_color_slot_uecl
4​
1255​
info_color_slot_uecl
5​


We now need to remove these lines in tasks


250​
startFillFromCompTableBackupLeague
253​
1128​
66​
1​
250​
startFillFromLeagueMaxFromCountry
253​
66​
2​
3​

and replace with more teams from another league instead. I’ve chose to increase the Romanian teams that qualify to 1 extra so


250​
startFillFromLeagueMaxFromCountry
253​
330​
1​
3​
250​
startFillFromCompTableBackupLeague
253​
1216​
330​
1​
Changes to

250​
startFillFromLeagueMaxFromCountry
253​
330​
2​
4​
250​
startFillFromCompTableBackupLeague
253​
1216​
330​
1​




Now we export all of the compdata files and import them to test.





Now secondly we need to the same for the Asian Champions League because we are removing several Asian Leagues. Asian champions league is currently at compdata lines 1562 – 1582. So in tasks we need to find these lines where it Fills From leagues. And they appear like this


1562​
startFillFromLeagueMaxFromCountry
1564​
2012​
3​
3​
1562​
startFillFromLeagueMaxFromCountry
1564​
349​
4​
4​
1562​
startFillFromLeagueMaxFromCountry
1564​
350​
3​
3​
1562​
startFillFromLeagueMaxFromCountry
1564​
83​
3​
3​
1562​
startFillFromLeagueMaxFromCountry
1564​
351​
2​
2​

Because we are removing some of them we need to identify the leagueids for the ones we take out:
China - 2012
Saudi - 350
Japan – 349
So we need to remove these and increase some other others to fill those missing slots…


1562​
startFillFromLeagueMaxFromCountry
1564​
83​
3​
3​
1562​
startFillFromLeagueMaxFromCountry
1564​
351​
2​
2​
Easiest way as there is only now 2 countries is to give each of them 8 slots each


1562​
startFillFromLeagueMaxFromCountry
1564​
83​
8​
8​
1562​
startFillFromLeagueMaxFromCountry
1564​
351​
8​
8​


Remove this line:

1562​
startFillFromCompTable
1564​
1604​
1​
0​

As this will cause more problems. Now test into season 2 to make sure UEFA champions league still works and AFC Champs League still works.

DONE and confirmed as working. Now we can start adding the actual leagues (the fun bit)
 

Rizzaldio

Youth Team
Note: Preseason is a constant pain when you are doing this so it is best to remove it completely and add it again later once we have confirmed everything else is working.

To remove it go to dlc/dlc_FootballCompEng/dlc/FootballCompEng/data/PreSeasonTours.csv and empty the lines so it looks like this:


Type,Nation ID,Nation,Star Rating,Minimum Budget,# Clubs,,,,,,,,,Timezone
,,,,,European,North American,South American,ROW,Local,Continental,Qualify Prize,Group Prize,Final Prize,
 

Rizzaldio

Youth Team
Stage 2
----------
We are now going to remove the Polish League, The Saudi League, The Chinese League and the Japanese League completely along with all of their references within in the other tables.



We also need to remove the cups but it is ok to keep the Nation Line.

Example – Poland is everything from line


1129​
4​
S1FCE_Setup_Stage
1128​
To


1158​
5​
G1
1157​

Note – when you use a link table everything will get a REF! showing it is no longer available. You need to remove all of these lines!



Now after this we retest again making sure the champs league works into season 2 for both AFC and UEFA.



DONE – Tested and working. Remember to change the teams that automatically qualify for the European comps in the first season otherwise you will end up with French Lower League teams in there. (This can be done in the database – table is called euroseeds!).

At this point I now have a league table without
Poland, Saudi Arabia,China and Japan. So this will work for both of you to start building French Leagues/Serbian Leagues. I’ll do France first as that’s the original question…
 

Rizzaldio

Youth Team
Stage 3 adding the new French leagues.

In the database change the nationid for the leagues we are using so they are the French nation id (18). Changing the level here just makes it look nicer So I’ve changed them like so:

National 1 (ID:66 // Polish league) – level 3
National 2 (ID:2012 // Chineese league) – level 4
National 3 (ID:350 // Saudi league) – level 5
Régional 1 (ID:349 // Japaneese league) – level 5

First job is to add them to compdata like so:
Put them under the French nation at the bottom (line 918)


918​
3​
C66TrophyName_Abbr15_66
840​
919​
4​
S1FCE_League_Stage
918​
920​
5​
G1
919​
921​
3​
C2012TrophyName_Abbr15_2012
840​
922​
4​
S1FCE_League_Stage
921​
923​
5​
G1
922​
924​
3​
C350TrophyName_Abbr15_350
840​
925​
4​
S1FCE_League_Stage
924​
926​
5​
G1
925​
927​
3​
C349TrophyName_Abbr15_349
840​
928​
4​
S1FCE_League_Stage
927​
929​
5​
G1
928​



Next table to update is compids which needs to know the compdata reference lines for where each competition starts (The Green 3 part)

918​
921​
924​
927​

There is nothing to do in advancement at this point. In settings we need to add the following lines for each tournament (we are not adding promo or relegation yet before we know it all works):


asset_id
17​
comp_typeLEAGUE
schedule_internationaldependency
0​
info_prize_money_promo
100000​
match_matchsituationLEAGUE
info_prize_money
100000​
info_prize_money_drop
5​
standings_sortPOINTS
standings_sortGOALDIFF
standings_sortH2HPOINTS
standings_sortH2HGOALDIFF
standings_sortH2HGOALSFOR
num_games
2​
info_slot_champ
1​
info_color_slot_champ
1​




There are no need to make changes to weather or initteams. In tasks we need to fill the leagues with the relevant teams which we do like this:


918​
startFillFromLeague
920​
66​
0​
0​
918​
startClearLeagueStats
919​
66​
0​
0​


(Similar for each team. We don’t need any update tables at the moment as we don’t need to remember any slots).



For objectives we need to add some objectives for the manager to hit in the leagues like this:


920​
CHAMPION
1​
920​
PROMOTION
2​
920​
MID_TABLE
10​
920​
AVOID_RELEGATION
16​
For each of the leagues



For standings we have to add a position for each place in the table:


920​
0​
920​
1​
920​
2​
920​
3​
920​
4​
920​
5​
920​
6​
920​
7​
920​
8​
920​
9​
920​
10​
920​
11​
920​
12​
920​
13​
920​
14​
920​
15​
920​
16​
920​
17​






And for schedule, best solution is to take the existing ones that were there for one of the leagues we removed and just update the compobj reference for them. Note – this is not a problem for the Polish league because it came from the same confederation but the Asian Leagues run on a different schedule so you will need to update the days.



For this reason I have taken the schedule of France for the Japanese League and used that and I had to make one from scratch for the other 2.



Now I will test it again…and its working.



Just the promotion and relegation to fix now. I need to take a quick break so I will do this tonight and send you the files after its done
 

Apollo404

Club Supporter
Ok heres my notes for the first steps I had to follow - I apologise if this is overly complicated. When I have time I will explain fully.

The first thing to do is identify possible problems with the changes you are planning to make.


– Replacing the Polish league will break the structure of the champions league/Europa league/conference league. Therefore we need to have a plan to increase the number of qualifiers from other leagues to resolve this.

Solution – Tasks is the table where these tournament are filled from the other leagues. I need to take out any reference to the polish league in the European tournaments and also any references to Poland the country otherwise when you change the nation of the league it will break. I find the lines for compobj for these tournaments
Champions League – Line 95 to 178
Europa League – Line 179 to 249
Conference League – Line 250 to 326


Poland is nation 37 in the database. The polish leagueid is 66. So we are looking in the tasks table for
FillFromLeagueMaxFromCountry which mentions the league number 66 between line 95 and 326. In the excel link table I highlight them in red so I know which ones I am changing. There is also a polish cup so we need to identify FillFromCompTableBackupLeague lines which mention the cup which has a backup league of 66. The cup id is 1128. So I highlight this line too.

I am going to replace these lines with other tournaments/leagues. I have gave the Scottish league an extra spot in the champions league (qualifiers). So delete this line (109)

95​
startFillFromLeagueMaxFromCountry
100​
66​
1​
3​

and change line 110 so it looks like this:


95​
startFillFromLeagueMaxFromCountry
100​
50​
2​
4​


I then found the Scottish league reference in compobj

1255​
5​
G1FCE_Championship_Group
1254​

The compobj line reference is 1255 so I go to settings and I add this line:

1255​
info_color_slot_champ_cup
3​
And change


1255​
info_color_slot_uecl
3​
1255​
info_color_slot_uecl
4​

to

1255​
info_color_slot_uecl
4​
1255​
info_color_slot_uecl
5​


We now need to remove these lines in tasks


250​
startFillFromCompTableBackupLeague
253​
1128​
66​
1​
250​
startFillFromLeagueMaxFromCountry
253​
66​
2​
3​

and replace with more teams from another league instead. I’ve chose to increase the Romanian teams that qualify to 1 extra so


250​
startFillFromLeagueMaxFromCountry
253​
330​
1​
3​
250​
startFillFromCompTableBackupLeague
253​
1216​
330​
1​
Changes to

250​
startFillFromLeagueMaxFromCountry
253​
330​
2​
4​
250​
startFillFromCompTableBackupLeague
253​
1216​
330​
1​




Now we export all of the compdata files and import them to test.





Now secondly we need to the same for the Asian Champions League because we are removing several Asian Leagues. Asian champions league is currently at compdata lines 1562 – 1582. So in tasks we need to find these lines where it Fills From leagues. And they appear like this


1562​
startFillFromLeagueMaxFromCountry
1564​
2012​
3​
3​
1562​
startFillFromLeagueMaxFromCountry
1564​
349​
4​
4​
1562​
startFillFromLeagueMaxFromCountry
1564​
350​
3​
3​
1562​
startFillFromLeagueMaxFromCountry
1564​
83​
3​
3​
1562​
startFillFromLeagueMaxFromCountry
1564​
351​
2​
2​

Because we are removing some of them we need to identify the leagueids for the ones we take out:
China - 2012
Saudi - 350
Japan – 349
So we need to remove these and increase some other others to fill those missing slots…


1562​
startFillFromLeagueMaxFromCountry
1564​
83​
3​
3​
1562​
startFillFromLeagueMaxFromCountry
1564​
351​
2​
2​
Easiest way as there is only now 2 countries is to give each of them 8 slots each


1562​
startFillFromLeagueMaxFromCountry
1564​
83​
8​
8​
1562​
startFillFromLeagueMaxFromCountry
1564​
351​
8​
8​


Remove this line:

1562​
startFillFromCompTable
1564​
1604​
1​
0​

As this will cause more problems. Now test into season 2 to make sure UEFA champions league still works and AFC Champs League still works.

DONE and confirmed as working. Now we can start adding the actual leagues (the fun bit)
I'm finishing the first step, there're no crash but a little bug : Conference League is no longer available, idk why ! I can only find it in "season">"teams stats", but there's no match in this competition
 
Last edited:

Rizzaldio

Youth Team
I'm finishing the first step, there're no crash but a little bug : Conference League is no longer available, idk why ! I can only find it in "season">"teams stats", but there's no match in this competition
In season 1 or season 2? Maybe I missed a step in instructions. It’s working in mine
 

Apollo404

Club Supporter
So, everything works that's insane for now, just a little question (you'll answer tomorrow don't worry), i put two leagues as the french 5th division as you wrote but on the screen where i can choose a league, the "false" 5th division is before the real one. Do you know what i can do to put the false one (6th division) after the right ?
 

Rizzaldio

Youth Team
So, everything works that's insane for now, just a little question (you'll answer tomorrow don't worry), i put two leagues as the french 5th division as you wrote but on the screen where i can choose a league, the "false" 5th division is before the real one. Do you know what i can do to put the false one (6th division) after the right ?
I'm back online now :) I'm on the final step so will provide you with the final steps shortly. I'll also send you my compdata files so you can compare / use them.

I've always had this problem that you mentioned. I'm not currently sure how it gets sorted but I'll see if I can work it out later.
 

Apollo404

Club Supporter
I'm back online now :) I'm on the final step so will provide you with the final steps shortly. I'll also send you my compdata files so you can compare / use them.

I've always had this problem that you mentioned. I'm not currently sure how it gets sorted but I'll see if I can work it out later.
I think that for the lil problem i'll keep the 6th division in another country ^^ that's easy, no bugs and cool
 

Rizzaldio

Youth Team
Next step is to add promotion and relegation (not the playoffs just yet).

You said you wanted to take away the playoffs for 2.bundesliga and 3.Liga from Germany, so the first thing I am going to do is to change the way promotion/relegation works in the Germany league structure to stop that having any problems.

I go to the settings file and find the compobj lines for 2.bundesliga which is compobj lines 1000-1002. I’m going to remove the scheduleforce comps to stop the playoffs working. So remove these lines


1000​
schedule_forcecomp
1003​
1000​
schedule_forcecomp
1011​


I am going to change these lines:


1002​
info_slot_promo_poss
3​
1002​
info_slot_releg_poss
16​
So that they are just promo/releg and not poss

1002​
info_slot_promo
3​
1002​
info_slot_releg
16​


I am also going to change the color slots for these so change


1002​
info_color_slot_promo_poss
3​
1002​
info_color_slot_releg_poss
16​
To

1002​
info_color_slot_promo
3​
1002​
info_color_slot_releg
16​


I also need to do the same thing for 3.Liga so this is compdata lines 1008-1010.
Remove the forcecomp lines.
Change


1010​
info_slot_promo_poss
3​
To


1010​
info_slot_promo
3​
And change


1010​
info_color_slot_promo_poss
3​
To


1010​
info_color_slot_promo
3​

Also we need to change the Bundesliga (compdata reference 997-999) to make sure 3 teams are automatically relegated:
Change

999​
info_color_slot_releg_poss
16​
to

999​
info_color_slot_releg
16​
and also change

999​
info_slot_releg_poss
16​
to

999​
info_slot_releg
16​
Now we have automatic relegation/promotion rather than playoffs in Germany so we can remove the playoff tournaments now.
3.Liga are lines 1011-1015 in compdata and 2.Bundesliga are lines 1003-1007. Remove them completely.

Now remove all the references to them in the other tables...



I’m now going to save all these tables and import them into the game so I can test that the promotion/relegation in Germany is working as I expect.

Tested – all is now working as expected in Germany
 
Last edited:

Rizzaldio

Youth Team
Oh my dear, i just finished to put everything you did and : everything works, even playoff system (with your 1st message) :) Thanks a lot you're god !!!! <3
Excellent work mate! I'm going to finish it off and add the compdata files here anyway just in case anybody else tried following though this. Congrats mate, been a pleasure working with you
 

Rizzaldio

Youth Team
Next up is getting the promotion and relegation working for the French leagues. I’ve made it so 3 go down from each league (from the existing 2nd division onwards) and 3 go up. If you follow the steps below you should be able to see it is pretty easy to alter this if required.

We are not doing the playoffs just yet, we will do that after this bit is working.

So we need to add to the settings file a relegation from the 2nd League.

The compobj reference for the leagues are as follows:

2nd Division – 906-908
3rd Division – 918-920
4th Division – 921-923
5th Division – 924-926
6th Division – 927-929

The league ids which we are using are
2nd Divison - 17
3rd Division – 66 (18 teams) (Poland)
4th Division – 2012 (16 teams) (China)
5th Division – 350 (16 teams) (Saudi)
6th Division – 349 (20 teams) (Japan)

So in settings we need to add a line to each division to tell it which league to relegate to and another for which one to promoted to. For example, 2nd Division needs a line referencing the relegation division:

906​
info_league_releg
66​
It already has a line to reference the promotion to Ligue 1 so we don’t need to add anything there.

For 3rd Division we add

918​
info_league_promo
17​
918​
info_league_releg
2012​


Continue this until all leagues have the lines added (6th division doesn’t need a releg line). Now we need to tell it which teams to relegate/promote from each division. For promos you need a info_slot_promo line and a info_color_slot_promo line. For relegation you need info_slot_releg and a info_color_slot_releg.
For example. I have added this for the relegation from 2nd Division down to the 3rd division:

908​
info_slot_releg
18​
908​
info_slot_releg
19​
908​
info_slot_releg
20​
908​
info_color_slot_releg
18​
908​
info_color_slot_releg
19​
908​
info_color_slot_releg
20​






Similarly to promote from 3rd Division I have added the following:

920​
info_slot_promo
1​
920​
info_slot_promo
2​
920​
info_slot_promo
3​
920​
info_color_slot_promo
2​
920​
info_color_slot_promo
3​


Note how I have missed out the color slot for promo at 1 because I want to keep the color for the champion different to the others.

Also remember Division 6 don’t add the relegation parts.



Now I’m going to test by running through a season into season 2 to check the teams I expect are promoted and relegated…Tested for a few seasons and all working as expected.





Finally we add the playoffs…

Previously we removed the playoffs for Germany which were using competion ids 21 and 22 so we can re-use these.

I’m just going to add one playoff as an example which can be replicated if you want to. I am going to add a playoff between Ligue 2 and the 3rd division. I have put the playoff tournament at the bottom of the Germany nation in compdata so mine looks like this:


930​
3​
C21TrophyName_Abbr15_21
840​
931​
4​
S1FCE_Setup_Stage
930​
932​
4​
S2FCE_Setup_Stage
930​
933​
4​
S3FCE_Promotion_Playoff_Final
930​
934​
5​
G1
933​

I need to add a reference to the start of the tournament in compids so I have added 930 to compids

I need to add the following lines to settings to show how the tournament works:

930​
info_league_promo
17​
930​
info_league_releg
2012​
930​
asset_id
21​
930​
comp_typePLAYOFF
930​
match_matchimportance
100​
930​
info_prize_money_promo
600000​
931​
match_stagetypeSETUP
932​
match_stagetypeSETUP
932​
advance_calccompavgs
1​
933​
match_stagetypeKO2LEGS
933​
match_matchsituationFINAL
933​
rule_allowadditionalsubon


We need to add lines to advancement to state where the teams are coming from. This should be the 3rd place team in division 3 and the 18th placed team in division 2 so I have added these lines:


908​
18​
934​
1​
920​
3​
934​
2​


I also want to go back to settings and change those positions to show promotion_poss and relegation_poss like they did before:


908​
info_color_slot_promo_poss
5​
908​
info_slot_releg_poss
16​
908​
info_slot_releg
17​
908​
info_slot_releg
18​
908​
info_color_slot_releg_poss
16​
908​
info_color_slot_releg
17​
908​
info_color_slot_releg
18​

and


920​
info_slot_promo
1​
920​
info_slot_promo
2​
920​
info_slot_promo_poss
3​
920​
info_color_slot_promo
2​
920​
info_color_slot_promo_poss
3​


No changes are required in initteams,weather,tasks,objectives.

To standings we need to add slots for the playoff game which is compdata reference 934 for me:

934​
0​
934​
1​

And we need to add a schedule line for the 2 legs of the playoff like this…(it must come after the end of the season)

933​
507​
1​
1​
1​
2000​
933​
510​
2​
1​
1​
2000​

I also added a forcecomp line to both Division 2 and the 3rd division so the player can see it on their tournament list when they are in either of these tournaments:

906​
schedule_forcecomp
930​
and

918​
schedule_forcecomp
930​
Now I am going to test that it works as expected and the team who loses the playoff goes into the 3rd division. And the team who wins goes into the 2nd division.

It all worked. Hopefully you were able to follow the tutorial. My compdata files for this example are here if you need to check them:

 
Last edited:

Apollo404

Club Supporter
Next up is getting the promotion and relegation working for the French leagues. I’ve made it so 3 go down from each league (from the existing 2nd division onwards) and 3 go up. If you follow the steps below you should be able to see it is pretty easy to alter this if required.

We are not doing the playoffs just yet, we will do that after this bit is working.

So we need to add to the settings file a relegation from the 2nd League.

The compobj reference for the leagues are as follows:

2nd Division – 906-908
3rd Division – 918-920
4th Division – 921-923
5th Division – 924-926
6th Division – 927-929

The league ids which we are using are
2nd Divison - 17
3rd Division – 66 (18 teams) (Poland)
4th Division – 2012 (16 teams) (China)
5th Division – 350 (16 teams) (Saudi)
6th Division – 349 (20 teams) (Japan)

So in settings we need to add a line to each division to tell it which league to relegate to and another for which one to promoted to. For example, 2nd Division needs a line referencing the relegation division:

906​
info_league_releg
66​
It already has a line to reference the promotion to Ligue 1 so we don’t need to add anything there.

For 3rd Division we add

918​
info_league_promo
17​
918​
info_league_releg
2012​


Continue this until all leagues have the lines added (6th division doesn’t need a releg line). Now we need to tell it which teams to relegate/promote from each division. For promos you need a info_slot_promo line and a info_color_slot_promo line. For relegation you need info_slot_releg and a info_color_slot_releg.
For example. I have added this for the relegation from 2nd Division down to the 3rd division:

908​
info_slot_releg
18​
908​
info_slot_releg
19​
908​
info_slot_releg
20​
908​
info_color_slot_releg
18​
908​
info_color_slot_releg
19​
908​
info_color_slot_releg
20​






Similarly to promote from 3rd Division I have added the following:

920​
info_slot_promo
1​
920​
info_slot_promo
2​
920​
info_slot_promo
3​
920​
info_color_slot_promo
2​
920​
info_color_slot_promo
3​


Note how I have missed out the color slot for promo at 1 because I want to keep the color for the champion different to the others.

Also remember Division 6 don’t add the relegation parts.



Now I’m going to test by running through a season into season 2 to check the teams I expect are promoted and relegated…Tested for a few seasons and all working as expected.





Finally we add the playoffs…

Previously we removed the playoffs for Germany which were using competion ids 21 and 22 so we can re-use these.

I’m just going to add one playoff as an example which can be replicated if you want to. I am going to add a playoff between Ligue 2 and the 3rd division. I have put the playoff tournament at the bottom of the Germany nation in compdata so mine looks like this:


930​
3​
C21TrophyName_Abbr15_21
840​
931​
4​
S1FCE_Setup_Stage
930​
932​
4​
S2FCE_Setup_Stage
930​
933​
4​
S3FCE_Promotion_Playoff_Final
930​
934​
5​
G1
933​

I need to add a reference to the start of the tournament in compids so I have added 930 to compids

I need to add the following lines to settings to show how the tournament works:

930​
info_league_promo
17​
930​
info_league_releg
2012​
930​
asset_id
21​
930​
comp_typePLAYOFF
930​
match_matchimportance
100​
930​
info_prize_money_promo
600000​
931​
match_stagetypeSETUP
932​
match_stagetypeSETUP
932​
advance_calccompavgs
1​
933​
match_stagetypeKO2LEGS
933​
match_matchsituationFINAL
933​
rule_allowadditionalsubon


We need to add lines to advancement to state where the teams are coming from. This should be the 3rd place team in division 3 and the 18th placed team in division 2 so I have added these lines:


908​
18​
934​
1​
920​
3​
934​
2​


I also want to go back to settings and change those positions to show promotion_poss and relegation_poss like they did before:


908​
info_color_slot_promo_poss
5​
908​
info_slot_releg_poss
16​
908​
info_slot_releg
17​
908​
info_slot_releg
18​
908​
info_color_slot_releg_poss
16​
908​
info_color_slot_releg
17​
908​
info_color_slot_releg
18​

and


920​
info_slot_promo
1​
920​
info_slot_promo
2​
920​
info_slot_promo_poss
3​
920​
info_color_slot_promo
2​
920​
info_color_slot_promo_poss
3​


No changes are required in initteams,weather,tasks,objectives.

To standings we need to add slots for the playoff game which is compdata reference 934 for me:

934​
0​
934​
1​

And we need to add a schedule line for the 2 legs of the playoff like this…(it must come after the end of the season)

933​
507​
1​
1​
1​
2000​
933​
510​
2​
1​
1​
2000​

I also added a forcecomp line to both Division 2 and the 3rd division so the player can see it on their tournament list when they are in either of these tournaments:

906​
schedule_forcecomp
930​
and

918​
schedule_forcecomp
930​
Now I am going to test that it works as expected and the team who loses the playoff goes into the 3rd division. And the team who wins goes into the 2nd division.

It all worked. Hopefully you were able to follow the tutorial. My compdata files for this example are here if you need to check them:

I encounter a problem, everything worked, i saw the playoff in my competitions list but when i re-tested on another game, the playoff just vanished and i didn't changed the code
I just changed the playoff logo (which isn't referenced in logos so it was the "undefined" logo) and that's all. So i'm really confuse, i just checked on all compdata files but everything is ok :/
 

Rizzaldio

Youth Team
Make sure you are in one of the leagues which uses it and that you have the forcecomp line added just below assetid for each of those leagues
 

Rizzaldio

Youth Team
For testing purposes it should appear at the very start of the season. Tested it a few times on mine and it’s always there
 

Apollo404

Club Supporter
Everything is ok, i see the schedule_forcecomp under id 17 and 66, everything is ok in advancement, same for compobj so idk...
And yes is take a 3rd division :/
 

Rizzaldio

Youth Team
Can you check the following and let me know the outcome of each test.

1)Test 1st season starting with a 2nd division team - see if it appears

2)Test 1st season starting with 3rd division and see if it appears.

3) Test running through into second season. In the seconds season check that the leagues all have the correct number of teams.

I’m unavailable tonight so there is no rush on this. Backup the files you have any try having a play around with things if you want. It’s a long learning exercise but you might discover some things whilst you are doing it.

I’m going to start building a website/resource tomorrow if anybody is finding this interesting and wants to contribute. I’m thinking a big database full of guides/instructions and assets so people can find things easily without searching around so much
 


Top