Project type

Status: Finished
Branch: https://gitlab.com/joomleague/joomleague/tree/master

Moderator: And_One

MiChO
.
Posts: 25
Joined: Thu Mar 05, 2009 4:53 pm

Project type

Postby MiChO » Mon Dec 18, 2017 1:34 pm

Hello!

One question. In which file are project types (Simple League, Divisions League, Tournament Mode, Friendly Matches) programmed? I would need to make a changes to project type.

Thank you.

User avatar
comraden
Joomleague Core Developer
Joomleague Core Developer
Posts: 1291
Joined: Thu Aug 16, 2007 2:27 pm
Location: Poland, Lublin
Contact:

Re: Project type

Postby comraden » Mon Dec 18, 2017 7:59 pm

Hi.
"project_type" are programed in "a few" files.
Generally, all projects type are "simple_league" engine. All others type just add/remove some extra functionallity.
example:
Division_league=Simple_league + leagues + trees
Tournament=Simple_league + trees - ranking
Friendly_matches=Simple_league - ranking

How it works from the programmer look?
For example, ranking calculation depends on project_type in this way:
if (division_league)
{ calculate division ranking}
elseif(tournament)or(friendly matches)
{no calculation}
else
{calculate ranking}

Is it clear enough?
By the way: in my extension for "all possible tournament in ONE project" I just removed project_type: all projects are DIVISION_LEAGUE, but it should be named as "project".
Some question? Ask here.
regards
http://llk.pl::jl_1.6 | jl_2.x | jl_3.x testing/production enviroment
samiec alfa koncernu 'Cham_Burak_Prostak' || proved: the most annoying person on the forum

MiChO
.
Posts: 25
Joined: Thu Mar 05, 2009 4:53 pm

Re: Project type

Postby MiChO » Wed Dec 20, 2017 3:08 pm

Thank you for the answer.

We had classic league system over 9 years (14 teams, 26 rounds).

This year we have a big change. In autumn 14 teams played each to other once (13 rounds). In spring league will divide. "League for champion" - 6 teams and "League for... nothing" - 8 teams.
So in spring in both divided leagues they''ll play each to other 2 times, so in League for champion it's gonna be additional 10 rounds and in league for nothing 14 rounds. League for nothing will end with this, but league for champion will continue. 1st and 2nd will play for champion on 3 victories.
Teams ranked from 3rd - 6th place will also play matches: 6th against 3rd 2 legs and 5th against 4th also 2 legs. And then winners will play 2 legs for 3rd place and losers 2 legs for 5th place.

How can I create a project without programming anything? Is it even possible in Joomleague to manage our league? And what about events (goals, cards...) and ranking display?

MiChO
.
Posts: 25
Joined: Thu Mar 05, 2009 4:53 pm

Re: Project type

Postby MiChO » Wed Jan 03, 2018 3:51 pm

Anyone? Please?

User avatar
comraden
Joomleague Core Developer
Joomleague Core Developer
Posts: 1291
Joined: Thu Aug 16, 2007 2:27 pm
Location: Poland, Lublin
Contact:

Re: Project type

Postby comraden » Wed Jan 03, 2018 5:00 pm

Only me could help U... joomleague version?
http://llk.pl::jl_1.6 | jl_2.x | jl_3.x testing/production enviroment
samiec alfa koncernu 'Cham_Burak_Prostak' || proved: the most annoying person on the forum

MiChO
.
Posts: 25
Joined: Thu Mar 05, 2009 4:53 pm

Re: Project type

Postby MiChO » Thu Jan 04, 2018 9:44 am

v2.0.92.e014123

MiChO
.
Posts: 25
Joined: Thu Mar 05, 2009 4:53 pm

Re: Project type

Postby MiChO » Tue Jan 16, 2018 1:22 pm

comraden, still there? :)

User avatar
comraden
Joomleague Core Developer
Joomleague Core Developer
Posts: 1291
Joined: Thu Aug 16, 2007 2:27 pm
Location: Poland, Lublin
Contact:

Re: Project type

Postby comraden » Thu Jan 18, 2018 7:50 am

bad news, my extension works only for jl1.5
http://llk.pl::jl_1.6 | jl_2.x | jl_3.x testing/production enviroment
samiec alfa koncernu 'Cham_Burak_Prostak' || proved: the most annoying person on the forum

