Willkommen, Gast ( Anmelden | Registrierung )
![]() ![]() |
02.06.2009 - 7:42
Beitrag
#1
|
|
|
Gruppe: User
Beiträge: 193 Beigetreten: 22.10.2008 Mitglieds-Nr.: 16 |
Hi guys,
I've created a script for Netherlands: 1-1-6-6, but now I need to create the relegation and I have no idea how to fix that. it's for 2nd division to 3rd division. the bottom 2 from 2nd division + winners 6 leagues=8 teams. They compete in 2 groups. The winners compete to each other and the winner from this final round promotes to 2nd division. Edit: League system Belgium edited, looks now like this: 1-1-2-4-9 I need an apart relegation script for 4-9, otherwise it'll crash for sure Der Beitrag wurde von Mcack1 bearbeitet: 02.06.2009 - 9:08 |
|
|
|
02.06.2009 - 15:52
Beitrag
#2
|
|
|
Gruppe: User
Beiträge: 151 Beigetreten: 23.10.2008 Mitglieds-Nr.: 631 |
I don't get it, by the way you explained it, there is only one team promoting but two places vacant...
Why the final match between the two group winners? That gives only one team to promote... Wouldn't be enough promoting these two group winners? No fusion, no purchase. |
|
|
|
02.06.2009 - 15:58
Beitrag
#3
|
|
|
Gruppe: User
Beiträge: 431 Beigetreten: 14.02.2009 Mitglieds-Nr.: 7,110 |
Hi guys, I've created a script for Netherlands: 1-1-6-6, but now I need to create the relegation and I have no idea how to fix that. it's for 2nd division to 3rd division. the bottom 2 from 2nd division + winners 6 leagues=8 teams. They compete in 2 groups. The winners compete to each other and the winner from this final round promotes to 2nd division. Edit: League system Belgium edited, looks now like this: 1-1-2-4-9 I need an apart relegation script for 4-9, otherwise it'll crash for sure Nice Belgium also fixed now.? That's great mate. hope someone can help you with the relegation. ![]() What have happend to my signature? :S |
|
|
|
02.06.2009 - 18:33
Beitrag
#4
|
|
|
Gruppe: User
Beiträge: 193 Beigetreten: 22.10.2008 Mitglieds-Nr.: 16 |
I don't get it, by the way you explained it, there is only one team promoting but two places vacant... Why the final match between the two group winners? That gives only one team to promote... Wouldn't be enough promoting these two group winners? No u're right. But in the end only one team promotes. sure of that. 2 groups of 4, winners compete, winner of this match promotes; so only one 1 team from 2nd division can relegate |
|
|
|
02.06.2009 - 20:25
Beitrag
#5
|
|
|
Gruppe: User
Beiträge: 151 Beigetreten: 23.10.2008 Mitglieds-Nr.: 631 |
OK then, 8 teams, one spot. Steps would be:
1.- Create a POOL with these 8 teams. This pool must be invoked by both Eerste divisie and Hoofs..divisie (can't remember the name xD) when they are finished. 2.- Then, the pool must invoke a LEAGUE with one level and two groups with four teams each. When this league ends it must invoke step 3. 3.- Create a one-round RELEGATION with the winners of each group. 4.- Finally, use GET_WINNER, GET_LOSER, GET_TAB to add the winner, loser, rest of teams to the respective final pools for the next season. I hope it helped. You can post excerpts of the script here, it may be easier to make corrections as it goes along. No fusion, no purchase. |
|
|
|
03.06.2009 - 8:32
Beitrag
#6
|
|
|
Gruppe: User
Beiträge: 193 Beigetreten: 22.10.2008 Mitglieds-Nr.: 16 |
yea..i'm not really familiarized with the scripting stuff, though
i created those leagues all by myself i know odb has created some great tutorial and downloaded all his scripts, but now his site has gone in vain....or he just took it offline:P so where to find these tutorials now? |
|
|
|
03.06.2009 - 9:30
Beitrag
#7
|
|
|
Gruppe: User
Beiträge: 149 Beigetreten: 25.10.2008 Mitglieds-Nr.: 832 |
yea..i'm not really familiarized with the scripting stuff, though i created those leagues all by myself i know odb has created some great tutorial and downloaded all his scripts, but now his site has gone in vain....or he just took it offline:P so where to find these tutorials now? You can find them on Hellas' website. One day I may redo them as that I have learned a few new things, but I'm finding myself quite removed from the whole thing, tired of spending ridiculous amounts of time editting scripts, to make them perfect for the first two seasons, just to find out that after that the game starts to ignore various parts of the scripts, my Ireland script comes completely unravelled starting in the third season, for seemingly no reason. ni neart go cur le chéile! |
|
|
|
03.06.2009 - 10:30
Beitrag
#8
|
|
|
Gruppe: User
Beiträge: 193 Beigetreten: 22.10.2008 Mitglieds-Nr.: 16 |
I have this relegation script now
DB_ROUND { -34, RELEGATION, 0 } "Div. 1 Play-Off","Nacompetitie Play-Offs","D1 Play-Off","The Champ. PlayOff","Play-Off Div. 1" 8 ROUND_1 345 345 BEG_2ND_LEG 348 348 BEG_2ND_LEG, BEG_WITH_EXTRA_TIME, BEG_WITH_PENALTY 0 0 0 0 3 1 { -34, LEAGUE, 1 } { -34, RELEGATION, 1 } 8 GET_TAB_X_TO_Y, { -14, LEAGUE, 0} 16 0 GET_TAB_X_TO_Y, { -34, LEAGUE, 0} 17 0 GET_TAB_X_TO_Y, { -34, LEAGUE, 1} 7 1 GET_TAB_X_TO_Y, { -34, LEAGUE, 1} 6 1 GET_TAB_X_TO_Y, { -34, LEAGUE, 1} 5 1 GET_TAB_X_TO_Y, { -34, LEAGUE, 1} 4 1 GET_TAB_X_TO_Y, { -34, LEAGUE, 1} 3 1 GET_TAB_X_TO_Y, { -34, LEAGUE, 1} 2 1 %INDEXEND%LG20 for the first round I wantd to it for the relegation between 1st and 2nd division. nr 16/17 from eredivisie compete against nr 2,3,4,5,6,7 from 2nd division. is a total of 8 teams. to keep it simple i wanted a knock-out system. so 4 winners after 1st round, 2 winners after 2nd round-->promoted does it look ok? gr Anil |
|
|
|
03.06.2009 - 17:21
Beitrag
#9
|
|
|
Gruppe: User
Beiträge: 151 Beigetreten: 23.10.2008 Mitglieds-Nr.: 631 |
Corrections in red.
Comments in blue /* */ (not to be included). DB_ROUND { -34, RELEGATION, 0 } "Div. 1 Play-Off","Nacompetitie Play-Offs","D1 Play-Off","The Champ. PlayOff","Play-Off Div. 1" 8 ROUND_1 345 345 BEG_2ND_LEG 348 348 BEG_2ND_LEG, BEG_WITH_EXTRA_TIME, BEG_WITH_PENALTY 0 0 0 0 3 1 { -34, LEAGUE, 0 },{ -34, LEAGUE, 1 } /* also wait for Eeredivisie to finish */ { -34, RELEGATION, 1 } 2 /* simplified */ GET_TAB_X_TO_Y, { -34, LEAGUE, 0} 16 2 GET_TAB_X_TO_Y, { -34, LEAGUE, 1} 2 6 %INDEXEND%LG20 Cheers! No fusion, no purchase. |
|
|
|
03.06.2009 - 17:52
Beitrag
#10
|
|
|
Gruppe: User
Beiträge: 151 Beigetreten: 23.10.2008 Mitglieds-Nr.: 631 |
tired of spending ridiculous amounts of time editting scripts, to make them perfect for the first two seasons, just to find out that after that the game starts to ignore various parts of the scripts, my Ireland script comes completely unravelled starting in the third season, for seemingly no reason. Dear ODN, I fully sympathize with you; I have also spent months to extend the Spanish lower leagues, and when the second season starts, teams get sorted by some occult devilish law I think the POOL_SORT_MAP_LEAGUE flag is way too much impositive, we need some instruments to tame it down, like the one I propose in my signature. Cheers No fusion, no purchase. |
|
|
|
04.06.2009 - 7:04
Beitrag
#11
|
|
|
Gruppe: User
Beiträge: 193 Beigetreten: 22.10.2008 Mitglieds-Nr.: 16 |
quote name='Arinsau' date='03.06.2009 - 17:21' post='100575']
Corrections in red. Comments in blue /* */ (not to be included). DB_ROUND { -34, RELEGATION, 0 } "Div. 1 Play-Off","Nacompetitie Play-Offs","D1 Play-Off","The Champ. PlayOff","Play-Off Div. 1" 8 ROUND_1 345 345 BEG_2ND_LEG 348 348 BEG_2ND_LEG, BEG_WITH_EXTRA_TIME, BEG_WITH_PENALTY 0 0 0 0 3 1 { 34, LEAGUE, 0 },{ -34, LEAGUE, 1 } { RELEGATION, 1 } 2 GET_TAB_X_TO_Y, { -34, LEAGUE, 0} 16 2what does this number mean? GET_TAB_X_TO_Y, { -34, LEAGUE, 1} 2 6why are these 2 and 6 in opposite? I thought I mean in opposite from 16-2, I found it rather logical to put it like 6-2 instead of 2-6. %INDEXEND%LG20 Cheers! [/quote] |
|
|
|
04.06.2009 - 7:09
Beitrag
#12
|
|
|
Gruppe: User
Beiträge: 193 Beigetreten: 22.10.2008 Mitglieds-Nr.: 16 |
oh wait..I guess I figured it out.
16 2 means nr 16 from the league and is part of the 2 clubs who'll play play-offs. and 2 6 means nr 2 from the 2nd division and is part from the 6 clubs who'll play play-offs. ..hmm..maybe not.. gotta look further.. should it be like this then? %INDEX%LG20 ; -------------------------------------- DB_ROUND { -34, RELEGATION, 0 } "Div. 1 Play-Off","Nacompetitie Play-Offs","D1 Play-Off","The Champ. PlayOff","Play-Off Div. 1" 8 ROUND_1 345 345 BEG_2ND_LEG 348 348 BEG_2ND_LEG, BEG_WITH_EXTRA_TIME, BEG_WITH_PENALTY 0 0 0 0 3 1 { -34, LEAGUE, 0 }, { -34, LEAGUE, 1 } { -34, RELEGATION, 1 } 8 GET_TAB_X_TO_Y, { -14, LEAGUE, 0} 16 2 GET_TAB_X_TO_Y, { -34, LEAGUE, 0} 17 2 GET_TAB_X_TO_Y, { -34, LEAGUE, 1} 1 6 GET_TAB_X_TO_Y, { -34, LEAGUE, 1} 2 6 GET_TAB_X_TO_Y, { -34, LEAGUE, 1} 3 6 GET_TAB_X_TO_Y, { -34, LEAGUE, 1} 4 6 GET_TAB_X_TO_Y, { -34, LEAGUE, 1} 5 6 GET_TAB_X_TO_Y, { -34, LEAGUE, 1} 6 6 %INDEXEND%LG20 Der Beitrag wurde von Mcack1 bearbeitet: 04.06.2009 - 8:02 |
|
|
|
04.06.2009 - 13:48
Beitrag
#13
|
|
|
Gruppe: User
Beiträge: 149 Beigetreten: 25.10.2008 Mitglieds-Nr.: 832 |
I find myself wondering why your implementing this as a playoff structure instead of a League structure, wouldn't something like this be a better representation:
%INDEX%COMP29 DB_POOL { 34, POOL, 15 } 0 8 ; how many comps to check 0 ; which comps to check 0 0 0 0 3 1 { 34, LEAGUE, 1 },{ 34, LEAGUE, 0 } { 34, RELEGATION, 1 },{ 34, RELEGATION, 2 } 2 GET_TAB_X_TO_Y, {34, LEAGUE, 0} 16 2 GET_TAB_X_TO_Y, {34, LEAGUE, 1} 2 6 %INDEXEND%COMP29 %INDEX%COMP30 DB_LEAGUE { 34, RELEGATION, 1 } "Nacompetitie A","Nacompetitie A","Nacompetitie A","Nacompetitie A","Nacompetitie A","Nacompetitie A" 4 1 REL_RULE_0 0 2 ROUND_GROUP1 100 100 ; %INDEX%TEAMS 2a0001,2a0002,2a0003,2a0004 %INDEXEND%TEAMS ; %INDEX%MATCHDAYS 307,314,321,328,335,342 %INDEXEND%MATCHDAYS %INDEX%MATCHDAYS2 307,314,321,328,335,342 %INDEXEND%MATCHDAYS2 ; %INDEX%FIXTURE 1,4,2,3 4,2,3,1 3,4,1,2 4,3,2,1 2,4,1,3 4,1,3,2 %INDEXEND%FIXTURE 0 0 0 0 3 0 0 -1 4095 3 1 { 34, POOL, 15 } { 34, POOL, 0 } 4 GET_POOL, {34, POOL, 15} 0 1 GET_POOL, {34, POOL, 15} 3 1 GET_POOL, {34, POOL, 15} 5 1 GET_POOL, {34, POOL, 15} 7 1 %INDEXEND%COMP30 %INDEX%COMP31 DB_LEAGUE { 34, RELEGATION, 2 } "Nacompetitie B","Nacompetitie B","Nacompetitie B","Nacompetitie B","Nacompetitie B","Nacompetitie B" 4 1 REL_RULE_0 0 2 ROUND_GROUP1 100 100 ; %INDEX%TEAMS 2a0001,2a0002,2a0003,2a0004 %INDEXEND%TEAMS ; %INDEX%MATCHDAYS 307,314,321,328,335,342 %INDEXEND%MATCHDAYS %INDEX%MATCHDAYS2 307,314,321,328,335,342 %INDEXEND%MATCHDAYS2 ; %INDEX%FIXTURE 1,4,2,3 4,2,3,1 3,4,1,2 4,3,2,1 2,4,1,3 4,1,3,2 %INDEXEND%FIXTURE 0 0 0 0 3 0 0 -1 4095 3 1 {34, POOL, 15} { 34, POOL, 0 } 4 GET_POOL, {34, POOL, 15} 1 1 GET_POOL, {34, POOL, 15} 2 1 GET_POOL, {34, POOL, 15} 4 1 GET_POOL, {34, POOL, 15} 6 1 %INDEXEND%COMP31 you'll probably have to change the matchdays and the %COMPX numbers, but overall this worked quite nicely (if I recall correctly). Small advice on making it work properly: - have only the Ereste Divisie call {34, POOL, 15}, otherwise you'll end up with too many teams (usually just one too many) in the Eredivisie shown in the relegation zone (i.e. highlighted red in the table) - make sure that the last matchday of the Ereste Divisie in on the same day (or later) as the Eredivisie. If you end up with the entire of the Ereste Divisie table going red, change {34, POOL, 15} to {34, RELEGATION, 0} and that should fix that problem. Test this for at least 3 full seasons, as that wierd things tend to happen around the third season. ni neart go cur le chéile! |
|
|
|
04.06.2009 - 16:20
Beitrag
#14
|
|
|
Gruppe: User
Beiträge: 193 Beigetreten: 22.10.2008 Mitglieds-Nr.: 16 |
well i checked it out, and this is ur relegation stuff from last year's dutch patch right?
ok..i could do it as a league. But still, I don't understand what those numbers mean. These ones: GET_POOL, {34, POOL, 15} 0 1 GET_POOL, {34, POOL, 15} 3 1 GET_POOL, {34, POOL, 15} 5 1 GET_POOL, {34, POOL, 15} 7 1 especially the '1' |
|
|
|
04.06.2009 - 16:46
Beitrag
#15
|
|
|
Gruppe: User
Beiträge: 149 Beigetreten: 25.10.2008 Mitglieds-Nr.: 832 |
well i checked it out, and this is ur relegation stuff from last year's dutch patch right? ok..i could do it as a league. But still, I don't understand what those numbers mean. These ones: GET_POOL, {34, POOL, 15} 0 1 GET_POOL, {34, POOL, 15} 3 1 GET_POOL, {34, POOL, 15} 5 1 GET_POOL, {34, POOL, 15} 7 1 especially the '1' Okay, so we have a pool with 8 teams in it. If you have any background in programming think of a pool as an Array of teams (which is how I imagine it has been implemented in the C source code), hence a pool has this type of structure [teamA,teamB,teamC,teamD,teamE,teamF,teamG,teamH] Get_Pool X Y is going to point at the team in the Xth position of the array and then grab Y teams starting at that position (note that the first element of an array is in the zeroth position) so with GET_POOL, {34, POOL, 15} 0 1 it gets 1 team starting at the zeroth position of the array (or continuing with my example it will get teamA) and GET_POOL, {34, POOL, 15} 6 1 will get teamG if you had a command such as GET_POOL, {34, POOL, 15} 3 4 it would get teamD, teamE, teamF, and TeamG And from the code above the league would end up with teamA (0), TeamD (3), TeamF (5), and TeamH (7) does this help? note for the GET_TABLE_X_TO_Y, X Y the first team is in the first position not the zeroth position hence the top team would be GET_TABLE_X_TO_Y, 1 1 as opposed to GET_POOL, 0 1 ni neart go cur le chéile! |
|
|
|
04.06.2009 - 16:55
Beitrag
#16
|
|
|
Gruppe: User
Beiträge: 193 Beigetreten: 22.10.2008 Mitglieds-Nr.: 16 |
hmm ok..
well..i think i almost got it, sorry..it just seems so much like math, so that's why I don't get it that fast well, now suppose we have 8 clubs for play-offs in division lower. So 2nd/3rd division. 3rd division contains 6 leagues, from which the winners will play play-offs. and let's take the bottom 2 from the 2nd division. Eventually we'll have 8 teams. Now, let's try again a league instead of _ROUND play-offs. Then how could I take nr 19/20 from 2nd and top 1 from other 6 leagues? how would that look? |
|
|
|
04.06.2009 - 17:01
Beitrag
#17
|
|
|
Gruppe: User
Beiträge: 193 Beigetreten: 22.10.2008 Mitglieds-Nr.: 16 |
Okay, so we have a pool with 8 teams in it. If you have any background in programming think of a pool as an Array of teams (which is how I imagine it has been implemented in the C source code), hence a pool has this type of structure [teamA,teamB,teamC,teamD,teamE,teamF,teamG,teamH] Get_Pool X Y is going to point at the team in the Xth position of the array and then grab Y teams starting at that position (note that the first element of an array is in the zeroth position) so with GET_POOL, {34, POOL, 15} 0 1 it gets 1 team starting at the zeroth position of the array (or continuing with my example it will get teamA) and GET_POOL, {34, POOL, 15} 6 1 will get teamG if you had a command such as GET_POOL, {34, POOL, 15} 3 4 it would get teamD, teamE, teamF, and TeamG And from the code above the league would end up with teamA (0), TeamD (3), TeamF (5), and TeamH (7) does this help? note for the GET_TABLE_X_TO_Y, X Y the first team is in the first position not the zeroth position hence the top team would be GET_TABLE_X_TO_Y, 1 1 as opposed to GET_POOL, 0 1 oh wait! so, looking like this 3 4 it takes the frst 4 teams after the 3rd team in th array? |
|
|
|
04.06.2009 - 18:11
Beitrag
#18
|
|
|
Gruppe: User
Beiträge: 151 Beigetreten: 23.10.2008 Mitglieds-Nr.: 631 |
Then how could I take nr 19/20 from 2nd and top 1 from other 6 leagues? 7 GET_TAB_X_TO_Y, { 34, LEAGUE, 1} 19 2 GET_TAB_X_TO_Y, { 34, LEAGUE, 2} 1 1 GET_TAB_X_TO_Y, { 34, LEAGUE, 3} 1 1 GET_TAB_X_TO_Y, { 34, LEAGUE, 4} 1 1 GET_TAB_X_TO_Y, { 34, LEAGUE, 5} 1 1 GET_TAB_X_TO_Y, { 34, LEAGUE, 6} 1 1 GET_TAB_X_TO_Y, { 34, LEAGUE, 7} 1 1 No fusion, no purchase. |
|
|
|
04.06.2009 - 18:15
Beitrag
#19
|
|
|
Gruppe: User
Beiträge: 149 Beigetreten: 25.10.2008 Mitglieds-Nr.: 832 |
hmm ok.. well..i think i almost got it, sorry..it just seems so much like math, so that's why I don't get it that fast well, now suppose we have 8 clubs for play-offs in division lower. So 2nd/3rd division. 3rd division contains 6 leagues, from which the winners will play play-offs. and let's take the bottom 2 from the 2nd division. Eventually we'll have 8 teams. Now, let's try again a league instead of _ROUND play-offs. Then how could I take nr 19/20 from 2nd and top 1 from other 6 leagues? how would that look? For the most part it's exactly the same except for the bottom of the POOL because you need to get different teams, so you would use these commands instead. And you would also have to increment the identifiers for the pool and relegation leagues (i.e. change POOL, 15 to POOL, 16 etc.) 7 GET_TAB_X_TO_Y, {34, LEAGUE, 1} 19 2 GET_TAB_X_TO_Y, {34, LEAGUE, 2} 1 1 GET_TAB_X_TO_Y, {34, LEAGUE, 3} 1 1 GET_TAB_X_TO_Y, {34, LEAGUE, 4} 1 1 GET_TAB_X_TO_Y, {34, LEAGUE, 5} 1 1 GET_TAB_X_TO_Y, {34, LEAGUE, 6} 1 1 GET_TAB_X_TO_Y, {34, LEAGUE, 7} 1 1 oh wait! so, looking like this 3 4 it takes the frst 4 teams after the 3rd team in th array? Yes, that is a correct way of looking at it for POOLs, not for LEAGUEs though. P.S. Computer Science is Math, though it's relatively simple Math when compared to other fields, the only difficulty is learning a (other better yet several) programming language(s) with which to implement it. But the same can be said of other fields of math, you need to learn the notation and various definitions before you can begin to solve problems. ni neart go cur le chéile! |
|
|
|
04.06.2009 - 18:17
Beitrag
#20
|
|
|
Gruppe: User
Beiträge: 149 Beigetreten: 25.10.2008 Mitglieds-Nr.: 832 |
7 GET_TAB_X_TO_Y, { 34, LEAGUE, 1} 19 2 GET_TAB_X_TO_Y, { 34, LEAGUE, 2} 1 1 GET_TAB_X_TO_Y, { 34, LEAGUE, 3} 1 1 GET_TAB_X_TO_Y, { 34, LEAGUE, 4} 1 1 GET_TAB_X_TO_Y, { 34, LEAGUE, 5} 1 1 GET_TAB_X_TO_Y, { 34, LEAGUE, 6} 1 1 GET_TAB_X_TO_Y, { 34, LEAGUE, 7} 1 1 damn, you beat me to it, obviously I type too slow... ni neart go cur le chéile! |
|
|
|
![]() ![]() |
| Vereinfachte Darstellung | Aktuelles Datum: 03.09.2010 - 6:29 |