ID:155594
 
I should post this in Code Problems but here i am.

I recently made an icon, inside of my test program. When i try to use this icon aka icon = 'player2.dmi' It says that it cannot find the file. When i look in the folder, its there, and on the file list its there. But i still get this error
Are you sure you spelt the file name correctly and with the right capitalization?
In response to National Guardsmen
Yes, completely sure ive got the spelling right. Ive tried renaming the icon multiple times and entering in the new file name in the appropriate code. Still, the icon, no matter the name i give it, cannot be found.
In response to Kentos123
Hmmm, i deleted an obj code and now it seems to work fine, it was one of the codes provided in the DM guide. and i could not see the relationship to the icon files, apparently it was bugging my new icons

The code that i deleted was-

obj/lamp/verb/Break()
set name = "break"
luminosity = 0

It was designed to show how to use set name. Im not sure why this would conflict with an icon file though
Im having trouble setting an icon state for a Knock out. I have an icon with many states, including a KO state. When i put in icon_state = 'KO' it says it cannot find the file, is there something i should have done first to designate how or where to find the icon states?
In response to Kentos123
' ' and " " do different things in DM.

icon = 'file.dmi'


' ' denotes a file you're using that will be loaded into the game's .rsc file. " " denotes a text string.

icon_state = "KO"
In response to LordAndrew
Ahhh, thank you so much, and sorry for the ignorance, i should have checked that to begin with. Im just learning to code so ill probably have many a questions in the near future.