OBBLM Fan Factor
Moderator: TFF Mods
- Vanguard
- Super Star
- Posts: 922
- Joined: Sun Jun 08, 2008 8:27 am
- Location: Glasgow
- Contact:
OBBLM Fan Factor
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.
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.
Reason: ''
- Vanguard
- Super Star
- Posts: 922
- Joined: Sun Jun 08, 2008 8:27 am
- Location: Glasgow
- Contact:
Re: OBBLM Fan Factor
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.
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.
Reason: ''
- nicholasmr
- Experienced
- Posts: 110
- Joined: Mon Oct 22, 2007 1:01 pm
- Location: Copenhagen, Denmark
- Contact:
-
- Emerging Star
- Posts: 418
- Joined: Tue Jul 14, 2009 8:41 pm
- Contact:
Re: OBBLM Fan Factor
It might be nice to have the game_data.php load these configurable values from settings.php to ensure easy updates.
Reason: ''
Webhosting with the latest version of OBBLM installed: OBBLM Web Hosting (be sure to choose the OBBLM tab)
- sann0638
- Kommissar Enthusiasmoff
- Posts: 6616
- Joined: Mon May 08, 2006 10:24 am
- Location: Swindon, England
Re: OBBLM Fan Factor
Any way of changing a team's fan factor once it has been created?
Reason: ''
NAF Ex-President
Founder of SAWBBL, Swindon and Wiltshire's BB League - find us on Facebook and Discord
NAF Data wrangler
Founder of SAWBBL, Swindon and Wiltshire's BB League - find us on Facebook and Discord
NAF Data wrangler
- Vanguard
- Super Star
- Posts: 922
- Joined: Sun Jun 08, 2008 8:27 am
- Location: Glasgow
- Contact:
Re: OBBLM Fan Factor
Up or down?sann0638 wrote:Any way of changing a team's fan factor once it has been created?
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.
Reason: ''
- sann0638
- Kommissar Enthusiasmoff
- Posts: 6616
- Joined: Mon May 08, 2006 10:24 am
- Location: Swindon, England
Re: OBBLM Fan Factor
Sorry, I meant after a game has been played, so ff cant be bought.
Can't see where teams kept in the database?
Can't see where teams kept in the database?
Reason: ''
NAF Ex-President
Founder of SAWBBL, Swindon and Wiltshire's BB League - find us on Facebook and Discord
NAF Data wrangler
Founder of SAWBBL, Swindon and Wiltshire's BB League - find us on Facebook and Discord
NAF Data wrangler
- Vanguard
- Super Star
- Posts: 922
- Joined: Sun Jun 08, 2008 8:27 am
- Location: Glasgow
- Contact:
Re: OBBLM Fan Factor
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.
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.
Reason: ''
- sann0638
- Kommissar Enthusiasmoff
- Posts: 6616
- Joined: Mon May 08, 2006 10:24 am
- Location: Swindon, England
Re: OBBLM Fan Factor
Ha, now I feel silly. Which folder is that in?Vanguard wrote:Hi Mike,
Teams are stored in the teams table.
Reason: ''
NAF Ex-President
Founder of SAWBBL, Swindon and Wiltshire's BB League - find us on Facebook and Discord
NAF Data wrangler
Founder of SAWBBL, Swindon and Wiltshire's BB League - find us on Facebook and Discord
NAF Data wrangler
- Vanguard
- Super Star
- Posts: 922
- Joined: Sun Jun 08, 2008 8:27 am
- Location: Glasgow
- Contact:
Re: OBBLM Fan Factor
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.sann0638 wrote:Ha, now I feel silly. Which folder is that in?Vanguard wrote:Hi Mike,
Teams are stored in the teams table.
Reason: ''
-
- Da Cynic
- Posts: 7462
- Joined: Thu Jan 01, 1970 12:00 am
- Location: Nice Red Uniforms and Fanatical devotion to the Pope!
Re: OBBLM Fan Factor
Mike, is this something you could do for me for my NAF hosted league
Reason: ''
- sann0638
- Kommissar Enthusiasmoff
- Posts: 6616
- Joined: Mon May 08, 2006 10:24 am
- Location: Swindon, England
Re: OBBLM Fan Factor
Ha, that's why I am looking into it
Reason: ''
NAF Ex-President
Founder of SAWBBL, Swindon and Wiltshire's BB League - find us on Facebook and Discord
NAF Data wrangler
Founder of SAWBBL, Swindon and Wiltshire's BB League - find us on Facebook and Discord
NAF Data wrangler
- Vanguard
- Super Star
- Posts: 922
- Joined: Sun Jun 08, 2008 8:27 am
- Location: Glasgow
- Contact:
Re: OBBLM Fan Factor
Happy to help if I can. I've tested this on my own OBBLM install, can talk you through it if required.
Reason: ''
- sann0638
- Kommissar Enthusiasmoff
- Posts: 6616
- Joined: Mon May 08, 2006 10:24 am
- Location: Swindon, England
Re: OBBLM Fan Factor
Great thx. Msg me on facebook this evening or another evening when I am online.
Reason: ''
NAF Ex-President
Founder of SAWBBL, Swindon and Wiltshire's BB League - find us on Facebook and Discord
NAF Data wrangler
Founder of SAWBBL, Swindon and Wiltshire's BB League - find us on Facebook and Discord
NAF Data wrangler
- sann0638
- Kommissar Enthusiasmoff
- Posts: 6616
- Joined: Mon May 08, 2006 10:24 am
- Location: Swindon, England
Re: OBBLM Fan Factor
Thanks to Vanguard for showing me how to do this.
Reason: ''
NAF Ex-President
Founder of SAWBBL, Swindon and Wiltshire's BB League - find us on Facebook and Discord
NAF Data wrangler
Founder of SAWBBL, Swindon and Wiltshire's BB League - find us on Facebook and Discord
NAF Data wrangler