League Competition Data Structure

Moderator: Patch Team

John Locke
Patch Team
Posts: 137
Joined: Wed Nov 25, 2020 12:26 am
Has thanked: 90 times
Been thanked: 100 times

League Competition Data Structure

Post by John Locke »

<work in progress>

1C - DWORD - Promotes to division
20 - DWORD - Relegates to division

3E - WORD - Number of clubs in a league or cup

49 - BYTE - Number of subs teams can name
4A - BYTE - Number if subs teams can use

52 - BYTE - Whether or not squad numbers are used (? https://www.champman0102.net/viewtopic.php?p=7563#p7563)

BE - BYTE - Number of teams automatically promoted
BF - BYTE - Number of teams entering promotion play-offs
C0 - BYTE - Number of teams entering relegation play-offs
C1 - BYTE - Number of teams automatically relegated
C2 - BYTE - Points for a win
C3 - BYTE - Points for a draw

Anyone got any more details?
User avatar
xeno
Patch Team
Posts: 403
Joined: Wed Nov 25, 2020 5:01 am
Has thanked: 100 times
Been thanked: 144 times

League Competition Data Structure

Post by xeno »

I have this

************Holland First Division league settings**********
005F6340 /$ 53 PUSH EBX
005F6341 |. 56 PUSH ESI
005F6342 |. 8BF1 MOV ESI,ECX
005F6344 |. B8 02000000 MOV EAX,2
005F6349 |. B1 03 MOV CL,3
005F634B |. BB 01000000 MOV EBX,1
005F6350 |. 66:8946 3C MOV WORD PTR DS:[ESI+3C],AX number of rounds
005F6354 |. 8886 C4000000 MOV BYTE PTR DS:[ESI+C4],AL ?????
005F635A |. 8886 C6000000 MOV BYTE PTR DS:[ESI+C6],AL second tiebreaker
005F6360 |. 33C0 XOR EAX,EAX
005F6362 |. 888E C2000000 MOV BYTE PTR DS:[ESI+C2],CL points for win.
005F6368 |. 889E C3000000 MOV BYTE PTR DS:[ESI+C3],BL points for draw
005F636E |. 885E 42 MOV BYTE PTR DS:[ESI+42],BL ?????
005F6371 |. 889E C5000000 MOV BYTE PTR DS:[ESI+C5],BL first tiebreaker
005F6377 |. 8886 C7000000 MOV BYTE PTR DS:[ESI+C7],AL third tiebreaker
005F637D |. 889E BE000000 MOV BYTE PTR DS:[ESI+BE],BL controls the amount of teams promoted automatically.
005F6383 |. 8886 BF000000 MOV BYTE PTR DS:[ESI+BF],AL controls the amount of teams in promotion play-offs.
005F6389 |. 8886 C0000000 MOV BYTE PTR DS:[ESI+C0],AL controls the amount of teams in relegation play-offs.
005F638F 8886 C1000000 MOV BYTE PTR DS:[ESI+C1],AL controls the amount of teams relegated automatically.
005F6395 8B15 68F59C00 MOV EDX,DWORD PTR DS:[9CF568] promotion to this league
005F639B |. 8886 F1000000 MOV BYTE PTR DS:[ESI+F1],AL adding winner of the 4th period for promotion playoff?
005F63A1 |. 8886 F0000000 MOV BYTE PTR DS:[ESI+F0],AL adding winner of the 3rd period for promotion playoff?
005F63A7 |. 8886 EF000000 MOV BYTE PTR DS:[ESI+EF],AL adding winner of the 2nd period for promotion playoff?
005F63AD |. 8886 EE000000 MOV BYTE PTR DS:[ESI+EE],AL adding winner of the 1sh period for promotion playoff?
005F63B3 |. 50 PUSH EAX
005F63B4 |. 884E 4A MOV BYTE PTR DS:[ESI+4A],CL this line determines how many players you can actually sub
005F63B7 |. 8D46 3A LEA EAX,DWORD PTR DS:[ESI+3A] ?????
005F63BA |. 8D8E A9000000 LEA ECX,DWORD PTR DS:[ESI+A9] ????
005F63C0 |. 8956 1C MOV DWORD PTR DS:[ESI+1C],EDX promote to EDX ( EDX is set as [9CF568] above)
005F63C3 |. 8B16 MOV EDX,DWORD PTR DS:[ESI]
005F63C5 |. 50 PUSH EAX
005F63C6 |. 51 PUSH ECX
005F63C7 |. 6A FF PUSH -1
005F63C9 |. 8BCE MOV ECX,ESI
005F63CB |. C746 20 FFFFFF>MOV DWORD PTR DS:[ESI+20],-1 relegation to this league ( here -1 means no league to relegate or relegation league is set by another code section)
005F63D2 |. C646 49 07 MOV BYTE PTR DS:[ESI+49],7 this line determines how many players you can register as subs
005F63D6 |. FF52 3C CALL DWORD PTR DS:[EDX+3C] CALL to call for fixtures.
005F63D9 |. 8986 BA000000 MOV DWORD PTR DS:[ESI+BA],EAX ???? possibly related with promotion/relegation play-offs
005F63DF |. 8BC3 MOV EAX,EBX
005F63E1 |. 5E POP ESI
005F63E2 |. 5B POP EBX
005F63E3 \. C3 RETN

Edit-1: F1,F0,EF,EE
Edit-2:CALL DWORD PTR DS:[EDX+3C] CALL to call for fixtures.
clipeus
Decent Young Player
Posts: 72
Joined: Wed Nov 25, 2020 7:15 am
Has thanked: 21 times
Been thanked: 8 times

League Competition Data Structure

Post by clipeus »

tiebreaker for what? to be promoted? or relegated? or to win the league?
where are the date of playoffs?
xeno wrote: Sat May 01, 2021 5:53 pm I have this

************Holland First Division league settings**********
005F6340 /$ 53 PUSH EBX
005F6341 |. 56 PUSH ESI
005F6342 |. 8BF1 MOV ESI,ECX
005F6344 |. B8 02000000 MOV EAX,2
005F6349 |. B1 03 MOV CL,3
005F634B |. BB 01000000 MOV EBX,1
005F6350 |. 66:8946 3C MOV WORD PTR DS:[ESI+3C],AX number of rounds
005F6354 |. 8886 C4000000 MOV BYTE PTR DS:[ESI+C4],AL ?????
005F635A |. 8886 C6000000 MOV BYTE PTR DS:[ESI+C6],AL second tiebreaker
005F6360 |. 33C0 XOR EAX,EAX
005F6362 |. 888E C2000000 MOV BYTE PTR DS:[ESI+C2],CL points for win.
005F6368 |. 889E C3000000 MOV BYTE PTR DS:[ESI+C3],BL points for draw
005F636E |. 885E 42 MOV BYTE PTR DS:[ESI+42],BL ?????
005F6371 |. 889E C5000000 MOV BYTE PTR DS:[ESI+C5],BL first tiebreaker
005F6377 |. 8886 C7000000 MOV BYTE PTR DS:[ESI+C7],AL third tiebreaker
005F637D |. 889E BE000000 MOV BYTE PTR DS:[ESI+BE],BL controls the amount of teams promoted automatically.
005F6383 |. 8886 BF000000 MOV BYTE PTR DS:[ESI+BF],AL controls the amount of teams in promotion play-offs.
005F6389 |. 8886 C0000000 MOV BYTE PTR DS:[ESI+C0],AL controls the amount of teams in relegation play-offs.
005F638F 8886 C1000000 MOV BYTE PTR DS:[ESI+C1],AL controls the amount of teams relegated automatically.
005F6395 8B15 68F59C00 MOV EDX,DWORD PTR DS:[9CF568] promotion to this league
005F639B |. 8886 F1000000 MOV BYTE PTR DS:[ESI+F1],AL ???? possibly related with promotion/relegation play-offs , playoff group quantity ?
005F63A1 |. 8886 F0000000 MOV BYTE PTR DS:[ESI+F0],AL ???? possibly related with promotion/relegation play-offs, playoff number of rounds ?
005F63A7 |. 8886 EF000000 MOV BYTE PTR DS:[ESI+EF],AL ???? possibly related with promotion/relegation play-offs, playout group quantity ?
005F63AD |. 8886 EE000000 MOV BYTE PTR DS:[ESI+EE],AL ???? possibly related with promotion/relegation play-offs, playout number of rounds ?
005F63B3 |. 50 PUSH EAX
005F63B4 |. 884E 4A MOV BYTE PTR DS:[ESI+4A],CL this line determines how many players you can actually sub
005F63B7 |. 8D46 3A LEA EAX,DWORD PTR DS:[ESI+3A] ?????
005F63BA |. 8D8E A9000000 LEA ECX,DWORD PTR DS:[ESI+A9] ????
005F63C0 |. 8956 1C MOV DWORD PTR DS:[ESI+1C],EDX promote to EDX ( EDX is set as [9CF568] above)
005F63C3 |. 8B16 MOV EDX,DWORD PTR DS:[ESI]
005F63C5 |. 50 PUSH EAX
005F63C6 |. 51 PUSH ECX
005F63C7 |. 6A FF PUSH -1
005F63C9 |. 8BCE MOV ECX,ESI
005F63CB |. C746 20 FFFFFF>MOV DWORD PTR DS:[ESI+20],-1 relegation to this league ( here -1 means no league to relegate)
005F63D2 |. C646 49 07 MOV BYTE PTR DS:[ESI+49],7 this line determines how many players you can register as subs
005F63D6 |. FF52 3C CALL DWORD PTR DS:[EDX+3C]
005F63D9 |. 8986 BA000000 MOV DWORD PTR DS:[ESI+BA],EAX ???? possibly related with promotion/relegation play-offs
005F63DF |. 8BC3 MOV EAX,EBX
005F63E1 |. 5E POP ESI
005F63E2 |. 5B POP EBX
005F63E3 \. C3 RETN
clipeus
Decent Young Player
Posts: 72
Joined: Wed Nov 25, 2020 7:15 am
Has thanked: 21 times
Been thanked: 8 times

League Competition Data Structure

Post by clipeus »

Holland
first division, we have 2 relegation, 1 direct, 1 with playout
secondo division i see only one direct promotion but i don't understand the second promotions...
User avatar
xeno
Patch Team
Posts: 403
Joined: Wed Nov 25, 2020 5:01 am
Has thanked: 100 times
Been thanked: 144 times

League Competition Data Structure

Post by xeno »

clipeus wrote: Mon May 03, 2021 8:14 pm Holland
first division, we have 2 relegation, 1 direct, 1 with playout
secondo division i see only one direct promotion but i don't understand the second promotions...
You shall check 3.9.68 game again about relegation and promotion in end of a season

Holand Premier relegation: 1 direct + 0-2 playout
Holand First promotion : 1 direct + 0-2 playoff
*Holand First Promotion Play Off system : Play Off Promotion League: Teams 8 (2groups - 6 games) 16th & 17th PD + 2nd , 3rd and winners of the 4 periods >>>>> Promoted 2 (Each Group Winner)
clipeus
Decent Young Player
Posts: 72
Joined: Wed Nov 25, 2020 7:15 am
Has thanked: 21 times
Been thanked: 8 times

League Competition Data Structure

Post by clipeus »

ok!

but usually playoff teams are identified by a line ( like promoted teams )
Why not in First division?

Can we read in the same way Italian Serie C block about promotion and relegation?
It's still my purpose trying to add playoff and play out in Serie B.

Maybe i've to add an entire block and maybe i can copy it from Serie C1 ( obviosly changing the id ).
the problem is always the same.. the date...
xeno wrote: Mon May 03, 2021 8:50 pm
clipeus wrote: Mon May 03, 2021 8:14 pm Holland
first division, we have 2 relegation, 1 direct, 1 with playout
secondo division i see only one direct promotion but i don't understand the second promotions...
You shall check 3.9.68 game again about relegation and promotion in end of a season

Holand Premier relegation: 1 direct + 0-2 playout
Holand First promotion : 1 direct + 0-2 playoff
*Holand First Promotion Play Off system : Play Off Promotion League: Teams 8 (2groups - 6 games) 16th & 17th PD + 2nd , 3rd and winners of the 4 periods >>>>> Promoted 2 (Each Group Winner)
User avatar
riise
Awards Team
Posts: 639
Joined: Mon Jan 20, 2020 8:21 pm
Location: England
Has thanked: 199 times
Been thanked: 171 times

League Competition Data Structure

Post by riise »

I’m actually playing Dutch 1st Division at the moment - teams qualify for playoffs for winning each quarter of the season. At least in theory... I’ve been top after a quarter but other teams have secured the playoff place. I don’t really understand it, but that’s why there’s no obvious playoff zone.
clipeus
Decent Young Player
Posts: 72
Joined: Wed Nov 25, 2020 7:15 am
Has thanked: 21 times
Been thanked: 8 times

League Competition Data Structure

Post by clipeus »

maybe dutch structure isn't the best to understand how to explain a league structure...
User avatar
xeno
Patch Team
Posts: 403
Joined: Wed Nov 25, 2020 5:01 am
Has thanked: 100 times
Been thanked: 144 times

League Competition Data Structure

Post by xeno »

Holland First Division
1st team promote directly
2nd and 3rd go to promotion playoff groups
Each winner of 4 periıds go to promotion playoff groups ( total match schedule is divided into 4 periofs)
2 teams from Hollan Premier ( 16th and 17th) plays playout matches together with 6 teams from Holland First Division in promotion playoff groups
clipeus
Decent Young Player
Posts: 72
Joined: Wed Nov 25, 2020 7:15 am
Has thanked: 21 times
Been thanked: 8 times

League Competition Data Structure

Post by clipeus »

anyway we haven't fould where to change the date to add or remove playoff
User avatar
xeno
Patch Team
Posts: 403
Joined: Wed Nov 25, 2020 5:01 am
Has thanked: 100 times
Been thanked: 144 times

League Competition Data Structure

Post by xeno »

You can ask your request in offset thread
clipeus
Decent Young Player
Posts: 72
Joined: Wed Nov 25, 2020 7:15 am
Has thanked: 21 times
Been thanked: 8 times

League Competition Data Structure

Post by clipeus »

yes but i think it's better in this thread cause it relates to the league structure
clipeus
Decent Young Player
Posts: 72
Joined: Wed Nov 25, 2020 7:15 am
Has thanked: 21 times
Been thanked: 8 times

League Competition Data Structure

Post by clipeus »

other questions:

how can i create space to add playoff block info? with nop?
User avatar
xeno
Patch Team
Posts: 403
Joined: Wed Nov 25, 2020 5:01 am
Has thanked: 100 times
Been thanked: 144 times

League Competition Data Structure

Post by xeno »

52 is for squad numbers. Saturn added to all leagues which has not got 52 in their section
User avatar
xeno
Patch Team
Posts: 403
Joined: Wed Nov 25, 2020 5:01 am
Has thanked: 100 times
Been thanked: 144 times

League Competition Data Structure

Post by xeno »

clipeus wrote: Mon May 03, 2021 7:52 pm tiebreaker for what? to be promoted? or relegated? or to win the league?
where are the date of playoffs?
xeno wrote: Sat May 01, 2021 5:53 pm I have this

************Holland First Division league settings**********
005F6340 /$ 53 PUSH EBX
005F6341 |. 56 PUSH ESI
005F6342 |. 8BF1 MOV ESI,ECX
005F6344 |. B8 02000000 MOV EAX,2
005F6349 |. B1 03 MOV CL,3
005F634B |. BB 01000000 MOV EBX,1
005F6350 |. 66:8946 3C MOV WORD PTR DS:[ESI+3C],AX number of rounds
005F6354 |. 8886 C4000000 MOV BYTE PTR DS:[ESI+C4],AL ?????
005F635A |. 8886 C6000000 MOV BYTE PTR DS:[ESI+C6],AL second tiebreaker
005F6360 |. 33C0 XOR EAX,EAX
005F6362 |. 888E C2000000 MOV BYTE PTR DS:[ESI+C2],CL points for win.
005F6368 |. 889E C3000000 MOV BYTE PTR DS:[ESI+C3],BL points for draw
005F636E |. 885E 42 MOV BYTE PTR DS:[ESI+42],BL ?????
005F6371 |. 889E C5000000 MOV BYTE PTR DS:[ESI+C5],BL first tiebreaker
005F6377 |. 8886 C7000000 MOV BYTE PTR DS:[ESI+C7],AL third tiebreaker
005F637D |. 889E BE000000 MOV BYTE PTR DS:[ESI+BE],BL controls the amount of teams promoted automatically.
005F6383 |. 8886 BF000000 MOV BYTE PTR DS:[ESI+BF],AL controls the amount of teams in promotion play-offs.
005F6389 |. 8886 C0000000 MOV BYTE PTR DS:[ESI+C0],AL controls the amount of teams in relegation play-offs.
005F638F 8886 C1000000 MOV BYTE PTR DS:[ESI+C1],AL controls the amount of teams relegated automatically.
005F6395 8B15 68F59C00 MOV EDX,DWORD PTR DS:[9CF568] promotion to this league
005F639B |. 8886 F1000000 MOV BYTE PTR DS:[ESI+F1],AL ???? possibly related with promotion/relegation play-offs , playoff group quantity ?
005F63A1 |. 8886 F0000000 MOV BYTE PTR DS:[ESI+F0],AL ???? possibly related with promotion/relegation play-offs, playoff number of rounds ?
005F63A7 |. 8886 EF000000 MOV BYTE PTR DS:[ESI+EF],AL ???? possibly related with promotion/relegation play-offs, playout group quantity ?
005F63AD |. 8886 EE000000 MOV BYTE PTR DS:[ESI+EE],AL ???? possibly related with promotion/relegation play-offs, playout number of rounds ?
005F63B3 |. 50 PUSH EAX
005F63B4 |. 884E 4A MOV BYTE PTR DS:[ESI+4A],CL this line determines how many players you can actually sub
005F63B7 |. 8D46 3A LEA EAX,DWORD PTR DS:[ESI+3A] ?????
005F63BA |. 8D8E A9000000 LEA ECX,DWORD PTR DS:[ESI+A9] ????
005F63C0 |. 8956 1C MOV DWORD PTR DS:[ESI+1C],EDX promote to EDX ( EDX is set as [9CF568] above)
005F63C3 |. 8B16 MOV EDX,DWORD PTR DS:[ESI]
005F63C5 |. 50 PUSH EAX
005F63C6 |. 51 PUSH ECX
005F63C7 |. 6A FF PUSH -1
005F63C9 |. 8BCE MOV ECX,ESI
005F63CB |. C746 20 FFFFFF>MOV DWORD PTR DS:[ESI+20],-1 relegation to this league ( here -1 means no league to relegate)
005F63D2 |. C646 49 07 MOV BYTE PTR DS:[ESI+49],7 this line determines how many players you can register as subs
005F63D6 |. FF52 3C CALL DWORD PTR DS:[EDX+3C]
005F63D9 |. 8986 BA000000 MOV DWORD PTR DS:[ESI+BA],EAX ???? possibly related with promotion/relegation play-offs
005F63DF |. 8BC3 MOV EAX,EBX
005F63E1 |. 5E POP ESI
005F63E2 |. 5B POP EBX
005F63E3 \. C3 RETN
Tiebreaker for league positions, 3 different one which are applied by order
clipeus
Decent Young Player
Posts: 72
Joined: Wed Nov 25, 2020 7:15 am
Has thanked: 21 times
Been thanked: 8 times

League Competition Data Structure

Post by clipeus »

ok ok i understand, now i need to understand how to add a block of informations



xeno wrote: Wed May 05, 2021 5:24 pm
clipeus wrote: Mon May 03, 2021 7:52 pm tiebreaker for what? to be promoted? or relegated? or to win the league?
where are the date of playoffs?
xeno wrote: Sat May 01, 2021 5:53 pm I have this

************Holland First Division league settings**********
005F6340 /$ 53 PUSH EBX
005F6341 |. 56 PUSH ESI
005F6342 |. 8BF1 MOV ESI,ECX
005F6344 |. B8 02000000 MOV EAX,2
005F6349 |. B1 03 MOV CL,3
005F634B |. BB 01000000 MOV EBX,1
005F6350 |. 66:8946 3C MOV WORD PTR DS:[ESI+3C],AX number of rounds
005F6354 |. 8886 C4000000 MOV BYTE PTR DS:[ESI+C4],AL ?????
005F635A |. 8886 C6000000 MOV BYTE PTR DS:[ESI+C6],AL second tiebreaker
005F6360 |. 33C0 XOR EAX,EAX
005F6362 |. 888E C2000000 MOV BYTE PTR DS:[ESI+C2],CL points for win.
005F6368 |. 889E C3000000 MOV BYTE PTR DS:[ESI+C3],BL points for draw
005F636E |. 885E 42 MOV BYTE PTR DS:[ESI+42],BL ?????
005F6371 |. 889E C5000000 MOV BYTE PTR DS:[ESI+C5],BL first tiebreaker
005F6377 |. 8886 C7000000 MOV BYTE PTR DS:[ESI+C7],AL third tiebreaker
005F637D |. 889E BE000000 MOV BYTE PTR DS:[ESI+BE],BL controls the amount of teams promoted automatically.
005F6383 |. 8886 BF000000 MOV BYTE PTR DS:[ESI+BF],AL controls the amount of teams in promotion play-offs.
005F6389 |. 8886 C0000000 MOV BYTE PTR DS:[ESI+C0],AL controls the amount of teams in relegation play-offs.
005F638F 8886 C1000000 MOV BYTE PTR DS:[ESI+C1],AL controls the amount of teams relegated automatically.
005F6395 8B15 68F59C00 MOV EDX,DWORD PTR DS:[9CF568] promotion to this league
005F639B |. 8886 F1000000 MOV BYTE PTR DS:[ESI+F1],AL ???? possibly related with promotion/relegation play-offs , playoff group quantity ?
005F63A1 |. 8886 F0000000 MOV BYTE PTR DS:[ESI+F0],AL ???? possibly related with promotion/relegation play-offs, playoff number of rounds ?
005F63A7 |. 8886 EF000000 MOV BYTE PTR DS:[ESI+EF],AL ???? possibly related with promotion/relegation play-offs, playout group quantity ?
005F63AD |. 8886 EE000000 MOV BYTE PTR DS:[ESI+EE],AL ???? possibly related with promotion/relegation play-offs, playout number of rounds ?
005F63B3 |. 50 PUSH EAX
005F63B4 |. 884E 4A MOV BYTE PTR DS:[ESI+4A],CL this line determines how many players you can actually sub
005F63B7 |. 8D46 3A LEA EAX,DWORD PTR DS:[ESI+3A] ?????
005F63BA |. 8D8E A9000000 LEA ECX,DWORD PTR DS:[ESI+A9] ????
005F63C0 |. 8956 1C MOV DWORD PTR DS:[ESI+1C],EDX promote to EDX ( EDX is set as [9CF568] above)
005F63C3 |. 8B16 MOV EDX,DWORD PTR DS:[ESI]
005F63C5 |. 50 PUSH EAX
005F63C6 |. 51 PUSH ECX
005F63C7 |. 6A FF PUSH -1
005F63C9 |. 8BCE MOV ECX,ESI
005F63CB |. C746 20 FFFFFF>MOV DWORD PTR DS:[ESI+20],-1 relegation to this league ( here -1 means no league to relegate)
005F63D2 |. C646 49 07 MOV BYTE PTR DS:[ESI+49],7 this line determines how many players you can register as subs
005F63D6 |. FF52 3C CALL DWORD PTR DS:[EDX+3C]
005F63D9 |. 8986 BA000000 MOV DWORD PTR DS:[ESI+BA],EAX ???? possibly related with promotion/relegation play-offs
005F63DF |. 8BC3 MOV EAX,EBX
005F63E1 |. 5E POP ESI
005F63E2 |. 5B POP EBX
005F63E3 \. C3 RETN
Tiebreaker for league positions, 3 different one which are applied by order
clipeus
Decent Young Player
Posts: 72
Joined: Wed Nov 25, 2020 7:15 am
Has thanked: 21 times
Been thanked: 8 times

League Competition Data Structure

Post by clipeus »

This is an extract from Italian Serie B code by CM Tagged updated with your help
maybe i can add this four line to have the playoff but how to have space ?

005F639B |. 8886 F1000000 MOV BYTE PTR DS:[ESI+F1],AL adding winner of the 4th period for promotion playoff?
005F63A1 |. 8886 F0000000 MOV BYTE PTR DS:[ESI+F0],AL adding winner of the 3rd period for promotion playoff?
005F63A7 |. 8886 EF000000 MOV BYTE PTR DS:[ESI+EF],AL adding winner of the 2nd period for promotion playoff?
005F63AD |. 8886 EE000000 MOV BYTE PTR DS:[ESI+EE],AL adding winner of the 1sh period for promotion playoff?

006468A0 /$ 53 PUSH EBX
006468A1 |. 56 PUSH ESI
006468A2 |. 8BF1 MOV ESI,ECX
006468A4 |. BB 01000000 MOV EBX,1
006468A9 |. B9 02000000 MOV ECX,2
006468AE |. 33C0 XOR EAX,EAX
006468B0 |. B2 04 MOV DL,4
006468B2 |. 66:894E 3C MOV WORD PTR DS:[ESI+3C],CX
006468B6 |. C686 C2000000 >MOV BYTE PTR DS:[ESI+C2],3
006468BD |. 889E C3000000 MOV BYTE PTR DS:[ESI+C3],BL BL=1
006468C3 |. 888E C4000000 MOV BYTE PTR DS:[ESI+C4],CL CL=2
006468C9 |. 66:8986 AB0000>MOV WORD PTR DS:[ESI+AB],AX
006468D0 |. 66:8986 DB0000>MOV WORD PTR DS:[ESI+DB],AX
006468D7 |. 885E 42 MOV BYTE PTR DS:[ESI+42],BL
006468DA |. 889E C5000000 MOV BYTE PTR DS:[ESI+C5],BL
006468E0 |. 888E C6000000 MOV BYTE PTR DS:[ESI+C6],CL
006468E6 |. 8896 C7000000 MOV BYTE PTR DS:[ESI+C7],DL DL=4
006468EC |. 8886 C8000000 MOV BYTE PTR DS:[ESI+C8],AL AL=0
006468F2 |. 8896 BE000000 MOV BYTE PTR DS:[ESI+BE],DL nr of teams automatically promoted
006468F8 |. 8886 BF000000 MOV BYTE PTR DS:[ESI+BF],AL nr of teams entering playoff promotion
006468FE |. 8886 C0000000 MOV BYTE PTR DS:[ESI+C0],AL nr of teams entering playoff relegation
00646904 |. 8896 C1000000 MOV BYTE PTR DS:[ESI+C1],DL nr of teams automatically relegated
0064690A |. 8B15 70F59C00 MOV EDX,DWORD PTR DS:[9CF570=[ITALIAN_SERIE_A]] promoted to
00646910 |. 50 PUSH EAX
00646911 |. 8956 1C MOV DWORD PTR DS:[ESI+1C],EDX
00646914 |. 8B15 78F59C00 MOV EDX,DWORD PTR DS:[9CF578=[ITALIAN_SERIE_C1_A]]
0064691A |. 808E D9000000 >OR BYTE PTR DS:[ESI+D9],40
00646921 |. 884E 52 MOV BYTE PTR DS:[ESI+52],CL
00646924 |. 8D46 3A LEA EAX,DWORD PTR DS:[ESI+3A]
00646927 |. 8D8E A9000000 LEA ECX,DWORD PTR DS:[ESI+A9]
0064692D |. 8956 20 MOV DWORD PTR DS:[ESI+20],EDX relegated to
00646930 |. 8B16 MOV EDX,DWORD PTR DS:[ESI]
00646932 |. 50 PUSH EAX
00646933 |. 51 PUSH ECX
00646934 |. 6A FF PUSH -1
00646936 |. 8BCE MOV ECX,ESI
00646938 |. C646 49 07 MOV BYTE PTR DS:[ESI+49],7 //League.NumberOfSubsNamed
0064693C |. C646 4A 03 MOV BYTE PTR DS:[ESI+4A],3 //League.NumberOfSubsUsed
00646940 |. 899E E6000000 MOV DWORD PTR DS:[ESI+E6],EBX
00646946 |. FF52 3C CALL DWORD PTR DS:[EDX+3C]
00646949 |. 8986 BA000000 MOV DWORD PTR DS:[ESI+BA],EAX
0064694F |. 8BC3 MOV EAX,EBX
00646951 |. 5E POP ESI
00646952 |. 5B POP EBX
00646953 \. C3 RETN
User avatar
xeno
Patch Team
Posts: 403
Joined: Wed Nov 25, 2020 5:01 am
Has thanked: 100 times
Been thanked: 144 times

League Competition Data Structure

Post by xeno »

Holland is not a good sample for your playoff ,I think
What kind of playoff you want?
clipeus
Decent Young Player
Posts: 72
Joined: Wed Nov 25, 2020 7:15 am
Has thanked: 21 times
Been thanked: 8 times

League Competition Data Structure

Post by clipeus »

well in Serie B we've 2 automatic promotions and 1 from playoffs from third place to eighth, but i think it's a little bit difficult.
It's better to have playoffs from third to sixth ( 4 teams )
User avatar
xeno
Patch Team
Posts: 403
Joined: Wed Nov 25, 2020 5:01 am
Has thanked: 100 times
Been thanked: 144 times

League Competition Data Structure

Post by xeno »

E:\dev\CM3\cm3 00-01\cm3\code\comp\leagues\eng_first.cpp is better for you, here is playoff with 4 teams.
But , below section is not enough , need to find and add fixtures and team selection sections into your league

00572D90 /$ 56 PUSH ESI
00572D91 |. 8BF1 MOV ESI,ECX
00572D93 |. B8 02000000 MOV EAX,2
00572D98 |. B1 03 MOV CL,3
00572D9A |. 66:8946 3C MOV WORD PTR DS:[ESI+3C],AX
00572D9E |. 888E C2000000 MOV BYTE PTR DS:[ESI+C2],CL
00572DA4 |. C686 C3000000 >MOV BYTE PTR DS:[ESI+C3],1
00572DAB |. 8886 C4000000 MOV BYTE PTR DS:[ESI+C4],AL
00572DB1 |. C646 42 01 MOV BYTE PTR DS:[ESI+42],1
00572DB5 |. C686 C5000000 >MOV BYTE PTR DS:[ESI+C5],1
00572DBC |. 8886 C6000000 MOV BYTE PTR DS:[ESI+C6],AL
00572DC2 |. 888E C7000000 MOV BYTE PTR DS:[ESI+C7],CL
00572DC8 |. 8886 BE000000 MOV BYTE PTR DS:[ESI+BE],AL
00572DCE |. C686 BF000000 >MOV BYTE PTR DS:[ESI+BF],4
00572DD5 |. C686 C0000000 >MOV BYTE PTR DS:[ESI+C0],0
00572DDC |. 888E C1000000 MOV BYTE PTR DS:[ESI+C1],CL
00572DE2 |. 8B15 BCF59C00 MOV EDX,DWORD PTR DS:[9CF5BC]
00572DE8 |. 6A 00 PUSH 0
00572DEA |. 8956 1C MOV DWORD PTR DS:[ESI+1C],EDX
00572DED |. 8B15 C4F59C00 MOV EDX,DWORD PTR DS:[9CF5C4]
00572DF3 |. 884E 4A MOV BYTE PTR DS:[ESI+4A],CL
00572DF6 |. 8956 20 MOV DWORD PTR DS:[ESI+20],EDX
00572DF9 |. 8D4E 3A LEA ECX,DWORD PTR DS:[ESI+3A]
00572DFC |. 8D96 A9000000 LEA EDX,DWORD PTR DS:[ESI+A9]
00572E02 |. 8846 52 MOV BYTE PTR DS:[ESI+52],AL
00572E05 |. 8B06 MOV EAX,DWORD PTR DS:[ESI]
00572E07 |. 51 PUSH ECX
00572E08 |. 52 PUSH EDX
00572E09 |. 6A FF PUSH -1
00572E0B |. 8BCE MOV ECX,ESI
00572E0D |. C646 49 05 MOV BYTE PTR DS:[ESI+49],5
00572E11 |. FF50 3C CALL DWORD PTR DS:[EAX+3C]
00572E14 |. 8986 BA000000 MOV DWORD PTR DS:[ESI+BA],EAX
00572E1A |. B8 01000000 MOV EAX,1
00572E1F |. 5E POP ESI
00572E20 \. C3 RETN
clipeus
Decent Young Player
Posts: 72
Joined: Wed Nov 25, 2020 7:15 am
Has thanked: 21 times
Been thanked: 8 times

League Competition Data Structure

Post by clipeus »

but where ? where can i find something similiar?
clipeus
Decent Young Player
Posts: 72
Joined: Wed Nov 25, 2020 7:15 am
Has thanked: 21 times
Been thanked: 8 times

League Competition Data Structure

Post by clipeus »

3E - WORD - nr of clubs in a league or cup ( from cm tagged by JL ) :)
clipeus
Decent Young Player
Posts: 72
Joined: Wed Nov 25, 2020 7:15 am
Has thanked: 21 times
Been thanked: 8 times

League Competition Data Structure

Post by clipeus »

57 - DWORD - club division
clipeus
Decent Young Player
Posts: 72
Joined: Wed Nov 25, 2020 7:15 am
Has thanked: 21 times
Been thanked: 8 times

League Competition Data Structure

Post by clipeus »

5B - DWORD - club last division ( i see it in italian cup but why? )
User avatar
xeno
Patch Team
Posts: 403
Joined: Wed Nov 25, 2020 5:01 am
Has thanked: 100 times
Been thanked: 144 times

League Competition Data Structure

Post by xeno »

clipeus wrote: Fri May 07, 2021 5:06 pm 5B - DWORD - club last division ( i see it in italian cup but why? )
for 5F - BYTE - club.lastPosition
Post Reply