Graal Forums

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

Skyld 05-05-2007 06:44 PM

Scripted RC
 
Scripted RC (18/02/2008)

Notice: Normal scripts cannot use Client-RC anymore. Read more.

This thread will be used to keep track of recent updates and problems in the latest versions of the Scripted RC. There were previously older threads, which can be found at the References section towards the end of this post.

For information surrounding the development of the Client-RC functionality in the gserver, please click here.

The Scripted RC allows RC-like functionality built-into the client. You can access the Scripted RC by pressing the F6 key on a server that you have admin access to.

To use the Scripted RC, you must have your RC set up like a normal RC (be listed in the staff= serveroption, and have your IP range set correctly in your rights).

Current capabilities of the Scripted RC/fixed bugs:
  1. Editing attributes (which are edited seperately; flags, attributes, chests and weapons);
  2. Editing comments;
  3. Editing player bans using the new ban system;
  4. Disconnecting players (optionally with a disconnect reason);
  5. Resetting player's attributes;
  6. Sending admin messages (both to a single player and all players);
  7. Viewing ban history and staff activity of players;
  8. Uploading, downloading and deleting files in the file manager;
  9. Editing server script flags;
  10. Editing server options;
  11. Editing folder configuration;
  12. Adding weapons, classes and Database NPCs;
  13. Editing weapon scripts;
  14. Editing class scripts;
  15. Editing DB NPC scripts and flags;
  16. Not displaying the Scripted RC unless clientrc was started successfully;
  17. Deleting DB NPCs, weapons, class scripts;
  18. Editing player local server rights;
  19. Resetting DB NPCs (currently using the /resetnpc command)
  20. Improved the logon check for Scripted RC;
  21. It is now shown whether the active ban is a global ban;
  22. Fixed a couple of bugs which were causing problems;
  23. Ban and error windows are now closed when switching servers;
  24. A way to see next available ID when creating database NPCs;
  25. The scrollbars are displayed properly in the Script Editor;
  26. Tabs in the script editor might mess up when having both script and attributes open;
  27. It is difficult to tell if someone is banned locally or globally;
  28. A way to log out of the Scripted RC without having to reconnect to the server;
  29. Ban history button is now shown in the ban window;
  30. Searching the account list;
  31. Adding/editing accounts;
  32. Options window to replace /set for changing open on login and chat logging;
  33. External GUI windows supported where the client supports it. This will be widespread with the next client update.

Things which need to be added:
  1. Moving and renaming files in the file browser;
  2. Viewing variable dumps;
  3. Showing how long bans last on the ban type list.

Known problems (will eventually be fixed):
  1. Playerlist is known to misgroup people (Server Admins and Server Players) where there are lots of players online. This is not really a problem but can just make it harder to find staff. This will be corrected in future Graal client versions.

