Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > Premium Archives > ibProArcade Archive
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
[BUG] Tournament ladder Details »»
[BUG] Tournament ladder
Version: , by cyberhypnotic cyberhypnotic is offline
Developer Last Online: Sep 2006 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 01-22-2006 Last Update: Never Installs: 0
 
No support by the author.

Seems as though my members are not moving up to the next round sometimes.

Before I had players not moving from 1st round up to 2nd round. Now They seem to be not moving from 2nd round to 3rd round (finals).

Aslo, if member1 beats member2, member1 goes above member3 and member4 in the next round.

Here's what it looks like (click to enlarge, of course):


As you can see in the 1st round, jessicajoanne moved above cyberhypnotic's 1st match when she won and I moved above hers when I won. Then moxdevil won the 2nd round and moved above jessicajoanne and cyberhypnotic's 2nd match.

Also, jessicajoanne won the 2nd round, but it won't move her up.

Any suggestions?

One last thing, is the tournament fixed to be playable on IE?

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 01-22-2006, 06:26 AM
MrZeropage's Avatar
MrZeropage MrZeropage is offline
 
Join Date: Nov 2003
Location: Munich, Germany
Posts: 3,012
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Tournaments are playable in IE, yes


The sorting in each line depends on the UserID, this means your 2nd round with 4 players left is sorted by UserID from left to right. That's why "jessicajoanne" moved leftmost, seems this user has the lowest UserID.
This User also should move up to the Final, that's right... Hmmmm, I will check this again.

Please test 2- and 4-player-Tournaments, they should work well ?
Reply With Quote
  #3  
Old 01-22-2006, 06:32 AM
cyberhypnotic cyberhypnotic is offline
 
Join Date: Nov 2005
Posts: 79
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

2 Player tournament worked fine. I'll check on the 4 Player tourney.

Here's the thing. You said the users are moved according to UserID?

Well, by UserID, they are lined up jessicajoanne (11), cyberhypnotic (1), moxdevil (13), and nsewerin (14).

Same with the 1st round. As you can see, moxdevil is 13 and nsewerin is 14, but 69Charger is 50 and between them. :ermm:

This is just a guess, but this is my thoughts on it:

What if - moxdevil(13) moves up before jessicajoanne(11), therefore being organized according to UserID before jessicajoanne(11) is able to move up. Know what I mean? (13) took the place of (11), therefore leaving nowhere for (11) to go, so (11) sits in 2nd round waiting.

Another thing. Nothing big and major, just a typo. Some people might want to know how to fix it later on though:

In arcade.php (root folder), if you look for one time:
Code:
{$playerinfo[3]['timesplayed']}{$ibforums->lang['tourneytxt1']}
and replace with:
Code:
{$playerinfo[3]['timesplayed']}{$ibforums->lang['tourneytxt2']}
The difference is the number in tourneytxt. It makes the one tournament cell "studder" by repeating the text for line one over. (has playedhas played)
Reply With Quote
  #4  
Old 01-22-2006, 08:01 AM
MrZeropage's Avatar
MrZeropage MrZeropage is offline
 
Join Date: Nov 2003
Location: Munich, Germany
Posts: 3,012
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hmmm, did you upgrade to v2.5.4+ and have the actual arcade.php ?
Reply With Quote
  #5  
Old 01-22-2006, 05:40 PM
cyberhypnotic cyberhypnotic is offline
 
Join Date: Nov 2005
Posts: 79
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes, I had version 2.5.3 installed from a fresh install originally. Then when you released 2.5.4, I followed instructions exactly as given.

I've had this problem, even in version 2.5.3. I'm actually surprised nobody else complained about it, which kinda makes me think it's something with my copy only.

Do you suggest an uninstall and then a fresh install? Should I delete everything from my server, including games? Making it like it never existed? Then do a brand new fresh install?

Or are you still looking into the code? Is there any possible way to stop the code from ordering by member ID? That way, the winner of each round just moves up to their respective next round in the ladder?
Reply With Quote
  #6  
