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 10-21-2006, 09:54 PM
Novo Novo is offline
[TServerDeveloper]
Join Date: Jun 2006
Posts: 448
Novo will become famous soon enough
Readding eval()

eval( string )
... Serverside only AT THE LEAST. Please?
Reply With Quote
  #2  
Old 10-22-2006, 12:10 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 has a spectacular aura about
Dumb question, but what did eval do? Was it the standard strtofloat, or did it execute the command "string" (ie, eval (playerx=32))?
__________________
"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
  #3  
Old 10-22-2006, 12:23 AM
Chompy Chompy is offline
¯\(º_o)/¯
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
check out this thread, btw you could have tried too do an forum search for eval

Forum search for eval
__________________
Reply With Quote
  #4  
Old 10-22-2006, 12:48 AM
Riot Riot is offline
Delteria Management
Join Date: Nov 2003
Location: Seminole County, Florida
Posts: 280
Riot is on a distinguished road
Quote:
Originally Posted by Chompy View Post
check out this thread, btw you could have tried too do an forum search for eval

Forum search for eval
This isn't the eval he is talking about.

The eval most likely is talking about is where you pass a string of code and it will execute the code. Which was disabled for security reasons.
Reply With Quote
  #5  
Old 10-22-2006, 01:19 AM
Chompy Chompy is offline
¯\(º_o)/¯
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
Ah, didn't know that
btw, so an eval command could of been scripted by yourself?
__________________
Reply With Quote
  #6  
Old 10-22-2006, 01:45 AM
Novo Novo is offline
[TServerDeveloper]
Join Date: Jun 2006
Posts: 448
Novo will become famous soon enough
Quote:
Originally Posted by Chompy View Post
check out this thread, btw you could have tried too do an forum search for eval

Forum search for eval
That thread is talking about how the engine treats conditionals.

The function eval does:
PHP Code:
if ( condition )
 return 
true;
else return 
false
And the evalFIX does
PHP Code:
return condition != false
It's talking about optimization of returns that are inconsistent, because they present two different versions. But... Technically, if something isn't true, it's false... So, if it's not false, it's true. They are two different ways to write the same thing, but they yield different results.

That is NOT what I was asking for.

eval( string ) is a Graal v3 feature that was removed due to security reasons. It was useful because it would execute the code in the string.

It is disabled, but -- If we're on Serverside, this security risk isn't true. I could script my own eval, yes... But that would mean I would have to map out all the operators, set up a parser, and actually parse the information.

This can be done, but it's very prone to flaws. It's much easier to simply use the already created ( but disabled ) version.
Reply With Quote
  #7  
Old 10-22-2006, 01:56 AM
Yen Yen is offline
Banned
Yen's Avatar
Join Date: Oct 2005
Location: Nova Scotia, Canada
Posts: 1,085
Yen is an unknown quantity at this point
Send a message via AIM to Yen Send a message via MSN to Yen
By eval, he means something like..
eval(putexplosion,3,player.x,player.y);
or something?
Reply With Quote
  #8  
Old 10-22-2006, 12:59 PM
Chompy Chompy is offline
¯\(º_o)/¯
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
well I thought by doing an forum search I could find out what eval was @ Tyhm
oh well, I tried
__________________
Reply With Quote
  #9  
Old 10-22-2006, 03:58 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 Novo View Post
That thread is talking about how the engine treats conditionals.

The function eval does:
PHP Code:
if ( condition )
 return 
true;
else return 
false
And the evalFIX does
PHP Code:
return condition != false
It's talking about optimization of returns that are inconsistent, because they present two different versions. But... Technically, if something isn't true, it's false... So, if it's not false, it's true. They are two different ways to write the same thing, but they yield different results.

That is NOT what I was asking for.

eval( string ) is a Graal v3 feature that was removed due to security reasons. It was useful because it would execute the code in the string.

It is disabled, but -- If we're on Serverside, this security risk isn't true. I could script my own eval, yes... But that would mean I would have to map out all the operators, set up a parser, and actually parse the information.

