View Issue Details

IDProjectCategoryView StatusLast Update
0026573Runner[All Projects] GeneralPublic2017-08-08 15:59
ReporterDaniel CleatonAssigned ToDaniel Cleaton 
PriorityMediumSeverityC - GeneralReproducibility100%
Status FeedbackResolutionOpen 
Platform-OSWindows 10OS VersionPro x64
Product Version 
Target VersionFixed in Version 
Summary0026573: Compiling: instance_create_depth() should throw a compile error when passed a string for the depth value
Descriptioninstance_create_depth() should throw a compile error when passed a string for the depth value. Right now, it allows the string, but this is invalid in the runner, and so your whole game is drawn as a black screen.

Steps To Reproduce1. Import the attached sample.
2. Run it for Windows.
3. Observe no compile errors, but game just draws a black screen/nothing.
4. Swap out the code in the tank object's Create event and run the game again and observe it is fixed now.

Repro: 100%
1.4 Found In
2.x Runtime Found In2.0.6.93
2.x Runtime Verified In


Daniel Cleaton

2017-05-19 08:54


TanksPrototype.yyz (20,231 bytes)

Mike Dailly

2017-05-19 09:18

Manager   ~0053239

Won't throw a compile error, but could throw a runtime one.

Mike Rennie

2017-08-08 15:59

Developer   ~0054817

Looking at what the code does internally it'll actually try to convert a string to a number - i.e. it'll convert "100" to the actual numerical value. I'm not sure if that's what we actually want but I suppose it's not technically 'wrong'. It does mean that if we want to maintain that functionality I can't just do a string check and throw an error.