ID:2018876
 
(See the best response by Ter13.)
Code:
        if("Ascended Namek")if(src.powerlevel_max >= 750000)
src.form = "Hidden Form"
src.icon = 'Namek - Super4.dmi'
src.overlays -= mystic_elec
src.overlays += mystic_elec
src.Power_Redefine()
src.powerlevel_max *= 2.8
src.ki_max *= 2.8
src.strength_max *= 2.8
src.defence_max *= 2.8
src.speed = 0.1
src.block_max += 10
src.dodge_max += 10
src.critical_max += 10
src.reflect_max += 10
src.counter_max += 10
view(6) << "<font color = green>[src.name] Finds a Hidden Form!"
new/obj/techs/Overlays/Crater_Center(src.loc)


Problem description:
Namek - Super4.dmi cannot find file

how does this happen while the file is inside the folder?

by the way i have the problem for 20 other .dmi that says cannot find file
Is the Icon in the same folder as the dme file?
If not I would think it would be something like
if("Ascended Namek")if(src.powerlevel_max >= 750000)
src.form = "Hidden Form"
src.icon = 'Folder/Namek - Super4.dmi'
src.overlays -= mystic_elec
src.overlays += mystic_elec
src.Power_Redefine()
src.powerlevel_max *= 2.8
src.ki_max *= 2.8
src.strength_max *= 2.8
src.defence_max *= 2.8
src.speed = 0.1
src.block_max += 10
src.dodge_max += 10
src.critical_max += 10
src.reflect_max += 10
src.counter_max += 10
view(6) << "<font color = green>[src.name] Finds a Hidden Form!"
new/obj/techs/Overlays/Crater_Center(src.loc)


If that doesnt work try:
        if("Ascended Namek")if(src.powerlevel_max >= 750000)
src.form = "Hidden Form"
src.icon = NamekSuper4
src.overlays -= mystic_elec
src.overlays += mystic_elec
src.Power_Redefine()
src.powerlevel_max *= 2.8
src.ki_max *= 2.8
src.strength_max *= 2.8
src.defence_max *= 2.8
src.speed = 0.1
src.block_max += 10
src.dodge_max += 10
src.critical_max += 10
src.reflect_max += 10
src.counter_max += 10
view(6) << "<font color = green>[src.name] Finds a Hidden Form!"
new/obj/techs/Overlays/Crater_Center(src.loc)


And add Above the whole verb or proc:
var
SuperNamek4 = 'Namek - Super4.dmi'


And an easier thing to do if the Dmi file is in for say in a different folder from the dme. If you want(Which makes it less organized)move the Dmi to the location of the dme! :) I am not an expert but try those things
Flameguru,
None of those suggestions would be appropriate. The first suggestion would technically work, but I highly doubt it's the issue.
The second suggestion wouldn't work whatsoever as NamekSuper4 isn't a defined variable or path.
The third suggestion is very redundant and you don't need to assign icons as a reference in this situation.
I'm just going to take an observatory notice that you are guessing at this point.

DevaCoder,
Make sure the file actually exists in your folders and is included in the .dme. Check your .dme in Dream Maker and make sure the location the icon is in is defined.
Ex: My "race" icons are located under...
#define FILE_DIR "GRAPHICS/races/human"


If not, try to run a Clean Compile and make sure your 'Namek - Super4.dmi' is not open anywhere else. So, close out of all your Dream Maker programs except the one you're working on and save everything, then Clean Compile.
In response to Maximus_Alex2003
yours is correct but when i added #define FILE_DIR "Graphics/Icons" then i click compile or clean compile it erases what i wrote
Best response
You can't put anything inside of the //BEGIN or //END comments in the DME. Put it just below the //END_FILE_DIR comment, and just above the //BEGIN_PREFERENCES comment. The compiler automatically deletes anything between //BEGIN and //END comments and refreshes it with new data on a compile by design.
In response to Ter13
thanks it works but cant there be a way to automatically define the file or should i do it manually?
In Dream Maker: Build -> Preferences for [PROJECT NAME]..., make sure that Automatically set FILE_DIR for sub-directories is checked. The compiler should automatically search top-down for any directories containing resource files provided this preference is checked in the build preferences menu.
Better yet, teach the guy to use absolute paths. FILE_DIR is a terrible feature that murders the compiler's resource usage and has been known to cause conflicts.
Thanks its now working perfectly

Should i delete the post or leave it for people with similar problems to understand?
I can't tell you what to do. But...

http://www.byond.com/forum/?post=2015299