OBBLM Fan Factor

However you play online - Java, Vassal, Email, Cyanide etc - talk about it here.
This is also the place for discussing the various tools for managing leagues, teams and so on.

Moderator: TFF Mods

User avatar
Vanguard
Super Star
Super Star
Posts: 922
Joined: Sun Jun 08, 2008 8:27 am
Location: Glasgow
Contact:

OBBLM Fan Factor

Post 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.

Reason: ''
User avatar
Vanguard
Super Star
Super Star
Posts: 922
Joined: Sun Jun 08, 2008 8:27 am
Location: Glasgow
Contact:

Re: OBBLM Fan Factor

Post 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. :)

Reason: ''
User avatar
nicholasmr
Experienced
Experienced
Posts: 110
Joined: Mon Oct 22, 2007 1:01 pm
Location: Copenhagen, Denmark
Contact:

Re: OBBLM Fan Factor

Post by nicholasmr »

Nice tip.

Reason: ''
funnyfingers
Emerging Star
Emerging Star
Posts: 418
Joined: Tue Jul 14, 2009 8:41 pm
Contact:

Re: OBBLM Fan Factor

Post by funnyfingers »

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)
User avatar
sann0638
Kommissar Enthusiasmoff
Posts: 6609
Joined: Mon May 08, 2006 10:24 am
Location: Swindon, England

Re: OBBLM Fan Factor

Post by sann0638 »

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
User avatar
Vanguard
Super Star
Super Star
Posts: 922
Joined: Sun Jun 08, 2008 8:27 am
Location: Glasgow
Contact:

Re: OBBLM Fan Factor

Post 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.

Reason: ''
Image
Image
User avatar
sann0638
Kommissar Enthusiasmoff
Posts: 6609
Joined: Mon May 08, 2006 10:24 am
Location: Swindon, England

Re: OBBLM Fan Factor

Post 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?

Reason: ''
NAF Ex-President
Founder of SAWBBL, Swindon and Wiltshire's BB League - find us on Facebook and Discord
NAF Data wrangler
User avatar
Vanguard
Super Star
Super Star
Posts: 922
Joined: Sun Jun 08, 2008 8:27 am
Location: Glasgow
Contact:

Re: OBBLM Fan Factor

Post 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.

Reason: ''
Image
Image
User avatar
sann0638
Kommissar Enthusiasmoff
Posts: 6609
Joined: Mon May 08, 2006 10:24 am
Location: Swindon, England

Re: OBBLM Fan Factor

Post by sann0638 »

Vanguard wrote:Hi Mike,

Teams are stored in the teams table.
Ha, now I feel silly. Which folder is that in?

Reason: ''
NAF Ex-President
Founder of SAWBBL, Swindon and Wiltshire's BB League - find us on Facebook and Discord
NAF Data wrangler
User avatar
Vanguard
Super Star
Super Star
Posts: 922
Joined: Sun Jun 08, 2008 8:27 am
Location: Glasgow
Contact:

Re: OBBLM Fan Factor

Post 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.

Reason: ''
Image
Image
voyagers_uk
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

Post by voyagers_uk »

Mike, is this something you could do for me for my NAF hosted league

Reason: ''
Image
Ikterus wrote: But for the record, play Voyagers_UK if you have the chance. He's cursed! :P
User avatar
sann0638
Kommissar Enthusiasmoff
Posts: 6609
Joined: Mon May 08, 2006 10:24 am
Location: Swindon, England

Re: OBBLM Fan Factor

Post by sann0638 »

Ha, that's why I am looking into it :D

Reason: ''
NAF Ex-President
Founder of SAWBBL, Swindon and Wiltshire's BB League - find us on Facebook and Discord
NAF Data wrangler
User avatar
Vanguard
Super Star
Super Star
Posts: 922
Joined: Sun Jun 08, 2008 8:27 am
Location: Glasgow
Contact:

Re: OBBLM Fan Factor

Post by Vanguard »

Happy to help if I can. I've tested this on my own OBBLM install, can talk you through it if required.

Reason: ''
Image
Image
User avatar
sann0638
Kommissar Enthusiasmoff
Posts: 6609
Joined: Mon May 08, 2006 10:24 am
Location: Swindon, England

Re: OBBLM Fan Factor

Post by sann0638 »

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
User avatar
sann0638
Kommissar Enthusiasmoff
Posts: 6609
Joined: Mon May 08, 2006 10:24 am
Location: Swindon, England

Re: OBBLM Fan Factor

Post by sann0638 »

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
Post Reply