greeny / SatisfactoryTools

Satisfactory Tools for planning and building the perfect base.
https://www.satisfactorytools.com/
MIT License
255 stars 56 forks source link

Production Calculator - Selecting plutonium fuel rod results in error #100

Open FatalCatharsis opened 2 years ago

FatalCatharsis commented 2 years ago

You can select anything else, but selecting plutonium fuel rod at any production rate with any settings always results in

"Unfortunately we couldn't calculate any result. This can be due to many things: missing resource required for the production line, not enough resources for the requested amount, disabled recipes required for the product, etc."

greeny commented 2 years ago

That's because it requires uranium waste, which isn't possible to make. You need to put the waste in Input section. I plan to add the waste to the tool, but it's low priority.

ElDubsNZ commented 2 years ago

Uranium Fuel Rods to Uranium Waste is essentially a recipe. Add Nuclear Power Plants as a production building with that recipe and the tool should just work itself.

greeny commented 2 years ago

Uranium Fuel Rods to Uranium Waste is essentially a recipe. Add Nuclear Power Plants as a production building with that recipe and the tool should just work itself.

@ElDubsNZ unfortunately it's not true. It doesn't behave like a recipe, and adding it as a "fake" recipe would be tons of work.

First, the data is processed automatically from game files, so any manual additions would either have to be hardcoded (which I'm not a big fan of) or re-added every time I run the script to process the data. Also, nuclear power plant doesn't have the parameters required to be able to calculate recipe production (e.g. "craftingSpeed"). It also doesn't use any power to run, which would break the building/overview displays. It would also display as a recipe in codex and recipe picker (which is technically incorrect). Not to mention that the formula for calculating overclock is different than the formula for production buildings.

All of that would have to be taken into account in code, which would result in multiple days of work. That's just not worth. Adding power properly is a much better option in this case, however as I said, it's not a big priority right now due to other things that I'm working on right now. It will come eventually though.

ElDubsNZ commented 2 years ago

That makes sense, I didn't realise you pull recipes from the game, thought you built the database manually. That's fair.

stevehobbsdev commented 2 years ago

That's because it requires uranium waste, which isn't possible to make. You need to put the waste in Input section.

Glad I came across this as I was confused by the same message, but what you're saying makes sense. However, I've put the Uranium Waste I produce as an input to a Plutonium Fuel Rod factory but I'm still getting this message and unable to see a production chain, am I missing something obvious?

greeny commented 2 years ago

That's because it requires uranium waste, which isn't possible to make. You need to put the waste in Input section.

Glad I came across this as I was confused by the same message, but what you're saying makes sense. However, I've put the Uranium Waste I produce as an input to a Plutonium Fuel Rod factory but I'm still getting this message and unable to see a production chain, am I missing something obvious?

most likely you don't have enough waste for your production goal. Try setting it to like 1000000 and see how much you are using.

I'm working on update for this, so you will soon not have to deal with it :)

stevehobbsdev commented 2 years ago

most likely you don't have enough waste for your production goal

That did it - thanks!