ID:798250
 
(See the best response by DarkCampainger.)
im learning to code after i code the second dmi file my first dmi images are blank? any ideas?
Hi HatenZhanzo,

Can you show us the code you're trying to use? Also, when you say the dmi is blank, do you mean if you open the actual file it's suddenly empty, or that it just doesn't show up on the map anymore?

Also, when posting code on the forums, you can get syntax highlighting by surrounding it with <dm> and </dm> tags, like so:

<dm>
// Your code here
</dm>

Becomes:

// Your code here
You need to press the painting picture on top to draw a icon if thats what you mean
turf
icon='earth tiles.dmi'
water
icon_state="water"
density = 1
Top_Left_Sand
icon_state="Top Left Sand"
density = 1
Inside_Curve_Top_Left
icon_state="Inside Curve Top Left"
density = 0
Top_Straight_Sand
icon_state="Top Straight Sand"
density = 1
Top_Right_Sand
icon_state="Top Right Sand"
density = 1
Inside_Curve_Top_Right
icon_state="Inside Curve Top Right"
density = 0
Right_Straight_Sand
icon_state="Right Straight Sand"
density = 1
Bottom_Right_Curve
icon_state="Bottom Right Curve"
density = 0
Inside_Curve_Bottom_Right
icon_state="Inside Curve Bottom Right"
density = 0
Bottom_Straight_Sand
icon_state="Bottom Straight Sand"
density = 1
Bottom_Left_Curve
icon_state="Bottom Left Curve"
density = 1
Inside_Bottom_Left_Curve
icon_state="Inside Bottom Left Curve"
density = 0
Left_Staight_Sand
icon_state="Left Staight Sand"
density = 1
sand_a
icon_state="sand a"
density = 0
sand_b
icon_state="sand b"
density = 0
sand_c
icon_state="sand c"
density = 0
sand_d
icon_state="sand d"
density = 0
icon='grass.dmi'
grass_a
icon_state="grass a"
density = 0
grass_b
icon_state="grass b"
density = 0
grass_c
icon_state="grass c"
density = 0
grass_d
icon_state="grass d"
density = 0
grass_e
icon_state="grass e"
density = 0
grass_f
icon_state="grass f"
density = 0
grass_g
icon_state="grass g"
density = 0
grass_h
icon_state="grass h"
density = 0
grass_i
icon_state="grass i"
density = 0
grass_j
icon_state="grass j"
density = 0
grass_k
icon_state="grass k"
density = 0
grass_l
icon_state="grass l"
density = 0
grass_m
icon_state="grass m"
density = 0
grass_n
icon_state="grass n"
density = 0
grass_o
icon_state="grass o"
density = 0
grass_p
icon_state="grass p"
density = 0
grass_q
icon_state="grass q"
density = 0
grass_namek
icon_state="grass namek"
density = 0
grass_r
icon_state="grass r"
density = 0
grass_s
icon_state="grass s"
density = 0
grass_t
icon_state="grass t"
density = 0
grass_u
icon_state="grass u"
density = 0


this what i have so far. when i check to to see if everything is ok on the dmm the earth tiles states are all blank, after i add a second dmi file and code it in.
fire try and keep icon and icon_state together and all the icon stuff together


second make a second "folder"(as i like to call it) for all of your turf

example

turf/grass(this is a folder)

this makes it so the turf default image isnt set to
icon='grass.dmi'
AND
icon='earth tiles.dmi'

so:

turf/grass

and

turf/earthtiles

this will make it so only the "folder" has the default setting of icon the way you make it is

ill give you the straight code because im probably ranting on and confusing you :o

turf/earthtiles
icon='earth tiles.dmi'
water
icon_state="water"
density = 1
Top_Left_Sand
icon_state="Top Left Sand"
density = 1
Inside_Curve_Top_Left
icon_state="Inside Curve Top Left"
density = 0
Top_Straight_Sand
icon_state="Top Straight Sand"
density = 1
Top_Right_Sand
icon_state="Top Right Sand"
density = 1
Inside_Curve_Top_Right
icon_state="Inside Curve Top Right"
density = 0
Right_Straight_Sand
icon_state="Right Straight Sand"
density = 1
Bottom_Right_Curve
icon_state="Bottom Right Curve"
density = 0
Inside_Curve_Bottom_Right
icon_state="Inside Curve Bottom Right"
density = 0
Bottom_Straight_Sand
icon_state="Bottom Straight Sand"
density = 1
Bottom_Left_Curve
icon_state="Bottom Left Curve"
density = 1
Inside_Bottom_Left_Curve
icon_state="Inside Bottom Left Curve"
density = 0
Left_Staight_Sand
icon_state="Left Staight Sand"
density = 1
sand_a
icon_state="sand a"
density = 0
sand_b
icon_state="sand b"
density = 0
sand_c
icon_state="sand c"
density = 0
sand_d
icon_state="sand d"
density = 0


turf/grass
icon='grass.dmi'
grass_a
icon_state="grass a"
density = 0
grass_b
icon_state="grass b"
density = 0
grass_c
icon_state="grass c"
density = 0
grass_d
icon_state="grass d"
density = 0
grass_e
icon_state="grass e"
density = 0
grass_f
icon_state="grass f"
density = 0
grass_g
icon_state="grass g"
density = 0
grass_h
icon_state="grass h"
density = 0
grass_i
icon_state="grass i"
density = 0
grass_j
icon_state="grass j"
density = 0
grass_k
icon_state="grass k"
density = 0
grass_l
icon_state="grass l"
density = 0
grass_m
icon_state="grass m"
density = 0
grass_n
icon_state="grass n"
density = 0
grass_o
icon_state="grass o"
density = 0
grass_p
icon_state="grass p"
density = 0
grass_q
icon_state="grass q"
density = 0
grass_namek
icon_state="grass namek"
density = 0
grass_r
icon_state="grass r"
density = 0
grass_s
icon_state="grass s"
density = 0
grass_t
icon_state="grass t"
density = 0
grass_u
icon_state="grass u"
density = 0
also a tip:
turfs default density is 0 so only if you want it so you couldnt walk through it put density=1 else dont put density anything
Best response
The issue is that you're redefining the icon for all /turf types. When defining types, variables, and their initial values; the order isn't so much important as the hierarchy denoted by the indentation. What you need is two more types to group that icon setting and the subtypes under:

turf
Earth_Tiles
// All types defined under /turf/Earth_Tiles will inherit this icon
icon='earth tiles.dmi'

water
icon_state="water"
density = 1
Top_Left_Sand
icon_state="Top Left Sand"
density = 1
Inside_Curve_Top_Left
icon_state="Inside Curve Top Left"
density = 0
Top_Straight_Sand
icon_state="Top Straight Sand"
density = 1
// [ And so on ]

Grass
// All types defined under /turf/Grass will inherit this icon and density
icon='grass.dmi'
density = 0

grass_a
icon_state="grass a"
grass_b
icon_state="grass b"
grass_c
icon_state="grass c"
grass_d
icon_state="grass d"
// [ And so on ]
that fixed it, thanks DarkCampainger and Shwb1