Page 8 of 8

Re: ASECO 2.2.2 and stuff

Posted: 30 May 2010 16:25
by nocturne
There's been a lil bug in the karma plugin for awhile that I forgot to ever post. The check4KarmaChatText function is being triggered on /++ and /--. I figure this shouldn't skew the karma at all, but it does show an extra server message..

edit 114-131 plugin.rasp_karma.php

Code: Select all

	function check4KarmaChatText(&$command)
		{
		if ( $this->enabled == false || $command[0] == 0 || $command[3] )
			{
			return;
			}

		if ($command[2] == '++')
			{
			$command['author'] = $this->Aseco->server->players->getPlayer($command[1]);
			$this->KarmaVote($command, 1);
			}
		elseif ( $command[2] == '--' )
			{
			$command['author'] = $this->Aseco->server->players->getPlayer($command[1]);
			$this->KarmaVote($command, -1);
			}
		}
Edit:
Sorry.. right bug, wrong function... Was on my way to work and in a hurry.. Corrected above

Re: ASECO 2.2.2 and stuff

Posted: 01 Jul 2010 11:18
by skyi
eer..., sorry for this maybe dumb question, but
where can i find the link to download this ?
i read the topic and somewhere in the middle you are speaking
of version 2.3.0
this is the version im looking for

thanks in advance xD

Re: ASECO 2.2.2 and stuff

Posted: 01 Jul 2010 11:40
by w1lla
Assembler Maniac wrote:Attn: Nocturne & W1lla (and anyone else interested in testing v2.2.2)

Downloads are as follows:
ASECO TMF 2.2.2
DediMania for ASECO v2.2.2
FuFi Widgets for ASECO v2.2.2

