PDA

View Full Version : Scripted RC


Skyld
09-24-2006, 02:24 AM
Lately I have been working on the Scripted RC, and decided to provide some screenshots for those interested.

I will eventually release the script, not yet though. Currently everything you see works, we are planning on adding more features though so that it is more useful.

Post what you think.

Skyld
09-24-2006, 02:26 AM
Continued.

Rapidwolve
09-24-2006, 02:36 AM
Nice Skyld :]

Damix2
09-24-2006, 03:14 AM
"we"?

Angel_Light
09-24-2006, 04:09 AM
how do you get the rc chat to display properly and such??????

Rapidwolve
09-24-2006, 04:12 AM
Lol, thats what I was wondering...

How when someone talks on RC it shows up on the client-rc

KuJi
09-24-2006, 05:28 AM
function onRCChat(text)
{
}

I think?

Darkyoshi12345
09-24-2006, 05:31 AM
Scripted RC, woah. What's next? Scripted editor with it's own GUI window?
Scripted Graal client?

Angel_Light
09-24-2006, 06:32 AM
function onRCChat(text)
{
}

I think?

I need the public function part.


Scripted RC, woah. What's next? Scripted editor with it's own GUI window?
Scripted Graal client?

o.o There is a scripted editor out there...... And the Graal Client is Scripted....x_x

Twinny
09-24-2006, 07:02 AM
It was a joke Angel :whatever:

Anywho it's looking sweet. Hopefully playerworlds will get the new NPC server soon :D

As for onRcChat(), read the params for the event and you should be right.

Angel_Light
09-24-2006, 07:11 AM
It was a joke Angel :whatever:


Sorry I'm not really in a joking mood since of what happen on the server I work for.:mad:

zephirot
09-24-2006, 03:36 PM
If you release, create an option to remove GraalOnline image

Angel_Light
09-24-2006, 06:27 PM
If you release, create an option to remove GraalOnline image

whats wrong with the Image? :P

zephirot
09-24-2006, 06:30 PM
whats wrong with the Image? :P

Its getting really old... :[
AND REALLY UGLY >:[

Rapidwolve
09-24-2006, 06:50 PM
Yawr

Yen
09-24-2006, 07:18 PM
Dynamic GUI profiles!

Moondeath_2
09-24-2006, 07:38 PM
Nice job. =D

contiga
09-24-2006, 07:50 PM
Lovely.

Angel_Light
09-24-2006, 08:40 PM
Its getting really old... :[
AND REALLY UGLY >:[

lol, subliminamal messages. :p

I would do anything for that script right now XD

xAndrewx
09-24-2006, 08:41 PM
"we"?

Skyld and his possy of friends!
Nice work ;)

Skyld
12-04-2006, 07:35 PM
Further updates.

Added the file manager (from the old file manager script, requires editing and a little bit of fixing up, but it mostly works).
Added the ability to edit script flags also, which should make quite a few things easier.
Also updated the shortcut menu, although adding Database NPCs needs to be fixed.
Scripted RC window will now only work if you have admin rights and a correct IP range on the server.
Fixed a few bugs also. :)

Not sure how long it will be before this is released for anyone to use, hopefully not too long.

Chompy
12-04-2006, 08:07 PM
Nice, looks really nice now :D
Skyld, scripted'rc looks like it's getting better then the old one :) (RC2)

edit: it is :)

godofwarares
12-11-2006, 10:48 PM
How do I get the filebrowser?
Mine doesn't return anything but a null :(

Inverness
12-12-2006, 12:10 AM
Looks yummy :D

coreys
12-12-2006, 02:16 AM
How in the world do you have a file browser? How in the world is it possible to upload files...o_o I'm guessing theres some functions I'm not aware of.

It looks amazing though. Are you going to release it, or is it somewhere already and I'm just stupid?

_Z3phyr_
12-12-2006, 05:22 AM
Can you add a "ban/unban _Z3phyr_" button


pretty pretty please?

Crono
12-12-2006, 05:40 AM
Looks great, but I'll always prefer the stand-alone .exe.

Devil
12-12-2006, 06:10 AM
Looks great, but I'll always prefer the stand-alone .exe.

Yeah I reckon..

Skyld
12-24-2006, 12:47 PM
Current capabilities:

Editing attributes (which are edited seperately; flags, attributes, chests and weapons);
Editing comments;
Editing player bans using the new ban system;
Disconnecting players (optionally with a disconnect reason);
Resetting player's attributes;
Sending admin messages (both to a single player and all players);
Viewing ban history and staff activity of players;
Uploading, downloading and deleting files in the file manager;
Editing server flags;
Editing server options;
Editing folder configuration;
Adding weapons and classes (but DB NPCs doesn't work yet);
Editing weapon scripts;
Editing class scripts;
Editing DB NPC scripts and flags;
Not displaying the Scripted RC unless clientrc was started successfully.

Things which need to be added:

Moving and renaming files in the file browser;
Adding DB NPCs;
Deleting DB NPCs, weapons, class scripts;
Editing player local server rights;
Showing how long bans last on the ban type list;
Improving the logon check for Scripted RC.

The Scripted RC will likely be released in a few weeks (the script posted on the forums, and probably added to Mac users on logon so that they can access RC on their servers since there is not a Mac RC available).

Mykel
12-24-2006, 12:58 PM
Nice job man. Maybe this will shut up Excal. <3

excaliber7388
12-25-2006, 02:24 AM
Nice job man. Maybe this will shut up Excal. <3
Of course it would...
Until I realize there's no way for me to make levels to upload ;)
Or to make gani's (short of editing in text, which is what I plan to do).
It's going to make me quieter ;)

Skyld
01-12-2007, 08:05 PM
Latest update:

Editing attributes (which are edited seperately; flags, attributes, chests and weapons);
Editing comments;
Editing player bans using the new ban system;
Disconnecting players (optionally with a disconnect reason);
Resetting player's attributes;
Sending admin messages (both to a single player and all players);
Viewing ban history and staff activity of players;
Uploading, downloading and deleting files in the file manager;
Editing server flags;
Editing server options;
Editing folder configuration;
Adding weapons and classes (but DB NPCs doesn't work yet);
Editing weapon scripts;
Editing class scripts;
Editing DB NPC scripts and flags;
Not displaying the Scripted RC unless clientrc was started successfully;
Deleting DB NPCs, weapons, class scripts;
Editing player local server rights;
Resetting DB NPCs (currently using the /resetnpc command)
Improving the logon check for Scripted RC.

Things which need to be added:

Moving and renaming files in the file browser;
Adding DB NPCs;
Viewing variable dumps;
Showing how long bans last on the ban type list.

Known problems (will eventually be fixed):

Tabs in the script editor might mess up when having both script and attributes open;
It is difficult to tell if someone is banned locally or globally;
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.

godofwarares
01-13-2007, 12:56 AM
I can't figure out how to get an admin message to work o.O

Draenin
01-13-2007, 10:38 AM
This is a great thing you're doing, Skyld. I'd like to see all user tools (Graaleditor, terraingen, levelgen, graalshop, gif2mng) put out as open-source, simply because they aren't updated as much anymore.

Skyld
01-13-2007, 11:34 AM
This is a great thing you're doing, Skyld. I'd like to see all user tools (Graaleditor, terraingen, levelgen, graalshop, gif2mng) put out as open-source, simply because they aren't updated as much anymore.
:) Currently the Scripted RC is being added to Mac users since they are currently missing an RC, however it's possible that this will either be added to everyone, or I will release the script sometime. I suppose that's up to Stefan.

doomboy00
01-13-2007, 06:58 PM
Can't wait till this is released, finally i wont need to use virtual pc for just going on rc, only for making stuff (which could be done using good ol' text editor) ^_^ w00t

projectigi
01-17-2007, 11:49 PM
this rc should have ways to modify it
like adding a script that checks for every weapon if theres a join to some class in the script and if not adds that =/

Admins
01-18-2007, 12:09 AM
It is still possible to write your own scripted rc for your server.

doomboy00
01-19-2007, 05:47 PM
Loving using the client-rc, only thing I would like to see added to it would be the ability to warp players with it (obviously only if you have the rights to).
Apart from that, its sweeeeetttttt :D

Draenin
01-19-2007, 08:43 PM
It is still possible to write your own scripted rc for your server.It's probably not a great idea to tell people that. :s

Skyld
01-19-2007, 08:58 PM
It's probably not a great idea to tell people that. :s
Why not? :O

Draenin
01-19-2007, 09:04 PM
Individuals making abusive tools.

Skyld
01-19-2007, 09:06 PM
Individuals making abusive tools.
You can't do things using clientrc that you don't have rights to. Additionally you must also have the correct IP range and be in the server options for it to work.

Inverness
01-20-2007, 12:36 AM
It is still possible to write your own scripted rc for your server.
How am I to do this when I don't know how to use sendtext() and requesttext()?
I would have taken a crack at a scripted RC if there was documentation.

Admins
01-20-2007, 01:01 AM
May be you contact Skyld for the script and sendtext/receivetext, we should also put it on the wiki

Skyld
01-20-2007, 01:04 AM
How am I to do this when I don't know how to use sendtext() and requesttext()?
I would have taken a crack at a scripted RC if there was documentation.
I have been working on listing these features, some details are here: http://skyld.vip.graal.net/wikka.php?wakka=ServerRequestData

godofwarares
01-20-2007, 01:11 AM
I have been working on listing these features, some details are here: http://skyld.vip.graal.net/wikka.php?wakka=ServerRequestData

Once again Skyld saves me time on scripts. :whatever:

excaliber7388
01-20-2007, 01:32 AM
I'd like to dismantle it into specific parts so I could maybe use it (less lag if you just need to edit a weapon...if lag is even my problem).

godofwarares
01-20-2007, 09:03 PM
Just a note, Skyld .. Half the stuff on that list doesn't work ._.

Skyld
01-21-2007, 01:31 AM
Just a note, Skyld .. Half the stuff on that list doesn't work ._.
Do you have RC rights to them, and has your gserver/npcserver been restarted to add the new functions?

godofwarares
01-21-2007, 01:36 AM
Well, I fixed a few (had to correct spelling)

The things that don't work are:
list
simplelist
upgradeinfo

pm* (all the PM things)

Skyld
01-21-2007, 01:38 AM
Well, I fixed a few (had to correct spelling)

The things that don't work are:
list
simplelist
upgradeinfo

pm* (all the PM things)
I am wondering if some of those only work for privileged scripts on the login server or so. I'm not certain.

godofwarares
01-21-2007, 01:41 AM
Ah well. I'll work around them.

excaliber7388
01-21-2007, 02:09 AM
None work for me :p
Optimization, please :(

godofwarares
01-21-2007, 02:10 AM
What exactly do you need? I might give you a snippet of my ClientRC.

godofwarares
01-21-2007, 10:57 PM
I have a question:

Does anyone know how to set an icon of a list or a tree? I need to know this :x

Inverness
01-22-2007, 02:20 AM
I have been working on listing these features, some details are here: http://skyld.vip.graal.net/wikka.php?wakka=ServerRequestData
You are my new god :O!

excaliber7388
01-22-2007, 03:46 AM
What exactly do you need? I might give you a snippet of my ClientRC.
File browser, rights, scripts creating/editing....and maybe some server flags and serverops.
I cant use any of the things.

Skyld
01-22-2007, 10:04 AM
File browser, rights, scripts creating/editing....and maybe some server flags and serverops.
I cant use any of the things.
If you are having trouble with these things, then it is probably not a script problem, but instead a problem with receiving the responses from request/sendtext. I am not sure that a "cut-down" script will change this, since my Scripted RC is only requesting these things when they are needed.

excaliber7388
01-22-2007, 03:38 PM
Joey's scripted NC works, and *RW's rc can use rc chat quicker than yours. I think there might be something in making the script more compact. The problem wih Joey's NC is that it can't make new scripts, and it can't edit my largest ones :(

godofwarares
01-22-2007, 09:49 PM
File browser, rights, scripts creating/editing....and maybe some server flags and serverops.
I cant use any of the things.

Oh man, What code are you using right now?

excaliber7388
01-22-2007, 10:06 PM
Oh man, What code are you using right now?
Built in one from Skyld lol.
It doesn't work for me (yes, I'm on a Mac) :p

godofwarares
01-23-2007, 12:14 AM
Try this and tell me if "New Client-RC: whatever" appears in your RC:


//#CLIENTSIDE
function onCreated() {
requesttext("clientrc", 1);
}


If it does, then tell me.

Skyld
01-25-2007, 07:18 PM
Fixed a couple of things in the Scripted RC script:

The scrollbars are displayed properly in the Script Editor;
It is now shown whether the active ban is a global ban;
Fixed a couple of bugs which were causing problems;
Ban and error windows are now closed when switching servers.

The script will probably be updated on the login server this evening for use (Version "25/01/2007 Release").

Chandler
01-25-2007, 07:20 PM
Fixed a couple of things in the Scripted RC script:

The scrollbars are displayed properly in the Script Editor;
It is now shown whether the active ban is a global ban;
Fixed a couple of bugs which were causing problems;
Ban and error windows are now closed when switching servers.

The script will probably be updated on the login server this evening for use (Version "25/01/2007 Release").

I'm wondering, does this work for non-Mac users? I want to use it!

Skyld
01-25-2007, 07:21 PM
I'm wondering, does this work for non-Mac users? I want to use it!
Well, technically it works, but it is not added to non-Mac users yet.

Chandler
01-25-2007, 07:25 PM
Well, technically it works, but it is not added to non-Mac users yet.

Shame! I can't wait ^^

excaliber7388
01-25-2007, 07:59 PM
Is it a matter of only giving it to Mac users, or the fact that most of the Mac interface is scripted?

Skyld
01-25-2007, 08:03 PM
Is it a matter of only giving it to Mac users, or the fact that most of the Mac interface is scripted?
Only added to Mac users. It will work on other platforms.

xXziroXx
01-25-2007, 11:08 PM
So there is no way to open it in game, even after loged on Client-RC with requesttext? If there is, how?

Skyld
01-25-2007, 11:12 PM
So there is no way to open it in game, even after loged on Client-RC with requesttext? If there is, how?
Currently not.

excaliber7388
01-25-2007, 11:17 PM
Is it possible to break it up or optimize it in any way so people with a slow connection could use it? ^^
Pwetty pwease?

Skyld
01-26-2007, 10:12 AM
Is it possible to break it up or optimize it in any way so people with a slow connection could use it? ^^
Pwetty pwease?
Thing is, I actually have no idea what is making it impossible for you to use it. It's got to be something with your school's network, since other people are using it fine.

excaliber7388
01-26-2007, 03:26 PM
Yeah, I think that's probably it.
Between my school's network, and running it through rosetta, it's just not going to be fast. :frown:

zokemon
01-27-2007, 09:57 AM
I seem to be unable to use it?
I am trying it on Kingdoms Debug...

Skyld
02-03-2007, 04:06 PM
I seem to be unable to use it?
I am trying it on Kingdoms Debug...
Unless you are on Mac, or have had Stefan add it to you on the login server, you won't be able to use it.

I intend to release the script shortly, so that you can upload it onto your server for yourself or staff to use.

zokemon
02-03-2007, 10:25 PM
Unless you are on Mac, or have had Stefan add it to you on the login server, you won't be able to use it.

I intend to release the script shortly, so that you can upload it onto your server for yourself or staff to use.

I see. Thanks.

godofwarares
02-04-2007, 03:53 AM
Argh anyone know why when I recieve the weaponslist from my server, It prints all the weapons on Graal Kingdoms? X,x

Switch
03-03-2007, 08:51 PM
When IS it coming out?

napo_p2p
03-03-2007, 09:06 PM
When IS it coming out?

The source is out:
http://forums.graalonline.com/forums/showthread.php?t=71944

cbk1994
03-04-2007, 01:30 AM
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.

Also, found a bug.
If you open the vars and the script of a DB npc at one time, it doesn't dispaly properly (if you open script than vars, both script and vars will show the vars. if you close vars the script is correct though.)

Skyld
03-04-2007, 01:37 AM
Also, found a bug.
If you open the vars and the script of a DB npc at one time, it doesn't dispaly properly (if you open script than vars, both script and vars will show the vars. if you close vars the script is correct though.)
That's one I already know of (it's listed in the bugs list on the other thread):
There are a couple of currently known bugs, which will probably be fixed when I next release the script: [...] NPC attributes and NPC scripts are not always working properly when opened at the same time

Riot
03-04-2007, 10:21 AM
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.

I guess I'll post a bug/warning about the "style" command:

If you have padding enabled on operators it will cause syntax errors if you use var @= "something"; as it places a space between @ and =.
Example:

function onCreated() { this.var += 1;
this.test @= "test";}

Becomes:
function onCreated()
{
this.var += 1;
this.test @ = "test";
}(note the space between @ and =)

scriptstyle=spaces=2,padding=oper,brackets=break is used in this example.

I assume its the same for some other operators added in GS2.

cbk1994
03-04-2007, 03:20 PM
Well, it's one step closer to being able to style code in the scripted rc.
I guess I'll post a bug/warning about the "style" command:

If you have padding enabled on operators it will cause syntax errors if you use var @= "something"; as it places a space between @ and =.
Example:

function onCreated() { this.var += 1;
this.test @= "test";}

Becomes:
function onCreated()
{
this.var += 1;
this.test @ = "test";
}(note the space between @ and =)

scriptstyle=spaces=2,padding=oper,brackets=break is used in this example.

I assume its the same for some other operators added in GS2.