Skip to content

Update OilSource.scala#155

Open
daprof1 wants to merge 1 commit intopatsonluk:masterfrom
daprof1:patch-2
Open

Update OilSource.scala#155
daprof1 wants to merge 1 commit intopatsonluk:masterfrom
daprof1:patch-2

Conversation

@daprof1
Copy link
Copy Markdown
Contributor

@daprof1 daprof1 commented Mar 25, 2019

So found this bug on my retro server. It only shows up when the actual cycle sim time is less than the scheduled time. Main sim runs the cycle then increments the week. This causes the current oil prices (for contracts, etc) not be able to load (and then defaults to 70) as it's requesting "NEXT WEEK" if you check prices during the time the simulator has finished with the last week but hasn't started the next week.

Of course you could just change the order of the main sim actor so it increments first then triggers start cycle, but due to consistency concerns I did it this way.

So found this bug on my retro server. It only shows up when the actual cycle sim time is less than the scheduled time. Main sim runs the cycle then increments the week. This causes the current oil prices (for contracts, etc) not be able to load (and then defaults to 70) as it's requesting "NEXT WEEK" if you check prices during the time the simulator has finished with the last week but hasn't started the next week.

Of course you could just change the order of the main sim actor so it increments first then triggers start cycle, but due to consistency concerns I did it this way.
@patsonluk
Copy link
Copy Markdown
Owner

@daprof1 Just want to see where Dairy is 🥛

The game has been getting a lot of updates and a Christmas event!

Going to work on V2 soon too!

Where's the UI update!!??

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

Successfully merging this pull request may close these issues.

2 participants