An attribute named "output"

jaynabonne
24 Jun 2013, 09:39
I tried adding an attribute named "output" to an object, but it doesn't show up in the object when run. I assume this is some sort of reserved keyword, but I'm not sure why exactly. (Or perhaps it's a bug!) Any ideas?

Some thoughts:

1) Is there a list somewhere of "reserved" attribute names (that is, attribute names you can not use)? I have already discovered you can't use attribute names which match JS keywords (e.g. "if").
2) It would be most handy if, instead of silently disappearing, an error message could be given for a case like "output" above. It took some head scratching and finally a foray into the debugger to discover that the universe was not what I thought it was.

Alex
24 Jun 2013, 10:29
"output" is a type of element, so the effect is similar to if you tried creating an attribute called "command" or "object".

It's at the end of https://quest.codeplex.com/SourceContro ... Loaders.cs

I think it's obsolete as of Quest 5.4 (it was previously used for storing the output of a game session, so that it could be redisplayed when loading from a .quest-save). So this should be disabled for games with ASL version 540 or later.

Logged this here https://quest.codeplex.com/workitem/1304

jaynabonne
24 Jun 2013, 11:03
Ok, that was the part I was wondering - it didn't seem current but still used somehow. Thanks for the info and the opened issue. :)