Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Tech Support (https://forums.graalonline.com/forums/forumdisplay.php?f=7)
-   -   Evil Script (https://forums.graalonline.com/forums/showthread.php?t=42518)

Kaimetsu 02-05-2003 05:04 AM

Evil Script
 
1 Attachment(s)
I wrote a script that seems to freeze Graal, even before the level has been run. The problem seems to be caused by the line:

'temp=indexof(#K(0x7C),#s(local.string))-start'

I don't know, maybe there are some reserved words in there? Either way, it doesn't break if I comment that line out.

Note: DO NOT run this level unless you are Stefan. It will eat your computer without even a trace of sympathy.

Dude6252000 02-06-2003 01:22 AM

Kai, in order to destroy it, we must bring it to the fires of Mt. Doom. >:o
-EDIT- I just noticed, why is there 6 downloads on it? o.o

Kaimetsu 02-06-2003 04:48 AM

Quote:

Originally posted by Dude6252000
-EDIT- I just noticed, why is there 6 downloads on it? o.o
Apparently people have difficulty reading my warning!

CheeToS2 02-06-2003 05:14 AM

I did it just to be evil ^_^ saved my computer fine too, so nyah!
I've never seen anything like that happen before.. its just my hunch, but I bet its some but with #K :x.. I have no info to back up this statement, it just sounds right.. :P

Kaimetsu 02-06-2003 05:35 AM

Quote:

Originally posted by CheeToS2
I did it just to be evil ^_^ saved my computer fine too, so nyah!
I've never seen anything like that happen before.. its just my hunch, but I bet its some but with #K :x.. I have no info to back up this statement, it just sounds right.. :P

I've done various experiments and it doesn't always break with the #K in there. In fact, the '-start' seems to be a bigger factor - if I remove it then it's fine (except that the script doesn't work >_<).

Falcor 02-06-2003 05:53 AM

Quote:

Originally posted by Kaimetsu


I've done various experiments and it doesn't always break with the #K in there. In fact, the '-start' seems to be a bigger factor - if I remove it then it's fine (except that the script doesn't work >_<).

Youve tried picking another variable name?
Prehaps subtracting start on a seperate line?

Kaimetsu 02-06-2003 06:02 AM

Quote:

Originally posted by Falcor


Youve tried picking another variable name?
Prehaps subtracting start on a seperate line?

Tried both. Neither helps.

Tseng 02-06-2003 06:09 AM

Perhaps try replacing the variable start with a number, to see if that's causing it?

That's one possible idea, anyway. ;X

Python523 02-06-2003 06:11 AM

why not just set the var then do
temp-=start
o.O

Kaimetsu 02-06-2003 06:40 AM

Quote:

Originally posted by Python523
why not just set the var then do
temp-=start
o.O

Falados already suggested that, and it was one of the first things I tried. Doesn't help.

Falcor 02-07-2003 05:21 AM

Quite Evil is that script.

magicbud3344 02-07-2003 05:31 AM

Nice Script Kai!
seems to be some sort of doom script

davidpsy 02-07-2003 07:27 AM

MAN ITS EBIL!!!!!!!

Tyhm 02-07-2003 08:41 AM

Nice av.
It's all in the mind.

adam 02-07-2003 08:13 PM

He used mind tricks on us to make us think our computers would freeze when we opened it. :-)

Well your tricks dont' work on me! My computer didn't freeze! Heck graal used less cpu time than it usually does. :-)

Kaimetsu 02-07-2003 08:18 PM

Quote:

Originally posted by adam
He used mind tricks on us to make us think our computers would freeze when we opened it. :-)

Well your tricks dont' work on me! My computer didn't freeze! Heck graal used less cpu time than it usually does. :-)

...it didn't break your computer? That's... pretty weird.

adam 02-07-2003 08:22 PM

Quote:

Originally posted by Kaimetsu


...it didn't break your computer? That's... pretty weird.

Ok, I admit graal was running pretty creepy from the moment it tried to open that file. But I could open it well enough to see the script. And graal really did use less of a % of my cpu according to the processes view in windows xp. My computer did not come anywhere near freezing though.

Kaimetsu 02-07-2003 08:23 PM

Quote:

Originally posted by adam


Ok, I admit graal was running pretty creepy from the moment it tried to open that file. But I could open it well enough to see the script. And graal really did use less of a % of my cpu according to the processes view in windows xp. My computer did not come anywhere near freezing though.

And you have the latest version?

adam 02-07-2003 09:08 PM

Quote:

Originally posted by Kaimetsu


And you have the latest version?


Yes latest version,

I guess my PC just handles stress better than most. :-)

davidpsy 02-07-2003 10:05 PM

Quote:

Originally posted by Tyhm
Nice av.
It's all in the mind.

Thanks lol finally someone who has seen yellow submarine!

Dach 02-08-2003 12:11 AM

1 Attachment(s)
Holy crap! It froze my whole computer!
But I found the problem just before then, look