This can be done, but it's very prone to flaws. It's much easier to simply use the already created ( but disabled ) version.
It is always a security issue because there will always be people who don't properly secure their code. Not only that but there will be people who will hide eval() scripts in order to abuse scripting once they have left a staff team or so.
Quote:
Originally Posted by Yen
By eval, he means something like..
eval(putexplosion,3,player.x,player.y);
or something?
PHP Code:
temp.string "myFunction(1, 2, \"foo\");";

if (eval(
temp.string))
{
  
// ...

... or so.
Reply With Quote
  #10  
Old 10-23-2006, 12:01 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 has a spectacular aura about
Quote:
Originally Posted by Skyld View Post
It is always a security issue because there will always be people who don't properly secure their code. Not only that but there will be people who will hide eval() scripts in order to abuse scripting once they have left a staff team or so.
No more dangerous that putnpc2.

NPC Code:
putnpc2(#c,playerx,playery);

=end of teh w0rld
__________________
"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
  #11  
Old 10-23-2006, 12:08 AM
Novo Novo is offline
[TServerDeveloper]
Join Date: Jun 2006
Posts: 448
Novo will become famous soon enough
Quote:
Originally Posted by Skyld View Post
It is always a security issue because there will always be people who don't properly secure their code. Not only that but there will be people who will hide eval() scripts in order to abuse scripting once they have left a staff team or so.
I know... But -- Should the limitation be expressed by the current staff? I mean... People could potentially rescript the eval if they intended to do such... It doesn't pose any real security -- Only an articifial one.

But -- This is like:
PHP Code:
 while ( getRow() ) ...; 
It is there for a reason ( there is because too many people have done = instead of ==, and to remain consistent with GS1, GS2 loses the ability to )
HOWEVER... It diminishes the language unneededly.

Good programming practices should be honored and have their benefits. Bad programming should yield errors and unexpected results. It keeps the language universally understandable... and learning proper programming mechanics would be quite benificial for post-Graal work.
Reply With Quote
  #12  
Old 10-23-2006, 12:20 AM
Novo Novo is offline
[TServerDeveloper]
Join Date: Jun 2006
Posts: 448
Novo will become famous soon enough
Quote:
Originally Posted by Tyhm View Post
No more dangerous that putnpc2.

NPC Code:
putnpc2(#c,playerx,playery);

=end of teh w0rld
Genius.

PHP Code:
function eval( string )
  {
  while ( 
string.pos("this.") > -)
    {
    
string string.substring0string.pos"this.") ) @
      
"obj." @
    
string.substringstring.pos"this." ) + 5, -);
    }
  
temp.npc putnpc2this.xthis.y"public function getVal() return "string @";");
  
obj this;
  
temp.val =  temp.npc.getVal();
  
temp.npc.destroy();
  return 
temp.val;
  } 

Last edited by Novo; 10-23-2006 at 12:39 AM..
Reply With Quote
  #13  
Old 03-17-2007, 02:24 AM
Twinny Twinny is offline
My empire of dirt
Twinny's Avatar
Join Date: Mar 2006
Location: Australia
Posts: 2,422
Twinny is just really niceTwinny is just really nice
Send a message via AIM to Twinny
Reviving a dead thread here but could eval() perhaps have a an option similar to clientrc in server options? eg.

restrictclientrctoweapons=-ScriptedRC
restrictevaltoweapons=-System

eval() would be useful. Especially for an upcoming project I have in mind.
Reply With Quote
  #14  
Old 03-17-2007, 02:45 AM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
Yes, having a serveroption for eval() would be best I believe.
__________________
Reply With Quote
  #15  
Old 03-17-2007, 12:07 PM
Crono Crono is offline
:pluffy:
Join Date: Feb 2002
Location: Sweden
Posts: 20,000
Crono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond repute
I agree, even though I don't even script or have any idea what anything other than if () does.
__________________
Reply With Quote
  #16  
Old 03-17-2007, 12:23 PM
zokemon zokemon is offline
That one guy...
zokemon's Avatar
Join Date: Mar 2001
Location: Sonoma County, California
Posts: 2,925
zokemon is a jewel in the roughzokemon is a jewel in the rough
Send a message via ICQ to zokemon Send a message via AIM to zokemon Send a message via MSN to zokemon Send a message via Yahoo to zokemon
Oh ho ho, I would love such a function. First add a serveroption that allows you to limit built in functions to certain npcs then reenable eval()
__________________
Do it with a DON!
Reply With Quote
  #17  
Old 03-19-2007, 12:44 PM
godofwarares godofwarares is offline
Webmaster
godofwarares's Avatar
Join Date: Dec 2006
Location: Florida
Posts: 552
godofwarares is on a distinguished road
Send a message via ICQ to godofwarares Send a message via AIM to godofwarares Send a message via MSN to godofwarares Send a message via Yahoo to godofwarares
I'd love for eval() to come back. I have so many ideas for it
__________________
What signature? I see no signature?
Reply With Quote
  #18  
Old 03-19-2007, 08:16 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
Ah examples please, there are several ideas of eval which seem to be quite different (some refer to eval as something that solves "1 + 2" or so). Also there was never an eval() function in Graal so I need some examples where you need it.
Reply With Quote
  #19  
Old 03-19-2007, 08:17 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 View Post
Ah examples please, there are several ideas of eval which seem to be quite different (some refer to eval as something that solves "1 + 2" or so). Also there was never an eval() function in Graal so I need some examples where you need it.
I think they are thinking along the lines of PHP's eval, where the passed string parameter is parsed as script commands or so. Here is a PHP example:
PHP Code:
eval("$magicVariableName = \"SomeValue\"; thisFunction();"); 
Return values are also passed through eval in PHP:
PHP Code:
echo(eval("return \"foo\";")); 
... would produce "foo".
__________________
Skyld
Reply With Quote
  #20  
Old 03-21-2007, 09:03 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 has a spectacular aura about
Pseudo cause I can't remember it right:
if(startswith(#c,"setplayerprop")){
eval(#c);
}
Horribly dangerous, that one, but you get the idea. Should only be used for horribly complex scripts that are too long to Example, like a system NPC that dynamically displays thingies based on 3 other NPCs.
__________________
"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
  #21  
Old 03-22-2007, 02: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
Hmmm Such an eval() would be bad design in my opinion, makes code looks less easy to understand, more unsecure and is not adding new functionality. So before adding something like that I would need to see some real application for it.
I initially though fo some thing that can compute stuff like "3 + 5 / 2", without the ability to access functions or similar.
Reply With Quote
  #22  
Old 03-22-2007, 04:40 AM
Twinny Twinny is offline
My empire of dirt
Twinny's Avatar
Join Date: Mar 2006
Location: Australia
Posts: 2,422
Twinny is just really niceTwinny is just really nice
Send a message via AIM to Twinny
I'll pm my use. It's still kinda secret .
Reply With Quote
  #23  
Old 03-22-2007, 11:02 AM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
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
Quote:
Originally Posted by Stefan View Post
Hmmm Such an eval() would be bad design in my opinion, makes code looks less easy to understand, more unsecure and is not adding new functionality. So before adding something like that I would need to see some real application for it.
I initially though fo some thing that can compute stuff like "3 + 5 / 2", without the ability to access functions or similar.
I'd say that eval() would make GS2 more complex, since it would then allow scripts to execute scripts. That is something I've always wanted to work with on Graal.
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
  #24  
Old 03-22-2007, 10:40 PM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
Quote:
Originally Posted by xXziroXx View Post
I'd say that eval() would make GS2 more complex, since it would then allow scripts to execute scripts. That is something I've always wanted to work with on Graal.
My opinion is the same, it would also be good for a quest system that I was thinking of, where you could store the script for each quest stage in a text file with quest data. But since thats not possible I have to make a weapon for each Quest so they can run their own scripts properly across clientside and serverside.
__________________
Reply With Quote
  #25  
Old 03-22-2007, 10:49 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 Inverness View Post
My opinion is the same, it would also be good for a quest system that I was thinking of, where you could store the script for each quest stage in a text file with quest data. But since thats not possible I have to make a weapon for each Quest so they can run their own scripts properly across clientside and serverside.
Seems like insecure design to rely on eval()-like functionality to do that. :|
__________________
Skyld
Reply With Quote
  #26  
Old 03-22-2007, 10:54 PM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
Quote:
Originally Posted by Skyld View Post
Seems like insecure design to rely on eval()-like functionality to do that. :|
Maybe, it was a passing thought. Don't see how its much different that placing something in scripts folder.
Quests will work much better as their own object that manipulates the mudlib rather than a part of it.

My current use for eval() would be in my Dialog System, when a response to a topic is evaluated from the conditions of the response, a number of functions are allowed to be executed. For now it is only able to execute one function per script line.
PHP Code:
resp0.scriptcount=2
resp0
.script0=AddItem,50,gold
resp0
.script1=AddMsg,6,"You received 50 Gold coins." 
The functions AddItem and AddMsg are defined in the DialogControl as pfnAddItem() and pfnAddMsg(), the pfn meaning Parseable Function. And I have to translate all these functions to interact with the systems on Aeon, or whatever server will use the system.

Also there are the condition statements, which I would have loved if they could be evaluated, but since they're not I had to design the conditions object to load them into a format to be evaluated.

PHP Code:
resp0.conditionscount=1
resp0
.cond0=function,HasReadTopic,"arkland,",<,value,1,0,
Meaning: resp#.cond#=atype,avalue,aparams,comparator,btype, bvalue,bparams,or

If a condition could be evaluated from a script form using a function it would be alot easier to perform.
But as it is now, each part of the condition array is loaded into the condition object, and when the time comes to get the correct topic response for a player, eval() is called on the condition by the response object and this is calculated.
__________________

Last edited by Inverness; 03-22-2007 at 11:13 PM..
Reply With Quote
  #27  
Old 03-23-2007, 05:47 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 Inverness View Post
Maybe, it was a passing thought. Don't see how its much different that placing something in scripts folder.
Quests will work much better as their own object that manipulates the mudlib rather than a part of it.

My current use for eval() would be in my Dialog System, when a response to a topic is evaluated from the conditions of the response, a number of functions are allowed to be executed. For now it is only able to execute one function per script line.
PHP Code:
resp0.scriptcount=2
resp0
.script0=AddItem,50,gold
resp0
.script1=AddMsg,6,"You received 50 Gold coins." 
The functions AddItem and AddMsg are defined in the DialogControl as pfnAddItem() and pfnAddMsg(), the pfn meaning Parseable Function. And I have to translate all these functions to interact with the systems on Aeon, or whatever server will use the system.

Also there are the condition statements, which I would have loved if they could be evaluated, but since they're not I had to design the conditions object to load them into a format to be evaluated.

PHP Code:
resp0.conditionscount=1
resp0
.cond0=function,HasReadTopic,"arkland,",<,value,1,0,
Meaning: resp#.cond#=atype,avalue,aparams,comparator,btype, bvalue,bparams,or

If a condition could be evaluated from a script form using a function it would be alot easier to perform.
But as it is now, each part of the condition array is loaded into the condition object, and when the time comes to get the correct topic response for a player, eval() is called on the condition by the response object and this is calculated.
I am not certain if you need such a system why you do not just use multidimensional arrays and the for (temp.foo: temp.bar) iterator to go through each of your actions, so that you do not have to restrict yourself like you have currently done.
__________________
Skyld
Reply With Quote
  #28  
Old 03-23-2007, 10:20 PM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
Quote:
Originally Posted by Skyld View Post
I am not certain if you need such a system why you do not just use multidimensional arrays and the for (temp.foo: temp.bar) iterator to go through each of your actions, so that you do not have to restrict yourself like you have currently done.
I plan to release my NPC Dialog system for public use when I polish it more as it is complete for the most part. People will have to type the topic responses and conditions in a text file and there is no need to make it more complicated than it already is without a GUI to create the topics, something that I'm not going to waste my time on.

Also I don't really see how I've restricted myself as you have said. The current format makes it exactly clear how many conditions and scripts exist for each response, and I'm trying to make it as user-friendly as possible when typing it.

The potential complexity of topics is rather large which is why I trying to make it understandable with minimal space.
This is a simple topic that changes it text depending on if you've read the topic or not. Though when its implemented into the world, the response will differ from npc to npc based on a condition of the NPC's name that you're talking to.
PHP Code:
text=Arkland
responsescount
=2
random
=0
resp0
.text=Arkland is a very large kingdom. If you want to get around quickly you're going to have to talk to the <a href=topic:dockcaptain>Dock Captain</a> to get a ride. Here's some gold to help you along.
resp0.choices=0
resp0
.isgoodbye=0
resp0
.scriptcount=2
resp0
.script0=AddItem,50,gold
resp0
.script1=AddMsg,6,"You received 50 Gold coins."
resp0.conditionscount=1
resp0
.cond0=function,HasReadTopic,"arkland,",<,value,1,0,0
resp0
.addtopics=dockcaptain,
resp1.text=I told you to go talk to the <a href=topic:dockcaptain>Dock Captain</a> if ya want a ride.
resp1.choices=0
resp1
.isgoodbye=0
resp1
.scriptcount=0
resp1
.conditionscount=1
resp1
.cond0=function,HasReadTopic,"arkland,",>=,value,1,0,0
resp1
.addtopics=
Any comments on this would be appreciated.
__________________

Last edited by Inverness; 03-23-2007 at 10:33 PM..
Reply With Quote
  #29  
Old 03-23-2007, 11:08 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 the use of eval() for that sounds quite tricky though, it might be better to add support for adding new functions to classes or remove functions. Then it would be easy to find the code that is responsible for something (may be should add support for sub-folders for classes?) instead of having some dynamic code hidden in some script variables.
Also this would work for clientside too since classes are sent to clientside (working much better with the next Graal version), while an eval() function would not work for clientside since the client cannot compile scripts.
Reply With Quote
  #30  
Old 03-23-2007, 11:15 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 has a spectacular aura about
Quote:
Originally Posted by Stefan View Post
Also this would work for clientside too since classes are sent to clientside (working much better with the next Graal version)
*shudders* Um, I'll trust your judgement on the safety of this...
__________________
"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
  #31  
Old 03-23-2007, 11:40 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 Tyhm View Post
*shudders* Um, I'll trust your judgement on the safety of this...
What do you mean?
__________________
Skyld
Reply With Quote
  #32  
Old 03-24-2007, 05:19 PM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
Quote:
Originally Posted by Tyhm View Post
*shudders* Um, I'll trust your judgement on the safety of this...
Classes have always had a clientside part, how would making it more efficient change anything like the safety?
__________________
Reply With Quote
  #33  
Old 03-24-2007, 06:39 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 guess Tyhm means that it could be a security problem when you make it possible for someone to enter script in a text field and then send it to all clients without checking if the script is ok. Making it possible to dynamically add scripts by scripts still requires some basic understand of scripters to prevent "security" problems. We have worked and are working a lot on making the scipt-engine un-abusable though, so that it is not possible to flood the hard drive with data or similar.
Reply With Quote
  #34  
Old 03-25-2007, 11:18 AM
zokemon zokemon is offline
That one guy...
zokemon's Avatar
Join Date: Mar 2001
Location: Sonoma County, California
Posts: 2,925
zokemon is a jewel in the roughzokemon is a jewel in the rough
Send a message via ICQ to zokemon Send a message via AIM to zokemon Send a message via MSN to zokemon Send a message via Yahoo to zokemon
Make a function that at least calculates float operations (like you were talking about own()). Variable Functions can already be called so it wouldn't be such a loss if that wasn't included in eval()
__________________
Do it with a DON!
Reply With Quote
  #35  
Old 03-25-2007, 07:32 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 has a spectacular aura about
I'm more concerned that "ZOMG SOMEONE STOLE MY SCRIPT! HAX HAX! STEFAN SHUT DOWN PW123889, THEY STOLED MY SCRIPTS!"

See also: Servers work against each other.
__________________
"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
  #36  
Old 03-27-2007, 02:53 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 has a spectacular aura about
Oh, and the eternal "*download*...huh, so it just checks to see if that string's set...*hax*...okay, now the doors are opening...what's this? It reads a serverstring to see whether I should be sent to jail? *hax* *lolz*"
__________________
"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
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 10:36 PM.


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