Hi again!
I’ve found over the net a pack with new custom boat sprites. I’ve wanted to make mod that adds these sprites to the ‘core’ of existing boat graphics and allow game to randomly choose these ones in the moment of buiyng. So I’ve wriiten such code:
{
"core:boat" : {
"base" : {
"base" : {
"visitableFrom" : "+++", "+-+", "+++" ],
"mask" : "VVV", "VAV" ]
}
},
"types" : {
"evil" : {
"templates" : {
"AB01_.def" :
{ "animation" : "AB01_.def", //original h3 evil def
"editorAnimation": "avxboat0.def"
},
"boat07.def" :
{ "animation" : "boat07.def",
"editorAnimation": "boat07ed.def"
},
"boat10.def" :
{ "animation" : "boat10.def",
"editorAnimation": "boat10ed.def"
},
"boat11.def" :
{ "animation" : "boat11.def",
"editorAnimation": "boat11ed.def"
},
"boat20.def" :
{ "animation" : "boat20.def",
"editorAnimation": "boat20ed.def"
},
"boat0a.def" :
{ "animation" : "boat0a.def",
"editorAnimation": "boat0aed.def"
},
"boat0c.def" :
{ "animation" : "boat0c.def",
"editorAnimation": "boat0ced.def"
},
"boat0f.def" :
{ "animation" : "boat0f.def",
"editorAnimation": "boat0fed.def"
},
"boat0l.def" :
{ "animation" : "boat0l.def",
"editorAnimation": "boat0led.def"
}
}
},
"good" : {
"templates" : {
"AB02_.def" :
{ "animation" : "AB02_.def", //original h3 good def
"editorAnimation": "avxboat1.def"
},
"boat00.def" :
{ "animation" : "boat00.def",
"editorAnimation": "boat00ed.def"
},
"boat01.def" :
{ "animation" : "boat01.def",
"editorAnimation": "boat01ed.def"
},
"boat02.def" :
{ "animation" : "boat02.def",
"editorAnimation": "boat02ed.def"
},
"boat04.def" :
{ "animation" : "boat04.def",
"editorAnimation": "boat04ed.def"
},
"boat06.def" :
{ "animation" : "boat06.def",
"editorAnimation": "boat06ed.def"
},
"boat09.def" :
{ "animation" : "boat09.def",
"editorAnimation": "boat09ed.def"
},
"boat0i.def" :
{ "animation" : "boat0i.def",
"editorAnimation": "boat0ied.def"
},
"boat0j.def" :
{ "animation" : "boat0j.def",
"editorAnimation": "boat0jed.def"
},
"boat0m.def" :
{ "animation" : "boat0m.def",
"editorAnimation": "boat0med.def"
}
}
},
"neutral" : {
"templates" : {
"AB03_.def" :
{ "animation" : "AB03_.def", //original h3 neutral def
"editorAnimation": "avxboat2.def"
},
"boat03.def" :
{ "animation" : "boat03.def",
"editorAnimation": "boat03ed.def"
},
"boat05.def" :
{ "animation" : "boat05.def",
"editorAnimation": "boat05ed.def"
},
"boat08.def" :
{ "animation" : "boat08.def",
"editorAnimation": "boat08ed.def"
},
"boat0b.def" :
{ "animation" : "boat0b.def",
"editorAnimation": "boat0bed.def"
},
"boat0d.def" :
{ "animation" : "boat0d.def",
"editorAnimation": "boat0ded.def"
},
"boat0e.def" :
{ "animation" : "boat0e.def",
"editorAnimation": "boat0eed.def"
},
"boat0g.def" :
{ "animation" : "boat0g.def",
"editorAnimation": "boat0ged.def"
},
"boat0h.def" :
{ "animation" : "boat0h.def",
"editorAnimation": "boat0hed.def"
},
"boat0k.def" :
{ "animation" : "boat0k.def",
"editorAnimation": "boat0ked.def"
}
}
}
}
}
}
New sprites appear in the editor map (see screenshot) but in game there aren’t any changes - when I buy the boat - standard h3 defs are show Did not I understand what is “template” command for?