Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug in Time System #4

Open
kpeamon opened this issue Mar 7, 2020 · 0 comments
Open

Bug in Time System #4

kpeamon opened this issue Mar 7, 2020 · 0 comments

Comments

@kpeamon
Copy link

kpeamon commented Mar 7, 2020

Lately I have been using the Time System Library which comes with ADRIFT 5. Besides %Minute% and %Hour% it also has a variable called %Day% which I think is intended to keep track of which day it is. You could use this to print the date, e.g. if we are somewhere between day 4 and day 30 in the game, you could output "Date: %Day%th of July".

Unfortunately, it turns out, that the variable %Day% is not correctly updated when time passes midnight. For instance, it may take on negative values. And it is not updated when you sleep.

I have now modified the time system so that the variable %Day% is now correctly updated, both at midnight and when you sleep. Thus you can now use the Improved Time System Library to keep track of the date in the game.

Unfortunately, I don't know how to make Pull Requests, but the improved Time System can be found here: https://github.com/kpeamon/ADRIFT-5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant