Page 1 of 1

Map Route Overlay .mat Format

Posted: 07 Jan 2018 20:58
by Minecart11
Hello! I have a quick question for you guys.

Do any of you know what the mat file for a Route Overlay in the map should look like?

At the moment my .mat files look like this:

material : "ui"
{
texture : "ch_1a.tobj"
texture_name : "ui"
}

It would be extremely helpful to me if you would kindly reply with the correct format.

Thanks!

Re: Map Route Overlay .mat Format

Posted: 07 Jan 2018 23:16
by Nathan_A_RF
You can learn from what files are there already ;)

Code: Select all

material : "ui"
{
	texture : "road_ch_1a.tobj"
	texture_name : "texture"
}
That's how your example should look, with the texture being whatever your .dds file and your .tobj file are.

Re: Map Route Overlay .mat Format

Posted: 07 Jan 2018 23:20
by Minecart11
Thank you!

Re: Map Route Overlay .mat Format

Posted: 07 Jan 2018 23:45
by Minecart11
Nathan_A_RF wrote:
07 Jan 2018 23:16

Code: Select all

material : "ui"
{
	texture : "road_ch_1a.tobj"
	texture_name : "texture"
}
Does the texture have to be road_ch_##?

Re: Map Route Overlay .mat Format

Posted: 07 Jan 2018 23:49
by Nathan_A_RF
As long as it's "road_XXXX" you're fine. In the def/world folder make sure you set up the ovelays.sii folder you need too if adding a new overlay.

Re: Map Route Overlay .mat Format

Posted: 07 Jan 2018 23:51
by Minecart11
Nathan_A_RF wrote:
07 Jan 2018 23:49
As long as it's "road_XXXX" you're fine. In the def/world folder make sure you set up the ovelays.sii folder you need too if adding a new overlay.
Thanks. Thats what I thought. In the overlays.sii file does it have to have road_ as well or is it implied by road_names[]?

Re: Map Route Overlay .mat Format

Posted: 08 Jan 2018 00:00
by Nathan_A_RF
In the new overlays.sii file called overlays.XXX.sii, add something like below. For road overlays, if the name is "road_uk_a3.dds", then it has the road prefix as shown below. Ignore the city ones, these are all outdated and are only used for old non-editable road signs

Code: Select all

SiiNunit
{
overlay_def : .overlay {

	city_names[]: "uk_bristol"

	road_names[]: "uk_a3"

}

}

Re: Map Route Overlay .mat Format

Posted: 08 Jan 2018 00:02
by Minecart11
ok thanks!