BoB3k
Member
I've had a bug pop up and couldn't see anything I did to cause it, so I went back to the last version and it was gone. So, it looks like it is because of the new GMS2 version.
Bug:
instance_place() wasn't working (as in return -4 even though it should be finding an object) in the very specific circumstance of 1) when I went into a new room (using goto_room()) from the original room and call instance_place for an object that 2) did NOT appear anywhere in the original loaded room. -- that's right, if you have an object that DID appear in the original room, it will be detected. only objects not yet ever instantiated are missed.
So, I reinstalled the old version and it worked again.
I put in debug prints, and they confirm i'm getting -4s with the new version and valid instance ids with the old version.
Working version: GameMakerStudio-Installer-2.2.0.343 (runtime 2.2.1.287 and 2.2.1.291)
NOT working ver: GameMakerStudio-Installer-2.2.1.375 (runtime 2.2.0.258)
Does anyone know why this would be happening on purpose as not a bug? Has anyone else had any instance_place() errors in the new code?
Thanks,
BoB
Bug:
instance_place() wasn't working (as in return -4 even though it should be finding an object) in the very specific circumstance of 1) when I went into a new room (using goto_room()) from the original room and call instance_place for an object that 2) did NOT appear anywhere in the original loaded room. -- that's right, if you have an object that DID appear in the original room, it will be detected. only objects not yet ever instantiated are missed.
So, I reinstalled the old version and it worked again.
I put in debug prints, and they confirm i'm getting -4s with the new version and valid instance ids with the old version.
Working version: GameMakerStudio-Installer-2.2.0.343 (runtime 2.2.1.287 and 2.2.1.291)
NOT working ver: GameMakerStudio-Installer-2.2.1.375 (runtime 2.2.0.258)
Does anyone know why this would be happening on purpose as not a bug? Has anyone else had any instance_place() errors in the new code?
Thanks,
BoB