References:
  1. "Scripted RC release" (http://forums.graalonline.com/forums...ad.php?t=71944)
  2. "Scripted RC" (http://forums.graalonline.com/forums...ad.php?t=68912)
  3. "Client-RC updates" (http://forums.graalonline.com/forums...ad.php?t=68580)
Current notes regarding the Scripted RC:
  • The attributes in the Scripted RC work differently, and are separated into four different sections:
    • /open - for opening general attributes such as look and basic flags
    • /openflags - for viewing and editing client script flags
    • /openchests - for viewing and editing opened chests
    • /openweapons - for changing player's weapon lists
  • Currently there is no button to reset DB NPCs, however you can still reset them by typing /resetnpc <npcname> into RC chat.
  • To add NPCs, send broadcast admin messages and perform some functions on yourself, you must open the script menu by pressing the bottom-right button on the main RC window.

If you are noticing any errors or problems while using the Scripted RC, please post them so that they can be resolved in the next update.

Switch 05-13-2007 10:39 PM

I don't really see any... erm... change, in my RC... I also tried to put it as a fired-clientside wep. DIdn't work. :confused:

Switch 07-14-2007 10:40 PM

Umm... Looking back at this old post...
Nevermind xD
I didn't know it was client-side xD

Skyld 07-15-2007 03:30 PM

I feel I should note now that Client-RC no longer works in normal scripts. If any scripts on your server are using Client-RC functionality, you should remove it. For security reasons, only scripts from the login server are allowed access. This will not affect Mac users already using the Scripted RC by pressing F6.

The restrictclientrctoweapons= serveroption will also become redundant as a result.

I imagine soon that my Scripted RC will be enabled for Windows and Linux users too, so there will be no need to keep it on your server.

cbk1994 07-15-2007 03:35 PM

Quote:

Originally Posted by Skyld (Post 1330720)
I feel I should note now that Client-RC no longer works in normal scripts. If any scripts on your server are using Client-RC functionality, you should remove it. For security reasons, only scripts from the login server are allowed access.

The restrictclientrctoweapons= serveroption will also become redundant as a result.

I imagine soon that my Scripted RC will be enabled for Windows and Linux users too, so there will be no need to keep it on your server.

So can Mac still use it? It hasn't been working on my Mac.

Skyld 07-15-2007 03:37 PM

Quote:

Originally Posted by cbkbud (Post 1330727)
So can Mac still use it? It hasn't been working on my Mac.

Yes. This won't affect Mac users already using it.

Skyld 07-15-2007 06:48 PM

I have updated the script of the Scripted RC, the following things have changed:
  • Script editor tabs are now working properly when you have both the script and the flags of an NPC open;
  • It is now using the GUI style that you have selected in F3 options;
  • The next available DB NPC ID is retrieved and placed into the Add NPC window automatically;
  • A Script Help button has been added now, so you can get documentation on script functions without flooding your RC chat;
  • RC chat text is escaped properly now, so HTML tags won't mess things up in RC chat;
  • There is an Upload button in the file manager so that if there are no files in a folder, you can still upload files;
  • You can now close your Client-RC session without having to log out of the server (by using the script menu).
I'll improve the file manager some more some other time.

The script will be placed onto the login server later, you will receive the update automatically when you reconnect to Graal.

CremisiSteam 01-28-2008 08:57 AM

umm I cant read any of my scripts at all... actually anything that opens one of the script files and or text files and shows a white text box...

no text is seen... also when highlighting it highlights in yellow...

I can copy it and load it into notepad on my pc but I cant actually read it online using the editor... not sure why it happens to me though...

any of the f6 rc control boxes I load cause trouble for me... dunno why but they do but it sorta makes it a bit harder to see what is there and stuff...

Twinny 01-28-2008 01:19 PM

Update your graphics driver. Did wonders for me.

CremisiSteam 01-29-2008 08:53 AM

cant update mine anymore XD and I have no graphics problems other than instead of black text showing up its there but it is not...

it only happens in those white script editor dialog type things...
and then only in the scripted rc editor

Admins 01-29-2008 06:19 PM

May be it's a problem with the particular font used for the script editor. Have you tried to disable bitmap fonts in the options?

CremisiSteam 01-30-2008 09:13 AM

well umm now I cant see any text at all... XD haha
disabled bitmap text and its all gone throught the hole game...

ok in order for me to see any game text at I had to remove the filecache and the config file...

but still can not see the scripted rc script window haha...

CremisiSteam 02-02-2008 11:55 PM

hmm ok I tried uninstalling the whole graal client...

but whenever I try and use the ingame rc...

I can use everything in it but changing/adding weapon npc's and serverflags/folderoptions/serveroptions

all of those show an empty white box... the boxes are the editable text boxes I guess...
I can use the rc fine but I cannot see thescripts so I can still upload files and that kind of stuff

Skyld 02-18-2008 02:59 AM

I have been updating the Scripted RC again:
  • Script editor 'Delete' button now has a confirmation window before deleting scripts;
  • Attributes window has been rearranged to work more like the external RC with "Stats", "Look" and "Basic Attributes" tabs;
  • Scripted RC is now capable of searching the accounts list, reading/modifying accounts (for high admins and globals mostly);
  • The three script editor buttons have now been consolidated into one.
This is not yet released, as I will probably add more changes before releasing, but this is just to let you know that it is still being developed and that there is a release coming in the next couple of days.

Things I intend to work on for future versions:
  • Rearranging the Rights window to work more like the external RC with tabs;
  • Improved ban window to show global and computer bans;
  • Moving functions out of the Script Menu into independent buttons;
  • Fixing the playerlist to group admins and players properly;
  • Combo boxes in the attributes window for looks (colours);
  • Staff activity buttons in openaccess, and global ban/computer ban info if possible;
  • Showing how long bans last on the ban list;
  • Resizable edit account window;
  • Changing button order so that tab key is presenting natural order;
  • Adding more Key shortcuts, and using onAction on text fields to accept enter key.
The Scripted RC is also using external GUI windows in the new game client, so when the upgrade becomes available, the Scripted RC no longer uses built-in windows, but instead, external windows that are separate from the game window, and can be used while the game is minimized, etc.

If you have any bug reports or suggestions, please post them here.

cbk1994 02-18-2008 05:12 AM

Quote:

Originally Posted by Skyld (Post 1375475)
I have been updating the Scripted RC again:
  • Script editor 'Delete' button now has a confirmation window before deleting scripts;
  • Attributes window has been rearranged to work more like the external RC with "Stats", "Look" and "Basic Attributes" tabs;
  • Scripted RC is now capable of searching the accounts list, reading/modifying accounts (for high admins and globals mostly);
  • The three script editor buttons have now been consolidated into one.
This is not yet released, as I will probably add more changes before releasing, but this is just to let you know that it is still being developed and that there is a release coming in the next couple of days.

Things I intend to work on for future versions:
  • Rearranging the Rights window to work more like the external RC with tabs;
  • Improved ban window to show global and computer bans;
  • Moving functions out of the Script Menu into independent buttons;
  • Fixing the playerlist to group admins and players properly.
The Scripted RC is also using external GUI windows in the new game client, so when the upgrade becomes available, the Scripted RC no longer uses built-in windows, but instead, external windows that are separate from the game window, and can be used while the game is minimized, etc.

If you have any bug reports or suggestions, please post them here.

OMG I LOVE YOU <3

I SHALL ATTEMPT TO REP YOU, BUT I WILL PROBABLY HAVE SOME ERRUR.

Skyld 02-18-2008 04:30 PM

Okay, the 18/02/2008 update will be uploaded later today. I'll send out a global message when it's available, all you'll need to do is restart your Graal client to get the update.

Admins 02-23-2008 04:42 PM

Idea: Add a style button to script editor. It's a combination of "Apply", "/style scriptname", and opening it again. The "/style" thing could be added as requesttext() call may be. The /style command could be extended to allow passing individual styling options.

cbk1994 02-23-2008 09:18 PM

Quote:

Originally Posted by Stefan (Post 1376334)
Idea: Add a style button to script editor. It's a combination of "Apply", "/style scriptname", and opening it again. The "/style" thing could be added as requesttext() call may be. The /style command could be extended to allow passing individual styling options.

(FROM ONE YEAR AGO)
Quote:

Originally Posted by cbkbud (Post 1284226)
Also, just had an idea.
Since the tab button doesn't work in script editor its really hard to format code. So what about a button in the window that says 'Format Code' and does the command "/style weapon/npc/script name" or whatever the command is.


HMMMMM?

zokemon 02-23-2008 09:35 PM

NPC Code:
      GuiMLTextEditCtrl (GuiMLTextCtrl):
autoindenting - boolean - when pressing the return key, then it's automatically inserting the same number of spaces in front of the new line as in the previous line
tabspaces - integer - when the user presses the tab key then this number of spaces are inserted, by default the tab key is ignored



How about just add the functionality that's already built-in? ^^

cbk1994 02-23-2008 10:24 PM

Quote:

Originally Posted by zokemon (Post 1376391)
NPC Code:
      GuiMLTextEditCtrl (GuiMLTextCtrl):
autoindenting - boolean - when pressing the return key, then it's automatically inserting the same number of spaces in front of the new line as in the previous line
tabspaces - integer - when the user presses the tab key then this number of spaces are inserted, by default the tab key is ignored



How about just add the functionality that's already built-in? ^^

They did add it. I think that was actually added specifically for Client-RC. Not sure though.

Admins 02-23-2008 10:38 PM

Yes added that for scripted RC
cbkbud: Skyld told me to post suggestions in this thread so that he can easily find it

zokemon 02-23-2008 11:40 PM

Oh, I was looking at your quote from one year ago that said "since the tab button doesn't work"

cbk1994 02-24-2008 02:17 AM

Quote:

Originally Posted by Stefan (Post 1376396)
cbkbud: Skyld told me to post suggestions in this thread so that he can easily find it

Fair enough.
Quote:

Originally Posted by zokemon (Post 1376403)
Oh, I was looking at your quote from one year ago that said "since the tab button doesn't work"

Hehe, sorry about that

Rufus 04-26-2008 08:04 PM

Word wrap Player Comments and Ban History and I didn't really notice anyone else mentioning this, but editing files as text too please.

cbk1994 04-26-2008 08:29 PM

Also, is there a way to view PCID?

Crow 04-26-2008 09:04 PM

I'm requesting "Close" buttons next to the "Apply" buttons in the server options, serverflags etc.
I don't want to click that tiny ×.

Edit: Also, set the focus to the ClientRC chatbar after it has been opened maybe? Would be neat.

Skyld 04-26-2008 11:59 PM

Quote:

Originally Posted by cbkbud (Post 1387885)
Also, is there a way to view PCID?

I'm not sure if it's being returned by the ban info at the moment, I'll have to check that.
Quote:

Originally Posted by Crow
I'm requesting "Close" buttons next to the "Apply" buttons in the server options, serverflags etc.
I don't want to click that tiny ×.

Edit: Also, set the focus to the ClientRC chatbar after it has been opened maybe? Would be neat.

I shall add those to the next update.
Quote:

Originally Posted by Rufus
Word wrap Player Comments and Ban History

I'll look into this.
Quote:

Originally Posted by Rufus
and I didn't really notice anyone else mentioning this, but editing files as text too please.

Need to improve the file manager first but this should be possible eventually. :)

cbk1994 04-27-2008 02:55 AM

Quote:

Originally Posted by Skyld (Post 1387902)
Need to improve the file manager first but this should be possible eventually. :)

Drag and drop please...

Robin 04-27-2008 10:26 AM

It would be good that if/when editing a file within the OS came along it could be done like SmartFTP does it on Windows and Cyberduck does it on OS X. You chose the file to edit, it opens in your chosen Text editor (TextMate :D OS X) and when you save it, it automatically gets reuploaded.

Skyld 04-27-2008 12:55 PM

Quote:

Originally Posted by cbkbud (Post 1387922)
Drag and drop please...

There is already support for drag and drop in the script but it is only available on the Windows client at the minute. Support will most likely be added for Mac soon I think.
Quote:

Originally Posted by Robin
It would be good that if/when editing a file within the OS came along it could be done like SmartFTP does it on Windows and Cyberduck does it on OS X. You chose the file to edit, it opens in your chosen Text editor (TextMate OS X) and when you save it, it automatically gets reuploaded.

Stefan would need to add some support or this in the client.

Admins 04-27-2008 01:16 PM

Drag'n'Drop for uploading is working for Windows and Linux. It's not working for the new external windows yet though, also you cannot use it for downloading yet, but that should be added of course.
On Windows RC it's doing it like that (opening the default program association, check for file update and reupload it then). For Mac and Linux that would require some more work, but at least the normal editing of text should be enabled.

cbk1994 04-27-2008 02:11 PM

Quote:

Originally Posted by Robin (Post 1387947)
It would be good that if/when editing a file within the OS came along it could be done like SmartFTP does it on Windows and Cyberduck does it on OS X. You chose the file to edit, it opens in your chosen Text editor (TextMate :D OS X) and when you save it, it automatically gets reuploaded.

This is how the external RC does it on Windows.
Quote:

Originally Posted by Skyld (Post 1387948)
There is already support for drag and drop in the script but it is only available on the Windows client at the minute. Support will most likely be added for Mac soon I think.

Wait .. why does Windows need this? Anyone in their right mind would be using the external RC.
Quote:

Originally Posted by Stefan (Post 1387949)
Drag'n'Drop for uploading is working for Windows and Linux. It's not working for the new external windows yet though, also you cannot use it for downloading yet, but that should be added of course.

Can we add this, because otherwise it's virtually impossible to use the file browser.
Quote:

On Windows RC it's doing it like that (opening the default program association, check for file update and reupload it then). For Mac and Linux that would require some more work, but at least the normal editing of text should be enabled.
Well, can we add this to Mac and Linux? Like I said, there's no way Windows would need this as they would use the external RC most likely.

Skyld 04-27-2008 02:37 PM

Quote:

Originally Posted by cbkbud (Post 1387953)
Wait .. why does Windows need this? Anyone in their right mind would be using the external RC.

There are quite a lot of people on Windows using the Scripted RC because it does not need downloading. :)

cbk1994 04-27-2008 02:38 PM

Quote:

Originally Posted by Skyld (Post 1387959)
There are quite a lot of people on Windows using the Scripted RC because it does not need downloading. :)

But not any serious developers ... especially not scripters.

Skyld 04-27-2008 02:48 PM

Quote:

Originally Posted by Stefan (Post 1387949)
For Mac and Linux that would require some more work, but at least the normal editing of text should be enabled.

It would be very easy on Mac; the OS X developers have a command line tool which is used by Finder to open files and applications. You would just use an exec call:
HTML Code:

Usage: open [-e] [-t] [-f] [-W] [-n] [-g] [-h] [-b <bundle identifier>] [-a <application>] [filenames]
Help: Open opens files from a shell.
      By default, opens each file using the default application for that file. 
      If the file is in the form of a URL, the file will be opened as a URL.
Options:
      -a                Opens with the specified application.
      -b                Opens with the specified application bundle identifier.
      -e                Opens with TextEdit.
      -t                Opens with default text editor.
      -f                Reads input from standard input and opens with TextEdit.
      -W, --wait-apps  Blocks until the used applications are closed (even if they were already running).
      -n, --new        Open a new instance of the application even if one is already running.
      -g, --background  Does not bring the application to the foreground.
      -h, --header      Searches header file locations for headers matching the given filenames, and opens them.

