Error parsing material file

SCS Software ATS and ETS2 editing using ZModeler3 filter. Models, Materials, Animation.

Moderator: Oleg

Post Reply
User avatar
Harald-RS
Beginner
Posts: 333
Joined: Sun Oct 21, 2012 8:08 am
Location: Treuchtlingen / Germany

Error parsing material file

Post by Harald-RS »

Hi Oleg,
i don't now what i make wrong.

Code: Select all

00:00:39.725 : <ERROR> [material] 'syntax error' at line 1 in file '/automat/cf/cf7158d77b65490b.mat'.
00:00:39.725 : <ERROR> [material] Error parsing material file '/automat/cf/cf7158d77b65490b.mat'.
Material File:

Code: Select all

material : "eut2.dif.spec" {
	texture[0] : "/vehicle/truck/mercedes_w470/interior/textures/x_class_amg_black.tobj"
	texture_name[0] : "texture_base"
	diffuse : { 0.74902 , 0.74902 , 0.74902 }
	specular : { 0 , 0 , 0 }
	shininess : 210
	add_ambient : 0

}
Greetings
Harald
My System: PC Windows 11
Dotec
Posts: 16
Joined: Sat Apr 04, 2020 11:25 am

Re: Error parsing material file

Post by Dotec »

change first line to:

Code: Select all

material : "eut2.dif.spec.rfx" {
User avatar
Oleg
Site Admin
Posts: 14101
Joined: Fri Feb 06, 2004 3:54 am
Contact:

Re: Error parsing material file

Post by Oleg »

does this really cause a bug in the game? it never caused any problem to use or miss the .rfx there.
Dotec
Posts: 16
Joined: Sat Apr 04, 2020 11:25 am

Re: Error parsing material file

Post by Dotec »

it might work without, but every automat file by scs is written with the .rfx extension.
Even his error line is clearly: line 1

And I always say: Don't edit manually automat files.
User avatar
Oleg
Site Admin
Posts: 14101
Joined: Fri Feb 06, 2004 3:54 am
Contact:

Re: Error parsing material file

Post by Oleg »

ok, made an update to export with .rfx in shader names.
Post Reply