DanielKote / Foreman2

Visual planning tool for Factorio
Other
166 stars 19 forks source link

override recipes? #71

Open rayanth opened 12 months ago

rayanth commented 12 months ago

is it possible to override a recipe? with both my SE and SE-K2 mod sets, I've noticed that the recipe for Satellite Telemetry says it produces 0 Satellite telemetry... I'm figuring this is 'special code' in the game rather than a proper recipe, thus leading to Foreman thinking it produces 0, but it ultimately means it's a lot harder to work out the flow for the related science packs. image

If I could simply override the recipe to say it creates 100 telemetry, it'd make this part of planning much less of a headache, but I can't find a way to do that.

DanielKote commented 12 months ago

There is a way to override the recipe (by either editing the .pjson file or adding a separate .json file with the 'changes' you want to add to the preset). Unfortunately in this case it wont help you - the issue is actually due to a bug in the software:

Factorio has (at the time of making the launch result code) limited the amount of items you can receive back to a single stack, but allowed you to send multiple items to get more (ex: sending 1 space sci pack results in 1 fish; sending 100 results in 100; sending 200 results in 100 (stack size limit). In order to 'optimize' the recipe you want to send as much of the 'input' item to get as much of the 'output' per rocket while not wasting the input (so recipe will default to 100 space sci packs + 100 rocket parts -> 100 fish instead of the 1 pack + 100 parts -> 1 fish).

The bug I made was that if the launch products are set higher than a single stack (ex: telemetry data of 200 when it stacks to 50), it will 'optimize' to 0 items sent, which will also set the results to 0*200 = 0.

I am currently on a business trip and thus unable to work on this. Once I get back I will fix up the bug (and read up on the rest of the issues that have accumulated) and see if I cant push the next version of foreman out by some time next week (say - oct 18th?)