vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   ibProArcade Archive (https://vborg.vbsupport.ru/forumdisplay.php?f=174)
-   -   [BUG] Tournament ladder (https://vborg.vbsupport.ru/showthread.php?t=105969)

cyberhypnotic 01-23-2006 08:39 PM

What about this line at the bottom:

Code:

$this->output .= $this->define_ladder($i, $playerinfo);
Is it possible to define the ladder not just by rung and playerinfo, but also by moving the player with the highest score from the first round (rung) up to the next respective round (rung) keeping them separated within the separate tables?

I see that it's mainly tables, so is it possible to separate the tables by doing this:

8 player tournament:

Table 1 with 3 tables within (not counting the tables to make up the lines that connect each round):
first set of 2 players move up to connected table (next round)

Table 2 with 3 tables within:
second set of 2 players move up to connected table (next round)

Table 3 with 3 tables within:
third set of 2 players move up to connected table (next round)

Table 4 with 3 tables within:
fourth set of 2 players move up to connected table (next round)

That way in the 2nd round (rung) it doesn't mix up playerinfo[0] and playerinfo[1] and it doesn't mix up playerinfo[2] and playerinfo[3] with any other tables with the ordering because it can only go to the next table up, which is only one choice, not 4 total.

OR

Simply put:

8 player tourney:

playerinfo[0] OR playerinfo[1] = playerinfo[0] in next rung (round 2)
playerinfo[2] OR playerinfo[3] = playerinfo[1] in next rung (round 2)
playerinfo[4] OR playerinfo[5] = playerinfo[2] in next rung (round 2)
playerinfo[6] OR playerinfo[7] = playerinfo[3] in next rung (round 2)

THEN

playerinfo[0] OR playerinfo[1] = playerinfo[0] in next rung (final match)
playerinfo[2] OR playerinfo[3] = playerinfo[1] in next rung (final match)

THEN

playerinfo[0] OR playerinfo[1] = playerinfo[0] in next rung (tourney champ)

Something like would work? Of course with all of the if conditions and such. Remember, I'm not a great piece of work with code, but I would like to learn more and I've learned enough to make out some things and possibly switch up some things. For example, I took the Post Award Hack, which only allowed to post one award and altered the xml a little into another plug in (Post Award Hack#2) and Imported Product as a separate product so I could have 2 awards to post. Yes, it took a little more coding to make it work, but it worked is all that matters.

This stuff makes me tick, basically. I love messing around with coding and scripts. More of a hobby I guess though. But that's off topic... back on topic. So would any of these things above work out in a coded PHP environment?

MrZeropage 01-24-2006 04:52 AM

Hmmm, I will think about that idea to query the last round/rung and then check who advanced :)

cyberhypnotic 01-25-2006 06:45 AM

OK. I'll be around.

If I knew more about PHP and databases, I'd try to help figure it out more. Sorry that I can only lend my minimal help.

cyberhypnotic 01-26-2006 07:05 PM

Any word on the progress of this?

Appreciate the help so far.

cyberhypnotic 01-28-2006 06:12 PM

Any word on how this is going?

cyberhypnotic 01-31-2006 07:06 PM

MrZeropage, any news on this issue? My members are getting restless, lol.

tuanluu 01-31-2006 09:15 PM

I work okay, as long as every one summit there score and do not have a zero then it will work fine. If it cotain zero score then the user will never advance

cyberhypnotic 02-01-2006 02:23 PM

Obviously if someone has 0 points they will never advance. :rolleyes:

This isn't about that. If you read back, you'll see exactly what the problem is.

Basically, if player 8 wins first, they get placed ABOVE players 1 & 2, therefore blocking 1 or 2 from moving up. Got me?

I've been posting this issue since BEFORE the release of 2.3.4 and it's STILL an issue.

Apparently I'm never going to get a damn solution from the author of the code though.

TTG 02-01-2006 03:54 PM

I haven't been able to organise a tournament since the upgrade to 2.5.4 .. emails are sent to members and when they click on the link to start the tournament all they see is a blank page with a single crown on it !?

cyberhypnotic 02-08-2006 10:42 PM

MrZeropage, it's been awhile since we last discussed this. Is it possible that you could respond in regards to the questions in this thread?

Also, I've been thinking about the tournament ladder order. Isn't there a way you could work with the cases and make them if statements?

Like, if playerinfo[0] is greater than playerinfo[1] then playerinfo[0] is the result for the next rung, else if playerinfo[1] > playerinfo[0] then playerinfo[1] is the result for the next rung?

I'm STILL having problems with the ordering of the members in an 8 player tournament. Am I doing something wrong? When I assign them to matches, during the creation of the tournament, am I supposed to keep them in a specific order?


All times are GMT. The time now is 03:29 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01461 seconds
  • Memory Usage 1,741KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete