[JAVA] Flower Cross-Pollination Planner

Discussion about the technical aspects of scripting. Ask about all issues involving your freelance projects here.
Locked
Quinton
Master Scribe
Posts: 51
Joined: Sat Apr 02, 2011 6:40 am

[JAVA] Flower Cross-Pollination Planner

Post by Quinton »

The basis of this program is to help generate a full seed base of all types of plants gotten from cross-pollination as quickly and efficiently as possible. From your current stock of seed types, it will calculate crosses and return those that will result in seeds you do not currently have.
GardenGnome.zip
extract the .jar and double click or right-click and select run/open with Java. Depending on your system, you may have to right-click, go into properties and check it as an executable.
(30.07 KiB) Downloaded 303 times
I've also included helpful tool-tips on almost everything, so please refer to them if you do not understand something.
If you find any bugs, please post a reply. I run on Linux, and haven't been able to test thoroughly in Windows-so this is still in testing phase. I have some changes in mind and also may consider adding any requested features, so please post those as well.

Functionality includes:
-Inputting Seed Base:
***Save and Load Available
***Clears all seeds currently listed, dunno why one would do that, but just in case.
***Can Delete or Update specific entries in the current listing without re-entering the entire seed base.

-Generation of a Cross-Pollination Scheme:
***You can limit how many new types of seeds you are looking to grow for. I generally grow in rounds that will produce 20-25 new seed types. 25 is the set default.
***You can limit your new seed types to a selection of Color and/or Type of Flower.
***You can exclude from your new seeds types by a selection of Color and/or Type of Flower.
***You can limit to bee-friendly types only.
***Saving seed base after generation of a growth round:
------It will add your new seed types[with amounts set to 0] to your current seeds, so that they are present in your current seed base, but cannot be used for cross-pollination.
------It will decrement the amounts of the seed types used, so you don't have to re-input.
------This feature is useful if you plan on setting up a few cross-pollination schemes before harvesting new seed types.
------Please do not hit save on the Generation page If you have not generated new crosses. It's a bug that I have not dealt with yet.

NOTE: The program will not allow a seed type to be used if you have less than 3 seeds left - If I feel motivated, I will change this so that the user can designate the amount to be left "protected" per seed.

Two ways to generate a cross-pollination scheme
My way or Sienna's Way...Lets use the example of trying to grow plants to cross-pollinate for 20 new seed types[meeting specifications]:
~~~~~My Way~~~~~
-You will have 20 *or less* Pollen Receivers, and a smaller selection of pollen donors that will cross-pollinate the Receivers.
---You will have 8 seeds of each new type of plant you've crossed for.
-My way then checks the donors cross-pollinated with plants chosen that round looking for any new seed types - regardless of any specifications you've input. If any crosses are available that will produce a seed you don't have, it will be listed.
-Meaning you could potentially end up growing 25 plants and cross-pollinate all 25 in such a way that every single one will bear a seed of a type you do not have, but only the 20 are guaranteed to meet your specifications.
~~~~~Sienna's Way~~~~~
-Sienna Prefers to cross pollinate both ways for the receiver and donor - meaning for one new type of seed, both parents will be pollinated to produce the new seed type.
--You will have 16 seeds of each new type of plant you've crossed for.
-This way guarantees only 20 *or less* new seed types, but you have to grow 40 plants in this version.
*Note: if your seed base cannot produce 20 new seeds meeting the specifications you've input, it will list all results meeting your specifications*

My way is default, but there is a check box for sienna's way :D

If you have any questions, pm McHale in game.

Enjoy!
Quinton
Master Scribe
Posts: 51
Joined: Sat Apr 02, 2011 6:40 am

Re: [JAVA] Flower Cross-Pollination Planner

Post by Quinton »

Uploaded a new version of the flower app - there were a few bugs to be fixed. It all seems to be in order now.
Locked