Register    Login    Forum    FAQ

Board index » Community Discussion » Digital Resources




Post new topic Reply to topic  [ 27 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: OBBLM Fan Factor
 Post Posted: Mon Oct 28, 2013 5:04 pm 
Super Star
Super Star
User avatar

Joined: Sun Jun 08, 2008 9:27 am
Posts: 820
Location: Glasgow
Just getting to grips with OBBLM and have a quick query regarding Fan Factor. Our league does not allow purchase of FF with a new team, all FF is awarded from match results, and a new team starts with 5FF. We also do not count FF towards TV.
How would I go about implementing this in OBBLM?
I'm guessing I can manually change the FF for new teams in the database tables if required, it is the TV calculation that I probably need more help with.


Top 
 Profile  
 
 Post subject: Re: OBBLM Fan Factor
 Post Posted: Tue Oct 29, 2013 12:07 am 
Super Star
Super Star
User avatar

Joined: Sun Jun 08, 2008 9:27 am
Posts: 820
Location: Glasgow
Found time to do some digging tonight and I think I've solved the problem.
In lib\game_data.php you can set the FF cost, which I've changed from the default 10k to 0k.
In localsettings\settings_2.php (note, 2 is the ID for my League, yours may differ) I've set the Initial_Fan_Factor to 5.
Also, Post_Game_FF is set to false, which prevents players from purchasing FF after they've played their first game.

Hopefully that'll work as intended, we'll see soon enough. :)


Top 
 Profile  
 
 Post subject: Re: OBBLM Fan Factor
 Post Posted: Tue Oct 29, 2013 6:52 pm 
Experienced
Experienced
User avatar

Joined: Mon Oct 22, 2007 2:01 pm
Posts: 110
Location: Copenhagen, Denmark
Nice tip.


Top 
 Profile  
 
 Post subject: Re: OBBLM Fan Factor
 Post Posted: Thu Oct 31, 2013 2:52 pm 
Emerging Star
Emerging Star

Joined: Tue Jul 14, 2009 9:41 pm
Posts: 414
It might be nice to have the game_data.php load these configurable values from settings.php to ensure easy updates.

_________________
Webhosting with the latest version of OBBLM installed: OBBLM Web Hosting (be sure to choose the OBBLM tab)


Top 
 Profile  
 
 Post subject: Re: OBBLM Fan Factor
 Post Posted: Mon Apr 20, 2015 10:33 pm 
Kommissar Enthusiasmoff
User avatar

Joined: Mon May 08, 2006 11:24 am
Posts: 5491
Location: Swindon, England
Any way of changing a team's fan factor once it has been created?

_________________
NAF President
Founder of SAWBBL, Swindon and Wiltshire's BB League @ sawbbl.uk
Image


Top 
 Profile  
 
 Post subject: Re: OBBLM Fan Factor
 Post Posted: Mon Apr 20, 2015 10:52 pm 
Super Star
Super Star
User avatar

Joined: Sun Jun 08, 2008 9:27 am
Posts: 820
Location: Glasgow
sann0638 wrote:
Any way of changing a team's fan factor once it has been created?

Up or down?

Easy enough to buy Fan Factor, and the admin can add Gold to the bank to balance the cost.
Alternatively, under Admin tools you can Let Go of Team Goods which includes Fan Factor. Each point will add 10k to the Treasury, so you'll need to adjust that too.

Might be easier to just change it directly in the database if you're able to.

_________________
Image
Image


Top 
 Profile  
 
 Post subject: Re: OBBLM Fan Factor
 Post Posted: Tue Apr 21, 2015 7:23 am 
Kommissar Enthusiasmoff
User avatar

Joined: Mon May 08, 2006 11:24 am
Posts: 5491
Location: Swindon, England
Sorry, I meant after a game has been played, so ff cant be bought.

Can't see where teams kept in the database?

_________________
NAF President
Founder of SAWBBL, Swindon and Wiltshire's BB League @ sawbbl.uk
Image


Top 
 Profile  
 
 Post subject: Re: OBBLM Fan Factor
 Post Posted: Tue Apr 21, 2015 9:19 am 
Super Star
Super Star
User avatar