MiChO
.
Posts: 25
Joined: Thu Mar 05, 2009 4:53 pm

Re: Project type

Postby MiChO » Thu Jan 18, 2018 7:58 am

Ok, but what about answer to my question? Is it even possible to integrate our system in original Joomleague 2.0 component?

User avatar
comraden
Joomleague Core Developer
Joomleague Core Developer
Posts: 1291
Joined: Thu Aug 16, 2007 2:27 pm
Location: Poland, Lublin
Contact:

Re: Project type

Postby comraden » Thu Jan 18, 2018 8:18 am

not as a ONE project, so:
NOT events calculation
NO ranking for whole tournament
http://llk.pl::jl_1.6 | jl_2.x | jl_3.x testing/production enviroment
samiec alfa koncernu 'Cham_Burak_Prostak' || proved: the most annoying person on the forum

MiChO
.
Posts: 25
Joined: Thu Mar 05, 2009 4:53 pm

Re: Project type

Postby MiChO » Thu Jan 18, 2018 9:48 am

So we would have to hire a programmer to add possibility to choose our system... thank you for your help.

Beer is yours when you come to Slovenia :P

User avatar
comraden
Joomleague Core Developer
Joomleague Core Developer
Posts: 1291
Joined: Thu Aug 16, 2007 2:27 pm
Location: Poland, Lublin
Contact:

Re: Project type

Postby comraden » Thu Jan 18, 2018 11:47 am

In my opinion there are NO chance to find right person...
When Your tournament started?
http://llk.pl::jl_1.6 | jl_2.x | jl_3.x testing/production enviroment
samiec alfa koncernu 'Cham_Burak_Prostak' || proved: the most annoying person on the forum

MiChO
.
Posts: 25
Joined: Thu Mar 05, 2009 4:53 pm

Re: Project type

Postby MiChO » Thu Jan 18, 2018 2:22 pm

Why do you think so?

It started in august, but continues on march 10th...

User avatar
comraden
Joomleague Core Developer
Joomleague Core Developer
Posts: 1291
Joined: Thu Aug 16, 2007 2:27 pm
Location: Poland, Lublin
Contact:

Re: Project type

Postby comraden » Fri Jan 19, 2018 2:30 am

MiChO wrote:Why do you think so?

first let's take a look to tournament organisation of your league (in pure JL):
1st project ->simple league (14 teams, 13 rounds, easy)
2nd project ->division_league:
2 divisions: Champ + Nothing
ranking after 14 rounds:
Champ
1.aaa
2.bbb
3.ccc
4.ddd
5.eee
6.fff
Nothing
1. ggg
2.hhh
...
8.ppp

next step: create this tree (see atach)
and all matches from this tree shoud be set as "don't include in ranking"
So U've got 2 (TWO) ranking. :'(
But U should got 5 (FIVE) rankings:
1.simple league (done)
2.division_league (done)
3.ranking after 14 rounds (from 1st to 14th)
4.ranking from tree (from 1st to 6th)
5.final (from 1st to 14th)

So, why U will not find right person to do this? Becouse nobody ever created ranking for this kind of tournament, include world major league with huge financial budget...(UEFA, NBA, NFL, and so on)
You do not have the required permissions to view the files attached to this post.
http://llk.pl::jl_1.6 | jl_2.x | jl_3.x testing/production enviroment
samiec alfa koncernu 'Cham_Burak_Prostak' || proved: the most annoying person on the forum

MiChO
.
Posts: 25
Joined: Thu Mar 05, 2009 4:53 pm

Re: Project type

Postby MiChO » Fri Jan 19, 2018 3:24 pm

Huh... That would be ok, but we would like to sum goals from both projects together... :/ So no go...

User avatar
comraden
Joomleague Core Developer
Joomleague Core Developer
Posts: 1291
Joined: Thu Aug 16, 2007 2:27 pm
Location: Poland, Lublin
Contact:

Re: Project type

Postby comraden » Sat Jan 20, 2018 2:28 am

sum of goals from few projects -> easy script
and always U could create missed rankings "by hand" (simple, cheap and the most annoying solution)
http://llk.pl::jl_1.6 | jl_2.x | jl_3.x testing/production enviroment
samiec alfa koncernu 'Cham_Burak_Prostak' || proved: the most annoying person on the forum


Return to “2.93.239.9df0b25-Katrin”

Who is online

Users browsing this forum: No registered users and 2 guests