View Full Version : New tool for Mushroom Farming!
SausageJavelins
05-14-2019, 05:57 AM
Hoi folks!
The other day I got the idea to write some sort of program to simplify throwing down new shroom boxes. I sometimes have to check which substrate I need, and don't ask me to remember all the phase associations. So instead of toil in the soil, I devised a little web page powered by a script that not only calculates the moon phase for you, but also displays the fungi that grow best in each phase.
The project has an MIT (EDIT: now GPLv3) license, so feel free to make edits and redistribute to your heart's content (please read the LICENSE.txt and include it when you share this software), just please give credit where and when it is due.
EDIT: updated links (again, 13 Nov 2020)
http://phasepharmer.app (https://phasepharmer.app)
Here's a screenshot:
https://raw.githubusercontent.com/Umbra-Aeterna-Labs/PhasePharmer/master/screenshot.png
I would love some feedback as to whether or not players find this tool useful, or if you have a good suggestion for a project. That's all from me, happy farming!
-SJ
Mbaums
05-14-2019, 06:39 AM
I think its great. If anything, id say move the today's phase to the top and the select the phase under it so that it's more clear what mushroom phase you are looking at.
If you make more versions, maybe including box info could be helpful. material requirements +time added per mushroom.
How do you like your formula to calculate the current moon phase? Did you check how accurate it is?
Tagamogi
05-14-2019, 11:06 AM
I sometimes have to check which substrate I need, and don't ask me to remember all the phase associations.
But that's why we have spreadsheets, right? ;) Well, actually - your web page looks much nicer than my spreadsheet. :) Thanks for making it - I look forward to trying it out when I have some free time! In the meantime, some feedback based on what I see in the screenshot:
What I always want to know is how many hours until the next moon phase, so I can know whether my current crop of mushrooms will have time to actually finish growing or end up with the next phase's growth benefits. So, if you are calculating the moon phases anyway, that would be helpful information to show ( as far as I know the cycle resets at midnight Eastern time but I'm not sure how the game determines how many days per phase since that can vary).
It may also be helpful to have an option to show growth time * 1.25 or * .75 or whatever, to account for epic yield or fast boxes.
It might be useful to show mushrooms that just grow ok in the current moon phase, too - or put in a warning for mushrooms that don't grow well - since sometimes you may want to grow a particular mushroom right now, as long as it isn't the poor moon phase.
SausageJavelins
05-14-2019, 05:40 PM
...id say move the today's phase to the top and the select the phase under it so that it's more clear what mushroom phase you are looking at.
I will definitely tinker with the layout a bit per this suggestion.
...including box info could be helpful. material requirements +time added per mushroom.
Hmmm....not a bad idea either.
How do you like your formula to calculate the current moon phase? Did you check how accurate it is?
See https://gist.github.com/endel/dfe6bb2fbe679781948c for the original. I have not thoroughly tested the algorithm yet, probably something I should do since I plan on moving this project forward.
...What I always want to know is how many hours until the next moon phase, so I can know whether my current crop of mushrooms will have time to actually finish growing or end up with the next phase's growth benefits.
Noted.
It may also be helpful to have an option to show growth time * 1.25 or * .75 or whatever, to account for epic yield or fast boxes.
I actually use the high yield boxes, so I thought about throwing that in there at some point.
It might be useful to show mushrooms that just grow ok in the current moon phase, too - or put in a warning for mushrooms that don't grow well - since sometimes you may want to grow a particular mushroom right now, as long as it isn't the poor moon phase.
Should be easy enough to implement.
Thanks for the feedback, I will definitely try and make some of these proposed features reality!
SausageJavelins
05-15-2019, 01:14 PM
UPDATE
I have decided to go with a Node.js module called Lune to do the moon phase calculations more accurately. I looked into the math and I honestly don't have any interest in going back to that crap just to be able to calculate time until next phase. See https://www.npmjs.com/package/lune
Daguin
05-15-2019, 03:59 PM
I use Niph's PG Moon app for this purpose, but it doesn't list the substrates unfortunately. Thanks for doing this one too... The more the merrier!
SausageJavelins
05-15-2019, 05:04 PM
I use Niph's PG Moon app for this purpose, but it doesn't list the substrates unfortunately...
Oh I was not aware there was one available. I was planning on eventually implementing a feature where I could track my box times outside the game in real time.
Niph Is there any way I could please check out your app? I would like to avoid duplicating features if at all possible, and I'm just curious what other players have cooked up.
It's open source, you can find it at https://github.com/dlebansais/PgMoon.
Edit: you can add comments to each mushroom, for example the substrate to use. :)
SausageJavelins
05-17-2019, 11:49 AM
I slapped v0.1.1 onto my server and set up some links, so now it's available as a live script for all at:
EDIT: updated links (again, 13 Nov 2020)
http://phasepharmer.app
Niph I need to consult you on doing the heavier math in order to calculate the moon phase better at some point. I was looking at your algorithm and I think that's probably within my grasp.
Tagamogi
05-17-2019, 01:10 PM
I slapped v0.1.1 onto my server and set up some links, so now it's available as a live script for all at:
dragonmoonclan.com/phase (http://dragonmoonclan.com/phase)
Thank you, that looks super-helpful!
I was aware of Niph's version but never quite wanted to go to the effort of trying to make it work under Linux. Having a web site is perfect for me. Thanks!!
@Niph (https://forum.projectgorgon.com/member.php?u=80) I need to consult you on doing the heavier math in order to calculate the moon phase better at some point. I was looking at your algorithm and I think that's probably within my grasp.
Don't worry about that, my formula is also wrong. I tried several, and I'm pretty sure Citan uses some custom code (that I have no intention of figuring out). Until we are given the formula, just being off by one day from time to time is probably acceptable.
SausageJavelins
05-27-2019, 09:03 AM
Don't worry about that, my formula is also wrong. I tried several, and I'm pretty sure Citan uses some custom code (that I have no intention of figuring out). Until we are given the formula, just being off by one day from time to time is probably acceptable.
Oh damn... Well, it can't be too hard to figure out with a proper library I guess. The only thing is there was one phase I remember being WAAAY too long for some unknown reason (perhaps a correction?). Might have been the waning crescent, I forget.
Thank you, that looks super-helpful!
I was aware of Niph's version but never quite wanted to go to the effort of trying to make it work under Linux. Having a web site is perfect for me. Thanks!!
You're very welcome!
alleryn
10-22-2019, 06:39 AM
SausageJavelins Is this project still going? dragonmoonclan.com seems to be refusing my connection (could be something on my end?).
Tagamogi
10-24-2019, 11:09 AM
SausageJavelins Is this project still going? dragonmoonclan.com seems to be refusing my connection (could be something on my end?).
You can get to it with https://dragonmoonclan.com/phase . It currently seems to be perma-stuck on the new moon but you can still manually change phases and try out different box growing speeds which is pretty fun.
alleryn
10-24-2019, 02:30 PM
You can get to it with https://dragonmoonclan.com/phase . It currently seems to be perma-stuck on the new moon but you can still manually change phases and try out different box growing speeds which is pretty fun.
Thanks! It is loading fine now. I'm not sure why i wasn't able to connect the other day.
Tagamogi
10-29-2019, 10:06 AM
Thanks! It is loading fine now. I'm not sure why i wasn't able to connect the other day.
If you just enter dragonmoonclan.com/phase , it tries to make an http connection, so http://dragonmoonclan.com/phase . That one is still giving me a connection refused, it's only the https connection that works for me. Just a server setup thingie to refuse http connections, I assume.
SausageJavelins
03-01-2020, 10:38 PM
Apologies for the necrobump!
I have been rather busy and have not fixed the bug with the site nor developed Phase Pharmer much. I switched over to a secure connection, hence why HTTP does not work, only HTTPS. The server is prone to not responding sometimes and requiring a periodic restart. If the site doesn't work, simply try again later.
You can also download the site and just run a local copy, btw. It's only a JavaScript file on a webpage that runs in the browser.
If I find some time (and energy) to address these issues I definitely will.
Powered by vBulletin® Version 4.2.3 Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.