Page 1 of 1

Missing road look definition

Posted: 01 Oct 2018 19:32
by Tronni22
I'm making a custom road variant, and I am trying to make it not conflict with anything in the game. So I tried to change som things in def/world/road_look.template.sii, but I guess I messed up because my road became invisible and these errors keep appearing in the log:

Code: Select all

00:00:48.705 : <ERROR> Missing road look definition ! (3)
00:00:48.705 : <ERROR> Missing road look definition ! (80)
00:00:48.705 : <ERROR> Missing road look definition ! (78)
00:00:48.705 : <ERROR> Missing road look definition ! (79)
00:00:48.705 : <ERROR> Missing road look definition ! (77)
00:00:48.705 : <ERROR> Missing road look definition ! (81)
00:00:48.705 : <ERROR> Missing road look definition ! (76)
00:00:48.706 : <ERROR> Missing road look definition ! (75)
00:00:48.706 : <ERROR> Missing road look definition ! (74)
00:00:48.706 : <ERROR> Missing road look definition ! (73)
00:00:48.706 : <ERROR> Missing road look definition ! (72)
00:00:48.721 : <ERROR> Missing road look definition ! (1)
00:00:48.721 : <ERROR> Missing road look definition ! (2)
00:00:48.722 : <ERROR> Missing road look definition ! (3)
00:00:48.722 : <ERROR> Missing road look definition ! (80)
00:00:48.722 : <ERROR> Missing road look definition ! (78)
00:00:48.722 : <ERROR> Missing road look definition ! (79)
00:00:48.722 : <ERROR> Missing road look definition ! (77)
00:00:48.722 : <ERROR> Missing road look definition ! (81)
00:00:48.722 : <ERROR> Missing road look definition ! (76)
00:00:48.722 : <ERROR> Missing road look definition ! (75)
00:00:48.722 : <ERROR> Missing road look definition ! (74)
00:00:48.722 : <ERROR> Missing road look definition ! (73)
00:00:48.722 : <ERROR> Missing road look definition ! (72)
What do I do?

Re: Missing road look definition

Posted: 01 Oct 2018 21:43
by MandelSoft
There must be an error earlier in the log. Can we see your entire log?

Re: Missing road look definition

Posted: 01 Oct 2018 22:14
by Tronni22

Re: Missing road look definition

Posted: 02 Oct 2018 18:02
by MandelSoft
Hmmmm... it doesn't state the exact error, but I suspect you have a syntax error somewhere in your "road.sii" and "road.template.sii" to leave them empty. Can I see them?

Re: Missing road look definition

Posted: 02 Oct 2018 20:35
by Tronni22
Here is the road_look.template.sii:

Code: Select all

SiiNunit
{
# For modders: Please do not modify this file if you want to add a new entry. Create in
# this directory a new file "<base_name>.<idofyourmod>.sii" where <base_name> is name of
# base file without the extension (e.g. "city" for "/def/city.sii") and <idofyourmod> is
# some string which is unlikely to conflict with other mod.
#
# Warning: Even if the units are specified in more than one source file, they share the
# same namespace so suffixes or prefixes should be used to avoid conflicts.



road_look : road.template_tm1 {
	name: 			"TM Road 1"
	template_right:		"/road_template/sc/tm_road_1.pmd"


	lanes_left[]:	traffic_lane.road.local.no_overtake
	lanes_right[]:	traffic_lane.road.local.no_overtake

	template_variants_right[]: .tmpl_var.road.template_tm1

	compatible_edges_right[]: shldr_1m
	compatible_edges_right[]: sh_curb_0_3m
	compatible_edges_right[]: sw_3m_a
	compatible_edges_right[]: sw_3m_b
	compatible_edges_right[]: sw_3m_c
	compatible_edges_right[]: center_np

	shoulder_space_left:		0.0
	shoulder_space_right:		0.0
}
road_template_variant : .tmpl_var.road.template_tm1
{
	variant_names[]:	"no_lines"
	variant_names[]:	"lane_broken"
	variant_names[]:	"broken_nor"
	variant_names[]:	"broken_swe"
	variant_names[]:	"no_lanes_swe"
	variant_names[]:	"l_brok_sf"
	variant_names[]:	"br_nor_sf"

	lanes_left[]:	traffic_lane.road.local
	lanes_right[]:	traffic_lane.road.local
}

}
I haven't edited the road.sii because I didn't know I needed it.

Re: Missing road look definition

Posted: 02 Oct 2018 22:17
by MandelSoft
Well, there's your problem; by using the same exact filename, you're overriding road_look.template.sii instead of making a new file with a different name. What you do now is because your file overrides the original SII file, it will not load the contents from the original file, and thus, it won't load any of those roads. This is the core of your problem.

Re: Missing road look definition

Posted: 02 Oct 2018 22:24
by Tronni22
Thanks for explaining. I will change the filename.