|Anonymous | Login | Signup for a new account||2017-12-12 06:41 GMT|
|My View | View Issues | Roadmap | My Account|
|View Issue Details|
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0026573||Runner||[All Projects] General||Public||2017-05-19 08:54||2017-08-08 15:59|
|Assigned To||Daniel Cleaton|
|Priority||Medium||Severity||C - General||Reproducibility||100%|
|Platform||-||OS||Windows 10||OS Version||Pro x64|
|Summary||0026573: Compiling: instance_create_depth() should throw a compile error when passed a string for the depth value|
|Description||instance_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 Reproduce||1. 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.
|2.x Runtime Version||126.96.36.199|
|2.x Runtime Version Verified In|
|Attached Files||TanksPrototype.yyz [^] (20,231 bytes) 2017-05-19 08:54|
Mike Dailly (Manager)
|Won't throw a compile error, but could throw a runtime one.|
Mike Rennie (Developer)
|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|