12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253 |
- local mod_name = "classic_coaches_nationality_livery_pack"
- -- Notify player if a newer version of AdvTrains Livery Tools is needed.
- if not advtrains_livery_database.is_compatible_mod_version or
- not advtrains_livery_database.is_compatible_mod_version({major = 0, minor = 9, patch = 0}) then
- minetest.log("error", "["..mod_name.."] An old version of AdvTrains Livery Tools was detected. Please update to the latest version.")
- -- Version 0.9.0 is required because advtrains_livery_database.has_wagon_livery_template() is called.
- return
- end
- local S = minetest.get_translator(mod_name)
- -- Get the translated livery template names from the classic_coaches_generic_livery_pack
- -- mod in order to insure they will match during look-up.
- local livery_template_generic_tricolor = minetest.translate("classic_coaches_generic_livery_pack", "Generic - Tricolor")
- local livery_template_generic_window_stripes = minetest.translate("classic_coaches_generic_livery_pack", "Generic - Window Stripes")
- local livery_template_generic_slanted_bands = minetest.translate("classic_coaches_generic_livery_pack", "Generic - Slanted Bands")
- -- Define groups of wagon types that will share predefined liveries.
- local wagon_types = {
- all_coaches = {
- "classic_coaches:corridor_coach_class1",
- "classic_coaches:corridor_coach_class2",
- "classic_coaches:open_coach_class1",
- "classic_coaches:open_coach_class2",
- "classic_coaches:bistro_coach",
- },
- common_coaches = {
- "classic_coaches:corridor_coach_class1",
- "classic_coaches:corridor_coach_class2",
- "classic_coaches:open_coach_class1",
- "classic_coaches:open_coach_class2",
- },
- bistro_coaches = {
- "classic_coaches:bistro_coach",
- },
- }
- local predefined_liveries = {
- {
- name = S("Nationality - Argentina"),
- wagon_types = wagon_types.all_coaches,
- notes = "",
- livery_design = {
- livery_template_name = livery_template_generic_tricolor,
- overlays = {
- [1] = {id = 1, color = "#75AADB"}, -- "Upper Side Walls",
- [2] = {id = 2, color = "#75AADB"}, -- "Lower Side Walls",
- [3] = {id = 3, color = "#FFFFFF"}, -- "Window Band",
- [4] = {id = 4, color = "#FCBF49"}, -- "Window Band Trim",
- [5] = {id = 5, color = "#843511"}, -- "Class Number"/"Bistro Label",
- },
- },
- },
- {
- name = S("Nationality - Argentina (Slanted Bands)"),
- wagon_types = wagon_types.all_coaches,
- notes = "",
- livery_design = {
- livery_template_name = livery_template_generic_slanted_bands,
- overlays = {
- -- [1] = {id = 1, color = "#000000"}, -- "Side Walls",
- [2] = {id = 2, color = "#75AADB"}, -- "Left Slanted Band",
- [3] = {id = 3, color = "#FFFFFF"}, -- "Middle Slanted Band",
- [4] = {id = 4, color = "#75AADB"}, -- "Right Slanted Band",
- [5] = {id = 5, color = "#FCBF49"}, -- "Stripe",
- [6] = {id = 6, color = "#843511"}, -- "Class Number"/"Bistro Label",
- },
- },
- },
- {
- name = S("Nationality - Australia"),
- wagon_types = wagon_types.common_coaches,
- notes = "",
- livery_design = {
- livery_template_name = livery_template_generic_tricolor,
- overlays = {
- [1] = {id = 1, color = "#00008B"}, -- "Upper Side Walls",
- [2] = {id = 2, color = "#00008B"}, -- "Lower Side Walls",
- [3] = {id = 3, color = "#FF0000"}, -- "Window Band",
- [4] = {id = 4, color = "#FFFFFF"}, -- "Window Band Trim",
- [5] = {id = 5, color = "#00008B"}, -- "Class Number",
- },
- },
- },
- {
- name = S("Nationality - Australia"),
- wagon_types = wagon_types.bistro_coaches,
- notes = "",
- livery_design = {
- livery_template_name = livery_template_generic_tricolor,
- overlays = {
- [1] = {id = 1, color = "#00008B"}, -- "Upper Side Walls",
- [2] = {id = 2, color = "#00008B"}, -- "Lower Side Walls",
- [3] = {id = 3, color = "#FF0000"}, -- "Window Band",
- [4] = {id = 4, color = "#FFFFFF"}, -- "Window Band Trim",
- [5] = {id = 5, color = "#FFFFFF"}, -- "Bistro Label",
- -- [6] = {id = 6, color = "#000000"}, -- "Galley",
- },
- },
- },
- {
- name = S("Nationality - Australia (Slanted Bands)"),
- wagon_types = wagon_types.common_coaches,
- notes = "",
- livery_design = {
- livery_template_name = livery_template_generic_slanted_bands,
- overlays = {
- -- [1] = {id = 1, color = "#000000"}, -- "Side Walls",
- [2] = {id = 2, color = "#FFFFFF"}, -- "Left Slanted Band",
- [3] = {id = 3, color = "#FF0000"}, -- "Middle Slanted Band",
- [4] = {id = 4, color = "#00008B"}, -- "Right Slanted Band",
- [5] = {id = 5, color = "#FFFFFF"}, -- "Stripe",
- [6] = {id = 6, color = "#00008B"}, -- "Class Number",
- },
- },
- },
- {
- name = S("Nationality - Australia (Slanted Bands)"),
- wagon_types = wagon_types.bistro_coaches,
- notes = "",
- livery_design = {
- livery_template_name = livery_template_generic_slanted_bands,
- overlays = {
- -- [1] = {id = 1, color = "#000000"}, -- "Side Walls",
- [2] = {id = 2, color = "#FFFFFF"}, -- "Left Slanted Band",
- [3] = {id = 3, color = "#FF0000"}, -- "Middle Slanted Band",
- [4] = {id = 4, color = "#00008B"}, -- "Right Slanted Band",
- [5] = {id = 5, color = "#FFFFFF"}, -- "Stripe",
- -- [6] = {id = 6, color = "#000000"}, -- "Bistro Label",
- },
- },
- },
- {
- name = S("Nationality - Brazil"),
- wagon_types = wagon_types.all_coaches,
- notes = "",
- livery_design = {
- livery_template_name = livery_template_generic_tricolor,
- overlays = {
- [1] = {id = 1, color = "#FFDF00"}, -- "Upper Side Walls",
- [2] = {id = 2, color = "#009C3B"}, -- "Lower Side Walls",
- [3] = {id = 3, color = "#002776"}, -- "Window Band",
- [4] = {id = 4, color = "#FFDF00"}, -- "Window Band Trim",
- [5] = {id = 5, color = "#FFFFFF"}, -- "Class Number"/"Bistro Label",
- },
- },
- },
- {
- name = S("Nationality - Brazil (Slanted Bands)"),
- wagon_types = wagon_types.common_coaches,
- notes = "",
- livery_design = {
- livery_template_name = livery_template_generic_slanted_bands,
- overlays = {
- -- [1] = {id = 1, color = "#000000"}, -- "Side Walls",
- [2] = {id = 2, color = "#009440"}, -- "Left Slanted Band",
- [3] = {id = 3, color = "#FFCB00"}, -- "Middle Slanted Band",
- [4] = {id = 4, color = "#302681"}, -- "Right Slanted Band",
- [5] = {id = 5, color = "#FFFFFF"}, -- "Stripe",
- [6] = {id = 6, color = "#302681"}, -- "Class Number",
- },
- },
- },
- {
- name = S("Nationality - Brazil (Slanted Bands)"),
- wagon_types = wagon_types.bistro_coaches,
- notes = "",
- livery_design = {
- livery_template_name = livery_template_generic_slanted_bands,
- overlays = {
- -- [1] = {id = 1, color = "#000000"}, -- "Side Walls",
- [2] = {id = 2, color = "#009440"}, -- "Left Slanted Band",
- [3] = {id = 3, color = "#FFCB00"}, -- "Middle Slanted Band",
- [4] = {id = 4, color = "#302681"}, -- "Right Slanted Band",
- [5] = {id = 5, color = "#FFFFFF"}, -- "Stripe",
- -- [6] = {id = 6, color = "#000000"}, -- "Bistro Label",
- },
- },
- },
- {
- name = S("Nationality - Canada"),
- wagon_types = wagon_types.common_coaches,
- notes = "",
- livery_design = {
- livery_template_name = livery_template_generic_tricolor,
- overlays = {
- [1] = {id = 1, color = "#FF0000"}, -- "Upper Side Walls",
- [2] = {id = 2, color = "#FF0000"}, -- "Lower Side Walls",
- [3] = {id = 3, color = "#FFFFFF"}, -- "Window Band",
- [4] = {id = 4, color = "#FF0000"}, -- "Window Band Trim",
- [5] = {id = 5, color = "#FF0000"}, -- "Class Number",
- },
- },
- },
- {
- name = S("Nationality - Canada"),
- wagon_types = wagon_types.bistro_coaches,
- notes = "",
- livery_design = {
- livery_template_name = livery_template_generic_tricolor,
- overlays = {
- [1] = {id = 1, color = "#FF0000"}, -- "Upper Side Walls",
- [2] = {id = 2, color = "#FF0000"}, -- "Lower Side Walls",
- [3] = {id = 3, color = "#FFFFFF"}, -- "Window Band",
- [4] = {id = 4, color = "#FF0000"}, -- "Window Band Trim",
- [5] = {id = 5, color = "#FFFFFF"}, -- "Bistro Label",
- -- [6] = {id = 6, color = "#000000"}, -- "Galley",
- },
- },
- },
- {
- name = S("Nationality - Canada (Slanted Bands)"),
- wagon_types = wagon_types.common_coaches,
- notes = "",
- livery_design = {
- livery_template_name = livery_template_generic_slanted_bands,
- overlays = {
- -- [1] = {id = 1, color = "#000000"}, -- "Side Walls",
- [2] = {id = 2, color = "#FF0000"}, -- "Left Slanted Band",
- [3] = {id = 3, color = "#FFFFFF"}, -- "Middle Slanted Band",
- [4] = {id = 4, color = "#FF0000"}, -- "Right Slanted Band",
- -- [5] = {id = 5, color = "#000000"}, -- "Stripe",
- [6] = {id = 6, color = "#181818"}, -- "Class Number",
- },
- },
- },
- {
- name = S("Nationality - Canada (Slanted Bands)"),
- wagon_types = wagon_types.bistro_coaches,
- notes = "",
- livery_design = {
- livery_template_name = livery_template_generic_slanted_bands,
- overlays = {
- -- [1] = {id = 1, color = "#000000"}, -- "Side Walls",
- [2] = {id = 2, color = "#FF0000"}, -- "Left Slanted Band",
- [3] = {id = 3, color = "#FFFFFF"}, -- "Middle Slanted Band",
- [4] = {id = 4, color = "#FF0000"}, -- "Right Slanted Band",
- -- [5] = {id = 5, color = "#000000"}, -- "Stripe",
- -- [6] = {id = 6, color = "#000000"}, -- ""Bistro Label",
- },
- },
- },
- {
- name = S("Nationality - China"),
- wagon_types = wagon_types.all_coaches,
- notes = "",
- livery_design = {
- livery_template_name = livery_template_generic_tricolor,
- overlays = {
- [1] = {id = 1, color = "#EE1C25"}, -- "Side Walls",
- [2] = {id = 2, color = "#EE1C25"}, -- "Seats",
- -- [3] = {id = 3, color = "#000000"}, -- "Service Stripe",
- [4] = {id = 4, color = "#EE1C25"}, -- "Logo",
- [5] = {id = 5, color = "#FFFF00"}, -- "Class Number"/"Bistro Label",
- },
- },
- },
- {
- name = S("Nationality - China (Slanted Bands)"),
- wagon_types = wagon_types.all_coaches,
- notes = "",
- livery_design = {
- livery_template_name = livery_template_generic_slanted_bands,
- overlays = {
- -- [1] = {id = 1, color = "#000000"}, -- "Side Walls",
- [2] = {id = 2, color = "#EE1C25"}, -- "Left Slanted Band",
- [3] = {id = 3, color = "#EE1C25"}, -- "Middle Slanted Band",
- -- [4] = {id = 4, color = "#000000"}, -- "Right Slanted Band",
- -- [5] = {id = 5, color = "#000000"}, -- "Stripe",
- [6] = {id = 6, color = "#FFFF00"}, -- "Class Number"/"Bistro Label",
- },
- },
- },
- {
- name = S("Nationality - Czech Republic"),
- wagon_types = wagon_types.common_coaches,
- notes = "",
- livery_design = {
- livery_template_name = livery_template_generic_tricolor,
- overlays = {
- [1] = {id = 1, color = "#FFFFFF"}, -- "Upper Side Walls",
- [2] = {id = 2, color = "#D7141A"}, -- "Lower Side Walls",
- [3] = {id = 3, color = "#11457E"}, -- "Window Band",
- [4] = {id = 4, color = "#FFFFFF"}, -- "Window Band Trim",
- [5] = {id = 5, color = "#D7141A"}, -- "Class Number",
- },
- },
- },
- {
- name = S("Nationality - Czech Republic"),
- wagon_types = wagon_types.bistro_coaches,
- notes = "",
- livery_design = {
- livery_template_name = livery_template_generic_tricolor,
- overlays = {
- [1] = {id = 1, color = "#FFFFFF"}, -- "Upper Side Walls",
- [2] = {id = 2, color = "#D7141A"}, -- "Lower Side Walls",
- [3] = {id = 3, color = "#11457E"}, -- "Window Band",
- [4] = {id = 4, color = "#FFFFFF"}, -- "Window Band Trim",
- [5] = {id = 5, color = "#FFFFFF"}, -- "Bistro Label",
- -- [6] = {id = 6, color = "#000000"}, -- "Galley",
- },
- },
- },
- {
- name = S("Nationality - Czech Republic (Slanted Bands)"),
- wagon_types = wagon_types.common_coaches,
- notes = "",
- livery_design = {
- livery_template_name = livery_template_generic_slanted_bands,
- overlays = {
- -- [1] = {id = 1, color = "#000000"}, -- "Side Walls",
- [2] = {id = 2, color = "#FFFFFF"}, -- "Left Slanted Band",
- [3] = {id = 3, color = "#D7141A"}, -- "Middle Slanted Band",
- [4] = {id = 4, color = "#11457E"}, -- "Right Slanted Band",
- -- [5] = {id = 5, color = "#000000"}, -- "Stripe",
- [6] = {id = 6, color = "#181818"}, -- "Class Number",
- },
- },
- },
- {
- name = S("Nationality - Czech Republic (Slanted Bands)"),
- wagon_types = wagon_types.bistro_coaches,
- notes = "",
- livery_design = {
- livery_template_name = livery_template_generic_slanted_bands,
- overlays = {
- -- [1] = {id = 1, color = "#000000"}, -- "Side Walls",
- [2] = {id = 2, color = "#FFFFFF"}, -- "Left Slanted Band",
- [3] = {id = 3, color = "#D7141A"}, -- "Middle Slanted Band",
- [4] = {id = 4, color = "#11457E"}, -- "Right Slanted Band",
- -- [5] = {id = 5, color = "#000000"}, -- "Stripe",
- -- [6] = {id = 6, color = "#000000"}, -- "Bistro Label",
- },
- },
- },
- {
- name = S("Nationality - France"),
- wagon_types = wagon_types.all_coaches,
- notes = "",
- livery_design = {
- livery_template_name = livery_template_generic_tricolor,
- overlays = {
- [1] = {id = 1, color = "#FFFFFF"}, -- "Upper Side Walls",
- [2] = {id = 2, color = "#0055A4"}, -- "Lower Side Walls",
- [3] = {id = 3, color = "#EF4135"}, -- "Window Band",
- [4] = {id = 4, color = "#FFFFFF"}, -- "Window Band Trim",
- [5] = {id = 5, color = "#FFFFFF"}, -- "Class Number"/"Bistro Label",
- },
- },
- },
- {
- name = S("Nationality - France (Slanted Bands)"),
- wagon_types = wagon_types.common_coaches,
- notes = "",
- livery_design = {
- livery_template_name = livery_template_generic_slanted_bands,
- overlays = {
- -- [1] = {id = 1, color = "#000000"}, -- "Side Walls",
- [2] = {id = 2, color = "#0055A4"}, -- "Left Slanted Band",
- [3] = {id = 3, color = "#FFFFFF"}, -- "Middle Slanted Band",
- [4] = {id = 4, color = "#EF4135"}, -- "Right Slanted Band",
- -- [5] = {id = 5, color = "#000000"}, -- "Stripe",
- [6] = {id = 6, color = "#EF4135"}, -- "Class Number",
- },
- },
- },
- {
- name = S("Nationality - France (Slanted Bands)"),
- wagon_types = wagon_types.bistro_coaches,
- notes = "",
- livery_design = {
- livery_template_name = livery_template_generic_slanted_bands,
- overlays = {
- -- [1] = {id = 1, color = "#000000"}, -- "Side Walls",
- [2] = {id = 2, color = "#0055A4"}, -- "Left Slanted Band",
- [3] = {id = 3, color = "#FFFFFF"}, -- "Middle Slanted Band",
- [4] = {id = 4, color = "#EF4135"}, -- "Right Slanted Band",
- -- [5] = {id = 5, color = "#000000"}, -- "Stripe",
- -- [6] = {id = 6, color = "#000000"}, -- "Bistro Label",
- },
- },
- },
- {
- name = S("Nationality - Germany"),
- wagon_types = wagon_types.all_coaches,
- notes = "",
- livery_design = {
- livery_template_name = livery_template_generic_tricolor,
- overlays = {
- [1] = {id = 1, color = "#FFCC00"}, -- "Upper Side Walls",
- [2] = {id = 2, color = "#FF0000"}, -- "Lower Side Walls",
- [3] = {id = 3, color = "#000000"}, -- "Window Band",
- [4] = {id = 4, color = "#FFCC00"}, -- "Window Band Trim",
- [5] = {id = 5, color = "#FFCC00"}, -- "Class Number"/"Bistro Label",
- },
- },
- },
- {
- name = S("Nationality - Germany (Slanted Bands)"),
- wagon_types = wagon_types.all_coaches,
- notes = "",
- livery_design = {
- livery_template_name = livery_template_generic_slanted_bands,
- overlays = {
- -- [1] = {id = 1, color = "#000000"}, -- "Side Walls",
- [2] = {id = 2, color = "#000000"}, -- "Left Slanted Band",
- [3] = {id = 3, color = "#FF0000"}, -- "Middle Slanted Band",
- [4] = {id = 4, color = "#FFCC00"}, -- "Right Slanted Band",
- -- [5] = {id = 5, color = "#000000"}, -- "Stripe",
- -- [6] = {id = 6, color = "#000000"}, -- "Class Number"/"Bistro Label",
- },
- },
- },
- {
- name = S("Nationality - India"),
- wagon_types = wagon_types.all_coaches,
- notes = "",
- livery_design = {
- livery_template_name = livery_template_generic_tricolor,
- overlays = {
- [1] = {id = 1, color = "#FF671F"}, -- "Upper Side Walls",
- [2] = {id = 2, color = "#046A38"}, -- "Lower Side Walls",
- [3] = {id = 3, color = "#FFFFFF"}, -- "Window Band",
- [4] = {id = 4, color = "#FFFFFF"}, -- "Window Band Trim",
- [5] = {id = 5, color = "#06038D"}, -- "Class Number"/"Bistro Label",
- },
- },
- },
- {
- name = S("Nationality - India (Slanted Bands)"),
- wagon_types = wagon_types.all_coaches,
- notes = "",
- livery_design = {
- livery_template_name = livery_template_generic_slanted_bands,
- overlays = {
- -- [1] = {id = 1, color = "#000000"}, -- "Side Walls",
- [2] = {id = 2, color = "#FF671F"}, -- "Left Slanted Band",
- [3] = {id = 3, color = "#FFFFFF"}, -- "Middle Slanted Band",
- [4] = {id = 4, color = "#046A38"}, -- "Right Slanted Band",
- -- [5] = {id = 5, color = "#000000"}, -- "Stripe",
- [6] = {id = 6, color = "#06038D"}, -- "Class Number"/"Bistro Label",
- },
- },
- },
- {
- name = S("Nationality - Iran"),
- wagon_types = wagon_types.common_coaches,
- notes = "",
- livery_design = {
- livery_template_name = livery_template_generic_tricolor,
- overlays = {
- [1] = {id = 1, color = "#239F40"}, -- "Upper Side Walls",
- [2] = {id = 2, color = "#DA0000"}, -- "Lower Side Walls",
- [3] = {id = 3, color = "#FFFFFF"}, -- "Window Band",
- [4] = {id = 4, color = "#239F40"}, -- "Window Band Trim",
- [5] = {id = 5, color = "#239F40"}, -- "Class Number",
- },
- },
- },
- {
- name = S("Nationality - Iran"),
- wagon_types = wagon_types.bistro_coaches,
- notes = "",
- livery_design = {
- livery_template_name = livery_template_generic_tricolor,
- overlays = {
- [1] = {id = 1, color = "#239F40"}, -- "Upper Side Walls",
- [2] = {id = 2, color = "#DA0000"}, -- "Lower Side Walls",
- [3] = {id = 3, color = "#FFFFFF"}, -- "Window Band",
- [4] = {id = 4, color = "#239F40"}, -- "Window Band Trim",
- [5] = {id = 5, color = "#FFFFFF"}, -- "Bistro Label",
- -- [6] = {id = 6, color = "#000000"}, -- "Galley",
- },
- },
- },
- {
- name = S("Nationality - Iran (Slanted Bands)"),
- wagon_types = wagon_types.common_coaches,
- notes = "",
- livery_design = {
- livery_template_name = livery_template_generic_slanted_bands,
- overlays = {
- -- [1] = {id = 1, color = "#000000"}, -- "Side Walls",
- [2] = {id = 2, color = "#239F40"}, -- "Left Slanted Band",
- [3] = {id = 3, color = "#FFFFFF"}, -- "Middle Slanted Band",
- [4] = {id = 4, color = "#DA0000"}, -- "Right Slanted Band",
- -- [5] = {id = 5, color = "#000000"}, -- "Stripe",
- [6] = {id = 6, color = "#DA0000"}, -- "Class Number",
- },
- },
- },
- {
- name = S("Nationality - Iran (Slanted Bands)"),
- wagon_types = wagon_types.bistro_coaches,
- notes = "",
- livery_design = {
- livery_template_name = livery_template_generic_slanted_bands,
- overlays = {
- -- [1] = {id = 1, color = "#000000"}, -- "Side Walls",
- [2] = {id = 2, color = "#239F40"}, -- "Left Slanted Band",
- [3] = {id = 3, color = "#FFFFFF"}, -- "Middle Slanted Band",
- [4] = {id = 4, color = "#DA0000"}, -- "Right Slanted Band",
- -- [5] = {id = 5, color = "#000000"}, -- "Stripe",
- -- [6] = {id = 6, color = "#000000"}, -- "Bistro Label",
- },
- },
- },
- {
- name = S("Nationality - Italy"),
- wagon_types = wagon_types.all_coaches,
- notes = "",
- livery_design = {
- livery_template_name = livery_template_generic_tricolor,
- overlays = {
- [1] = {id = 1, color = "#FFFFFF"}, -- "Upper Side Walls",
- [2] = {id = 2, color = "#008C45"}, -- "Lower Side Walls",
- [3] = {id = 3, color = "#CD212A"}, -- "Window Band",
- [4] = {id = 4, color = "#FFFFFF"}, -- "Window Band Trim",
- [5] = {id = 5, color = "#FFFFFF"}, -- "Class Number"/"Bistro Label",
- },
- },
- },
- {
- name = S("Nationality - Italy (Slanted Bands)"),
- wagon_types = wagon_types.common_coaches,
- notes = "",
- livery_design = {
- livery_template_name = livery_template_generic_slanted_bands,
- overlays = {
- -- [1] = {id = 1, color = "#000000"}, -- "Side Walls",
- [2] = {id = 2, color = "#008C45"}, -- "Left Slanted Band",
- [3] = {id = 3, color = "#F4F5F0"}, -- "Middle Slanted Band",
- [4] = {id = 4, color = "#CD212A"}, -- "Right Slanted Band",
- -- [5] = {id = 5, color = "#000000"}, -- "Stripe",
- [6] = {id = 6, color = "#181818"}, -- "Class Number",
- },
- },
- },
- {
- name = S("Nationality - Italy (Slanted Bands)"),
- wagon_types = wagon_types.bistro_coaches,
- notes = "",
- livery_design = {
- livery_template_name = livery_template_generic_slanted_bands,
- overlays = {
- -- [1] = {id = 1, color = "#000000"}, -- "Side Walls",
- [2] = {id = 2, color = "#008C45"}, -- "Left Slanted Band",
- [3] = {id = 3, color = "#F4F5F0"}, -- "Middle Slanted Band",
- [4] = {id = 4, color = "#CD212A"}, -- "Right Slanted Band",
- -- [5] = {id = 5, color = "#000000"}, -- "Stripe",
- -- [6] = {id = 6, color = "#000000"}, -- "Bistro Label",
- },
- },
- },
- {
- name = S("Nationality - Japan"),
- wagon_types = wagon_types.common_coaches,
- notes = "",
- livery_design = {
- livery_template_name = livery_template_generic_tricolor,
- overlays = {
- [1] = {id = 1, color = "#FFFFFF"}, -- "Upper Side Walls",
- [2] = {id = 2, color = "#FFFFFF"}, -- "Lower Side Walls",
- [3] = {id = 3, color = "#BC002D"}, -- "Window Band",
- [4] = {id = 4, color = "#FFFFFF"}, -- "Window Band Trim",
- [5] = {id = 5, color = "#FFFFFF"}, -- "Class Number",
- },
- },
- },
- {
- name = S("Nationality - Japan"),
- wagon_types = wagon_types.bistro_coaches,
- notes = "",
- livery_design = {
- livery_template_name = livery_template_generic_tricolor,
- overlays = {
- [1] = {id = 1, color = "#FFFFFF"}, -- "Upper Side Walls",
- [2] = {id = 2, color = "#FFFFFF"}, -- "Lower Side Walls",
- [3] = {id = 3, color = "#BC002D"}, -- "Window Band",
- [4] = {id = 4, color = "#FFFFFF"}, -- "Window Band Trim",
- [5] = {id = 5, color = "#BC002D"}, -- "Bistro Label",
- -- [6] = {id = 6, color = "#000000"}, -- "Galley",
- },
- },
- },
- {
- name = S("Nationality - Japan (Slanted Bands)"),
- wagon_types = wagon_types.common_coaches,
- notes = "",
- livery_design = {
- livery_template_name = livery_template_generic_slanted_bands,
- overlays = {
- -- [1] = {id = 1, color = "#000000"}, -- "Side Walls",
- [2] = {id = 2, color = "#FFFFFF"}, -- "Left Slanted Band",
- [3] = {id = 3, color = "#BC002D"}, -- "Middle Slanted Band",
- [4] = {id = 4, color = "#FFFFFF"}, -- "Right Slanted Band",
- -- [5] = {id = 5, color = "#000000"}, -- "Stripe",
- [6] = {id = 6, color = "#181818"}, -- "Class Number",
- },
- },
- },
- {
- name = S("Nationality - Japan (Slanted Bands)"),
- wagon_types = wagon_types.bistro_coaches,
- notes = "",
- livery_design = {
- livery_template_name = livery_template_generic_slanted_bands,
- overlays = {
- -- [1] = {id = 1, color = "#000000"}, -- "Side Walls",
- [2] = {id = 2, color = "#FFFFFF"}, -- "Left Slanted Band",
- [3] = {id = 3, color = "#BC002D"}, -- "Middle Slanted Band",
- [4] = {id = 4, color = "#FFFFFF"}, -- "Right Slanted Band",
- -- [5] = {id = 5, color = "#000000"}, -- "Stripe",
- -- [6] = {id = 6, color = "#000000"}, -- "Bistro Label",
- },
- },
- },
- {
- name = S("Nationality - Kazakhstan"),
- wagon_types = wagon_types.all_coaches,
- notes = "",
- livery_design = {
- livery_template_name = livery_template_generic_tricolor,
- overlays = {
- [1] = {id = 1, color = "#00ABC2"}, -- "Upper Side Walls",
- [2] = {id = 2, color = "#00ABC2"}, -- "Lower Side Walls",
- [3] = {id = 3, color = "#00ABC2"}, -- "Window Band",
- [4] = {id = 4, color = "#FFEC2D"}, -- "Window Band Trim",
- [5] = {id = 5, color = "#FFEC2D"}, -- "Class Number"/"Bistro Label",
- },
- },
- },
- {
- name = S("Nationality - Kazakhstan (Slanted Bands)"),
- wagon_types = wagon_types.common_coaches,
- notes = "",
- livery_design = {
- livery_template_name = livery_template_generic_slanted_bands,
- overlays = {
- -- [1] = {id = 1, color = "#000000"}, -- "Side Walls",
- [2] = {id = 2, color = "#00ABC2"}, -- "Left Slanted Band",
- [3] = {id = 3, color = "#00ABC2"}, -- "Middle Slanted Band",
- -- [4] = {id = 4, color = "#000000"}, -- "Right Slanted Band",
- [5] = {id = 5, color = "#FFEC2D"}, -- "Stripe",
- [6] = {id = 6, color = "#FFEC2D"}, -- "Class Number",
- },
- },
- },
- {
- name = S("Nationality - Kazakhstan (Slanted Bands)"),
- wagon_types = wagon_types.bistro_coaches,
- notes = "",
- livery_design = {
- livery_template_name = livery_template_generic_slanted_bands,
- overlays = {
- -- [1] = {id = 1, color = "#000000"}, -- "Side Walls",
- [2] = {id = 2, color = "#00ABC2"}, -- "Left Slanted Band",
- [3] = {id = 3, color = "#00ABC2"}, -- "Middle Slanted Band",
- -- [4] = {id = 4, color = "#000000"}, -- "Right Slanted Band",
- [5] = {id = 5, color = "#FFEC2D"}, -- "Stripe",
- -- [6] = {id = 6, color = "#000000"}, -- "Bistro Label",
- },
- },
- },
- {
- name = S("Nationality - Mexico"),
- wagon_types = wagon_types.all_coaches,
- notes = "",
- livery_design = {
- livery_template_name = livery_template_generic_tricolor,
- overlays = {
- [1] = {id = 1, color = "#FFFFFF"}, -- "Upper Side Walls",
- [2] = {id = 2, color = "#CE1125"}, -- "Lower Side Walls",
- [3] = {id = 3, color = "#006847"}, -- "Window Band",
- [4] = {id = 4, color = "#FFFFFF"}, -- "Window Band Trim",
- [5] = {id = 5, color = "#FFFFFF"}, -- "Class Number"/"Bistro Label",
- },
- },
- },
- {
- name = S("Nationality - Mexico (Slanted Bands)"),
- wagon_types = wagon_types.common_coaches,
- notes = "",
- livery_design = {
- livery_template_name = livery_template_generic_slanted_bands,
- overlays = {
- -- [1] = {id = 1, color = "#000000"}, -- "Side Walls",
- [2] = {id = 2, color = "#006847"}, -- "Left Slanted Band",
- [3] = {id = 3, color = "#FFFFFF"}, -- "Middle Slanted Band",
- [4] = {id = 4, color = "#CE1125"}, -- "Right Slanted Band",
- -- [5] = {id = 5, color = "#000000"}, -- "Stripe",
- [6] = {id = 6, color = "#181818"}, -- "Class Number",
- },
- },
- },
- {
- name = S("Nationality - Mexico (Slanted Bands)"),
- wagon_types = wagon_types.bistro_coaches,
- notes = "",
- livery_design = {
- livery_template_name = livery_template_generic_slanted_bands,
- overlays = {
- -- [1] = {id = 1, color = "#000000"}, -- "Side Walls",
- [2] = {id = 2, color = "#006847"}, -- "Left Slanted Band",
- [3] = {id = 3, color = "#FFFFFF"}, -- "Middle Slanted Band",
- [4] = {id = 4, color = "#CE1125"}, -- "Right Slanted Band",
- -- [5] = {id = 5, color = "#000000"}, -- "Stripe",
- -- [6] = {id = 6, color = "#000000"}, -- "Bistro Label",
- },
- },
- },
- {
- name = S("Nationality - Myanmar"),
- wagon_types = wagon_types.all_coaches,
- notes = "",
- livery_design = {
- livery_template_name = livery_template_generic_tricolor,
- overlays = {
- [1] = {id = 1, color = "#FECB00"}, -- "Upper Side Walls",
- [2] = {id = 2, color = "#EA2839"}, -- "Lower Side Walls",
- [3] = {id = 3, color = "#34B233"}, -- "Window Band",
- [4] = {id = 4, color = "#FECB00"}, -- "Window Band Trim",
- [5] = {id = 5, color = "#FFFFFF"}, -- "Class Number"/"Bistro Label",
- },
- },
- },
- {
- name = S("Nationality - Myanmar (Slanted Bands)"),
- wagon_types = wagon_types.common_coaches,
- notes = "",
- livery_design = {
- livery_template_name = livery_template_generic_slanted_bands,
- overlays = {
- -- [1] = {id = 1, color = "#000000"}, -- "Side Walls",
- [2] = {id = 2, color = "#FECB00"}, -- "Left Slanted Band",
- [3] = {id = 3, color = "#34B233"}, -- "Middle Slanted Band",
- [4] = {id = 4, color = "#EA2839"}, -- "Right Slanted Band",
- -- [5] = {id = 5, color = "#000000"}, -- "Stripe",
- [6] = {id = 6, color = "#FFFFFF"}, -- "Class Number",
- },
- },
- },
- {
- name = S("Nationality - Myanmar (Slanted Bands)"),
- wagon_types = wagon_types.bistro_coaches,
- notes = "",
- livery_design = {
- livery_template_name = livery_template_generic_slanted_bands,
- overlays = {
- -- [1] = {id = 1, color = "#000000"}, -- "Side Walls",
- [2] = {id = 2, color = "#FECB00"}, -- "Left Slanted Band",
- [3] = {id = 3, color = "#34B233"}, -- "Middle Slanted Band",
- [4] = {id = 4, color = "#EA2839"}, -- "Right Slanted Band",
- -- [5] = {id = 5, color = "#000000"}, -- "Stripe",
- -- [6] = {id = 6, color = "#000000"}, -- "Bistro Label",
- },
- },
- },
- {
- name = S("Nationality - Poland"),
- wagon_types = wagon_types.common_coaches,
- notes = "",
- livery_design = {
- livery_template_name = livery_template_generic_tricolor,
- overlays = {
- [1] = {id = 1, color = "#FFFFFF"}, -- "Upper Side Walls",
- [2] = {id = 2, color = "#DC143C"}, -- "Lower Side Walls",
- [3] = {id = 3, color = "#FFFFFF"}, -- "Window Band",
- [4] = {id = 4, color = "#FFFFFF"}, -- "Window Band Trim",
- [5] = {id = 5, color = "#DC143C"}, -- "Class Number",
- },
- },
- },
- {
- name = S("Nationality - Poland"),
- wagon_types = wagon_types.bistro_coaches,
- notes = "",
- livery_design = {
- livery_template_name = livery_template_generic_tricolor,
- overlays = {
- [1] = {id = 1, color = "#FFFFFF"}, -- "Upper Side Walls",
- [2] = {id = 2, color = "#DC143C"}, -- "Lower Side Walls",
- [3] = {id = 3, color = "#FFFFFF"}, -- "Window Band",
- [4] = {id = 4, color = "#FFFFFF"}, -- "Window Band Trim",
- [5] = {id = 5, color = "#FFFFFF"}, -- "Bistro Label",
- -- [6] = {id = 6, color = "#000000"}, -- "Galley",
- },
- },
- },
- {
- name = S("Nationality - Poland (Slanted Bands)"),
- wagon_types = wagon_types.common_coaches,
- notes = "",
- livery_design = {
- livery_template_name = livery_template_generic_slanted_bands,
- overlays = {
- -- [1] = {id = 1, color = "#000000"}, -- "Side Walls",
- [2] = {id = 2, color = "#FFFFFF"}, -- "Left Slanted Band",
- [3] = {id = 3, color = "#DC143C"}, -- "Middle Slanted Band",
- -- [4] = {id = 4, color = "#000000"}, -- "Right Slanted Band",
- -- [5] = {id = 5, color = "#000000"}, -- "Stripe",
- [6] = {id = 6, color = "#181818"}, -- "Class Number",
- },
- },
- },
- {
- name = S("Nationality - Poland (Slanted Bands)"),
- wagon_types = wagon_types.bistro_coaches,
- notes = "",
- livery_design = {
- livery_template_name = livery_template_generic_slanted_bands,
- overlays = {
- -- [1] = {id = 1, color = "#000000"}, -- "Side Walls",
- [2] = {id = 2, color = "#FFFFFF"}, -- "Left Slanted Band",
- [3] = {id = 3, color = "#DC143C"}, -- "Middle Slanted Band",
- -- [4] = {id = 4, color = "#000000"}, -- "Right Slanted Band",
- -- [5] = {id = 5, color = "#000000"}, -- "Stripe",
- -- [6] = {id = 6, color = "#000000"}, -- "Bistro Label",
- },
- },
- },
- {
- name = S("Nationality - Romania"),
- wagon_types = wagon_types.all_coaches,
- notes = "",
- livery_design = {
- livery_template_name = livery_template_generic_tricolor,
- overlays = {
- [1] = {id = 1, color = "#002B7F"}, -- "Upper Side Walls",
- [2] = {id = 2, color = "#CE1126"}, -- "Lower Side Walls",
- [3] = {id = 3, color = "#FCD116"}, -- "Window Band",
- [4] = {id = 4, color = "#002B7F"}, -- "Window Band Trim",
- [5] = {id = 5, color = "#002B7F"}, -- "Class Number"/"Bistro Label",
- },
- },
- },
- {
- name = S("Nationality - Romania (Slanted Bands)"),
- wagon_types = wagon_types.all_coaches,
- notes = "",
- livery_design = {
- livery_template_name = livery_template_generic_slanted_bands,
- overlays = {
- -- [1] = {id = 1, color = "#000000"}, -- "Side Walls",
- [2] = {id = 2, color = "#002B7F"}, -- "Left Slanted Band",
- [3] = {id = 3, color = "#FCD116"}, -- "Middle Slanted Band",
- [4] = {id = 4, color = "#CE1126"}, -- "Right Slanted Band",
- -- [5] = {id = 5, color = "#000000"}, -- "Stripe",
- -- [6] = {id = 6, color = "#000000"}, -- "Class Number"/"Bistro Label",
- },
- },
- },
- {
- name = S("Nationality - Russia"),
- wagon_types = wagon_types.all_coaches,
- notes = "",
- livery_design = {
- livery_template_name = livery_template_generic_tricolor,
- overlays = {
- [1] = {id = 1, color = "#FFFFFF"}, -- "Upper Side Walls",
- [2] = {id = 2, color = "#DA291C"}, -- "Lower Side Walls",
- [3] = {id = 3, color = "#0032A0"}, -- "Window Band",
- [4] = {id = 4, color = "#FFFFFF"}, -- "Window Band Trim",
- [5] = {id = 5, color = "#FFFFFF"}, -- "Class Number"/"Bistro Label",
- },
- },
- },
- {
- name = S("Nationality - Russia (Slanted Bands)"),
- wagon_types = wagon_types.common_coaches,
- notes = "",
- livery_design = {
- livery_template_name = livery_template_generic_slanted_bands,
- overlays = {
- -- [1] = {id = 1, color = "#000000"}, -- "Side Walls",
- [2] = {id = 2, color = "#FFFFFF"}, -- "Left Slanted Band",
- [3] = {id = 3, color = "#0032A0"}, -- "Middle Slanted Band",
- [4] = {id = 4, color = "#DA291C"}, -- "Right Slanted Band",
- -- [5] = {id = 5, color = "#000000"}, -- "Stripe",
- [6] = {id = 6, color = "#181818"}, -- "Class Number",
- },
- },
- },
- {
- name = S("Nationality - Russia (Slanted Bands)"),
- wagon_types = wagon_types.bistro_coaches,
- notes = "",
- livery_design = {
- livery_template_name = livery_template_generic_slanted_bands,
- overlays = {
- -- [1] = {id = 1, color = "#000000"}, -- "Side Walls",
- [2] = {id = 2, color = "#FFFFFF"}, -- "Left Slanted Band",
- [3] = {id = 3, color = "#0032A0"}, -- "Middle Slanted Band",
- [4] = {id = 4, color = "#DA291C"}, -- "Right Slanted Band",
- -- [5] = {id = 5, color = "#000000"}, -- "Stripe",
- -- [6] = {id = 6, color = "#000000"}, -- "Bistro Label",
- },
- },
- },
- {
- name = S("Nationality - South Africa"),
- wagon_types = wagon_types.all_coaches,
- notes = "",
- livery_design = {
- livery_template_name = livery_template_generic_window_stripes,
- overlays = {
- [1] = {id = 1, color = "#007A4D"}, -- "Side Walls",
- [2] = {id = 2, color = "#FFFFFF"}, -- "Upper Stripe",
- [3] = {id = 3, color = "#000000"}, -- "Window Band",
- [4] = {id = 4, color = "#DE3831"}, -- "Middle Stripe",
- [5] = {id = 5, color = "#002395"}, -- "Lower Stripe",
- [6] = {id = 6, color = "#FFB612"}, -- "Class Number"/"Bistro Label",
- },
- },
- },
- {
- name = S("Nationality - South Africa (Slanted Bands)"),
- wagon_types = wagon_types.all_coaches,
- notes = "",
- livery_design = {
- livery_template_name = livery_template_generic_slanted_bands,
- overlays = {
- -- [1] = {id = 1, color = "#000000"}, -- "Side Walls",
- [2] = {id = 2, color = "#DE3831"}, -- "Left Slanted Band",
- [3] = {id = 3, color = "#007A4D"}, -- "Middle Slanted Band",
- [4] = {id = 4, color = "#002395"}, -- "Right Slanted Band",
- [5] = {id = 5, color = "#000000"}, -- "Stripe",
- [6] = {id = 6, color = "#FFB612"}, -- "Class Number"/"Bistro Label",
- },
- },
- },
- {
- name = S("Nationality - Spain"),
- wagon_types = wagon_types.common_coaches,
- notes = "",
- livery_design = {
- livery_template_name = livery_template_generic_tricolor,
- overlays = {
- [1] = {id = 1, color = "#FABD00"}, -- "Upper Side Walls",
- [2] = {id = 2, color = "#AD1519"}, -- "Lower Side Walls",
- [3] = {id = 3, color = "#FABD00"}, -- "Window Band",
- [4] = {id = 4, color = "#FABD00"}, -- "Window Band Trim",
- [5] = {id = 5, color = "#AD1519"}, -- "Class Number"/"Bistro Label",
- },
- },
- },
- {
- name = S("Nationality - Spain"),
- wagon_types = wagon_types.bistro_coaches,
- notes = "",
- livery_design = {
- livery_template_name = livery_template_generic_tricolor,
- overlays = {
- [1] = {id = 1, color = "#FABD00"}, -- "Upper Side Walls",
- [2] = {id = 2, color = "#AD1519"}, -- "Lower Side Walls",
- [3] = {id = 3, color = "#FABD00"}, -- "Window Band",
- [4] = {id = 4, color = "#FABD00"}, -- "Window Band Trim",
- [5] = {id = 5, color = "#FABD00"}, -- "Bistro Label",
- -- [6] = {id = 6, color = "#000000"}, -- "Galley",
- },
- },
- },
- {
- name = S("Nationality - Spain (Slanted Bands)"),
- wagon_types = wagon_types.all_coaches,
- notes = "",
- livery_design = {
- livery_template_name = livery_template_generic_slanted_bands,
- overlays = {
- -- [1] = {id = 1, color = "#000000"}, -- "Side Walls",
- [2] = {id = 2, color = "#AD1519"}, -- "Left Slanted Band",
- [3] = {id = 3, color = "#FABD00"}, -- "Middle Slanted Band",
- [4] = {id = 4, color = "#AD1519"}, -- "Right Slanted Band",
- -- [5] = {id = 5, color = "#000000"}, -- "Stripe",
- -- [6] = {id = 6, color = "#000000"}, -- "Class Number"/"Bistro Label",
- },
- },
- },
- {
- name = S("Nationality - Sweden"),
- wagon_types = wagon_types.common_coaches,
- notes = "",
- livery_design = {
- livery_template_name = livery_template_generic_tricolor,
- overlays = {
- [1] = {id = 1, color = "#005293"}, -- "Upper Side Walls",
- [2] = {id = 2, color = "#005293"}, -- "Lower Side Walls",
- [3] = {id = 3, color = "#FFCD00"}, -- "Window Band",
- [4] = {id = 4, color = "#005293"}, -- "Window Band Trim",
- [5] = {id = 5, color = "#005293"}, -- "Class Number",
- },
- },
- },
- {
- name = S("Nationality - Sweden"),
- wagon_types = wagon_types.bistro_coaches,
- notes = "",
- livery_design = {
- livery_template_name = livery_template_generic_tricolor,
- overlays = {
- [1] = {id = 1, color = "#005293"}, -- "Upper Side Walls",
- [2] = {id = 2, color = "#005293"}, -- "Lower Side Walls",
- [3] = {id = 3, color = "#FFCD00"}, -- "Window Band",
- [4] = {id = 4, color = "#005293"}, -- "Window Band Trim",
- [5] = {id = 5, color = "#FFCD00"}, -- "Bistro Label",
- -- [6] = {id = 6, color = "#000000"}, -- "Galley",
- },
- },
- },
- {
- name = S("Nationality - Sweden (Slanted Bands)"),
- wagon_types = wagon_types.common_coaches,
- notes = "",
- livery_design = {
- livery_template_name = livery_template_generic_slanted_bands,
- overlays = {
- -- [1] = {id = 1, color = "#000000"}, -- "Side Walls",
- [2] = {id = 2, color = "#005293"}, -- "Left Slanted Band",
- [3] = {id = 3, color = "#FFCD00"}, -- "Middle Slanted Band",
- [4] = {id = 4, color = "#005293"}, -- "Right Slanted Band",
- [5] = {id = 5, color = "#FFCD00"}, -- "Stripe",
- [6] = {id = 6, color = "#181818"}, -- "Class Number",
- },
- },
- },
- {
- name = S("Nationality - Sweden (Slanted Bands)"),
- wagon_types = wagon_types.bistro_coaches,
- notes = "",
- livery_design = {
- livery_template_name = livery_template_generic_slanted_bands,
- overlays = {
- -- [1] = {id = 1, color = "#000000"}, -- "Side Walls",
- [2] = {id = 2, color = "#005293"}, -- "Left Slanted Band",
- [3] = {id = 3, color = "#FFCD00"}, -- "Middle Slanted Band",
- [4] = {id = 4, color = "#005293"}, -- "Right Slanted Band",
- [5] = {id = 5, color = "#FFCD00"}, -- "Stripe",
- -- [6] = {id = 6, color = "#000000"}, -- "Bistro Label",
- },
- },
- },
- {
- name = S("Nationality - Türkiye"),
- wagon_types = wagon_types.all_coaches,
- notes = "",
- livery_design = {
- livery_template_name = livery_template_generic_tricolor,
- overlays = {
- [1] = {id = 1, color = "#FFFFFF"}, -- "Upper Side Walls",
- [2] = {id = 2, color = "#E30A17"}, -- "Lower Side Walls",
- [3] = {id = 3, color = "#E30A17"}, -- "Window Band",
- [4] = {id = 4, color = "#E30A17"}, -- "Window Band Trim",
- [5] = {id = 5, color = "#FFFFFF"}, -- "Class Number"/"Bistro Label",
- },
- },
- },
- {
- name = S("Nationality - Türkiye (Slanted Bands)"),
- wagon_types = wagon_types.all_coaches,
- notes = "",
- livery_design = {
- livery_template_name = livery_template_generic_slanted_bands,
- overlays = {
- -- [1] = {id = 1, color = "#000000"}, -- "Side Walls",
- [2] = {id = 2, color = "#E30A17"}, -- "Left Slanted Band",
- [3] = {id = 3, color = "#E30A17"}, -- "Middle Slanted Band",
- -- [4] = {id = 4, color = "#000000"}, -- "Right Slanted Band",
- -- [5] = {id = 5, color = "#000000"}, -- "Stripe",
- [6] = {id = 6, color = "#FFFFFF"}, -- "Class Number"/"Bistro Label",
- },
- },
- },
- {
- name = S("Nationality - USA"),
- wagon_types = wagon_types.all_coaches,
- notes = "",
- livery_design = {
- livery_template_name = livery_template_generic_tricolor,
- overlays = {
- [1] = {id = 1, color = "#FFFFFF"}, -- "Upper Side Walls",
- [2] = {id = 2, color = "#B31942"}, -- "Lower Side Walls",
- [3] = {id = 3, color = "#0A3161"}, -- "Window Band",
- [4] = {id = 4, color = "#0A3161"}, -- "Window Band Trim",
- [5] = {id = 5, color = "#FFFFFF"}, -- "Class Number"/"Bistro Label",
- },
- },
- },
- {
- name = S("Nationality - USA (Slanted Bands)"),
- wagon_types = wagon_types.common_coaches,
- notes = "",
- livery_design = {
- livery_template_name = livery_template_generic_slanted_bands,
- overlays = {
- -- [1] = {id = 1, color = "#000000"}, -- "Side Walls",
- [2] = {id = 2, color = "#B31942"}, -- "Left Slanted Band",
- [3] = {id = 3, color = "#FFFFFF"}, -- "Middle Slanted Band",
- [4] = {id = 4, color = "#0A3161"}, -- "Right Slanted Band",
- -- [5] = {id = 5, color = "#000000"}, -- "Stripe",
- [6] = {id = 6, color = "#0A3161"}, -- "Class Number",
- },
- },
- },
- {
- name = S("Nationality - USA (Slanted Bands)"),
- wagon_types = wagon_types.bistro_coaches,
- notes = "",
- livery_design = {
- livery_template_name = livery_template_generic_slanted_bands,
- overlays = {
- -- [1] = {id = 1, color = "#000000"}, -- "Side Walls",
- [2] = {id = 2, color = "#B31942"}, -- "Left Slanted Band",
- [3] = {id = 3, color = "#FFFFFF"}, -- "Middle Slanted Band",
- [4] = {id = 4, color = "#0A3161"}, -- "Right Slanted Band",
- -- [5] = {id = 5, color = "#000000"}, -- "Stripe",
- -- [6] = {id = 6, color = "#000000"}, -- "Bistro Label",
- },
- },
- },
- {
- name = S("Nationality - Ukraine"),
- wagon_types = wagon_types.common_coaches,
- notes = "",
- livery_design = {
- livery_template_name = livery_template_generic_tricolor,
- overlays = {
- [1] = {id = 1, color = "#0057B7"}, -- "Upper Side Walls",
- [2] = {id = 2, color = "#FFD700"}, -- "Lower Side Walls",
- [3] = {id = 3, color = "#0057B7"}, -- "Window Band",
- [4] = {id = 4, color = "#0057B7"}, -- "Window Band Trim",
- [5] = {id = 5, color = "#FFD700"}, -- "Class Number",
- },
- },
- },
- {
- name = S("Nationality - Ukraine"),
- wagon_types = wagon_types.bistro_coaches,
- notes = "",
- livery_design = {
- livery_template_name = livery_template_generic_tricolor,
- overlays = {
- [1] = {id = 1, color = "#0057B7"}, -- "Upper Side Walls",
- [2] = {id = 2, color = "#FFD700"}, -- "Lower Side Walls",
- [3] = {id = 3, color = "#0057B7"}, -- "Window Band",
- [4] = {id = 4, color = "#0057B7"}, -- "Window Band Trim",
- [5] = {id = 5, color = "#0057B7"}, -- "Bistro Label",
- -- [6] = {id = 6, color = "#000000"}, -- "Galley",
- },
- },
- },
- {
- name = S("Nationality - Ukraine (Slanted Bands)"),
- wagon_types = wagon_types.common_coaches,
- notes = "",
- livery_design = {
- livery_template_name = livery_template_generic_slanted_bands,
- overlays = {
- -- [1] = {id = 1, color = "#000000"}, -- "Side Walls",
- [2] = {id = 2, color = "#0057B7"}, -- "Left Slanted Band",
- [3] = {id = 3, color = "#FFD700"}, -- "Middle Slanted Band",
- -- [4] = {id = 4, color = "#000000"}, -- "Right Slanted Band",
- -- [5] = {id = 5, color = "#000000"}, -- "Stripe",
- [6] = {id = 6, color = "#181818"}, -- "Class Number",
- },
- },
- },
- {
- name = S("Nationality - Ukraine (Slanted Bands)"),
- wagon_types = wagon_types.bistro_coaches,
- notes = "",
- livery_design = {
- livery_template_name = livery_template_generic_slanted_bands,
- overlays = {
- -- [1] = {id = 1, color = "#000000"}, -- "Side Walls",
- [2] = {id = 2, color = "#0057B7"}, -- "Left Slanted Band",
- [3] = {id = 3, color = "#FFD700"}, -- "Middle Slanted Band",
- -- [4] = {id = 4, color = "#000000"}, -- "Right Slanted Band",
- -- [5] = {id = 5, color = "#000000"}, -- "Stripe",
- -- [6] = {id = 6, color = "#000000"}, -- "Bistro Label",
- },
- },
- },
- {
- name = S("Nationality - United Kingdom"),
- wagon_types = wagon_types.all_coaches,
- notes = "",
- livery_design = {
- livery_template_name = livery_template_generic_tricolor,
- overlays = {
- [1] = {id = 1, color = "#012169"}, -- "Upper Side Walls",
- [2] = {id = 2, color = "#012169"}, -- "Lower Side Walls",
- [3] = {id = 3, color = "#C8102E"}, -- "Window Band",
- [4] = {id = 4, color = "#FFFFFF"}, -- "Window Band Trim",
- [5] = {id = 5, color = "#FFFFFF"}, -- "Class Number"/"Bistro Label",
- },
- },
- },
- {
- name = S("Nationality - United Kingdom (Slanted Bands)"),
- wagon_types = wagon_types.common_coaches,
- notes = "",
- livery_design = {
- livery_template_name = livery_template_generic_slanted_bands,
- overlays = {
- [1] = {id = 1, color = "#012169"}, -- "Side Walls",
- [2] = {id = 2, color = "#FFFFFF"}, -- "Left Slanted Band",
- [3] = {id = 3, color = "#C8102E"}, -- "Middle Slanted Band",
- [4] = {id = 4, color = "#FFFFFF"}, -- "Right Slanted Band",
- [5] = {id = 5, color = "#FFFFFF"}, -- "Stripe",
- -- [6] = {id = 6, color = "#000000"}, -- "Class Number",
- },
- },
- },
- {
- name = S("Nationality - United Kingdom (Slanted Bands)"),
- wagon_types = wagon_types.bistro_coaches,
- notes = "",
- livery_design = {
- livery_template_name = livery_template_generic_slanted_bands,
- overlays = {
- [1] = {id = 1, color = "#012169"}, -- "Side Walls",
- [2] = {id = 2, color = "#FFFFFF"}, -- "Left Slanted Band",
- [3] = {id = 3, color = "#C8102E"}, -- "Middle Slanted Band",
- [4] = {id = 4, color = "#FFFFFF"}, -- "Right Slanted Band",
- [5] = {id = 5, color = "#FFFFFF"}, -- "Stripe",
- [6] = {id = 6, color = "#FFFFFF"}, -- "Bistro Label",
- },
- },
- },
- }
- -- This mod needs to register itself with the livery database in order to be
- -- allowed to add predefined liveries. It does not need to register itself with
- -- the livery designer tool, however, since it is will not be registering any
- -- wagons.
- advtrains_livery_database.register_mod(mod_name)
- -- Register this mod's predefined wagon liveries with the advtrains_livery_database.
- local detected_old_mod_version = false
- for _, predefined_livery in pairs(predefined_liveries) do
- for _, wagon_type in pairs(predefined_livery.wagon_types) do
- if not detected_old_mod_version and not advtrains_livery_database.has_wagon_livery_template(wagon_type, predefined_livery.livery_design.livery_template_name) then
- minetest.log("error", "["..mod_name.."] An old version of classic_coaches_generic_livery_pack was detected. Some predefined liveries will fail to be added.")
- detected_old_mod_version = true
- end
- local livery_design = predefined_livery.livery_design
- livery_design.wagon_type = wagon_type
- advtrains_livery_database.add_predefined_livery(predefined_livery.name, livery_design, mod_name, predefined_livery.notes)
- end
- end
|