Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Custom function freezes the game.
Fearlessagent Offline
Junior Member

Posts: 12
Threads: 2
Joined: Jul 2012
Reputation: 1
#7
RE: Custom function freezes the game.

(07-07-2012, 07:44 AM)Your Computer Wrote: I did a test run, and i got the following output with "Text_Text_Text":

Analyzing Letter: T
New String:
Analyzing Letter: ex
New String:
Analyzing Letter: xt_
New String:
Analyzing Letter: t_Te
New String:
Analyzing Letter: _Text
New String:
Analyzing Letter: Text_T
New String:
Analyzing Letter: ext_Tex
New String:
Analyzing Letter: xt_Text
New String:
Analyzing Letter: t_Text
New String:
Analyzing Letter: _Text
New String:
Analyzing Letter: Text
New String:
Analyzing Letter: ext
New String:
Analyzing Letter: xt
New String:
Analyzing Letter: t
New String:
Analyzing Letter:
New String:
Analyzing Letter:
New String:
Analyzing Letter:
New String:
Analyzing Letter:
New String:
Analyzing Letter:
New String:
Analyzing Letter:
New String:
Analyzing Letter:
New String:
Analyzing Letter:
New String:
... (ad infinitum)

It is on an infinite loop, and as you can see letter never equals "_", so the issue is in the incrementing chr variable. Instead of adding 1, just put simply 1 -- that is, for StringSub.

I'm going to go to sleep now.
Man, I was never able to get the debug messages, my game just froze up...Thanks for your help. I completely forgot that the last argument in StringSub was the number of characters to read and not another character position. Ah well, just had one of those derp moments I suppose. Big Grin
07-07-2012, 08:29 AM
Find


Messages In This Thread
RE: Custom function freezes the game. - by Fearlessagent - 07-07-2012, 08:29 AM



Users browsing this thread: 1 Guest(s)