ID:264520
 
Code:
MAP


Problem description:

I am having an issue with my map right now. When i load it up my icons seem to have been corrupted. For example i have 20 icons that look exactly like each other, even though i coded something different.Its like one icon has corrupted many.
ummmm.....do they have the same icon state...or no state specified?
i'll paint a picture of an example that could be similar to your problem:

you have an icon, 'dog.dmi', and inside is an icon state of a dog, but the icon state is unnamed. it's the only icon state inside the icon

mob
dog
icon = 'dog.dmi'
cat
icon_state = "cat"
parrot
icon_state = "parrot"


cat and parrot inherit their icon as 'dog.dmi', and have icon states that don't exist inside the icon, so it defaults to the unnamed icon, the dog. thus, the cat and parrot look like a dog. to fix this you'll have to set their own icons (ie icon = 'cat.dmi') in order to cancel out the inheritance, and in this example you'd also want to move cat and parrot left one tab because it doesn't make sense for them to be a child of dog

this now sounds more confusing now that i'm rereading it. oh well
In response to Zaole
Heres your answer to your coding problem(Providing you havent recieved it)

mob//The type of thing
dog//The Name unless specified otherwise
icon = 'dog.dmi'
cat
icon = 'Other Pets.dmi'//Or Any other icon
icon_state = "cat"//Same with the icon_state
parrot
icon = 'Other Pets.dmi'//make sure its icon='ex.dmi'
icon_state = "parrot"//and this is icon_state="Ex"
In response to Ernesto5432
that wasn't a problem i was having, i was taking a guess as to what was causing his problem (and i explained how to fix it) :P
In response to Zaole
I responded to the wrong post, sorry about that.
In response to Zaole
//Code generated using Zaltron's Auto Turf Coder
turf
icon='Turfs.dmi'
grass/icon_state = "grass"
puddle/icon_state = "puddle"
crop/icon_state = "crop"
crop_tl/icon_state = "crop tl"
crop_top/icon_state = "crop top"
crop_tr/icon_state = "crop tr"
crop_left/icon_state = "crop left"
crop_right/icon_state = "crop right"
crop_bl/icon_state = "crop bl"
crop_bottom/icon_state = "crop bottom"
crop_br/icon_state = "crop br"
crop_opening/icon_state = "crop opening"
crop_opening2/icon_state = "crop opening2"
crop_opening3/icon_state = "crop opening3"
crop_opening4/icon_state = "crop opening4"
grass_cliff/icon_state = "grass-cliff"
stairs_top/icon_state = "stairs top"
stairs/icon_state = "stairs"
grass_cliff_tl/icon_state = "grass-cliff tl"
grass_cliff_top/icon_state = "grass-cliff top"
grass_cliff_tr/icon_state = "grass-cliff tr"
grass_cliff_left/icon_state = "grass-cliff left"
rock/icon_state = "rock"
grass_cliff_right/icon_state = "grass-cliff right"
grass_cliff_bl/icon_state = "grass-cliff bl"
grass_cliff_bottom/icon_state = "grass-cliff bottom"
grass_cliff_br/icon_state = "grass-cliff br"
icon_state = "1"

all of my coding looks like this when i use Zaltron's Library , do i have to indent everything??
In response to Tales Number TwO
well i don't really know to do it like that...but is that icon_state = "1" at end necessary?
In response to Destrojer
yes i did'nt give you all the code but it goes on
In response to Destrojer
nope the icon state are different but they all have the same icon. I just removed all the icons(and icon_state) in the coding except one and everything was fine.There problem occurs when i add another icon into the coding.

Ex.
turf
icon='Turfs.dmi'
grass/icon_state = "grass"
puddle/icon_state = "puddle"
crop/icon_state = "crop"
crop_tl/icon_state = "crop tl"
(and it goes on)
turf<---- my problem begins here
icon="blah
blah/icon_state="blah"
Every thing is fine when i code one icon and its icon_state but when i add another icon then the error appears.
In response to Tales Number TwO
That would be because you're replacing the icon for every single turf with a new one.

I'd suggest starting here.
In response to Zaole
Zaole wrote:

> mob
> dog
> icon = 'dog.dmi'
> cat
> icon_state = "cat"
> parrot
> icon_state = "parrot"
>

:P
In response to Tales Number TwO
Tales Number TwO wrote:
//Code generated using Zaltron's Auto Turf Coder
> turf
> icon='Turfs.dmi'
> grass/icon_state = "grass"
>

all of my coding looks like this when i use Zaltron's Library , do i have to indent everything??

It auto-indents everything for you. I hope you're using my Auto Turf Coder 3.

turf/grass
icon = 'blah.dmi'
icon_state = "blah"

turf
grass
icon = 'blah.dmi'
icon_state = "blah"

turf
icon = 'blah.dmi'
grass/icon_state = "blah"

turf
icon = 'blah.dmi'
grass
icon_state = "blah"


Those will all work for what you want. My ATC will put the icon_state on the same line if you don't tell it that you want the turf to be dense, opaque, or a different layer.