1
2
Unless you see it in stddef, it's just a faux-type, like /list, it has special handling all around. I agree, one of them is a bug, and I'd imagine the one where it's improperly inheriting procs is the one.
|
However.
datum Works fine for me, displays "Some image proc." then "Proc" as expected. |
Are you sure you have world.log set to something? If not you're gonna spit the output into the options and messages window.
|
In response to MrStonedOne
|
|
MrStonedOne wrote:
However, /image isn't derived from /datum The last time I checked, /image is some sort of half-brother or bastard child of /atom (and I forget what exactly, but had some properties of /atom/movable) |
It's a mutant like /list is, really. I think the stuff they did to make user-defined procs work on them gave them some kind of datum-derivation but it doesn't seem to be a perfect child of anything.
|
Are you sure you have world.log set to something? If not you're gonna spit the output into the options and messages window. Definitely, which makes this all the more confusing. Like my example, I have dispose() defined at the datum level. I was setting up a simple image tracker to make sure images that are not being viewed do not slip through the cracks. proc/unregister_watcher(image/img, watcher) I know the code reaches img.dispose() because I see the message "image should be dispose()". However, I never see the debug messages inside of image.dispose(), despite the code clearly reaching that point. If I change image/dispose() to an image-level proc, such as image/proc/cleanup(), it works fine. Also, these errors appear when trying to define a proc for a list: code\image_manager.dm:43:error: proc: list-derived types are not supported So yeah, there may be a bug involved where images are concerned. |
Have you tried moving the messages outside of log and just spit them out to world? I'm definitely having no troubles with datum procs working on images.
|
In response to Nadrew
|
|
Nadrew wrote:
Have you tried moving the messages outside of log and just spit them out to world? I'm definitely having no troubles with datum procs working on images. Just tried that; same result. |
Gotta be something somewhere else in the code at fault then, as noted in my example above, it works fine standardly.
|
1
2
Image's parent type variable is set to /datum
Those two statements can't co-exist, one of them is a bug.