Topic:   REPEAT bug. Finally fixed?   (Read 32434 times)


0 Members and 3 Guests are viewing this topic.

Al Staffieri


  • GMG-er

  • **

  • no avatar

  • Posts: 452

  • I love GameMaker
REPEAT bug. Finally fixed?
« on: January 07, 2009, 01:47:11 PM »
It's been a long time, but I finally know for sure why the repeat bug is happening. If I'm lucky (and if I'm right) then I should FINALLY have a fix for the bug which sometimes wouldn't let you use multiple REPEAT loops in a script.


Silverwind


  • ^ This guy is amazing.

  • ****


  • Posts: 2805

  • For the glory of my maker
Re: REPEAT bug. Finally fixed?
« Reply #1 on: January 07, 2009, 02:23:44 PM »
Yay! Nice goin' Al. :)
I survived the spammage of 2007

Gnome


  • GMG Extraordinaire

  • ***


  • Posts: 1073
Re: REPEAT bug. Finally fixed?
« Reply #2 on: January 07, 2009, 02:44:39 PM »
TD is going to freak out.
This Cannot be, NOOOOOOOO!!!!

-Gnomes Cry when the McRib was discontinued again.

Silverwind


  • ^ This guy is amazing.

  • ****


  • Posts: 2805

  • For the glory of my maker
Re: REPEAT bug. Finally fixed?
« Reply #3 on: January 07, 2009, 04:58:27 PM »
I hope he does so in the form of a song... *glances hopefully in the distance for the arrival of TD*
I survived the spammage of 2007

Al Staffieri


  • GMG-er

  • **

  • no avatar

  • Posts: 452

  • I love GameMaker
Re: REPEAT bug. Finally fixed?
« Reply #4 on: January 10, 2009, 01:46:33 AM »
Still not fully working, but I'm getting closer. It doesn't give any errors, but it's not repeating the loops the correct amount of times.

Silverwind


  • ^ This guy is amazing.

  • ****


  • Posts: 2805

  • For the glory of my maker
Re: REPEAT bug. Finally fixed?
« Reply #5 on: January 10, 2009, 06:30:05 AM »
I noticed something like that awhile back but forgot to report it. A REPEAT loop nestled within a few IF THEN's and a KEYDOWN block would only execute twice, regardless to the howManyTimes parameter.

I still have the GM file if it's any use to you: http://www.mediafire.com/?emkzztttzmn

The code with the problem is in card 11's card script, and the line is 105.

EDIT:

I don't think I tested negative values.
« Last Edit: January 10, 2009, 06:30:55 AM by Silverwind »
I survived the spammage of 2007

Tireas Dragon


  • GMG Extraordinaire

  • ***


  • Posts: 1626

  • Trying to recover from my shattered screen.
Re: REPEAT bug. Finally fixed?
« Reply #6 on: January 10, 2009, 09:43:19 AM »
Is it True? is it Finally fixed? HORRAH!!!! hmm now if only I could figure out what kind of song to sing on a such a grand occasion. Hmmmm none comes to mind at the time but if one does come to mind I will be sure to post it immediately.
I must be dreaming (wake up me wake up) How could this have happened. Tireas' cry when he found his computer fallen over in his chair with it's screen shattered.

Al Staffieri


  • GMG-er

  • **

  • no avatar

  • Posts: 452

  • I love GameMaker
Re: REPEAT bug. Finally fixed?
« Reply #7 on: January 11, 2009, 10:34:22 AM »
I think I may have really got it now. I just sent a test version to TD and silver. We'll see if that does it.

Silverwind


  • ^ This guy is amazing.

  • ****


  • Posts: 2805

  • For the glory of my maker
Re: REPEAT bug. Finally fixed?
« Reply #8 on: January 12, 2009, 04:10:14 PM »
No glitches to report so far, just unusual behavior involving the REPEAT command with a negative value. It prompts the "Nested Repeats not allowed!" dialogue.

Oh yeah, I assume that nested repeats were intentionally disabled?
I survived the spammage of 2007

Tireas Dragon


  • GMG Extraordinaire

  • ***


  • Posts: 1626

  • Trying to recover from my shattered screen.
Re: REPEAT bug. Finally fixed?
« Reply #9 on: January 13, 2009, 05:04:13 PM »
I don't use repeats with a negative value anyway. So I don't care about that.
I must be dreaming (wake up me wake up) How could this have happened. Tireas' cry when he found his computer fallen over in his chair with it's screen shattered.

Al Staffieri


  • GMG-er

  • **

  • no avatar

  • Posts: 452

  • I love GameMaker
Re: REPEAT bug. Finally fixed?
« Reply #10 on: January 14, 2009, 12:28:56 PM »
Quote
No glitches to report so far, just unusual behavior involving the REPEAT command with a negative value. It prompts the "Nested Repeats not allowed!" dialogue.
You shouldn't be using a negative value anyway since you can't repeat less than once. I'll try to fix that. It's supposed to run through the code at least once even if you put 0 or a negative.

Quote
Oh yeah, I assume that nested repeats were intentionally disabled?
Yes. I'm having a hard enough time getting non nested ones to work!


Silverwind


  • ^ This guy is amazing.

  • ****


  • Posts: 2805

  • For the glory of my maker
Re: REPEAT bug. Finally fixed?
« Reply #11 on: January 14, 2009, 02:00:29 PM »
Quote
Yes. I'm having a hard enough time getting non nested ones to work!
Hehe. ;D We can get by using a "subroutine" variable instead. :)

Quote
You shouldn't be using a negative value anyway since you can't repeat less than once. I'll try to fix that. It's supposed to run through the code at least once even if you put 0 or a negative.
Yeah, there's no sane cause for negative repeats, I was just surprised at the unexpected behavior when I attempted it. As for why I attempted it, I'm determined to hunt down any last possibly remaining glitches in the 3.9 series, thus I'm writing all sorts of inconceivable code.

You don't even wanna know what happens when you trigger an ON KEYDOWN block within an ON KEYDOWN block and use ON TIMER to deduce the result...

- Silver the cackling with insane laughter.
« Last Edit: January 14, 2009, 02:01:08 PM by Silverwind »
I survived the spammage of 2007

Silverwind


  • ^ This guy is amazing.

  • ****


  • Posts: 2805

  • For the glory of my maker
Re: REPEAT bug. Finally fixed?
« Reply #12 on: January 14, 2009, 02:21:22 PM »
Oh, hey Al, just wondering but, is there any chance of an X-Y positioner or offsetter for WINDOW commands in the 3.9 series? It would be cool to display text in a separate window, as it would be like multiple text fields. :D
I survived the spammage of 2007