Page 1 of 2

OBBLM - BB2016 Rules

Posted: Thu Dec 22, 2016 1:55 am
by harroguk
Firstly I accept no responsibility if this blows up your site.
Take backups of your database and your website before making any changes so you can go back if things get hairy.

If you want to update your OBBLM install to use the BB2016 ruleset then do the following...

Download this file... unzip it and place the file in your OBBLM directory...
  • ../obblm/lib/game_data-BB2016.php
edit ../obblm/header.php
  • [Line 92-93] https://github.com/nicholasmr/obblm/sea ... &type=Code
    • [FROM]

      Code: Select all

      # Load game data --- Module settings might depend on game data, so we include it first
      require_once('lib/game_data_lrb6.php'); # LRB6 MUST be loaded.
      [TO]

      Code: Select all

      # Load game data --- Module settings might depend on game data, so we include it first
      require_once('lib/game_data-BB2016.php'); # BB2016 Rules.
Go to your obblm site...
  • Admin ==> obblm core panel
    • Run each of the DB Maintenance Tasks once
      Run the syncall() task once

Re: OBBLM - BB2016 Rules

Posted: Thu Dec 22, 2016 1:58 am
by harroguk
Known Issues:
Some existing teams player icons no longer work. This does not seem to be a problem with newly created teams.

Re: OBBLM - BB2016 Rules

Posted: Sat Dec 24, 2016 6:50 pm
by ddancer
Worked like a champ! Thank you!

Re: OBBLM - BB2016 Rules

Posted: Sat Dec 24, 2016 8:36 pm
by Shteve0
There will be an official update in a matter of a week or two

Re: OBBLM - BB2016 Rules

Posted: Sun Dec 25, 2016 12:48 am
by ddancer
Shteve0 wrote:There will be an official update in a matter of a week or two
Awesome to hear - I had a question/Issue posted to the NAFLM bugs, thought I might try out your version. :D

Re: OBBLM - BB2016 Rules

Posted: Sat Jan 14, 2017 7:05 pm
by dodger
used this successfully today but had to add Star Player Guffle Pusmaw and his monstrous mouth skill as there were missing form the file.

Re: OBBLM - BB2016 Rules

Posted: Sat Jan 14, 2017 7:08 pm
by dodger
harroguk wrote:Known Issues:
Some existing teams player icons no longer work. This does not seem to be a problem with newly created teams.
which ones? I can probably figure out how to fix them.

Re: OBBLM - BB2016 Rules

Posted: Sat Jan 14, 2017 7:10 pm
by harroguk
Any team that had its race name changed.

Its no biggie for me but feel free to fix it.

Re: OBBLM - BB2016 Rules

Posted: Sat Jan 14, 2017 7:53 pm
by dodger
harroguk wrote:Any team that had its race name changed.

Its no biggie for me but feel free to fix it.
ok it can't be fixed by this file, it's something that should probably be fixed deeper in the code but I did find the exact issue and correct for my site.

icons will work fine for any new teams made after this file is applied.

For existing teams, if the team name changed resyncing everything does not update the f_rname (Race Name) field for the players in the Players table. (It probably should, also, the Icons should probably be looked up by Race ID number and not race name but again those are two things that should probably be fixed deeper in the code.

To fix my league info I just SQL updated the race/team names that changed in the player table and it fixed the icon display.

Example to fix the Chaos/Chaos Chosen teams:
update `players` set f_rname = 'Chaos Chosen' where f_rname = 'Chaos'

Re: OBBLM - BB2016 Rules

Posted: Fri Jan 20, 2017 11:57 pm
by Zinda of Tamaria
I have some issues, and the referenced lines just say to run a query. Ideas?

Re: OBBLM - BB2016 Rules

Posted: Sat Jan 21, 2017 12:33 am
by harroguk
As the problems are happening with...
Class_translations.php

I would guess you are using the site in a language other than English?

Try looking un that file and seeing if you need to change any of the translation mappings.

Re: OBBLM - BB2016 Rules

Posted: Mon Jan 23, 2017 8:12 am
by Zinda of Tamaria
I'm using English.

I'm assuming that somewhere it's saying to translate something that doesn't exist, but I can't tell from reading the translation php which item isn't translating properly (twice)

Re: OBBLM - BB2016 Rules

Posted: Mon Jan 23, 2017 8:18 am
by harroguk
check your .\Website\BloodBowl\localsettings\settings_X.php files to ensure that language is set to "en-GB"?

Code: Select all

$settings['lang']        = 'en-GB';            // Default language. Existing: en-GB, es, de, fr.
not sure what else to suggest as it doesnt happen on mine. Doe it only happen on a specific page?

EDIT:
You could also check your...
Coaches Corner ==> Profile
and ensure the language is set to en-GB there too

Re: OBBLM - BB2016 Rules

Posted: Mon Jan 23, 2017 8:45 am
by Zinda of Tamaria
Everything is set to En-GB. It shows on all screens. I'm going to look through the translations.xml file to see if something's missing.

Re: OBBLM - BB2016 Rules

Posted: Mon Jan 23, 2017 8:56 am
by harroguk
As its only warnings and notices you could suppress them in php.ini if they aren't interfering with anything.

error_reporting = ~E_ALL & ~E_NOTICE & ~E_WARNING & ~E_STRICT & ~E_DEPRECATED

I am using php v5.6.9 with apache 2.4.12