intfiction.org

The Interactive Fiction Community Forum
It is currently Sun Nov 19, 2017 11:06 pm

All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Sun May 04, 2014 8:05 pm 
Offline

Joined: Tue Mar 18, 2008 9:04 am
Posts: 1097
This topic is for discussions related to Transit System by Emily Short


Top
 Profile Send private message  
Reply with quote  
PostPosted: Sat Jul 09, 2016 11:59 pm 
Offline

Joined: Tue Jul 17, 2012 5:06 pm
Posts: 148
As of version 6, the code includes:

Code:
A train-car has a time called the waiting duration. 


and later:

Code:
Rule for stopping at station a functional train-car (called relevant car) (this is the stopping cars rule):
   move the relevant car to the next stop of the relevant car;
   now the next-departure of the relevant car is the time of day plus the waiting duration of the relevant car;
   increase the next-departure of the relevant car by 1 minute.


but I think this causes an issue for absolutely-scheduled train-cars when no waiting duration is set. It appears that the waiting duration property defaults to the default value of a time (i.e. 9:00 AM, unless modified?), and that this is interpreted as a duration of 540 minutes (i.e. the number of minutes past midnight), which is what gets added to the time of day to determine next-departure.


Top
 Profile Send private message  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 6 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group