Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   New Scripting Engine (GS2) (https://forums.graalonline.com/forums/forumdisplay.php?f=153)
-   -   Client-RC (https://forums.graalonline.com/forums/showthread.php?t=68336)

Skyld 08-24-2006 09:43 PM

Client-RC
 
I have noticed a bug with the latest update for clientrc support; compiler output is only sent to the clientrc when an actual RC is online. If I log on RC and send a bad script, I get compiler output in clientrc, but when I log off RC, I stop receiving it.

Stuff like "Weapon/GUI-script -No Item added/updated by Skyld" always is sent, though.

I am also not sure what else was added in this update to check out.

Skyld 08-25-2006 11:20 PM

Bump @ Stefan.

Admins 08-25-2006 11:23 PM

I have added disconnect and reset for sendtext (disconnect can have a disconnect reason as option).
Also the client-rc has been made more secure, and you can restrict the allowed weapon scripts with restrictclientrctoweapons=commatext.
NC messages are now always sent via gserver, which is forwarding them to all RCs and client-rcs which have npc-rights. It is not sending error messages when you update a script via client-rc?

Skyld 08-25-2006 11:29 PM

Quote:

Originally Posted by Stefan
I have added disconnect and reset for sendtext (disconnect can have a disconnect reason as option).

PHP Code:

sendtext("disconnect""Skyld""test");
sendtext("reset""Skyld""test");
requesttext("reset""Skyld"); 

None are working.
Quote:

Originally Posted by Stefan
Also the client-rc has been made more secure, and you can restrict the allowed weapon scripts with restrictclientrctoweapons=commatext.

This works fine.
Quote:

Originally Posted by Stefan
NC messages are now always sent via gserver, which is forwarding them to all RCs and client-rcs which have npc-rights. It is not sending error messages when you update a script via client-rc?

Well, I get the error messages to clientrc when my normal RC is online. If my RC isn't online then I don't get compiler messages in clientrc.

I get all other NC messages though.

Admins 08-25-2006 11:35 PM

Hmmm may be the npcserver is not generating the script errors messages when it thinks that there is no NC online, will need to check that.
For the disconnect and reset thing, you have connected before to clientrc? Some commands were working before without connecting to clientrc so I am asking to be sure.

Skyld 08-25-2006 11:38 PM

Quote:

Originally Posted by Stefan
Hmmm may be the npcserver is not generating the the script errors messages when it thinks that there is no RC online, will need to check that.

That's what I thought.
Quote:

Originally Posted by Stefan
For the disconnect and reset thing, you have connected before to clientrc? Some commands were working before without connecting to clientrc so I am asking to be sure.

Yes, I have already requesttext("clientrc", 1); before trying them. In fact I set it so that RC chat made it try disconnecting someone when I sent RC chat; it did not work.

Admins 08-25-2006 11:41 PM

Hmmm Disconnect actually works with the player id, like sendtext("disconnect", 1, "thats why")

Skyld 08-25-2006 11:43 PM

PHP Code:

sendtext("disconnect"findPlayer("Skyld").id"Yay!");
sendtext("reset""Skyld"0); 

works :)

Maybe requesttext for reset though since it does not need a reason.

Also, the "Your account has been reset" message works.

I think account stuff is messed now though, since I got:
  • "Client-RC disconnected: "
  • " has reset theattributes of Skyld"

Admins 08-26-2006 12:13 AM

Well there could be a reset reason in the future :D
Hmmm will check the reset-message soon, may be it's just a problem with resetting yourself, could eventually crash the server

Skyld 08-26-2006 03:37 PM

Perhaps having attributes reset is making "Client-RC disconnected: " messages not show an account name or so, not sure.

Admins 08-28-2006 12:48 PM

Ok fixed the reset-messages and the sending of script errors

Skyld 08-28-2006 05:39 PM

Quote:

Originally Posted by Stefan
Ok fixed the reset-messages and the sending of script errors

Works fine. :)

Edit: I notice that a clientside onPlayerLogout() is not called when I disconnect or reset someone.

Skyld 09-04-2006 03:21 PM

A problem I have identified with clientrc today is surrounding NPC rights. Not sure if it is a bug or intentional for security reasons.

On a server where npcrights=false, I am still unable to open the NPCs using clientrc if I don't have the folder rights. My normal RC can, though.


All times are GMT +2. The time now is 11:10 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.