Joined: Sun Jun 08, 2008 9:27 am
Posts: 820
Location: Glasgow
Hi Mike,

Teams are stored in the teams table. Assuming you want to add FF, you need to alter the ff_bought field. OBBLM seems to store FF as two separate values, ff_bought and ff. Probably safest to just change ff_bought then run Sync_All() from the admin panel. This will recalculate the team's current FF.

_________________
Image
Image


Top 
 Profile  
 
 Post subject: Re: OBBLM Fan Factor
 Post Posted: Tue Apr 21, 2015 10:51 am 
Kommissar Enthusiasmoff
User avatar

Joined: Mon May 08, 2006 11:24 am
Posts: 5491
Location: Swindon, England
Vanguard wrote:
Hi Mike,

Teams are stored in the teams table.


Ha, now I feel silly. Which folder is that in?

_________________
NAF President
Founder of SAWBBL, Swindon and Wiltshire's BB League @ sawbbl.uk
Image


Top 
 Profile  
 
 Post subject: Re: OBBLM Fan Factor
 Post Posted: Tue Apr 21, 2015 2:03 pm 
Super Star
Super Star
User avatar

Joined: Sun Jun 08, 2008 9:27 am
Posts: 820
Location: Glasgow
sann0638 wrote:
Vanguard wrote:
Hi Mike,

Teams are stored in the teams table.

Ha, now I feel silly. Which folder is that in?

It's not in a folder as such, it's in the database itself. How that looks, depends on how you're accessing it. Might be better suited to a chat, I'll text you.

_________________
Image
Image


Top 
 Profile  
 
 Post subject: Re: OBBLM Fan Factor
 Post Posted: Wed Apr 22, 2015 6:27 pm 
Da Cynic
User avatar

Joined: Thu Jan 01, 1970 1:00 am
Posts: 7462
Location: Nice Red Uniforms and Fanatical devotion to the Pope!
Mike, is this something you could do for me for my NAF hosted league

_________________
Image
Ikterus wrote:
But for the record, play Voyagers_UK if you have the chance. He's cursed! :P


Top 
 Profile  
 
 Post subject: Re: OBBLM Fan Factor
 Post Posted: Wed Apr 22, 2015 6:38 pm 
Kommissar Enthusiasmoff
User avatar

Joined: Mon May 08, 2006 11:24 am
Posts: 5491
Location: Swindon, England
Ha, that's why I am looking into it :D

_________________
NAF President
Founder of SAWBBL, Swindon and Wiltshire's BB League @ sawbbl.uk
Image


Top 
 Profile  
 
 Post subject: Re: OBBLM Fan Factor
 Post Posted: Thu Apr 23, 2015 3:44 pm 
Super Star
Super Star
User avatar

Joined: Sun Jun 08, 2008 9:27 am
Posts: 820
Location: Glasgow
Happy to help if I can. I've tested this on my own OBBLM install, can talk you through it if required.

_________________
Image
Image


Top 
 Profile  
 
 Post subject: Re: OBBLM Fan Factor
 Post Posted: Thu Apr 23, 2015 4:14 pm 
Kommissar Enthusiasmoff
User avatar

Joined: Mon May 08, 2006 11:24 am
Posts: 5491
Location: Swindon, England
Great thx. Msg me on facebook this evening or another evening when I am online.

_________________
NAF President
Founder of SAWBBL, Swindon and Wiltshire's BB League @ sawbbl.uk
Image


Top 
 Profile  
 
 Post subject: Re: OBBLM Fan Factor
 Post Posted: Thu Apr 23, 2015 10:37 pm 
Kommissar Enthusiasmoff
User avatar

Joined: Mon May 08, 2006 11:24 am
Posts: 5491
Location: Swindon, England
Thanks to Vanguard for showing me how to do this.

_________________
NAF President
Founder of SAWBBL, Swindon and Wiltshire's BB League @ sawbbl.uk
Image


Top 
 Profile  
 
Display posts from previous:  Sort by  
 
Post new topic Reply to topic  [ 27 posts ]  Go to page 1, 2  Next

Board index » Community Discussion » Digital Resources


Who is online

Users browsing this forum: No registered users

 
 

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to: