Mantis

View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0026573Runner[All Projects] GeneralPublic2017-05-19 08:542017-08-08 15:59
ReporterDaniel Cleaton 
Assigned ToDaniel Cleaton 
PriorityMediumSeverityC - GeneralReproducibility100%
StatusFeedbackResolutionOpen 
Platform-OSWindows 10OS VersionPro x64
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 Version
2.x Runtime Version2.0.6.93
2.x Runtime Version Verified In
Attached Files? file icon TanksPrototype.yyz [^] (20,231 bytes) 2017-05-19 08:54

- Relationships

-  Notes
(0053239)
Mike Dailly (Manager)
2017-05-19 09:18

Won't throw a compile error, but could throw a runtime one.
(0054817)
Mike Rennie (Developer)
2017-08-08 15:59

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.


Copyright © 2000 - 2017 MantisBT Team
Powered by Mantis Bugtracker