williamleonard / obblm

Automatically exported from code.google.com/p/obblm
1 stars 0 forks source link

Custom point method having issues. #263

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I used a custom scoring system with OBBLM .7 and had zero issues, worked
like a charm.

With .75 I did the install as instructed, had no issues with running the
sql queries and deleted everything and copied new files over to the webserver.

When I tried to use my same custom scoring system, it s giving an error
then listing the tournament standings with everything fine except points(as
the error implies).

Line in settings_php.

$hrs[1]['points'] = '8*[won] + 4*[draw] + 2*[lost] + [td] + [cas] + 0.4[cp]'; 

Error spam.

Type: FFA tournament
Ranking system: 5 = -{8*[won] + 4*[draw] + 2*[lost] + [td] + [cas] +
0.4[cp]}   [change]

Display from :  

Display match average stats

Warning: Missing argument 5 for Stats::getStats(), called in
D:\Hosting\3812811\html\bb\lib\class_stats.php on line 267 and defined in
D:\Hosting\3812811\html\bb\lib\class_stats.php on line 156

Warning: Missing argument 6 for Stats::getStats(), called in
D:\Hosting\3812811\html\bb\lib\class_stats.php on line 267 and defined in
D:\Hosting\3812811\html\bb\lib\class_stats.php on line 156

Notice: Undefined variable: opp_obj in
D:\Hosting\3812811\html\bb\lib\class_stats.php on line 158

Parse error: syntax error, unexpected T_VARIABLE in
D:\Hosting\3812811\html\bb\lib\class_stats.php(310) : eval()'d code on line 1

Warning: Missing argument 5 for Stats::getStats(), called in
D:\Hosting\3812811\html\bb\lib\class_stats.php on line 267 and defined in
D:\Hosting\3812811\html\bb\lib\class_stats.php on line 156

Warning: Missing argument 6 for Stats::getStats(), called in
D:\Hosting\3812811\html\bb\lib\class_stats.php on line 267 and defined in
D:\Hosting\3812811\html\bb\lib\class_stats.php on line 156

Notice: Undefined variable: opp_obj in
D:\Hosting\3812811\html\bb\lib\class_stats.php on line 158

Parse error: syntax error, unexpected T_VARIABLE in
D:\Hosting\3812811\html\bb\lib\class_stats.php(310) : eval()'d code on line 1

Warning: Missing argument 5 for Stats::getStats(), called in
D:\Hosting\3812811\html\bb\lib\class_stats.php on line 267 and defined in
D:\Hosting\3812811\html\bb\lib\class_stats.php on line 156

Warning: Missing argument 6 for Stats::getStats(), called in
D:\Hosting\3812811\html\bb\lib\class_stats.php on line 267 and defined in
D:\Hosting\3812811\html\bb\lib\class_stats.php on line 156

Notice: Undefined variable: opp_obj in
D:\Hosting\3812811\html\bb\lib\class_stats.php on line 158

Parse error: syntax error, unexpected T_VARIABLE in
D:\Hosting\3812811\html\bb\lib\class_stats.php(310) : eval()'d code on line 1

Warning: Missing argument 5 for Stats::getStats(), called in
D:\Hosting\3812811\html\bb\lib\class_stats.php on line 267 and defined in
D:\Hosting\3812811\html\bb\lib\class_stats.php on line 156

Warning: Missing argument 6 for Stats::getStats(), called in
D:\Hosting\3812811\html\bb\lib\class_stats.php on line 267 and defined in
D:\Hosting\3812811\html\bb\lib\class_stats.php on line 156

Notice: Undefined variable: opp_obj in
D:\Hosting\3812811\html\bb\lib\class_stats.php on line 158

Parse error: syntax error, unexpected T_VARIABLE in
D:\Hosting\3812811\html\bb\lib\class_stats.php(310) : eval()'d code on line 1

Warning: Missing argument 5 for Stats::getStats(), called in
D:\Hosting\3812811\html\bb\lib\class_stats.php on line 267 and defined in
D:\Hosting\3812811\html\bb\lib\class_stats.php on line 156

