Geschrieben 16. Dezember 2009 - 11:55
Akchir sagte am 16.12.2009 - 0:45:
I
created an utopian Lithuanian (30/1E) football league (actually used a
professional, indoor and amateur football teams names and logos).
League structure 1-1-2-4-8-8 (teams per level 1x20, 1x20, 2x20, 4x20,
8x20 and 8x24).
And about limit of teams per round - I tried it with FM07 or FM08 and
if number of teams per round exceeded 64, tournament got bugged (eg
some teams participated in the tournament twice). It may be possible,
that the "disease" has been healed, but the fact remains that it's
impossible to crate tournament for 512 teams
Maybe maximum pool limit?
I am very grateful that you are determined to give me some advices,
because I really lost about relegation rounds. In fact I'm not sure
where relegation rounds should be scripted
So it's safe to assume that you've never really played around with the scripts in the countryXX.sav or LgX.txt files.
All this depends on 2 assumptions that you should probably test before doing anything else:
1. that on of two commands will work if used in the cupalloc.txt file:
a. GET_WINNER, { XX, RELEGATION, Y }
b. GET_CHAMP, { XX, RELEGATION, Y }
2. that relegation rounds either don't have a limit on the number of
teams or that that limit is at least as high as the number of teams you
want in the in your qualifying rounds. The most I've ever taken note of
is 80
I've never thought to test either of these things before.
Obviously it's not a simple matter, but if you're good at paying
attention to details you should be able to handle it, the relegation
rounds need to be placed in your countryXX.sav file (I can't say I know
what country number lithuania is off the top of my head but you can
find that in the editor) though it's generally a better idea to create
an LgX.txt file, which can be made via a relatively simple copy paste
out of the countryXX.sav file.
okay, here are the steps:
1. find out what the country ID is for lithuania (which I'll call XX henceforth)
2. create a backup of of countryXX.sav from the database folder
3. open countryXX.sav
4. create a new text file in the scripts folder name it LgXX.txt
5. in countryXX.sav copy everything between the lines
%INDEX%COMPETITION and the INDEX%COMPX that contains cup data and paste
it into the LgXX.txt file(note that this will be several pages of text)
6. now you need to change all the INDEX%COMPX to INDEX%LGX and
INDEXEND%COMPX to INDEXEND%LGX (in notepad or wordpad you should be
able to just use the "replace all" command.)
7. now for an extremely tedious step, every single league will has two
line that you need to remove, why the lg and country files have a
different setup is strange but unfortunately they do, you'll see
something along the lines of this in each league section (the lines in
red need to be removed, the line in blue is important later)
%INDEXEND%FIXTURE
0
545000
50000
400000
7
0
18-1
65535
3
0
00
2
GET_POOL, {25, POOL, 0}
0
10
GET_TAB_SPARE
so basically the sixth and seventh lines after %INDEXEND%FIXTURE need to be removed
8. now that line in blue, is important because you'll be replacing that
0 with a call to the first 'relegation' round (or a pool if you want to
randomly sort the teams before the round) in one (or more) of your
country sections, however you first need to figure out which league(s)
to put it in, this is potentially very important. so once you've
decided which league(s) will call it change the zero to { XX,
RELEGATION, 0 } (or { XX, POOL, 10 } if you want to sort the teams)
before we get to scripting the rounds (and before getting to step 8.)
you need to decide on the format of the cup, are all 512 teams going to
start at the at this point (I'm guessing not) basically what round will
the teams of each league start
to give you and idea of what I'm looking for here's a possible example
(the qual rounds are the rounds that will be scripted as relegation
rounds the regular rounds will be scripted in the cupalloc.txt file):
round / teams in round / new teams this round
Qual1 / 288 / 288 (random teams from 5th and 6th level)
Qual2 / 288 / 144 (20 teams from each league on 4th level + 64 random teams from 5th and 6th)
Qual3 / 144 / 0
Qual4 / 72 / 0
Qual5 / 36 / 0
1st / 56 / 20 (bottom ten teams from each league on 3rd level)
2nd / 48 / 20 (top ten teams from each league on 3rd level)
3rd / 64 / 40 (1st and 2nd leagues)
4th / 32 / 0
5th / 16 / 0
qf / 8 / 0
sf / 4 / 0
f / 2 / 0
once I have an idea of the format I can give more specific details on scripting the rounds (and sorting pool)
Dieser Beitrag wurde von
otherdumbname bearbeitet: 16. Dezember 2009 - 11:58