Graal Forums  

Go Back   Graal Forums > Development Forums > Tech Support
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 02-05-2003, 05:04 AM
Kaimetsu Kaimetsu is offline
Script Monkey
Kaimetsu's Avatar
Join Date: May 2001
Posts: 18,222
Kaimetsu will become famous soon enough
Evil Script

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.
Attached Files
File Type: nw bugged.nw (10.3 KB, 298 views)
__________________
Reply With Quote
  #2  
Old 02-06-2003, 01:22 AM
Dude6252000 Dude6252000 is offline
More often known as Karsh
Dude6252000's Avatar
Join Date: May 2002
Location: USA.
Posts: 2,603
Dude6252000 is on a distinguished road
Send a message via AIM to Dude6252000
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
__________________
BEING AWAY FROM THE FORUMS RULES

http://www.livejournal.com/users/karsheth/
Reply With Quote
  #3  
Old 02-06-2003, 04:48 AM
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 Dude6252000
-EDIT- I just noticed, why is there 6 downloads on it? o.o
Apparently people have difficulty reading my warning!
__________________
Reply With Quote
  #4  
Old 02-06-2003, 05:14 AM
CheeToS2 CheeToS2 is offline
That Guy
CheeToS2's Avatar
Join Date: Dec 2001
Location: Seattle, WA
Posts: 2,528
CheeToS2 will become famous soon enough
Send a message via AIM to 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
__________________

Reply With Quote
  #5  
Old 02-06-2003, 05:35 AM
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 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 ).
__________________
Reply With Quote
  #6  
Old 02-06-2003, 05:53 AM
Falcor Falcor is offline
Darth Cucumber
Falcor's Avatar
Join Date: Mar 2001
Location: At School
Posts: 2,874
Falcor is on a distinguished road
Send a message via ICQ to Falcor Send a message via AIM to Falcor Send a message via MSN to Falcor Send a message via Yahoo to Falcor
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?
__________________

subliminal message: 1+1=3
Reply With Quote
  #7  
Old 02-06-2003, 06:02 AM
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 Falcor


Youve tried picking another variable name?
Prehaps subtracting start on a seperate line?
Tried both. Neither helps.
__________________
Reply With Quote
  #8  
Old 02-06-2003, 06:09 AM
Tseng Tseng is offline
Sublime
Tseng's Avatar
Join Date: Jan 2003
Location: California
Posts: 0
Tseng is on a distinguished road
Perhaps try replacing the variable start with a number, to see if that's causing it?

That's one possible idea, anyway. ;X
__________________
Funny Things:
Quote:
Originally posted by Stefan
I didn't ban you, I only played a little bit with my RC.
-----
Reply With Quote
  #9  
Old 02-06-2003, 06:11 AM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
why not just set the var then do
temp-=start
o.O
Reply With Quote
  #10  
Old 02-06-2003, 06:40 AM
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 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.
__________________
Reply With Quote
  #11  
Old 02-07-2003, 05:21 AM
Falcor Falcor is offline
Darth Cucumber
Falcor's Avatar
Join Date: Mar 2001
Location: At School
Posts: 2,874
Falcor is on a distinguished road
Send a message via ICQ to Falcor Send a message via AIM to Falcor Send a message via MSN to Falcor Send a message via Yahoo to Falcor
Quite Evil is that script.
__________________

subliminal message: 1+1=3
Reply With Quote
  #12  
Old 02-07-2003, 05:31 AM
magicbud3344 magicbud3344 is offline
Banned
Join Date: Mar 2002
Location: mEEP
Posts: 0
magicbud3344 is on a distinguished road
Send a message via AIM to magicbud3344
Nice Script Kai!
seems to be some sort of doom script
Reply With Quote
  #13  
Old 02-07-2003, 07:27 AM
davidpsy davidpsy is offline
Over Nine THOUSAND!!!!!!!
davidpsy's Avatar
Join Date: Mar 2002
Location: Bandiria
Posts: 5,514
davidpsy is on a distinguished road
Send a message via AIM to davidpsy
MAN ITS EBIL!!!!!!!
__________________
-Donald Shimoda
Level oo.

Forces greater than your self, can be over come.
Reply With Quote
  #14  
Old 02-07-2003, 08:41 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
Nice av.
It's all in the mind.
__________________
"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
  #15  
Old 02-07-2003, 08:13 PM
adam adam is offline
http://wiki.graal.us/
adam's Avatar
Join Date: Nov 2001
Posts: 2,247
adam has a spectacular aura aboutadam has a spectacular aura about
Send a message via AIM to 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. :-)
__________________
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
  #16  
Old 02-07-2003, 08:18 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 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.
__________________
Reply With Quote
  #17  
Old 02-07-2003, 08:22 PM
adam adam is offline
http://wiki.graal.us/
adam's Avatar
Join Date: Nov 2001
Posts: 2,247
adam has a spectacular aura aboutadam has a spectacular aura about
Send a message via AIM to adam
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.
__________________
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
  #18  
Old 02-07-2003, 08:23 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 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?
__________________
Reply With Quote
  #19  
Old 02-07-2003, 09:08 PM
adam adam is offline
http://wiki.graal.us/
adam's Avatar
Join Date: Nov 2001
Posts: 2,247
adam has a spectacular aura aboutadam has a spectacular aura about
Send a message via AIM to adam
Quote:
Originally posted by Kaimetsu


And you have the latest version?

Yes latest version,

I guess my PC just handles stress better than most. :-)
__________________
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
  #20  
Old 02-07-2003, 10:05 PM
davidpsy davidpsy is offline
Over Nine THOUSAND!!!!!!!
davidpsy's Avatar
Join Date: Mar 2002
Location: Bandiria
Posts: 5,514
davidpsy is on a distinguished road
Send a message via AIM to davidpsy
Quote:
Originally posted by Tyhm
Nice av.
It's all in the mind.
Thanks lol finally someone who has seen yellow submarine!
__________________
-Donald Shimoda
Level oo.

Forces greater than your self, can be over come.
Reply With Quote
  #21  
Old 02-08-2003, 12:11 AM
Dach Dach is offline
call me Chad, it's cooler
Dach's Avatar
Join Date: Aug 2002
Posts: 1,899
Dach is on a distinguished road
Holy crap! It froze my whole computer!
But I found the problem just before then, look
Attached Thumbnails
Click image for larger version

Name:	problem.png
Views:	184
Size:	32.1 KB
ID:	22759  
__________________
Scripting Documents:Old Script Documentation-Movement Tutorial
Reply With Quote
  #22  
Old 02-08-2003, 12:27 AM
Questa Questa is offline
Back to the Beat
Join Date: Jan 2002
Location: USA
Posts: 1,230
Questa is on a distinguished road
Send a message via AIM to Questa
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?
Reply With Quote
  #23  
Old 02-08-2003, 08:11 AM
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 adam
I guess my PC just handles stress better than most. :-)
Butbutbut the level shouldn't even load.
__________________
Reply With Quote
  #24  
Old 02-08-2003, 08:17 AM
Tseng Tseng is offline
Sublime
Tseng's Avatar
Join Date: Jan 2003
Location: California
Posts: 0
Tseng is on a distinguished road
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).
__________________
Funny Things:
Quote:
Originally posted by Stefan
I didn't ban you, I only played a little bit with my RC.
-----
Reply With Quote
  #25  
Old 02-08-2003, 08:29 AM
magicbud3344 magicbud3344 is offline
Banned
Join Date: Mar 2002
Location: mEEP
Posts: 0
magicbud3344 is on a distinguished road
Send a message via AIM to magicbud3344
that fellow that Dach Posted is hiding within Kai's script.....
Ph33r
Reply With Quote
  #26  
Old 02-08-2003, 09:50 AM
adam adam is offline
http://wiki.graal.us/
adam's Avatar
Join Date: Nov 2001
Posts: 2,247
adam has a spectacular aura aboutadam has a spectacular aura about
Send a message via AIM to adam
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. :-)
__________________
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
  #27  
Old 02-08-2003, 09:54 AM
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 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.
__________________
Reply With Quote
  #28  
Old 02-08-2003, 05:23 PM
CheeToS2 CheeToS2 is offline
That Guy
CheeToS2's Avatar
Join Date: Dec 2001
Location: Seattle, WA
Posts: 2,528
CheeToS2 will become famous soon enough
Send a message via AIM to CheeToS2
I closed the process after about two minutes of it just sitting there processing.. it just kept silently computing.. IT WANTED TO KILL ME
__________________

Reply With Quote
  #29  
Old 02-08-2003, 05:36 PM
Dach Dach is offline
call me Chad, it's cooler
Dach's Avatar
Join Date: Aug 2002
Posts: 1,899
Dach is on a distinguished road
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.
__________________
Scripting Documents:Old Script Documentation-Movement Tutorial
Reply With Quote
  #30  
Old 02-08-2003, 05:39 PM
Kaimetsu Kaimetsu is offline
Script Monkey
Kaimetsu's Avatar
Join Date: May 2001
Posts: 18,222
Kaimetsu will become famous soon enough
Well, I did warn you.
__________________
Reply With Quote
  #31  
Old 02-08-2003, 06:27 PM
Dude6252000 Dude6252000 is offline
More often known as Karsh
Dude6252000's Avatar
Join Date: May 2002
Location: USA.
Posts: 2,603
Dude6252000 is on a distinguished road
Send a message via AIM to 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.
__________________
BEING AWAY FROM THE FORUMS RULES

http://www.livejournal.com/users/karsheth/
Reply With Quote
  #32  
Old 02-08-2003, 06:55 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 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.
__________________
Reply With Quote
  #33  
Old 02-09-2003, 02:53 AM
davidpsy davidpsy is offline
Over Nine THOUSAND!!!!!!!
davidpsy's Avatar
Join Date: Mar 2002
Location: Bandiria
Posts: 5,514
davidpsy is on a distinguished road
Send a message via AIM to davidpsy
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.
__________________
-Donald Shimoda
Level oo.

Forces greater than your self, can be over come.
Reply With Quote
  #34  
Old 02-09-2003, 06:27 AM
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 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
__________________
Reply With Quote
  #35  
Old 02-09-2003, 07:06 AM
Dude6252000 Dude6252000 is offline
More often known as Karsh
Dude6252000's Avatar
Join Date: May 2002
Location: USA.
Posts: 2,603
Dude6252000 is on a distinguished road
Send a message via AIM to Dude6252000
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.
__________________
BEING AWAY FROM THE FORUMS RULES

http://www.livejournal.com/users/karsheth/
Reply With Quote
  #36  
Old 02-09-2003, 08:44 AM
CheeToS2 CheeToS2 is offline
That Guy
CheeToS2's Avatar
Join Date: Dec 2001
Location: Seattle, WA
Posts: 2,528
CheeToS2 will become famous soon enough
Send a message via AIM to CheeToS2
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
__________________

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 07:27 PM.


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