mvordeme;496954 Wrote:
> Several things had happened. The idle monitoring had been switched off
> for some reason, the service was running under the wrong user account,
> and SPC wasn't executing any of the configured commands.
>
> I first had to fix the service, and then I reset the SPC configuration.
> After that, SCPowerTool would work again, and finally, I was able to
> convince the server to execute my LightsOut integration script.
>
> I'll keep an eye on it, and if it looks like it is working
> satisfactorily, I will write a short manual and upload the script. I am
> going to modify the logging so the log output can be redirected as you
> did with SCPowerTool.
>
> *P.S.:* I just noticed that the not idle command is always executed by
> -no name- instead of the active player.
The -no name- entries in the log became necessary with changes between
SC 7.3.4 and SBS 7.4.x. What used to work suddenly stopped working. So
now I'm taking a hyper-vigilant approach:
Code:
--------------------
sub ClientAttribute {
my ($client, $attr) = @_;
return (eval {$client->$attr()} || "no $attr" );
}
--------------------
Thus, ClientAttribute(undef, 'name') will yield "no name".
In the case of the not-idle command, the command doesn't really execute
in any client context...it's just fired off by the periodic timer. So,
even though a client may be playing (and thus the system is "not idle")
the command gets executed without any client credentials and thus 'no
name' is perfectly appropriate, if a little confusing. On the other
hand, SrvrPowerCtrl commands executed from the client UI or from the SBC
or another controller (Touch, iPeng) should show the player name in log
entry.
--
gharris999
------------------------------------------------------------------------
gharris999's Profile: http://forums.slimdevices.com/member.php?userid=115
View this thread: http://forums.slimdevices.com/showthread.php?t=48521
_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins