Graal Forums  

Go Back   Graal Forums > Development Forums > Future Improvements
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 05-03-2005, 04:27 PM
Rick Rick is offline
PipBoy Extraordinaire!
Rick's Avatar
Join Date: Jul 2004
Location: Long Beach, California.
Posts: 831
Rick is on a distinguished road
Server Option: noscripts (or classesonly?)

The idea is that, when enabled on a server, a level NPC (or putnpc[2] NPC), the only operations allowed are assignment to this. variables, calling exposed functions (maybe with a keyword?), and joining classes.

GS1:
NPC Code:
if (created) {
this.somevar = 1;
function();
}

join("class");



GS2:
NPC Code:
function onCreated() {
join("class");
this.somevar := 1;
functon();
}



This would increase security immeasurably as level administration, etc, can have access to levels but not access to the scripts themselves, they can only control the configuration of those NPCs. This of course would not affect clientside scripts, weapons, or DB NPCs.

Any comments?
Reply With Quote
  #2  
Old 05-03-2005, 05:03 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
It's certainly an interesting idea. However, it may be better to select level prefixes to apply this to instead of all levels.

Last edited by Skyld; 05-03-2005 at 10:41 PM.. Reason: I realise what I said made no sense!
Reply With Quote
  #3  
Old 05-03-2005, 10:12 PM
Velox Cruentus Velox Cruentus is offline
Registered User
Velox Cruentus's Avatar
Join Date: Dec 2004
Location: Quebec, Canada
Posts: 465
Velox Cruentus is on a distinguished road
Send a message via ICQ to Velox Cruentus Send a message via AIM to Velox Cruentus
PHP Code:
function(1); 
Persay?

PHP Code:
function onCreated()
{
  
join("Items");
  
Config_Item(1,"x","y");

= More secure? Maybe?
__________________
In a world of change... Who'll you believe?
Reply With Quote
  #4  
Old 05-03-2005, 11:52 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
For Unholy nation there was the idea of making it possible to define new file types (like secure1) via the server options, where you define what should be allowed in those levels:

filerights_secure1=look,join

In the folder config you would write something like that:

secure1 *.nw

Then all local npcs in levels belonging to that file type would only be able to change the basic look of the npc, and to join classes. It would probably be more interesting to be able to allow/deny more stuff, like using more functions or allowing only special functions, or only allow to join special classes, but for the start it could at least do something against those scripts that use putnpc2 to spawn staff npcs.

At the end this could also be used to define rights for weapons or database npcs. Then we have rights for staff, and rights for the scripts
Reply With Quote
  #5  
Old 05-03-2005, 11:57 PM
Rick Rick is offline
PipBoy Extraordinaire!
Rick's Avatar
Join Date: Jul 2004
Location: Long Beach, California.
Posts: 831
Rick is on a distinguished road
Yeah, I hate this problem where people with level access can basically bypass the rights that they have (emulate set attributes through scripts).
Reply With Quote
  #6  
Old 05-04-2005, 12:19 AM
Robin Robin is offline
The secret of NIMH
Robin's Avatar
Join Date: Apr 2005
Location: Wales, UK
Posts: 515
Robin will become famous soon enough
Send a message via AIM to Robin
yeah but people with NC access can bypass set attributes rights, warping rights, reseting rights, etc.
Reply With Quote
  #7  
Old 05-04-2005, 12:36 AM
Rick Rick is offline
PipBoy Extraordinaire!
Rick's Avatar
Join Date: Jul 2004
Location: Long Beach, California.
Posts: 831
Rick is on a distinguished road
Quote:
Originally Posted by Robin
yeah but people with NC access can bypass set attributes rights, warping rights, reseting rights, etc.
Of course, but scripters are usually ones you can trust, in general.
Reply With Quote
  #8  
Old 05-04-2005, 12:44 AM
vahn32 vahn32 is offline
oner uf grawl +1 LOL
vahn32's Avatar
Join Date: Jan 2003
Location: See Bible.
Posts: 177
vahn32 is on a distinguished road
Send a message via AIM to vahn32
Quote:
Originally Posted by Rick
Of course, but scripters are usually ones you can trust, in general.
sans Gman*
__________________
Reply With Quote
  #9  
Old 05-04-2005, 12:54 AM
zell12 zell12 is offline
Gone
zell12's Avatar
Join Date: Jun 2001
Location: Alberta, Canada
Posts: 8,541
zell12 has a spectacular aura about
Send a message via ICQ to zell12 Send a message via AIM to zell12 Send a message via MSN to zell12
Yes, a scripter is more trustworthy than a level/gfx maker... Sure...
__________________
Reply With Quote
  #10  
Old 05-04-2005, 03:05 AM
Evil_Trunks Evil_Trunks is offline
Evil
Evil_Trunks's Avatar
Join Date: Dec 2004
Posts: 391
Evil_Trunks is on a distinguished road
Quote:
Originally Posted by zell12
Yes, a scripter is more trustworthy than a level/gfx maker... Sure...
In general, I would say yes. Scripting usually attracts a greater deal of intelligence/common sense than level making. These types of people are more trustworthy.

Of course there will be some exceptions...
__________________

Reply With Quote
  #11  
Old 05-05-2005, 10:50 PM
Kaimetsu Kaimetsu is offline
Script Monkey
Kaimetsu's Avatar
Join Date: May 2001
Posts: 18,222
Kaimetsu will become famous soon enough
Quote:
Originally Posted by zell12
Yes, a scripter is more trustworthy than a level/gfx maker... Sure...
It's not really an issue, is it? The purpose of Rick's suggestion is to ensure that people don't have any more rights than they need. This is a worthwhile goal regardless of how we judge the relative trustworthiness of the groups.
__________________
Reply With Quote
  #12  
Old 05-04-2005, 04:23 AM
Velox Cruentus Velox Cruentus is offline
Registered User
Velox Cruentus's Avatar
Join Date: Dec 2004
Location: Quebec, Canada
Posts: 465
Velox Cruentus is on a distinguished road
Send a message via ICQ to Velox Cruentus Send a message via AIM to Velox Cruentus
Quote:
Of course there will be some exceptions...
*cough*G-Man*cough*
__________________
In a world of change... Who'll you believe?
Reply With Quote
  #13  
Old 05-04-2005, 06:03 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 don't think that scripters are more intelligent, but there are usually more level makers than scripters, and server owners often don't care alot about giving access to levels because they think "it's just some levels"
Reply With Quote
  #14  
Old 05-04-2005, 09:05 PM
zell12 zell12 is offline
Gone
zell12's Avatar
Join Date: Jun 2001
Location: Alberta, Canada
Posts: 8,541
zell12 has a spectacular aura about
Send a message via ICQ to zell12 Send a message via AIM to zell12 Send a message via MSN to zell12
Scripters need the math skills for scripting, as well as the scripting knowledge of the lanuage they want to script in. How does this make them more trustworthy?

Doesn't really matter anyway...
__________________
Reply With Quote
  #15  
Old 05-05-2005, 12:32 AM
Velox Cruentus Velox Cruentus is offline
Registered User
Velox Cruentus's Avatar
Join Date: Dec 2004
Location: Quebec, Canada
Posts: 465
Velox Cruentus is on a distinguished road
Send a message via ICQ to Velox Cruentus Send a message via AIM to Velox Cruentus
Math Skills more or less == Logic Skills.
Knowlegde == Wisdom.

The fact that programmers require logic skill and wisdom would more or less orient the trust in that they can do logical and wise actions with the powers they are given. Although this is not the only circumstances towards trustworthiness, it does bring a good amount in itself.

Although... Most of that trust is ill-earned, and the trust is usually abused. Tralala...
__________________
In a world of change... Who'll you believe?
Reply With Quote
  #16  
Old 05-05-2005, 04:45 PM
Fry Fry is offline
Registered User
Fry's Avatar
Join Date: Sep 2001
Location: Germany
Posts: 384
Fry has a spectacular aura about
Besides there aren't many "intelligent" scripters anymore so it doesn't work here.

On topic:
Well, what's there to say, great idea!
__________________
Graal Statistics

Top 3 servers at the moment (players):


Reply With Quote
  #17  
Old 05-05-2005, 07:47 PM
Velox Cruentus Velox Cruentus is offline
Registered User
Velox Cruentus's Avatar
Join Date: Dec 2004
Location: Quebec, Canada
Posts: 465
Velox Cruentus is on a distinguished road
Send a message via ICQ to Velox Cruentus Send a message via AIM to Velox Cruentus
Quote:
Originally Posted by Fry
Besides there aren't many "intelligent" scripters anymore so it doesn't work here.
Nay -- There are a lot of intelligent scripters. They just are either lazy, corrupt, power-hungry, lack of interest (different but close to lazy), or taken/busy.
__________________
In a world of change... Who'll you believe?
Reply With Quote
  #18  
Old 05-05-2005, 09:17 PM
Fry Fry is offline
Registered User
Fry's Avatar
Join Date: Sep 2001
Location: Germany
Posts: 384
Fry has a spectacular aura about
Quote:
Originally Posted by Velox Cruentus
Nay -- There are a lot of intelligent scripters. They just are either lazy, corrupt, power-hungry, lack of interest (different but close to lazy), or taken/busy.
Yeah, that's what I meant, there are serveral, but they don't play Graal [anymore]. And if they are corrupt or power-hungry they aren't that intelligent.
__________________
Graal Statistics

Top 3 servers at the moment (players):


Reply With Quote
  #19  
Old 05-05-2005, 10:16 PM
Velox Cruentus Velox Cruentus is offline
Registered User
Velox Cruentus's Avatar
Join Date: Dec 2004
Location: Quebec, Canada
Posts: 465
Velox Cruentus is on a distinguished road
Send a message via ICQ to Velox Cruentus Send a message via AIM to Velox Cruentus
Corruption and Power-Hungery has NOTHING to do with intelligence. There are still some intellegent scripters out there... But why would they work for people they don't know, servers they don't support, people whom violate their morale guidelines, or a population/community they dislike.

Someone can be very intelligent, and corrupt...
__________________
In a world of change... Who'll you believe?
Reply With Quote
  #20  
Old 05-06-2005, 04:02 AM
zell12 zell12 is offline
Gone
zell12's Avatar
Join Date: Jun 2001
Location: Alberta, Canada
Posts: 8,541
zell12 has a spectacular aura about
Send a message via ICQ to zell12 Send a message via AIM to zell12 Send a message via MSN to zell12
No it isn't. Thats why I said it doesn't really matter in my second post. Also, as long as this doesn't affect levelmakers making scripts in levels (I mean like the normal ones, not some crazy stuff Kai does) then i'm all for it.
__________________
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 05:19 PM.


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