Including (@include) question

Forum rules
SCS as a company do not wish to have paid mods on this forum. While we understand that not all paid mods use the Intellectual Property of other companies/people, it is very hard to moderate what is and isn't acceptable when money is involved. There are also concerns that it could look unfavorable to potential work partners going forward if SCS allow mods that may potentially use unlicensed branding.
Posting in the Mods forum (ATS and ETS2) is restricted to sharing free-to-the-public mods and providing support for mods. For more details, please check the Forum Rules.
User avatar
room217au
Posts: 2720
Joined: 17 Jul 2015 01:55
Location: Lakeside

Re: Including (@include) question

#11 Post by room217au » 29 Jun 2022 23:08

"#" or "/" at the beginning of any line tells the game to ignore everything past that character on the entire line.
If you suck at playing the trumpet, that's probably why.
tonaz
Posts: 93
Joined: 16 Dec 2019 12:35

Re: Including (@include) question

#12 Post by tonaz » 30 Jun 2022 14:23

al_batros wrote: 29 Jun 2022 15:50
tonaz wrote: 27 Jun 2022 15:47 it was because the @include statement MUST be in first column, without any spaces before...
There is "one more thing": An @include cannot have a #comment behind it.

Code: Select all

# works:
@include "somefile"
# doesn't work
@include "somefile" #comment
# works: comment out @include, so it is not loaded:
#@include "somefile"
I think the Wiki is missing this info about the comment not being allowed behind the @include - or it is a bug in the parser...

good find!
Post Reply

Return to “Help requests”

Who is online

Users browsing this forum: No registered users and 1 guest