Authentication-Results: mail-b.sr.ht; dkim=none Received: from mxf955.netcup.net (mxf955.netcup.net [46.38.249.85]) by mail-b.sr.ht (Postfix) with ESMTPS id 145B511EE06 for <~gpcf/advtrains-discuss@lists.sr.ht>; Fri, 16 Dec 2022 14:17:45 +0000 (UTC) X-No-Relay: not in my network X-No-Relay: not in my network Received: from [10.8.1.9] (unknown [46.101.102.136]) by mxf955.netcup.net (Postfix) with ESMTPSA id B53D140482; Fri, 16 Dec 2022 15:17:43 +0100 (CET) Message-ID: Date: Fri, 16 Dec 2022 15:17:43 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.5.1 Content-Language: en-US To: 56independent <56independent@protonmail.com> Cc: ~gpcf/advtrains-discuss@lists.sr.ht References: From: "Y. Wang" Subject: Re: train.door_open documentation where? In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit >> 1. What exactly do you want to work >> on in Advtrains? > > Door indexes. > >> 2. Considering that you have decided >> to work on Advtrains, why did you >> not consider looking into the source >> code and figuring it out yourself? > > I did try to search but Windows > Explorer can't really explore as well > as it could, and i did mention that i > searched bananach.space, more > specifically for "door_open", which > brought up nothing. Why did you look at the commit log? Commit messages on Advtrains tend to be short, and implementation details are generally not described. It does not sound surprising to me at all that you did not find anything there. Instead, I am quite sure that there is something sensible on Windows that is close to `grep -rn -C3` on Linux. IMO not being able to figure out how to search through a directory of text files is among the last reasons to not read the source code, and it is definitely not a reason if you want to actually work on Advtrains. In any case, train.door_open is * -1 if only the left door is open * 0 if doors are closed * 1 if only the right door is open The direction is relative to the direction of the train.