Page 4 of 4

Re: [XASECO] Plugin: Personal Best Checkpoints 1.3.2 (UPDATE

Posted: 27 Nov 2011 10:58
by tomberg
can I somehow leave one column instead of three? Didn't find that setting in php of plugin..

Re: [XASECO] Plugin: Personal Best Checkpoints 1.3.2 (UPDATE

Posted: 27 Nov 2011 12:28
by undef.de
tomberg wrote:can I somehow leave one column instead of three? Didn't find that setting in php of plugin..
Sorry, but there is no option to do that.

Re: [XASECO] Plugin: Personal Best Checkpoints 1.3.2 (UPDATE

Posted: 27 Nov 2011 19:02
by tomberg
ah, np, anyway awesome plugin ;) especially color bar :)

Re: [XASECO] Plugin: Personal Best Checkpoints 1.3.2 (UPDATE

Posted: 25 Sep 2016 11:21
by L3cKy
Got this error ...

Code: Select all

[PHP Warning] Creating default object from empty value on line 586 in file /home/Fullspeed/xaseco/plugins/plugin.personal_best_checkpoints.php

Re: [XASECO] Plugin: Personal Best Checkpoints 1.3.2 (UPDATE

Posted: 03 Mar 2017 19:13
by weasel
Same here :

Code: Select all

###############################################################################
  XASECO v1.16 running on 127.0.0.1:5000
  Name   : ѕєχу мαηіαтесн - techhunt
  Game   : TmForever United - Stadium - TimeAttack
  Version: 2.11.26 / 2011-02-21
  Authors: Florian Schnell & Assembler Maniac
  Re-Authored: Xymph
###############################################################################
Begin Challenge
[03/03,19:59:59] [plugin.records_eyepiece.php] Register event "onCheckpoint" to enabled wanted Widgets.
[03/03,19:59:59] track changed [undefined] >> [TmT - Stupid Banana]
[03/03,19:59:59] currently no record on TmT - Stupid Banana
[PHP Warning] Creating default object from empty value on line 586 in file F:\TMFservers\TMF-Best of TMX\xaseco\plugins\plugin.personal_best_checkpoints.php
[PHP Warning] Creating default object from empty value on line 586 in file F:\TMFservers\TMF-Best of TMX\xaseco\plugins\plugin.personal_best_checkpoints.php
[PHP Warning] Creating default object from empty value on line 586 in file F:\TMFservers\TMF-Best of TMX\xaseco\plugins\plugin.personal_best_checkpoints.php
[PHP Warning] Creating default object from empty value on line 586 in file F:\TMFservers\TMF-Best of TMX\xaseco\plugins\plugin.personal_best_checkpoints.php
[PHP Warning] Creating default object from empty value on line 586 in file F:\TMFservers\TMF-Best of TMX\xaseco\plugins\plugin.personal_best_checkpoints.php
[PHP Warning] Creating default object from empty value on line 586 in file F:\TMFservers\TMF-Best of TMX\xaseco\plugins\plugin.personal_best_checkpoints.php
[PHP Warning] Creating default object from empty value on line 586 in file F:\TMFservers\TMF-Best of TMX\xaseco\plugins\plugin.personal_best_checkpoints.php
[PHP Warning] Creating default object from empty value on line 586 in file F:\TMFservers\TMF-Best of TMX\xaseco\plugins\plugin.personal_best_checkpoints.php
[PHP Warning] Creating default object from empty value on line 586 in file F:\TMFservers\TMF-Best of TMX\xaseco\plugins\plugin.personal_best_checkpoints.php
End Round
End Challenge
[03/03,20:00:54] [RASP] Calculating ranks...
[03/03,20:00:55] [RASP] ...Done!
Begin Challenge
[03/03,20:01:15] track changed [TmT - Stupid Banana] >> [Da Vinci Code]
[03/03,20:01:15] currently no record on Da Vinci Code
[PHP Warning] Creating default object from empty value on line 586 in file F:\TMFservers\TMF-Best of TMX\xaseco\plugins\plugin.personal_best_checkpoints.php
[PHP Warning] Creating default object from empty value on line 586 in file F:\TMFservers\TMF-Best of TMX\xaseco\plugins\plugin.personal_best_checkpoints.php
[PHP Warning] Creating default object from empty value on line 586 in file F:\TMFservers\TMF-Best of TMX\xaseco\plugins\plugin.personal_best_checkpoints.php
[PHP Warning] Creating default object from empty value on line 586 in file F:\TMFservers\TMF-Best of TMX\xaseco\plugins\plugin.personal_best_checkpoints.php
[PHP Warning] Creating default object from empty value on line 586 in file F:\TMFservers\TMF-Best of TMX\xaseco\plugins\plugin.personal_best_checkpoints.php
[PHP Warning] Creating default object from empty value on line 586 in file F:\TMFservers\TMF-Best of TMX\xaseco\plugins\plugin.personal_best_checkpoints.php
[PHP Warning] Creating default object from empty value on line 586 in file F:\TMFservers\TMF-Best of TMX\xaseco\plugins\plugin.personal_best_checkpoints.php
Begin Round

PHP Version is 5.5.30 on WINNT

Oh , and my avast (antivirus program) goes nuts.

Re: [XASECO] Plugin: Personal Best Checkpoints 1.3.2 (UPDATE

Posted: 04 Mar 2017 10:14
by undef.de
weasel wrote:

Code: Select all

[PHP Warning] Creating default object from empty value on line 586 in file F:\TMFservers\TMF-Best of TMX\xaseco\plugins\plugin.personal_best_checkpoints.php
As it is just a warning and the development for XAseco1 is still freezed: Just ignore it. :|

Anyway, i added it to the todo list, thanks!

Edit: If you want to change it by yourself use this code (replace from line 586 till 604):

Code: Select all

// Find Players without a local record and preset with empty time
foreach ($aseco->server->players->player_list as &$ply) {
	if (count($ply->data['BPCPS_TIMES']) == 0) {
		// Preset all CPs with -1
		$ply->data['BPCPS_TIMES'] = array();
		for ($i = 0 ; $i <= $pbcps_config['MAP']['NUM_CPS'] ; $i ++) {
			if ($aseco->server->gameinfo->mode == 6) {
				// 6 = Stunts
				$ply->data['BPCPS_TIMES'][$i]['diff_styled'] = '$FFF---';
			}
			else {
				$ply->data['BPCPS_TIMES'][$i]['diff_styled'] = (($pbcps_config['WIDGET']['FULLTIME'] == true) ? '$FFF-:--.--' : '$FFF-.--');
			}
			$ply->data['BPCPS_TIMES'][$i]['bar_color'] = 'FFF';
			$ply->data['BPCPS_LASTCP'] = -1;
		}
		$ply->data['BPCPS_LAST_LAP_TIME'] = 0;
	}
}
Of course this is untested...

Re: [XASECO] Plugin: Personal Best Checkpoints 1.3.2 (UPDATE

Posted: 04 Mar 2017 13:18
by weasel
Well , the point is that this plugin just not showing any times.

Re: [XASECO] Plugin: Personal Best Checkpoints 1.3.2 (UPDATE

Posted: 10 Mar 2017 03:49
by L3cKy
undef.de wrote:
weasel wrote:

Code: Select all

[PHP Warning] Creating default object from empty value on line 586 in file F:\TMFservers\TMF-Best of TMX\xaseco\plugins\plugin.personal_best_checkpoints.php
As it is just a warning and the development for XAseco1 is still freezed: Just ignore it. :|

Anyway, i added it to the todo list, thanks!

Edit: If you want to change it by yourself use this code (replace from line 586 till 604):

Code: Select all

// Find Players without a local record and preset with empty time
foreach ($aseco->server->players->player_list as &$ply) {
	if (count($ply->data['BPCPS_TIMES']) == 0) {
		// Preset all CPs with -1
		$ply->data['BPCPS_TIMES'] = array();
		for ($i = 0 ; $i <= $pbcps_config['MAP']['NUM_CPS'] ; $i ++) {
			if ($aseco->server->gameinfo->mode == 6) {
				// 6 = Stunts
				$ply->data['BPCPS_TIMES'][$i]['diff_styled'] = '$FFF---';
			}
			else {
				$ply->data['BPCPS_TIMES'][$i]['diff_styled'] = (($pbcps_config['WIDGET']['FULLTIME'] == true) ? '$FFF-:--.--' : '$FFF-.--');
			}
			$ply->data['BPCPS_TIMES'][$i]['bar_color'] = 'FFF';
			$ply->data['BPCPS_LASTCP'] = -1;
		}
		$ply->data['BPCPS_LAST_LAP_TIME'] = 0;
	}
}
Of course this is untested...
Tested it but got the same warnings ...

Re: [XASECO] Plugin: Personal Best Checkpoints 1.3.2 (UPDATE)

Posted: 28 Dec 2018 08:49
by helliaby
Hi. I installed this plugin for my NASCAR server, but in the first round it works perfectly, and in the FIRST check of the second round it also does not happen there. It remains stopped from the second check of the second round. Can something be done?
Thank you

Re: [XASECO] Plugin: Personal Best Checkpoints 1.3.2 (UPDATE)

Posted: 27 Jun 2019 08:23
by L3cKy
undef.de wrote:
04 Mar 2017 10:14

Code: Select all

[PHP Warning] Creating default object from empty value on line 561 in file /xaseco/plugins/plugin.personal_best_checkpoints.php
[PHP Warning] Creating default object from empty value on line 586 in file /xaseco/plugins/plugin.personal_best_checkpoints.php

I have fixed it this way ...

Line 561:

Code: Select all

$ply->data['BPCPS_TIMES'][$i]->best_time = ((isset($cps[$i]) && $cps[$i]!='') ? $cps[$i] : -1);

//replaced into

$ply->data['BPCPS_TIMES'][$i] = new stdClass();
$ply->data['BPCPS_TIMES'][$i]->best_time = ((isset($cps[$i]) && $cps[$i]!='') ? $cps[$i] : -1);
Line 586:

Code: Select all

$ply->data['BPCPS_TIMES'][$i]->best_time = -1;

// replaced into 

$ply->data['BPCPS_TIMES'][$i] = new stdClass();
$ply->data['BPCPS_TIMES'][$i]->best_time = -1;
Greeetings L3cKy