Missing road look definition

Modding school: Learn it from the masters
Post Reply
User avatar
Tronni22
Posts: 294
Joined: 30 Nov 2014 14:18
Location: Langesund, Bamble, Telemark

01 Oct 2018 19:32

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?
- Dale, get out of the hot tub. We're stealing a news van.
- It's the perfect crime. How will they ever report it?

"It takes a big man to admit when he's wrong, but it takes an even bigger man to give a giraffe a haircut"
Twitter @KeetPotato

User avatar
MandelSoft
Lead Developer
Posts: 3835
Joined: 08 Aug 2013 10:48
Location: Delft [NL]

01 Oct 2018 21:43

There must be an error earlier in the log. Can we see your entire log?
Your daily dose of wisdom!
╔═══╗────╔═╗╔═╗────╔╗
║╔═╗║────║║╚╝║║────║║
║╚═╝╠═╦══╣╔╗╔╗╠══╦═╝╠══╗
║╔══╣╔╣╔╗║║║║║║╔╗║╔╗║══╣
║║──║║║╚╝║║║║║║╚╝║╚╝╠══║
╚╝──╚╝╚══╩╝╚╝╚╩══╩══╩══╝
Don't ask us for a release date; we don't know either.

User avatar
Tronni22
Posts: 294
Joined: 30 Nov 2014 14:18
Location: Langesund, Bamble, Telemark

01 Oct 2018 22:14

- Dale, get out of the hot tub. We're stealing a news van.
- It's the perfect crime. How will they ever report it?

"It takes a big man to admit when he's wrong, but it takes an even bigger man to give a giraffe a haircut"
Twitter @KeetPotato

User avatar
MandelSoft
Lead Developer
Posts: 3835
Joined: 08 Aug 2013 10:48
Location: Delft [NL]

02 Oct 2018 18:02

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?
Your daily dose of wisdom!
╔═══╗────╔═╗╔═╗────╔╗
║╔═╗║────║║╚╝║║────║║
║╚═╝╠═╦══╣╔╗╔╗╠══╦═╝╠══╗
║╔══╣╔╣╔╗║║║║║║╔╗║╔╗║══╣
║║──║║║╚╝║║║║║║╚╝║╚╝╠══║
╚╝──╚╝╚══╩╝╚╝╚╩══╩══╩══╝
Don't ask us for a release date; we don't know either.

User avatar
Tronni22
Posts: 294
Joined: 30 Nov 2014 14:18
Location: Langesund, Bamble, Telemark

02 Oct 2018 20:35

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.
- Dale, get out of the hot tub. We're stealing a news van.
- It's the perfect crime. How will they ever report it?

"It takes a big man to admit when he's wrong, but it takes an even bigger man to give a giraffe a haircut"
Twitter @KeetPotato

User avatar
MandelSoft
Lead Developer
Posts: 3835
Joined: 08 Aug 2013 10:48
Location: Delft [NL]

02 Oct 2018 22:17

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.
Your daily dose of wisdom!
╔═══╗────╔═╗╔═╗────╔╗
║╔═╗║────║║╚╝║║────║║
║╚═╝╠═╦══╣╔╗╔╗╠══╦═╝╠══╗
║╔══╣╔╣╔╗║║║║║║╔╗║╔╗║══╣
║║──║║║╚╝║║║║║║╚╝║╚╝╠══║
╚╝──╚╝╚══╩╝╚╝╚╩══╩══╩══╝
Don't ask us for a release date; we don't know either.

User avatar
Tronni22
Posts: 294
Joined: 30 Nov 2014 14:18
Location: Langesund, Bamble, Telemark

02 Oct 2018 22:24

Thanks for explaining. I will change the filename.
- Dale, get out of the hot tub. We're stealing a news van.
- It's the perfect crime. How will they ever report it?

"It takes a big man to admit when he's wrong, but it takes an even bigger man to give a giraffe a haircut"
Twitter @KeetPotato



Post Reply

Return to “ProMods Academy”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 5 guests