Warning: Missing argument 6 for Stats::getStats(), called in
D:\Hosting\3812811\html\bb\lib\class_stats.php on line 267 and defined in
D:\Hosting\3812811\html\bb\lib\class_stats.php on line 156

Notice: Undefined variable: opp_obj in
D:\Hosting\3812811\html\bb\lib\class_stats.php on line 158

Parse error: syntax error, unexpected T_VARIABLE in
D:\Hosting\3812811\html\bb\lib\class_stats.php(310) : eval()'d code on line 1

Warning: Missing argument 5 for Stats::getStats(), called in
D:\Hosting\3812811\html\bb\lib\class_stats.php on line 267 and defined in
D:\Hosting\3812811\html\bb\lib\class_stats.php on line 156

Warning: Missing argument 6 for Stats::getStats(), called in
D:\Hosting\3812811\html\bb\lib\class_stats.php on line 267 and defined in
D:\Hosting\3812811\html\bb\lib\class_stats.php on line 156

Notice: Undefined variable: opp_obj in
D:\Hosting\3812811\html\bb\lib\class_stats.php on line 158

Parse error: syntax error, unexpected T_VARIABLE in
D:\Hosting\3812811\html\bb\lib\class_stats.php(310) : eval()'d code on line 1

Warning: Missing argument 5 for Stats::getStats(), called in
D:\Hosting\3812811\html\bb\lib\class_stats.php on line 267 and defined in
D:\Hosting\3812811\html\bb\lib\class_stats.php on line 156

Warning: Missing argument 6 for Stats::getStats(), called in
D:\Hosting\3812811\html\bb\lib\class_stats.php on line 267 and defined in
D:\Hosting\3812811\html\bb\lib\class_stats.php on line 156

Notice: Undefined variable: opp_obj in
D:\Hosting\3812811\html\bb\lib\class_stats.php on line 158

Parse error: syntax error, unexpected T_VARIABLE in
D:\Hosting\3812811\html\bb\lib\class_stats.php(310) : eval()'d code on line 1

Warning: Missing argument 5 for Stats::getStats(), called in
D:\Hosting\3812811\html\bb\lib\class_stats.php on line 267 and defined in
D:\Hosting\3812811\html\bb\lib\class_stats.php on line 156

Warning: Missing argument 6 for Stats::getStats(), called in
D:\Hosting\3812811\html\bb\lib\class_stats.php on line 267 and defined in
D:\Hosting\3812811\html\bb\lib\class_stats.php on line 156

Notice: Undefined variable: opp_obj in
D:\Hosting\3812811\html\bb\lib\class_stats.php on line 158

Parse error: syntax error, unexpected T_VARIABLE in
D:\Hosting\3812811\html\bb\lib\class_stats.php(310) : eval()'d code on line 1

Warning: Missing argument 5 for Stats::getStats(), called in
D:\Hosting\3812811\html\bb\lib\class_stats.php on line 267 and defined in
D:\Hosting\3812811\html\bb\lib\class_stats.php on line 156

Warning: Missing argument 6 for Stats::getStats(), called in
D:\Hosting\3812811\html\bb\lib\class_stats.php on line 267 and defined in
D:\Hosting\3812811\html\bb\lib\class_stats.php on line 156

Notice: Undefined variable: opp_obj in
D:\Hosting\3812811\html\bb\lib\class_stats.php on line 158

Parse error: syntax error, unexpected T_VARIABLE in
D:\Hosting\3812811\html\bb\lib\class_stats.php(310) : eval()'d code on line 1

Warning: Missing argument 5 for Stats::getStats(), called in
D:\Hosting\3812811\html\bb\lib\class_stats.php on line 267 and defined in
D:\Hosting\3812811\html\bb\lib\class_stats.php on line 156

Warning: Missing argument 6 for Stats::getStats(), called in
D:\Hosting\3812811\html\bb\lib\class_stats.php on line 267 and defined in
D:\Hosting\3812811\html\bb\lib\class_stats.php on line 156

