Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 12172
Latest: LeaMoeller
New This Month: 14
New This Week: 1
New Today: 0
Stats
Total Posts: 39049
Total Topics: 6874
Most Online Today: 59
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 33
Total: 33

Author Topic: Arcade Master Question  (Read 3903 times)

0 Members and 1 Guest are viewing this topic.

Offline FrizzleFried

  • Full Member
  • ***
  • Posts: 120
    • View Profile
Arcade Master Question
« on: August 06, 2012, 05:06:03 pm »
I have a user who has 12 wins....

Yet he's not been awarded the Arcade Master badge.

How/when does that trigger?  It says 10+ on it... one would assume that meant 10+ wins?

Thanks!

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 14551
    • View Profile
Re: Arcade Master Question
« Reply #1 on: August 06, 2012, 05:21:01 pm »
Means 10+ Championships at a time. They would need to have high scores on 10 or more games at one time to get the badge
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline FrizzleFried

  • Full Member
  • ***
  • Posts: 120
    • View Profile
Re: Arcade Master Question
« Reply #2 on: August 06, 2012, 06:12:48 pm »
Correct....they have 12 showing under the BEST PLAYERS (Champions) list... but no badge has been granted hence the reason he asked...

Does it check every 24 hours or something?

I have 9 people with that badge... but this user just got the 10th, 11th and 12th champion today... and no badge.

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 14551
    • View Profile
Re: Arcade Master Question
« Reply #3 on: August 06, 2012, 06:21:03 pm »
At the moment it is checked when being rebadged or another action that rechecks all badges.
Have to add a code edit to the arcade system to have it do an instant check.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline FrizzleFried

  • Full Member
  • ***
  • Posts: 120
    • View Profile
Re: Arcade Master Question
« Reply #4 on: August 06, 2012, 06:44:32 pm »
OK... what code needs to be added and where do I add it?

Since he hit 10+ championships,  other badges HAVE been automatically issued...

Offline FrizzleFried

  • Full Member
  • ***
  • Posts: 120
    • View Profile
Re: Arcade Master Question
« Reply #5 on: August 07, 2012, 10:06:39 am »
UPDATE: Badge still not given.  What "other" badge(s) would need to be earned for this to automatically update?

Sure ... I know I can re-badge... but that's not how it's supposed to work... right?

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 14551
    • View Profile
Re: Arcade Master Question
« Reply #6 on: August 07, 2012, 11:28:46 am »
OK... what code needs to be added and where do I add it?

Since he hit 10+ championships,  other badges HAVE been automatically issued...
Have to work on it Need to analyze smf arcade to see where best to insert it.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline FrizzleFried

  • Full Member
  • ***
  • Posts: 120
    • View Profile
Re: Arcade Master Question
« Reply #7 on: August 07, 2012, 12:10:41 pm »
Well,  I just REBADGED members... and... with 11 CHAMPIONSHIPS he is still not getting the 10+ Arcade badge...

 ???

Offline FrizzleFried

  • Full Member
  • ***
  • Posts: 120
    • View Profile
Re: Arcade Master Question
« Reply #8 on: August 08, 2012, 10:00:12 am »
OK... I am very confused.

My user still has 11 championships.  I've re-badged... but he DOES NOT get the badge.  What am i doing wrong?  Why do I have 9 users who automatically got badges but this guy isn't getting his?  Based on what you describe above,  I would have thought a REBADGE would have given him his badge... it didn't.

What's up?


Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 14551
    • View Profile
Re: Arcade Master Question
« Reply #9 on: August 08, 2012, 10:12:50 am »
Will look into code later tonight.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 14551
    • View Profile
Re: Arcade Master Question
« Reply #10 on: August 08, 2012, 11:55:19 pm »
Code for instant badge check after a new score in the arcade. Will be added to next release of badge awards as well.

For SMF 2.0

Open Sources/Subs-Arcade.php

Find
Code: [Select]
cache_put_data('arcade-stats', null, 120);

Add After
Code: [Select]
// Badge Awards
global $sourcedir, $modSettings;
if (!empty($modSettings['badgeawards_enable']))
{

global $sourcedir, $user_info;
require_once($sourcedir . '/badgeawards2.php');
if ($member['id'] != 0)
Badges_CheckMember($member['id']);
}
// End Badge Awards

For the arcade master badge issue was I had the code set to 25 instead of 10
Hot fix open sources/badgeawards2.php
Find
Code: [Select]
if (!in_array($badgeAction,$currentBadges) && $totalRow['total'] >= 25)
Change to
Code: [Select]
if (!in_array($badgeAction,$currentBadges) && $totalRow['total'] >= 10)
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline FrizzleFried

  • Full Member
  • ***
  • Posts: 120
    • View Profile
Re: Arcade Master Question
« Reply #11 on: August 09, 2012, 11:03:00 am »
Awesome...

THANKS!

I actually changed things a bit...

I changed Arcade Champion to Arcade Champion - Silver (50+)... I then added an Arcade Champion - Bronze (25+) and an Arcade Champion - Gold (100+).  The fact that I already have two members with an Arcade Champion - Gold (100+) tells me that I'm going to likely have to come up with an Arcade Grand Dragon (250+) or something.  :)

I did change the CHAMPION badge for GOLD and BRONZE to gold and bronze colors... if you decide you'd like to go with this idea for the official mod I'd happily upload the PNG files.


 

Related Topics

  Subject / Started by Replies Last post
0 Replies
1652 Views
Last post November 09, 2010, 12:07:00 pm
by Prenses
7 Replies
2832 Views
Last post June 09, 2012, 06:03:42 pm
by SMFHacks
8 Replies
2930 Views
Last post June 25, 2012, 05:48:49 pm
by shuban
1 Replies
1747 Views
Last post July 22, 2012, 08:48:37 pm
by SMFHacks
6 Replies
2993 Views
Last post August 26, 2012, 08:29:57 pm
by SMFHacks

+- Recent Topics

link for users gallery from profile page by SMFHacks
August 20, 2018, 02:40:58 pm

[Mod]Tidy Child Boards 2.0 by SMFHacks
August 20, 2018, 01:32:43 pm

Admin View in Member's Profile of Dates for Accepting of PP and Reg Agreement by SMFHacks
August 18, 2018, 12:03:07 pm

Gallery2 Template Loading Error by SMFHacks
August 18, 2018, 12:02:12 pm

8: Undefined index: description by SMFHacks
August 17, 2018, 01:42:08 pm

It just does not send by SMFHacks
August 16, 2018, 11:03:06 pm

Ad beginning of post by SMFHacks
August 16, 2018, 10:22:58 pm

Agreement Date says NEVER by SMFHacks
August 14, 2018, 04:46:48 pm

HashTags system for SMF 2.0 released by Diego Andrés
August 12, 2018, 02:04:24 pm

Can the Store produce a unique code that you can sell? by SMFHacks
August 11, 2018, 11:43:32 am

Powered by EzPortal