Game Maker's Garage Forum

Game Creation => GameMaker => Topic started by: Al Staffieri on July 11, 2008, 05:36:59 AM

Title: GameMaker Bug List
Post by: Al Staffieri on July 11, 2008, 05:36:59 AM

Here's the list of bugs reported and fixed (or being fixed). If anyone knows of any others, please let me know. I haven't been able to make the click areas bug happen, so it's not listed here.

7/11/08 - Creating a string with a$ =  "hello" will add the ending quote to the string if there is more than one space character on either side of the = sign. Workaround: If this happens, check the line of code to make sure there is only one space character on each side of the = sign. Status: Working on a fix.

7/11/08 - Erroneous "String exceeds 255 characters" bug when adding strings together in compiled games. Status: Fixed for the next update.

07/01/08 - Line of code after END REPEAT is not being run unless the REPEAT loop is inside an ON event structure. Work Around: If your REPEAT/END REPEAT loop is not inside an ON MOUSEDOWN, ON MOUSEUP, ON TIMER, ON KEYDOWN structure, then leave a blank line of code after the END REPEAT line. Status: Fixed for the next update.

06/17/08 - Using a semi-colon at the end of a PRINT command can make text on the card disappear. This happens only in compiled games. Status: Fixed for the next update.

06/17/08 - REFRESH TEXT does not refresh the card text if the card did not have any text showing to begin with. This happens only in compiled games. Work Around: Use CLEAR TEXT if you want to erase all card text. Status: Fixed for the next update.

03/12/08 - Attempting to display sprites numbered from 10 to 20 may not work in compiled games. Status: Fixed for the next update.
Title: Re: GameMaker Bug List
Post by: Al Staffieri on July 11, 2008, 05:38:20 AM
What do I call the next update? I'm at 3.9.9 so I ran out of numbers. I'm thinking 3.9.9a. Any other ideas?
Title: Re: GameMaker Bug List
Post by: alias on July 11, 2008, 06:56:49 AM
How about 4.0 lol
Title: Re: GameMaker Bug List
Post by: Tireas Dragon on July 11, 2008, 07:47:21 AM
3.991, or what alias said 4.0
Title: Re: GameMaker Bug List
Post by: Silverwind on July 11, 2008, 09:01:25 AM
I like 3.9.9a.
Title: Re: GameMaker Bug List
Post by: Tireas Dragon on July 11, 2008, 10:09:10 AM
I got a question, Since gamemaker 3.9.9a is gonna be able to have 20 sprites will it load sprites faster and not cause a serious slow down?
Title: Re: GameMaker Bug List
Post by: Silverwind on July 11, 2008, 12:11:12 PM
Actually, I think it will fractionally slow down sprite manipulation.
Title: Re: GameMaker Bug List
Post by: jeremymaharg on July 11, 2008, 12:54:17 PM
Quote
What do I call the next update? I'm at 3.9.9 so I ran out of numbers. I'm thinking 3.9.9a. Any other ideas?
You could call it v3.9.10 or 3.10. There isn't really any limit.
Title: Re: GameMaker Bug List
Post by: Tireas Dragon on July 11, 2008, 03:11:26 PM
Quote
Actually, I think it will fractionally slow down sprite manipulation.
So your saying that it will slow down the sprites?
Title: Re: GameMaker Bug List
Post by: Silverwind on July 11, 2008, 03:15:01 PM
Quote
So your saying that it will slow down the sprites?
I assume so, but only marginally. I could be completely wrong though.
Title: Re: GameMaker Bug List
Post by: Tireas Dragon on July 11, 2008, 03:24:10 PM
Well we shouldn't worry assumably GM 4 will be able to handle lots of sprites perfectly.
Title: Re: GameMaker Bug List
Post by: Al Staffieri on July 11, 2008, 06:10:21 PM
The speed difference is so minor that I couldn't even notice a difference even when timing it.
Title: Re: GameMaker Bug List
Post by: Tireas Dragon on July 11, 2008, 06:55:47 PM
How can you time it?
Title: Re: GameMaker Bug List
Post by: Al Staffieri on July 17, 2008, 04:55:28 PM
I'm releasing an update tomorrow. It will be version 3.9.91
Title: Re: GameMaker Bug List
Post by: Al Staffieri on July 17, 2008, 04:55:54 PM
Quote
Well we shouldn't worry assumably GM 4 will be able to handle lots of sprites perfectly.

GameMaker 4.0 will have unlimited sprites.
Title: Re: GameMaker Bug List
Post by: Tireas Dragon on July 17, 2008, 04:58:27 PM
How bad would it get if i had say 50 sprites?
Title: Re: GameMaker Bug List
Post by: Al Staffieri on July 17, 2008, 07:44:19 PM
Quote
How bad would it get if i had say 50 sprites?

I'm coding sprites differently for v4.0. You'll be able to use as many sprites as you like (well there might be a really high limit like 1000 or something) and it should be a little faster than the current sprite system unless you are using a lot of sprites. But if you need a lot of sprites in the window you may not need much speed if they are used for things like items, characters, etc.
Title: Re: GameMaker Bug List
Post by: alias on July 17, 2008, 11:59:51 PM
What will the code limit be, and will we have SUBFUNCTIONs?
Also can you implement masked sprite collisions instead of just rectangular ones???
Title: Re: GameMaker Bug List
Post by: Silverwind on July 18, 2008, 03:39:44 AM
What's a subfunction?
Title: Re: GameMaker Bug List
Post by: alias on July 18, 2008, 04:01:26 AM
their also known as functions, or procedures and even subrouteins.
they work like this

SUBFUNCTION (name)
code
ENDSUB

the code isnt activated untill you use a DOSUB(name) command, or somthing along those lines.
Title: Re: GameMaker Bug List
Post by: Silverwind on July 18, 2008, 04:08:23 AM
Oh, so like methods that you can actually write in the game? Sounds useful, but regular methods are enough for me.
Title: Re: GameMaker Bug List
Post by: alias on July 18, 2008, 04:14:13 AM
GM has methods?? lol

They are also known as methods btw, i dont know how GM or SC does it but usually they are declared within the code. In C++, C, BASIC its usually like that.

But i guess it works the same way anyways.
Title: Re: GameMaker Bug List
Post by: Al Staffieri on July 18, 2008, 08:34:38 AM
I'm working on methods.
Title: Re: GameMaker Bug List
Post by: Tireas Dragon on July 18, 2008, 09:41:52 AM
So is 3.9.91 ready yet? I really need it for labyrinth.
EDIT: You said it would be ready tomorrow and when you said tomorrow it was July 17th therefore July 18th is tomorrow which is today.
Title: Re: GameMaker Bug List
Post by: Al Staffieri on July 18, 2008, 02:54:34 PM
OK. Try this out and let me know if there's any problems before i officially release it everywhere.

http://users.aol.com/macgamemaker/GMUpdate340_3991.zip

Title: Re: GameMaker Bug List
Post by: Tireas Dragon on July 19, 2008, 09:32:04 AM
[size=24]DON'T RELEASE IT YET.[/size] I can't get labyrinth to work with it. It keeps on saying nested repeat not allowed. Didn't you fix that bug? I can get it to work with 399 but not 3991 so you need to figure out what went wrong.
EDIT: Also a feature I would like is that you can hide sprite with variables like this SPRITE -number 5 5 wall6.gif instead of   Number = Number * -1 SPRITE number 5 5 wall6.gif That way I can do so much more.
Title: Re: GameMaker Bug List
Post by: Silverwind on July 19, 2008, 09:57:18 AM
Won't "SPRITE -var" work?
Title: Re: GameMaker Bug List
Post by: Tireas Dragon on July 19, 2008, 10:16:48 AM
No you have to make the value of var = to a negative value
Title: Re: GameMaker Bug List
Post by: Silverwind on July 19, 2008, 10:21:54 AM
Quote
Number = Number * -1
"var = -var" works as well. It's undocumented.
Title: Re: GameMaker Bug List
Post by: Swamp7hing on July 19, 2008, 01:29:53 PM
Wow, GM really needs a huge manual. There are so many neat things and undocumented code snippets, that games previously unachievable can now be made. Cool!  8)
Title: Re: GameMaker Bug List
Post by: Al Staffieri on July 19, 2008, 05:06:34 PM
Quote
[size=24]DON'T RELEASE IT YET.[/size] I can't get labyrinth to work with it. It keeps on saying nested repeat not allowed. Didn't you fix that bug? I can get it to work with 399 but not 3991 so you need to figure out what went wrong.

Can you send me a sample that doesn't work?

EDIT: Email it to me. My email address is in my profile.
Title: Re: GameMaker Bug List
Post by: Silverwind on July 19, 2008, 05:45:44 PM
Quote
Wow, GM really needs a huge manual. There are so many neat things and undocumented code snippets, that games previously unachievable can now be made. Cool!  8)
Yeah, personally I love the thrill of experimenting in the hopes of discovering an undocumented command or property. So far I've only ever found 2: The ";" PRINT command property and the "var = -var". Still, one day I'll strike gold by discovering the syntax of the MAKEAWESOMEGAME command Al's been holding back from us! ;D
Title: Re: GameMaker Bug List
Post by: Tireas Dragon on July 19, 2008, 06:33:52 PM
I'd love to see the MAKEAWESOMEGAME command. I haven't been able to duplicate the Repeat glitch I have only found it in the labyrinth source code. I don't know why. In fact some of the repeats work but just these two repeats don't.
Title: Re: GameMaker Bug List
Post by: Al Staffieri on July 20, 2008, 07:12:49 AM
Can you post or email me the entire script that has problems?
Title: Re: GameMaker Bug List
Post by: Tireas Dragon on July 21, 2008, 10:53:31 AM
IF their is any ON EVENT structure within a REPEAT I think it takes place.
Title: Re: GameMaker Bug List
Post by: Al Staffieri on July 21, 2008, 01:56:16 PM
Quote
IF their is any ON EVENT structure within a REPEAT I think it takes place.

OK. I see this. Thanks. It happens with ON MOUSEDOWN, ON MOUSEUP, and ON TIMER, but it doesn't happen with ON KEYDOWN. I'll try to get this fixed.

Question: Why do you have a ON event in a REPEAT loop? The ON event will continue to execute and doesn't need to be used more than once. You should try putting it before the REPEAT loop and see what happens.
Title: Re: GameMaker Bug List
Post by: Tireas Dragon on July 21, 2008, 02:20:24 PM
It was accidental but I found the glitch in the process.
EDIT: It doesn't work, I just checked.

Title: Re: GameMaker Bug List
Post by: Al Staffieri on July 21, 2008, 03:53:57 PM
Quote
It doesn't work, I just checked.


I'd really love to see your code.
Title: Re: GameMaker Bug List
Post by: Tireas Dragon on July 21, 2008, 04:21:01 PM
It was quite simple
ON MOUSEUP EXIT REPEAT
ON MOUSEDOWN
  REPEAT
    x = x + 1
    IF x = 35000 THEN x = -35000
  END REPEAT
END MOUSEDOWN
ALERT $x$

EDIT: The REPEAT has to finish before it does the other code.
Title: Re: GameMaker Bug List
Post by: Silverwind on July 21, 2008, 04:23:06 PM
It's both polite and customary when reporting a glitch to include a code sample capable of recreating it. I even send source files if a reported glitch proves difficult to recreate in a controlled environment.
Title: Re: GameMaker Bug List
Post by: Al Staffieri on July 21, 2008, 05:17:14 PM
Quote
It was quite simple
ON MOUSEUP EXIT REPEAT
ON MOUSEDOWN
  REPEAT
    x = x + 1
    IF x = 35000 THEN x = -35000
  END REPEAT
END MOUSEDOWN
ALERT $x$

EDIT: The REPEAT has to finish before it does the other code.

Yeah. That code won't work. You can't have both a MOUSEDOWN and a MOUSEUP working at the same time. That's something I want to change for GM 4 if I can. I added a mouseDown built in variable to solve that problem. Try something like this:

ON MOUSEDOWN
  REPEAT
    x = x + 1
    IF x > 32000 THEN x = -32000
    CLEAR TEXT
    PRINT $X$
    IF mouseDown = 0 THEN
      ALERT $x$
      EXIT REPEAT
    END IF
  END REPEAT
END MOUSEDOWN
Title: Re: GameMaker Bug List
Post by: Tireas Dragon on July 21, 2008, 05:52:45 PM
That works. Now that I think of it I could use this for a gambling Machine. HE HE HE

Title: Re: GameMaker Bug List
Post by: Silverwind on July 21, 2008, 06:18:05 PM
I began a gambling board game awhile back. I had allot done, (though only 1 out of 3 gambling games) so I should really get back to work on it sometime. I remember there being allot of messy code though, as it was a 4 player game.
Title: Re: GameMaker Bug List
Post by: Tireas Dragon on July 21, 2008, 07:13:36 PM
4 players? was it a hot seat game?
Title: Re: GameMaker Bug List
Post by: Tireas Dragon on July 27, 2008, 06:53:12 PM
Anyway, hows work coming along on the update Al?
Title: Re: GameMaker Bug List
Post by: Tireas Dragon on August 05, 2008, 07:46:07 PM
Have you fixed the repeat glitch yet? I really want to release Labyrinth.

P.S. Sorry for triple posting.
Title: Re: GameMaker Bug List
Post by: Al Staffieri on August 06, 2008, 02:14:52 PM
Quote
Have you fixed the repeat glitch yet? I really want to release Labyrinth.

I been working on it, but I haven't figured it out.
Title: Re: GameMaker Bug List
Post by: Tireas Dragon on August 07, 2008, 11:43:52 AM
I found another glitch.
SPRITE SCALE 200 3 159 159 HiddenTile.gif
ON KEYDOWN
x = x + 1
SPRITE 2 x y Adventurer Avatar.gif
END KEYDOWN
Whenever you press a key the SPRITE keeps on getting bigger. Until Its so big that it disappears.
EDIT A nice feature of the sprite scale command would be a sprite x scale and a sprite y scale so you could make long and tall sprites.
Title: Re: GameMaker Bug List
Post by: Silverwind on August 11, 2008, 04:51:55 AM
Hey Al, would it be possible to have a SWAP var1$ var2$ command in the next update? Or does the SWAP var1 var2 command work with string variables anyway?
Title: Re: GameMaker Bug List
Post by: Tireas Dragon on August 11, 2008, 08:40:47 AM
Ya SWAP works with both string and numerical variables.
Title: Re: GameMaker Bug List
Post by: Al Staffieri on August 22, 2008, 03:46:20 AM
Quote
Have you fixed the repeat glitch yet? I really want to release Labyrinth.

OMG!! I think I finally got it fixed!! I'll send you a version to try out later today.


EDIT: Nope. Still a minor problem with it, but it's working better. I'm very close to solving this.

EDIT 2: Ha. Think I got it this time. An update will be out later today.