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
  #76  
Old 04-08-2009, 04:03 AM
Tyhm Tyhm is offline
Psionic Youth
Tyhm's Avatar
Join Date: Mar 2001
Location: Babord, West Graal Deaths:1009 Kills:1
Posts: 5,635
Tyhm will become famous soon enough
I was figuring it'd be a right given solely to the server owner. If the server's owner wants to leak it to anti-graal, we got bigger problems than how easy it is to backup and restore.
__________________
"Whatever," said Bean, "I was just glad to get out of the toilet."

"Power does not corrupt. Fear corrupts, perhaps the fear of a loss of power."- John Steinbeck
"I'm only acting retarded, what's your excuse?" queried the Gord.
- My pet, the Levelup Gnome

http://forums.graalonline.com/forums...&postcount=233
Reply With Quote
  #77  
Old 04-08-2009, 03:38 PM
xXziroXx xXziroXx is offline
Master of Puppets
xXziroXx's Avatar
Join Date: May 2004
Location: Sweden
Posts: 5,288
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Send a message via AIM to xXziroXx Send a message via MSN to xXziroXx
Quote:
Originally Posted by Tigairius View Post
Even if you do that, it still makes it easy for corrupt administrators to leak backups of entire servers to Anti-Graal.

I say: leave the backups to the system they already have and give trusted PWA members access to them (the private worlds only, not the servers like UN, Zone, etc), which would make it very easy to get your server restored if something were to happen.
I say: Add a "Backup" button, that only the server owner can use.
__________________

"A delayed game is eventually good, but a rushed game is forever bad." - Shigeru Miyamoto
Reply With Quote
  #78  
Old 04-08-2009, 03:43 PM
Stephen Stephen is offline
Boom!
Stephen's Avatar
Join Date: May 2004
Location: San Francisco
Posts: 10,410
Stephen has much to be proud ofStephen has much to be proud ofStephen has much to be proud ofStephen has much to be proud ofStephen has much to be proud ofStephen has much to be proud of
Backup should just be stored locally - like it is now. If the server needs to be restored it's not a large task for an admin like Tig or Stefan to do and I don't think we have to worry about Graal's servers disappearing overnight.

That way you avoid any potentially damaging or threatening activities while maintaining complete functionality.
__________________
Reply With Quote
  #79  
Old 04-08-2009, 03:46 PM
Tyhm Tyhm is offline
Psionic Youth
Tyhm's Avatar
Join Date: Mar 2001
Location: Babord, West Graal Deaths:1009 Kills:1
Posts: 5,635
Tyhm will become famous soon enough
Well sure, but even if we're going to assume Tig and Stefan are going to be available to restore a server from its local backup copy, what about "Hey, I've got a great idea to completely change the system, it's a little risky but I think I can get it to work in one go - but maybe I should back up everything first"?
__________________
"Whatever," said Bean, "I was just glad to get out of the toilet."

"Power does not corrupt. Fear corrupts, perhaps the fear of a loss of power."- John Steinbeck
"I'm only acting retarded, what's your excuse?" queried the Gord.
- My pet, the Levelup Gnome

http://forums.graalonline.com/forums...&postcount=233
Reply With Quote
  #80  
Old 04-08-2009, 03:47 PM
Stephen Stephen is offline
Boom!
Stephen's Avatar
Join Date: May 2004
Location: San Francisco
Posts: 10,410
Stephen has much to be proud ofStephen has much to be proud ofStephen has much to be proud ofStephen has much to be proud ofStephen has much to be proud ofStephen has much to be proud of
Quote:
Originally Posted by Tyhm View Post
Well sure, but even if we're going to assume Tig and Stefan are going to be available to restore a server from its local backup copy, what about "Hey, I've got a great idea to completely change the system, it's a little risky but I think I can get it to work in one go - but maybe I should back up everything first"?
Then you request a back up? They're automatically scheduled anyways.

Mountain out of a mole hill imo.
__________________
Reply With Quote
  #81  
Old 04-08-2009, 05:52 PM
fragman85 fragman85 is offline
Banned
Join Date: Mar 2009
Location: Switzerland
Posts: 261
fragman85 is on a distinguished road
Who cares about Anti-Graal having Back Ups?
I mean what's the use?

Anti-Graal can obviously not to ANYTHING to damage Graal, it's not like they're professional Hackers (otherwise they'd have hacked Graal years ago).
Reply With Quote
  #82  
Old 08-13-2009, 04:31 PM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
Well it was fun griefing my client-rc'ers on Zodiac but this should be dealt with.

It needs to filter out HTML tags sent through RC messages.

My current hack fix to prevent the tags from continuing to wreak havoc:

PHP Code:
//#CLIENTSIDE

/*
   Hack fix due to ScriptRCRCchat.onTextChanged not working.
*/

function ScriptedRCWindow.onWake() {
  
onWatchRC();
}

function 
ScriptedRCWindow.onShow() {
  
onWatchRC();
}

function 
onWatchRC() {
  
// Quits looping until onScrolled can takeover completely.
  
if (ScriptedRCScroll.scrollpos[1] > 0) return;
  
checkRC();
  
this.scheduleevent(0.05"WatchRC""");
}

function 
ScriptedRCScroll.onScrolled() {
  
checkRC();
}

/*
   Checks RC for new messages / text.
*/

function checkRC() {

  
// Prevent Scroll Looping
  
if (this.last == ScriptedRCRCchat.text.length()) return;
  
  
// Get Last Line
  
temp.rcchat ScriptedRCRCchat.text;
  for (
temp.temp.rcchat.length(); temp.0temp.i--) {
    
temp.char temp.rcchat.charat(temp.i);
    if (
temp.char == "\\" && temp.lastchar == "n") {
      
temp.lbpos temp.2;
      break;
    }
    
temp.lastchar temp.char;
  }
  
  
// Determine Last Message
  
temp.lastmsg temp.rcchat.substring(temp.lbpos);
  if (
temp.lastmsg.pos("</font>") >= 0) {
    
temp.from    temp.lastmsg.substring(0temp.lastmsg.pos("</font>")+7);
    
temp.textmsg temp.lastmsg.substring(temp.lastmsg.pos("</font>")+7);
    
temp.textmsg temp.from filter(temp.textmsg);
  }
  else 
temp.textmsg temp.lastmsg;
  
  
// Alter Text
  
temp.oldspos = @ScriptedRCScroll.scrollpos;
  
ScriptedRCRCchat.text ScriptedRCRCchat.text.substring(0temp.lbpos) @ temp.textmsg;
  if (
temp.oldspos != (@ScriptedRCScroll.scrollpos)) {
    
ScriptedRCScroll.scrolltobottom();
  }
  
  
// Record Length
  
this.last ScriptedRCRCchat.text.length();
}

// Filter's <font> tags.

function filter(msg) {
  
temp.mpos msg.pos("<font");
  if (
temp.mpos == -1) return msg;
  
temp.cpos msg.substring(temp.mpos).pos(">");
  while (
temp.mpos >= && temp.cpos >= 0) {
    
msg msg.substring(0temp.mpos) @ msg.substring(temp.mpos+temp.cpos+1);
    
temp.mpos msg.pos("<font");
    
temp.cpos msg.substring(temp.mpos).pos(">");
  }
  return 
" " msg.trim();

Attached Thumbnails
Click image for larger version

Name:	clientrc_exploit.png
Views:	846
Size:	327.3 KB
ID:	49182  
__________________
Quote:

Last edited by fowlplay4; 08-13-2009 at 07:28 PM..
Reply With Quote
  #83  
Old 02-20-2010, 05:06 AM
adam adam is offline
http://wiki.graal.us/
adam's Avatar
Join Date: Nov 2001
Posts: 2,247
adam has a spectacular aura about
Send a message via AIM to adam
I can't find the scripted RC graphics. sad.
__________________
Rogue Shadow (TCN)(NAT)(Global Development Team)

For development help, contact the patrons of the #graaldt irc channel below, I am usually there.
Click Here to Join IRC Chat Now! -- irc.freenode.net Channel: #graaldt
Quote:
<Dustyshouri> no, RogueShadow is always talking about scripts lol
<Dustyshouri> in fact, he pretty much brought Graal back as a topic single-handedly
Reply With Quote
  #84  
Old 02-20-2010, 05:16 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by fowlplay4 View Post
Well it was fun griefing my client-rc'ers on Zodiac but this should be dealt with.

It needs to filter out HTML tags sent through RC messages.

My current hack fix to prevent the tags from continuing to wreak havoc:
Can you not just replace "<" with "&lt;"? I've done it several times and it works a charm.
__________________
Reply With Quote
  #85  
Old 02-20-2010, 05:52 AM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
Yeah but then the tags show up.
__________________
Quote:
Reply With Quote
  #86  
Old 02-20-2010, 05:56 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by fowlplay4 View Post
Yeah but then the tags show up.
Isn't that what you want?
__________________
Reply With Quote
  #87  
Old 06-27-2010, 07:00 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
I've picked up work on the Scripted RC again and have made the following improvements:
  • The ban window now works properly. You can ban both accounts and PC IDs now;
  • The ban window also shows now the length of time that a ban takes, and how long there is remaining on a ban;
  • The rights window has been updated and now uses tabs;
  • HTML tags stripped properly from RC chat;
  • RC chat is now automatically focused when you press F6;
  • The script editor now has an adjustable pane so that you can drag the section between the script list and the editor;
  • Removed the playerlist and instead added context menu items to the normal scripted playerlist when you log into Scripted RC (just right-click someone on your F7 list after logging in with F6);
  • Adding drop-down menus for the colours selection in the Attributes window.
Things I plan to fix over the next couple of days:
  • Admin messages not always working properly.
I would really appreciate it if you want to test it. You can do so by loging onto Login 2 and then onto your server and pressing F6. Let me know if there are any bugs or anything that needs improving/fixing.
Attached Thumbnails
Click image for larger version

Name:	Screen shot 2010-06-27 at 18.14.31.png
Views:	729
Size:	33.4 KB
ID:	51239   Click image for larger version

Name:	Screen shot 2010-06-27 at 18.14.43.png
Views:	730
Size:	34.0 KB
ID:	51240   Click image for larger version

Name:	Screen shot 2010-06-27 at 18.14.58.png
Views:	712
Size:	55.3 KB
ID:	51241   Click image for larger version

Name:	Screen shot 2010-06-27 at 18.15.10.png
Views:	734
Size:	45.5 KB
ID:	51242   Click image for larger version

Name:	Screen shot 2010-06-27 at 19.55.43.png
Views:	740
Size:	35.9 KB
ID:	51244  

__________________
Skyld

Last edited by Skyld; 06-28-2010 at 03:00 AM..
Reply With Quote
  #88  
Old 06-27-2010, 09:20 PM
oo_jazz_oo oo_jazz_oo is offline
Jazz teh Awesome
oo_jazz_oo's Avatar
Join Date: Jul 2006
Location: California
Posts: 596
oo_jazz_oo is a jewel in the roughoo_jazz_oo is a jewel in the rough
Send a message via MSN to oo_jazz_oo
The scripted rc still needs the ability to search the script list and file browser.

When you have literally hundreds and hundreds of weapons, classes, etc, it would be nice to search for a specific item.
Like the external rc does now...you begin typing, and it finds the first instance that begins with what you typed.

Other than that...i'm glad this is finally being worked on again.

Edit: Also, another thing. Is there any way to check if a player is on clientrc?
The only way I found to do this was to check:
PHP Code:
(@ "-ScriptedRC").this.sessionOpen 
Which of course only works clientside. There should be some flag set to the player if they are on clientrc.
Reply With Quote
  #89  
Old 06-27-2010, 10:09 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Tig has implemented the type-to-find, albeit in an obstructive way, with the playerlist on Login 2. That should be easy enough to copy and fix up.
__________________
Reply With Quote
  #90  
Old 06-27-2010, 10:19 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 oo_jazz_oo View Post
The scripted rc still needs the ability to search the script list and file browser.
Definitely can do this in the filebrowser, but the script editor might be a bit more complicated since scripts are being opened when they are being selected at the left. That might make it hard since if you click the left so that you can start typing, you might open a script, and also when a script is selected, it might be opened by the client (since it probably simulates a select event).
Quote:
Originally Posted by oo_jazz_oo
Edit: Also, another thing. Is there any way to check if a player is on clientrc?
The clientside check is the only reliable one, not sure if it's a good idea to add client flags or such.
__________________
Skyld
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:46 AM.


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