ID:1231315
 
(See the best response by Albro1.)
So, for some reason, icon_states aren't working for mobs. Objs and turfs work fine, but it does not seem to allow anything other than a null icon_state for mobs - If all my states are named, it shows no icon, but it will show an unnamed state, regardless of the fact that I've defined it to use a specific state. Any ideas as to why?
Perhaps you aren't defining them properly. Mind Posting a peace of your coding(which involves icon_state being applied of course.) ?
Not doing anything weird with it, at the moment, but I'm planning on having icons for 5 degree intervals of direction, so I need to get this working again.
mob
icon='mob.dmi'
red
icon_state="red"
blue
icon_state="blue"
green
icon_state="green"
Login()
loc=locate(8,8,1)
..()

Note, when I tried this (below), and placed the objs on the map, it worked without any issues. With mobs placed directly on the map, no-go.
obj
icon='mob.dmi'
red
icon_state="red"
blue
icon_state="blue"
green
icon_state="green"
..()

Can you post a screenshot of your icon file so I can check the state names?
They are exactly as spelt. red. blue. green. That was the very first thing I checked. When I changed the tree from a mob tree to an obj tree, it magically worked. When I switched it back to mob, it stopped working again.
I don't see anything wrong. Are those the actual iconstates you're using in the icon file?
Yeah. I don't see anything wrong either. I'm not posting this because I've been playing with BYOND for 2 weeks, and have no idea what I'm doing. I've been playing around with BYOND for 8 years, on and off, and I've never encountered this issue before. All the more irritating because it is the most basic of procedures out there.
Best response
Is that the only code you have referring to the mob? Perhaps something you are doing elsewhere is causing this.
Ah - There we go. Thanks, I'd forgotten that in part of the engine I'm re-using, I had already implemented the radial states, so it kept trying to change it to a number in degrees :/