AutotileLib

by Ter13
Fast, simple, abstract 47-state autojoining library
ID:2429790
 
Hello mayby i'm to stupid to understand your refs, but i don't know how to make your lib work… i'm don't understand how it works, because i don't understand your code. (I programe just for fun, i'm not profesionalist..)
e.g F_a's autojoin lib has demo which show us how it's work.

Could you take a look in to this demo and check/ explain me how to fix it?
I want 2 type of grass will marge together, but don't with dirt.







Demo
https://puu.sh/COaiz.zip
var/list/autotile_rules = list(
"grass1"=list("grass1"=1),
"grass2"=list("grass2"=1),
"dirt"=list("dirt"=1))
)

turf
icon = 'Turfs.dmi'
grass
icon_state = "grass"
dirt
icon_state="dirt"
autotile_icon = 'autoDirt.dmi'
autotile_rule = "dirt"
join_id = "dirt"
Lgrass
icon_state="lgrass"
autotile_icon = 'autoLongGrass.dmi'
autotile_rule = "grass1"
join_id = "grass1"
Lgrass2
icon_state="lgrass2"
autotile_icon = 'autoLongGrass2.dmi'
autotile_rule = "grass2"
join_id = "grass2"


The autotile_rules list needs to be populated by a list of rules associated with the list of join_ids that they will join with.
I'm using your code, but it still wont work.

I see is something changes because icons in game are others than in map editor.

Sorry, I forgot a step. See the edit.
Thanks, it's work fine now.

Something like this(i mean "join turfs on cur layer"), isn't possible because this lib working only on turfs, right?

I have no idea what you just asked me.