Pocket Plane Group

Friends and Neighbors => Weimer Republic (WeiDU.org) => WeiDU => Topic started by: jastey on March 09, 2019, 04:22:57 AM

Title: Question to USING ~Mymod/xxx.tra~
Post by: jastey on March 09, 2019, 04:22:57 AM
In my understanding, pointing the installer to another tra-file with USING results in all lines of this tra-file being taken for compilation.

I just encountered an instance where it seems that how USING works is the following: If there is a tra-file that has the same name as the d-file, than the lines of this tra file will be taken for compilation regardless of another tra-file (with different lines for the numbers) is specified by USING. Only the tra-lines which numbers are not in the tra-file which has the same name as the d-file will be taken out of the by USING specified tra-file.

Sorry if this is common knowledge, I didn't know this and the author of the mod I am currently updating didn't either, obviously.
Title: Re: Question to USING ~Mymod/xxx.tra~
Post by: cmorgan on March 09, 2019, 06:52:53 AM
Are you using both AUTO_TRA and USING? I remember that there is a hierarchical order in which the LANGUAGE, AUTO, and USING are evaluated, but I can’t find the post where that is described.
Regardless, I think it might be clearer for USING to function as a “use this first and then fill in down the hierarchy”, overriding A_T

Title: Re: Question to USING ~Mymod/xxx.tra~
Post by: jastey on March 09, 2019, 07:34:30 AM
Yes, AUTO_TRA is defined. Still, up to now I though USING would be preferred. (I mean, the mod uses two different but similar called .d-files with different line numbers, i.e. the extended file contains the same lines but with other lines in between so that the numbers do not match. It's not the most clever way of handling this.)
Title: Re: Question to USING ~Mymod/xxx.tra~
Post by: Wisp on March 09, 2019, 03:12:50 PM
TRA files are loaded in the order LANGUAGE, WITH_TRA, USING and AUTO_TRA, which means AUTO_TRA has the highest precedence.
Title: Re: Question to USING ~Mymod/xxx.tra~
Post by: jastey on March 10, 2019, 05:10:52 AM
Thank you! I have a faint recall you wrote this before somewhere but I didn't recall it, obviously.