ASECO/RASP Changes include:
  • config.xml - adminunlocked setting, true means the admin commands are unlocked by default
  • Aseco->isAnyAdmin function - reports true if player is any type of admin
  • AdminGroups - named groups for use wherever
  • TMFServer test - will give warning & forum post link if server is older than current version (2009-05-25)
  • addAuthItem - plugins can now add auth items that they use, this will add them to the auth item list in admingroups.xml (see bottom of plugin.rasp_players.php for how this works)
  • Rasp Players plugin - will only list clickable items when player has rights to those functions
  • BeginChallenge/EndChallenge callbacks added along with appropriate events
  • BeginRace/EndRace callbacks now do onBeginRace/onEndRace events
  • /admin endwarmup command added - see rasp.xml for new messsages
  • new basic function isTrue to compare settings against 1, '1', or 'true' (no matter what case it's in), returns true/false boolean
  • admins with PASSCANCELVOTE authitem now have 2 additional buttons when a vote comes up, Pass and Cancel
  • Rasp - Rec/Pb info moved to lower right, just above the speed indicator
  • Admin level of 'AnyAdmin' can be assigned to an admin chat command. Any admin level will be allowed to use that command (it's like doing isAnyAdmin within a function)
Dedimania and FuFi plugins have been adjusted to use the onNewChallenge/onEndChallenge events, I've also set them so the onMainLoop event handlers only process once per second. It should help minimize CPU usage if they're not getting called constantly.
Dedimania has also been adjusted to use getPlugin function once, and as few re-assignments as possible (using $this-> over $var = $this->, then use var later)

I'm hoping everything works ok.

If anyone has suggestions/bugs, let me know.

Re: ASECO 2.2.2 and stuff

Posted: 01 Jul 2010 12:25
by skyi
ow, so 2.3=2.2.2
srry then my mistake :oops:
well anyway i'm happy 2 have the new(er) version :3

Re: ASECO 2.2.2 and stuff

Posted: 07 Jul 2010 11:50
by Fisch.666
Hi!

@AM

There is a typo in the latest plugin_rasp.php file. You are updating the playerID column with this statement:

Code: Select all

alter table rs_rank modify PlayerID int(11) unsigned not null;
which changes the column playerID to PlayerID. Because of this i had some problems with the XAseco stats:

viewtopic.php?p=179048#p179048

but after changing the column back to playerID it works again.

Re: ASECO 2.2.2 and stuff

Posted: 07 Jul 2010 12:30
by Assembler Maniac
Fisch.666 wrote:There is a typo in the latest plugin_rasp.php file. You are updating the playerID column with this statement:

Code: Select all

alter table rs_rank modify PlayerID int(11) unsigned not null;
which changes the column playerID to PlayerID. Because of this i had some problems with the XAseco stats:

viewtopic.php?p=179048#p179048

but after changing the column back to playerID it works again.
Hmmmm, sorry for that. I use a case-insensitive SQL for our business and didn't even think about case problems. Interesting to know that a modify of the col type can rename the col at the same time though. That's probably a mysql bug, but I'll change it in the source anyway.

Re: ASECO 2.2.2 and stuff

Posted: 19 Jul 2010 11:23
by TheM
(Fixed, thanks w1lla)
While trying out ASECO 2.2.2 (2.3.0) I get errors in the Dedimania plugin.
It's about this line (in the includes/xmlrcp_db.inc.php file):

Code: Select all

call_user_func_array($callback, $callbacks[$i]);
Which is called everytime someone connects or a new challenge is started, and so on...

I'm using PHP 5.3.0 on Windows 7 Ultimate.
Any idea how to fix this? I've tried adding a & before $callbacks[$i], but that doesn't work.

Code: Select all

************* (Dedimania) *************
* Dataserver connection on Dedimania ...
* Try connection on http://dedimania.net:8020/Dedimania ...
[07/19,13:21:41] Webaccess (dedimania.net:80): send: deflate, receive: gzip
* Connection and status ok! :)
* NEWS (Dedimania, 08/05): news
************* (Dedimania) *************
###############################################################################
# Game Info: TMU - TimeAttack
###############################################################################
[07/19,13:21:41] map changed [none] >> [D02-Race]
[07/19,13:21:41] currently no record on D02-Race
[07/19,13:21:42] Webaccess (dedimania.net:8020): send: deflate, receive: deflate

[PHP Warning] Parameter 1 to DediMania::dedimania_newchallenge_cb() expected to
be a reference, value given on line 282 in file E:\Servers\Aseco\includes\xmlrpc
_db.inc.php
[07/19,13:22:05] << max1995 joined the game [249]
[PHP Warning] Parameter 1 to DediMania::dedimania_playerconnect_cb() expected to
 be a reference, value given on line 282 in file E:\Servers\Aseco\includes\xmlrp
c_db.inc.php
[/i]

(Fixed, thanks w1lla)
EDIT (Second Problem):
When trying to open the help-window for admin commands by clicking on Admin in the statusbar I get this error:

Code: Select all

Fatal error: Cannot pass parameter 1 by reference in E:\Servers\Aseco\plugins\plugin.admin.php on line 89
[/i]

Re: ASECO 2.2.2 and stuff

Posted: 19 Jul 2010 11:36
by w1lla
try replacing all

Code: Select all

&$
with

Code: Select all

$
.
that might help.

Re: ASECO 2.2.2 and stuff

Posted: 19 Jul 2010 11:43
by TheM
w1lla wrote:try replacing all

Code: Select all

&$
with

Code: Select all

$
.
that might help.
Thanks, that fixed my problems :D

Re: ASECO 2.2.2 and stuff

Posted: 20 Jul 2010 19:17
by nocturne
TheM wrote:EDIT (Second Problem):
When trying to open the help-window for admin commands by clicking on Admin in the statusbar I get this error:

Code: Select all

Fatal error: Cannot pass parameter 1 by reference in E:\Servers\Aseco\plugins\plugin.admin.php on line 89
[/i]
Posted the fix for that a page or two back.. Just a lil php bug.

Re: ASECO 2.2.2 and stuff

Posted: 13 Jul 2012 07:49
by skyi
Assembler Maniac wrote:Attn: Nocturne & W1lla (and anyone else interested in testing v2.2.2)

Downloads are as follows:
ASECO TMF 2.2.2
DediMania for ASECO v2.2.2
FuFi Widgets for ASECO v2.2.2

ASECO/RASP Changes include:
  • config.xml - adminunlocked setting, true means the admin commands are unlocked by default
  • Aseco->isAnyAdmin function - reports true if player is any type of admin
  • AdminGroups - named groups for use wherever
  • TMFServer test - will give warning & forum post link if server is older than current version (2009-05-25)
  • addAuthItem - plugins can now add auth items that they use, this will add them to the auth item list in admingroups.xml (see bottom of plugin.rasp_players.php for how this works)
  • Rasp Players plugin - will only list clickable items when player has rights to those functions
  • BeginChallenge/EndChallenge callbacks added along with appropriate events
  • BeginRace/EndRace callbacks now do onBeginRace/onEndRace events
  • /admin endwarmup command added - see rasp.xml for new messsages
  • new basic function isTrue to compare settings against 1, '1', or 'true' (no matter what case it's in), returns true/false boolean
  • admins with PASSCANCELVOTE authitem now have 2 additional buttons when a vote comes up, Pass and Cancel
  • Rasp - Rec/Pb info moved to lower right, just above the speed indicator
  • Admin level of 'AnyAdmin' can be assigned to an admin chat command. Any admin level will be allowed to use that command (it's like doing isAnyAdmin within a function)
Dedimania and FuFi plugins have been adjusted to use the onNewChallenge/onEndChallenge events, I've also set them so the onMainLoop event handlers only process once per second. It should help minimize CPU usage if they're not getting called constantly.
Dedimania has also been adjusted to use getPlugin function once, and as few re-assignments as possible (using $this-> over $var = $this->, then use var later)

I'm hoping everything works ok.

If anyone has suggestions/bugs, let me know.
Links are dead.

Re: ASECO 2.2.2 and stuff

Posted: 08 Sep 2012 15:43
by skyi
Still dead.