Jump to content

Manually editting xml file (notepad) - Relegation Playoff


Giziar

Recommended Posts

Hi guys,

Can someone help me with the following (if it's possible at all that is)

I've created a file for one extra level in Austria so it now has 3 tiers.

However the standard # of relegations from tier 2 is 1 while in reality it should be 1 straight relegation and 1 qualifying for a relegation playout together with the 3 winners of the regional tier 3 divisions.

Not wanting to remove the nation rules completely I hoped I could find a work around by adding the following to tier 2 league rules in the xml file:

<record id="bottom_playoff">

<string id="id" value="1651798130"/>

<string id="type" value="cup"/>

<string id="number_places" value="1"/>

<string id="relegation_places" value="2"/>

<string id="number_lower_division_places" value="3"/>

<string id="index" value="1"/>

</record>

However it doesn't work.

In tier 3 it is showing clubs qualifying for the playoff however in tier 2 no-one qualifies for it.

Is this fixable or not?

Link to post
Share on other sites

No need for advanced rules. You can do this with nation rules, but you have to create them unfortunately.

Was afraid for such an answer :D

Still I knew that if no-one could provide me with help for the manual editing I would have to go that way.

Link to post
Share on other sites

Breakthrough!

I managed to change the relegation rules of the already playable Austrian 1st Division without removing the Nation Rules at all.

It took 2 changes in the xml file by using notepad.

Adding the following lines to the Austrian 1st Division rules was half the work:

<record id="bottom_playoff">

<string id="id" value="1651798130"/>

<string id="type" value="cup"/>

<string id="number_places" value="1"/>

<string id="relegation_places" value="2"/>

<string id="number_lower_division_places" value="3"/>

<string id="index" value="1"/>

</record>

This alone was not enough. 3rd Tier clubs qualified for playoff, 1st Division club not. So new season even didn't get generated.

However with only one minor change it turned into a workable solution.

Again using the Austrian 1st Division rules in the xml file.

Replace <string id="use_game_rules" value="active_comp"/>

With <string id="use_game_rules" value="lower_division"/> and voila it works!

Final result:

Austrian 1st Division relegation rules changed without removing the Nation Rules

1 team still directly relegated

1 team in the relegation playoff together with 3 teams from the tier below. 2 winning teams will be in 1st Division next year.

Link to post
Share on other sites

Great news that you managed to do that! :) I assume you make a lot of people happy!

Would this also mean that all hardcoded / non-recreatable leagues like the MLS can have additions now, without losing the nation rules?

Link to post
Share on other sites

Great news that you managed to do that! :) I assume you make a lot of people happy!

Would this also mean that all hardcoded / non-recreatable leagues like the MLS can have additions now, without losing the nation rules?

That might be the case; for those interested it's certainly worth the try.

Link to post
Share on other sites

  • 1 month later...

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...