Notice: Undefined variable: opp_obj in
D:\Hosting\3812811\html\bb\lib\class_stats.php on line 158

Parse error: syntax error, unexpected T_VARIABLE in
D:\Hosting\3812811\html\bb\lib\class_stats.php(310) : eval()'d code on line 1

Warning: Missing argument 5 for Stats::getStats(), called in
D:\Hosting\3812811\html\bb\lib\class_stats.php on line 267 and defined in
D:\Hosting\3812811\html\bb\lib\class_stats.php on line 156

Warning: Missing argument 6 for Stats::getStats(), called in
D:\Hosting\3812811\html\bb\lib\class_stats.php on line 267 and defined in
D:\Hosting\3812811\html\bb\lib\class_stats.php on line 156

Notice: Undefined variable: opp_obj in
D:\Hosting\3812811\html\bb\lib\class_stats.php on line 158

Parse error: syntax error, unexpected T_VARIABLE in
D:\Hosting\3812811\html\bb\lib\class_stats.php(310) : eval()'d code on line 1

Warning: Missing argument 5 for Stats::getStats(), called in
D:\Hosting\3812811\html\bb\lib\class_stats.php on line 267 and defined in
D:\Hosting\3812811\html\bb\lib\class_stats.php on line 156

Warning: Missing argument 6 for Stats::getStats(), called in
D:\Hosting\3812811\html\bb\lib\class_stats.php on line 267 and defined in
D:\Hosting\3812811\html\bb\lib\class_stats.php on line 156

Notice: Undefined variable: opp_obj in
D:\Hosting\3812811\html\bb\lib\class_stats.php on line 158

Parse error: syntax error, unexpected T_VARIABLE in
D:\Hosting\3812811\html\bb\lib\class_stats.php(310) : eval()'d code on line 1

I've tried this with my older database, and even created a fresh install of
.75 with a brand new dbase, and it has the same problem.

The stats work fine if I only use won, draw, and lost.  If i try to add in
td, cas, tcas, tdcas, or cp it causes errors.  If I use score_team no
error.  I've tried these as part of a string of variables, and as sole
stats and it happens in either case.

The settings.php doesn't imply any stat categories have been renamed, and I
have gone as far as I can with trying to figure out why those categories
are now having an issue that worked in .7.

If you'd like a login to mess with it, let me know.

Site is:
http://bb.obtenebration.org

The Spike '09 is the one I've been messing with, but it also has the same
issue with the few older tournaments in there, and with any newly created
ones post .75 upgrade.

Thanks,
David

Original issue reported on code.google.com by meini...@gmail.com on 4 Oct 2009 at 3:45

GoogleCodeExporter commented 9 years ago
Hum, I had some troubles too when upgrading to 0.75 with my custom scoring. But 
I had
done some (well, ugly) hacks into the code instead of doing it the "correct" 
way. :-P
Had to rewrite my hacks to make it work again. (Like +1p for each cas/td up to 
3.)
I'm sorry to say I dont remember what was wrong with my custom code so I'm not 
much
of a help in this case. :-(

/Daniel

Original comment by blodae@gmail.com on 4 Oct 2009 at 9:05

GoogleCodeExporter commented 9 years ago
Thanks for the report! Please apply the changes in r324

Also, use this definition instead:
$hrs[1]['points'] = '8*[won] + 4*[draw] + 2*[lost] + 1*[td] + 1*[cas] + 
0.4*[cp]'; 

...to ensure compatabillity - that is, explicitly write the star-multiplier (*) 
and
write 1*[FIELD] if "no multiplier" is wanted.

Please verify that it works. Thanks.

Original comment by Nimda...@gmail.com on 5 Oct 2009 at 8:56

GoogleCodeExporter commented 9 years ago
That change in r324 worked like a charm.

Thanks alot.

Original comment by meini...@gmail.com on 5 Oct 2009 at 8:52

GoogleCodeExporter commented 9 years ago

Original comment by Nimda...@gmail.com on 6 Oct 2009 at 7:39