For instance:
HTML Code:

$ open test.txt
... opens test.txt either in the application it is associated with (some files have metadata which contains the program it was created in), or the default selected application otherwise.

The `open' command is not blocking unless you use the -W option; it terminates automatically once the new program has been opened successfully. The application appears as normal in the Dock though, or opens the document in the existing application process if it is already open.

Admins 04-27-2008 07:48 PM

Can try that yes

cbk1994 04-27-2008 08:12 PM

Quote:

Originally Posted by Stefan (Post 1387977)
Can try that yes

How about releasing your level editor so I can start using Mac again?

Robin 04-27-2008 10:52 PM

Yeah might be nice to have a fully featured level editor, scripted or not. For Mac. Yus.

zokemon 04-28-2008 04:40 AM

Quote:

Originally Posted by cbkbud (Post 1387982)
How about releasing your level editor so I can start using Mac again?

I'm almost done with my nw level editor (which edits an actual opened nw file on the client or server instead of editing just the tiles on the current level the player is in) but I'm waiting for a few bug fixes with external windows before I can go on (GuiDrawingPanel transparency, polygon support, etc.).

As it stands right now I have almost all of the features that the external editor for Windows has completed (just need to fix the displaying of polygons and such for the external window). I also have tile layer support completely done (need DrawingPanel transparency fixed to really see it in all its glory though). The other features like paintbrushes, patterns and npc related things are still in mid-development.

This script I actually made about 1.5 - 2 years ago but stopped working on it when I discovered how laggy and hard to use it was with the internal windows. Recently I pulled the script out of a dusty closet and powered it up with the new external windows and not a bit of lag :).

cbk1994 04-28-2008 10:56 PM

Quote:

Originally Posted by zokemon (Post 1388066)
I'm almost done with my nw level editor (which edits an actual opened nw file on the client or server instead of editing just the tiles on the current level the player is in) but I'm waiting for a few bug fixes with external windows before I can go on (GuiDrawingPanel transparency, polygon support, etc.).

As it stands right now I have almost all of the features that the external editor for Windows has completed (just need to fix the displaying of polygons and such for the external window). I also have tile layer support completely done (need DrawingPanel transparency fixed to really see it in all its glory though). The other features like paintbrushes, patterns and npc related things are still in mid-development.

This script I actually made about 1.5 - 2 years ago but stopped working on it when I discovered how laggy and hard to use it was with the internal windows. Recently I pulled the script out of a dusty closet and powered it up with the new external windows and not a bit of lag :).

Gimme script :(

That sounds awesome.

Edit: Post screenshots ;o


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

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