Questa 02-08-2003 12:27 AM

Quote:

Originally posted by Dach
Holy crap! It froze my whole computer!
But I found the problem just before then, look

Can be expected from AOL users...

Anyways who wants to form a fellowship of some sort to get rid of this thing?

Kaimetsu 02-08-2003 08:11 AM

Quote:

Originally posted by adam
I guess my PC just handles stress better than most. :-)
Butbutbut the level shouldn't even load. x_x

Tseng 02-08-2003 08:17 AM

Sounds like he didn't actually click the Play button, but only opened the level that had the script.

Seems to me like misinterpretations on both ends (His misinterpretation of how the problem showed, and everyone else's for thinking he clicked Play).

magicbud3344 02-08-2003 08:29 AM

that fellow that Dach Posted is hiding within Kai's script.....
Ph33r

adam 02-08-2003 09:50 AM

Quote:

Originally posted by Tseng
Sounds like he didn't actually click the Play button, but only opened the level that had the script.

Seems to me like misinterpretations on both ends (His misinterpretation of how the problem showed, and everyone else's for thinking he clicked Play).

I agree with Tseng.
:-)


I am getting the impression computers are becoming frozen beasts before even getting to the edit level screen. No I didn't click play becouse the play button never showed up >.<

After a good deal of memory craziness (during which time the rest of my programs are running fine and I can use them, everything but graal cuz i'ts trying to load still) graal stops trying and gives me a not enough memory error message (and strangely it opens to the graal editor then. with the level opened for tile and script editing). Then I get to the editor and can see the script and edit the tiles. I can't click play though. That part of the screen never loads. I can close it and it offers to save the level for me though. :-)

Kaimetsu 02-08-2003 09:54 AM

Quote:

Originally posted by adam
After a good deal of memory craziness (during which time the rest of my programs are running fine and I can use them, everything but graal cuz i'ts trying to load still) graal stops trying and gives me a not enough memory error message (and strangely it opens to the graal editor then. with the level opened for tile and script editing). Then I get to the editor and can see the script and edit the tiles. I can't click play though. That part of the screen never loads. I can close it and it offers to save the level for me though. :-)
Crazy. I never let it get that far.

CheeToS2 02-08-2003 05:23 PM

I closed the process after about two minutes of it just sitting there processing.. it just kept silently computing.. IT WANTED TO KILL ME :(

Dach 02-08-2003 05:36 PM

Graal just froze on me while I was trying to load the level in the editor. Then when I tried to close graal via ctrl+alt+delete, my computer froze! *kicks*

I have had a level that froze the editor too, but I completely forget what I did to do that. In the end, I just fixed it by reverting the level to a version that worked.

Kaimetsu 02-08-2003 05:39 PM

Well, I did warn you.

Dude6252000 02-08-2003 06:27 PM

Kai, I wonder what would happen if you upload that level on a server, then try to warp to it.. o_o Maybe the level editor just wants the script dead and freezes itself and blows up everything.

Kaimetsu 02-08-2003 06:55 PM

Quote:

Originally posted by Dude6252000
Kai, I wonder what would happen if you upload that level on a server, then try to warp to it.. o_o Maybe the level editor just wants the script dead and freezes itself and blows up everything.
I think Graal probably does some preprocessing (tokenisation for variables, maybe?) and my script makes it go into a near-infinite loop. It'd probably do the same thing online, but that's just a theory.

davidpsy 02-09-2003 02:53 AM

Quote:

Originally posted by Kaimetsu


I think Graal probably does some preprocessing (tokenisation for variables, maybe?) and my script makes it go into a near-infinite loop. It'd probably do the same thing online, but that's just a theory.

Oh yeah! I rember now I did the same thing where I had this loop and I wanted it to play a wav file. When I pressed play it played the wav file over and over and over like 1/100 of a second everytime!! It was extrem lag!! So I had to shut off graal XD.

Kaimetsu 02-09-2003 06:27 AM

Quote:

Originally posted by davidpsy

Oh yeah! I rember now I did the same thing where I had this loop and I wanted it to play a wav file. When I pressed play it played the wav file over and over and over like 1/100 of a second everytime!! It was extrem lag!! So I had to shut off graal XD.

Yeah, all scripters encounter infinite loops sooner or later. But most of them manage to press the Play button first :-p

Dude6252000 02-09-2003 07:06 AM

Quote:

Originally posted by Kaimetsu


Yeah, all scripters encounter infinite loops sooner or later. But most of them manage to press the Play button first :-p

I made an infinite loop serverside weapo NPC once. VERY easy to do. x.x It spammed the RCs out with the over 1000 loops in a second message.

CheeToS2 02-09-2003 08:44 AM

Quote:

Originally posted by Dude6252000

I made an infinite loop serverside weapo NPC once. VERY easy to do. x.x It spammed the RCs out with the over 1000 loops in a second message.

10000.. :x


All times are GMT +2. The time now is 03:45 PM.

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