Old 01-22-2006, 06:19 PM
Reece^B Reece^B is offline
 
Join Date: Jan 2006
Location: Essex
Posts: 406
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

MR.Zeropage

Im getting this error:
Code:
There is a SQL error.
You can contact the board administrator by clicking here

Error Returned
mySQL query error: SELECT userid, username FROM user WHERE userid IN() ORDER BY userid mySQL error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ') ORDER BY userid' at line 1 mySQL error code: Date: Sunday 22nd of January 2006 03:11:51 PM

We apologise for any inconvenience
This happens when I created a two player T and when it redirects me.
Reply With Quote
  #7  
Old 01-22-2006, 07:56 PM
MrZeropage's Avatar
MrZeropage MrZeropage is offline
 
Join Date: Nov 2003
Location: Munich, Germany
Posts: 3,012
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@cyberhypnotic:
I can confirm that there sometimes is a problem with 8-player-tournaments, but I am not sure how to reproduce it. This now is on the "Bug-List" and I will look for a fix.
The sorting is another thing I'd like to change, and as there are many planned improvements for the Tournament-System I guess this will come along with that.


@Reece B:
Create the Tournament in AdminCP instead of ModCP and the Error won't show up
Will fix the ModCP in v2.5.5+
Reply With Quote
  #8  
Old 01-22-2006, 09:06 PM
cyberhypnotic cyberhypnotic is offline
 
Join Date: Nov 2005
Posts: 79
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

MrZeropage, could you tell me which part of the code deals with sorting? Maybe I can take a look at it and if it looks doable for me, I can alter it to disable the sorting.

I can just comment out the sorting portion of the script.
Reply With Quote
  #9  
Old 01-23-2006, 04:19 PM
Reece^B Reece^B is offline
 
Join Date: Jan 2006
Location: Essex
Posts: 406
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okay cheers mr.zeropage!
Reply With Quote
  #10  
Old 01-23-2006, 07:51 PM
MrZeropage's Avatar
MrZeropage MrZeropage is offline
 
Join Date: Nov 2003
Location: Munich, Germany
Posts: 3,012
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@cyberhopnotic:
Here is the Code that generates the Tournament-View:
Code:
 for($i=1; $i<=$numrungs; $i++) {
$DB->query("SELECT m.name, t.timesplayed, t.rungscore, t.mid, t.rung, t.faceoff FROM ibf_tournament_players as t, ibf_members as m WHERE t.tid=".$tid." AND t.rung=".$i." AND m.id=t.mid ORDER BY t.faceoff ASC");
$ctr=0;
$refctr = 0;
while($refctr <= 7) {
$playerinfo[$refctr]['name'] = "";
$playerinfo[$refctr]['timesplayed'] = 0;
$playerinfo[$refctr]['rungscore'] = 0;
$playerinfo[$refctr]['playlink'] = "";
$refctr++;
}
while($row = $DB->fetch_row()) {
if(($ctr == 0 || $ctr == 1) && $row['faceoff'] == 2) {
$ctr = 2;
}
$playerinfo[$ctr]['name'] = $row['name'];
$playerinfo[$ctr]['timesplayed'] = $row['timesplayed'];
$playerinfo[$ctr]['rungscore'] = $row['rungscore'];
if($row['timesplayed'] < 3 && $ibforums->member['id'] == $row['mid']) {
$playerinfo[$ctr]['playlink'] = "<a href='".$ibforums->base_url."act=Arcade&do=playtourney&gameid=".$tinfo['gid']."&tid=$tid&rung=".$row['rung']."'>".$ibforums->lang['play']."</a>";
} else {
$playerinfo[$ctr]['playlink'] = "";
}
$ctr++;
}
$this->output .= $this->define_ladder($i, $playerinfo);
}
I marked the Query+Sorting.

As you see the concept seems to be the problem, as it is sorted by "faceoff" (Match1, Match2 ...) which is ok but is not looking up in which faceoff/Match this player was in the last round ("rung").

I guess this can only be solved by one additional query ...
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:08 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04827 seconds
  • Memory Usage 2,298KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete