Page 1 of 2
OBBLM Fan Factor
Posted: Mon Oct 28, 2013 4:04 pm
by Vanguard
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.
Re: OBBLM Fan Factor
Posted: Mon Oct 28, 2013 11:07 pm
by Vanguard
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.
Re: OBBLM Fan Factor
Posted: Tue Oct 29, 2013 5:52 pm
by nicholasmr
Nice tip.
Re: OBBLM Fan Factor
Posted: Thu Oct 31, 2013 1:52 pm
by funnyfingers
It might be nice to have the game_data.php load these configurable values from settings.php to ensure easy updates.
Re: OBBLM Fan Factor
Posted: Mon Apr 20, 2015 9:33 pm
by sann0638
Any way of changing a team's fan factor once it has been created?
Re: OBBLM Fan Factor
Posted: Mon Apr 20, 2015 9:52 pm
by Vanguard
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.
Re: OBBLM Fan Factor
Posted: Tue Apr 21, 2015 6:23 am
by sann0638
Sorry, I meant after a game has been played, so ff cant be bought.
Can't see where teams kept in the database?
Re: OBBLM Fan Factor
Posted: Tue Apr 21, 2015 8:19 am
by Vanguard
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.
Re: OBBLM Fan Factor
Posted: Tue Apr 21, 2015 9:51 am
by sann0638
Vanguard wrote:Hi Mike,
Teams are stored in the teams table.
Ha, now I feel silly. Which folder is that in?
Re: OBBLM Fan Factor
Posted: Tue Apr 21, 2015 1:03 pm
by Vanguard
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.
Re: OBBLM Fan Factor
Posted: Wed Apr 22, 2015 5:27 pm
by voyagers_uk
Mike, is this something you could do for me for my NAF hosted league
Re: OBBLM Fan Factor
Posted: Wed Apr 22, 2015 5:38 pm
by sann0638
Ha, that's why I am looking into it
Re: OBBLM Fan Factor
Posted: Thu Apr 23, 2015 2:44 pm
by Vanguard
Happy to help if I can. I've tested this on my own OBBLM install, can talk you through it if required.
Re: OBBLM Fan Factor
Posted: Thu Apr 23, 2015 3:14 pm
by sann0638
Great thx. Msg me on facebook this evening or another evening when I am online.
Re: OBBLM Fan Factor
Posted: Thu Apr 23, 2015 9:37 pm
by sann0638
Thanks to Vanguard for showing me how to do this.