Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting > New Scripting Engine (GS2)
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 08-24-2006, 09:43 PM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
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.

Last edited by Skyld; 09-06-2006 at 11:03 PM..
Reply With Quote
  #2  
Old 08-25-2006, 11:20 PM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
Bump @ Stefan.
Reply With Quote
  #3  
Old 08-25-2006, 11:23 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
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?
Reply With Quote
  #4  
Old 08-25-2006, 11:29 PM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
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.
Reply With Quote
  #5  
Old 08-25-2006, 11:35 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
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.
Reply With Quote
  #6  
Old 08-25-2006, 11:38 PM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
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.
Reply With Quote
  #7  
Old 08-25-2006, 11:41 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
Hmmm Disconnect actually works with the player id, like sendtext("disconnect", 1, "thats why")
Reply With Quote
  #8  
Old 08-25-2006, 11:43 PM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
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"
Reply With Quote
  #9  
Old 08-26-2006, 12:13 AM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
Well there could be a reset reason in the future
Hmmm will check the reset-message soon, may be it's just a problem with resetting yourself, could eventually crash the server
Reply With Quote
  #10  
Old 08-26-2006, 03:37 PM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
Perhaps having attributes reset is making "Client-RC disconnected: " messages not show an account name or so, not sure.
Reply With Quote
  #11  
Old 08-28-2006, 12:48 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
Ok fixed the reset-messages and the sending of script errors
Reply With Quote
  #12  
Old 08-28-2006, 05:39 PM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
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.

Last edited by Skyld; 08-28-2006 at 11:44 PM..
Reply With Quote
  #13  
Old 09-04-2006, 03:21 PM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 03:13 PM.


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