Git Product home page Git Product logo

helmod's People

Contributors

aegeeik avatar alexkar598 avatar arumba07 avatar astorin avatar atburghardt avatar bjmn55 avatar codemage avatar direcious avatar ehrenkret avatar helfima avatar i2um1 avatar imgbotapp avatar jakber avatar jameinel avatar jodli avatar kirillnaumkin avatar kiwihawk avatar koharakazuya avatar lavoiesl avatar luaotix avatar luisdasartimanhas avatar mape6 avatar nestoll avatar penguinencounter avatar ramarren avatar sotn56 avatar supersandro2000 avatar taralx avatar veger avatar x2605 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

helmod's Issues

Few ouput recipe in production block

by pieppiep
I would like is to have a block with more than one output recipe.
That way I can produce for example both science 1 and science 2 in one block.

Incorrect counting of machines

When it calculates how many machines are needed, it doesn't account for productivity.

Quick way to see this is to add 2 Productivity modules (-15% speed each) and 1 Tier 2 Speed module (+30%) speed. This is a total net speed of +0%. It thinks this setup takes the same number of assemblers as having 0 modules.

Automatic calculation not respecting minimum products produced per recipe

I'm setting up a block for all of my science production. Decided to include red and green science as well as the requirements for assembly (so, inserters, gear wheels, circuits, etc.). For iron gears it's telling me I should put in 5 iron plates for 2.5 iron gears instead of the expected 6 for 3, because the concept of 0.5 gear wheels is silly.

Window too wide/not draggable

I'm playing Factorio with quite a few addons that add buttons to the top left, as a result helmod gets pushed to the right so far I can't actually access the tab that opens on the right:

2016-10-10_18-20-42

The easiest solution (I think) is to have the window draggable, then you can just drag it to where you can see it.

Mod support & suggestion

Hi Helfima thanks for this amazing mod.
I found a problem with Angels, where cushed Ores can't be selected to make the final ores in the furnace.
Also I would like to ask if it's possible to implement the option select ratio besides poduction/time. For example 2 circuit assembler for 3 copper string assembler. And the option to fill for example a entire yellwo belt.

Thanks Halmex

display size options

I mostly play Factorio on a Leptop with a max resolution of 1366x768. With the currently supported display sizes the mod is unplayable because most of the buttons are unreachable. Could a display size option for 1366*768 be added?

Befor clicking "Add Production Block":

20170310173658_1

After clicking "Add Production Block":

20170310173712_1

computing by assembly number

by Mobius1
Is it possible to, instead of setting the desired ammount of production of an item, calculate it after you set all the assembly machines and beacons. For example, if I'm using bob's mods and I set an Assembly Machine MK6 with 6 Raw Productivity Modules MK8 (120% prod per module 720% total productivity) beaconed by 16 MK3 beacons with 6 Raw Speed Modules inserted on them (166120% speed bonus), but I wanna know how many of a product this setup can produce, instead of saying "i wanna know how many assemblies with beacons i need to produce 1000 red packs per minute", it'd be like the inverse order of what we are doing now with the recipes. Is there a way to do that?

Assignation assembly machine auto et modules

form blondin: dans ton mod tu peu pas ajouter un truc pour qu'on soit pas obliger de changer les usines sur chaque ligne mais que ca les change toutes d'un coup
moi: idem pour les modules

See throughput effect of maximizing a plant number

It would be nice to be able to specify a maximum number of factories per row, and then see what that does to input/output.

Explanation: Suppose I am making a red circuit plant, requiring also green circuits and cables.Now, the ideal ratio is 6 red : 1 green : 7 cable (2 for the reds, 5 for the green).

image

Now, I have a cool design that can only fit in 6 cable plants. What will that do to my output?

Maybe this is a stupid idea, feel free (obviously) to close ;-)

Migration crash in 0.3.0 migration script

I have a migration crash with the 0.3.0 upgrade script. It seems that "model" is a number on line 322 of helmod.lua in some circumstances. I had some "empty" production lines.

My fix was to wrap the rest of the loop with an "if type(model) == "table"" statement, however, I'm pretty sure that's not really very good. I can supply a save that'll crash, if you need it.

Note: I'm running 0.3.2, migrating from last version before 0.3.0.

Code simplification

I noticed this pattern used in a lot of your code:

if key ~= nil then
  options.name = action..key
else
  options.name = action
end

That can be simplified to:

options.name = key and (action..key) or action

There's also this sort of thing:

if style ~= nil then
  options.style = style
end

An initial simplification is:

if style then --> nil is falsey, so we don't need to explicitly state it in this case
  options.style = style
end

But nil values in a table property are automatically removed, so we can further simplify it to (in most cases):

options.style = style
-- if style is nil, the options table won't have a style property

Add input and output information on product line

by pieppiep:
Is it possible to show total input and total output on the production line.
For example, I want to make 1 science pack 1 and 1 science pack 2, the total would show 7.5 iron plate and 2.5 copper plate input.
Then I add a iron plate construction block and the total would show 7.5 iron ore and 2.5 copper plate input.
This small example it's possible to calculate it by hand, but when you have a block for each science pack and add some blocks to produce raw resources it's hard to see what resources you still need blocks for.

Oil calculations / cracking

First, thanks for this mod, it really helped plan my base!
(https://forums.factorio.com/viewtopic.php?f=204&t=38856)

Now, maybe I don't understand how it works, but I can't get helmod to properly calculate the refinery part.
My base needs 4.5k light oil for rocket fuel, and around 11k PG for sulfur and plastic.

If I add a separate block with 'adv oil processing' as main recipe, it just refines up to 11k PG and 'throws away' the remaining light and heavy oil, and adding cracking recipes gives zero or negative numbers:

image

If I add refining and cracking to another production block (e.g. to the plastic block), it assumes that either the refinery should produce all PG (and heavy+light are rest products), or the cracking should produce all PG (and the original PG from the refining becomes a rest product):

image

I understand the difficulty since normally you have a single end product and everything just transforms intermediates until the end product is reached; but here you have 2 end products (fuel+gas) and how much light->pg cracking is needed and the ratio (pg->fuel : light->fuel) depends on the desired ratio between the end products, so the calculation is not as straightforward... but it would be nice to have :)

Give me a shout if you need more information and/or the save file!

Fractional values not supported

It seems that all recipe inputs are rounded to the nearest whole number. This can lead to inaccurate results if you're clicking through a bunch of recipes. In this example, I wanted 2 solder/second, which will require 0.5 resin/second. I am incorrectly told that I will need 10 assembly machines producing resin, when in fact I only require 5 assembly machines.

screen shot 2017-03-14 at 8 20 55 am

Improve name / explanation beacon "combo" and "factory"

The names "combo" and "factory" in the beacon panel are not very intuitive and I've noticed some people asking about it on reddit and the forums. Maybe just call them "beacons per assembler" and "total ratio assemblers:beacons" or something like that, or provide a tooltip or label for explanation?

Bob and Angel with marathon mod =Incorrect receipe

I Notice in the game science pack 1 was not reading right for my game.

Actual game had iron gear wheel: 5, copper: 15, fundamental technology components pack: 3,
Helms mod said it was iron gear wheel: 1, copper: 2, fundamental technology components pack: 1,

hmmm adding z to end was the fix for it and keeping it in zip formated, secon seem does not even box under ingredients has it right

In case you want to know my mod list which is

base, StickyNotes, TheFatController, VehiclesEquipement, what-is-it-used-for, advanced-logistics-system, AfraidOfTheDark, Alien Oil, Alternate Alien Science, angelstrigger-refining-enableproductivity,auto-research, autofill, AutoTrash, Bluebuild, blueprint-book-2, Bottleneck, CharcoalBurner, color-coding, compressor, Crafting_Speed_Research, electric-vehicles-lib, EvoGUI, EvolutionReduction, Expanded_Robot_Tech, Factorissimo, FARL, HandyHands, helmod, InterfaceChest, Landfill, launch-control, Lejv-armor, Miniaturization, MoreLight, Nanobots, Resource_Relocation_Machines, robotarmy, RSORadar, SatelliteRadar, SmallFixes, space-platform, Squeak Through, Teleportation, TimeTools, tree_collision, upgrade-planner, usefulSpace, VersepellesOreEnrichment, Warehousing, Waterfill, WideChests, wireless-charging-lib, YARM, ZRecycling, electric-vehicles, LogisticTrainNetwork, SmartTrains, wireless-charging, rso-mod, VersepellesAlienFarm,
bobplates, bobtech,bobenemies, bobores, bobvehicleequipment, bobconfig, bobinserters, boblibrary, bobassembly, bobelectronics, bobgreenhouse, boblogistics, bobmining, bobpower, bobrevamp, bobmodules, bobwarfare, flowcontrolbobs,
SpaceModforF014,marathon,BobExtended,
angelsaddons-oresilos, angelsaddons-warehouses, angelscomponents, angelspetrochem, angelsaddons-pressuretanks, angelsbioprocessing, angelslogistics, angelssmelting, angelsinfiniteores,angelsrefining,
LoaderSpeedPatch, Orbital Ion Cannon, replicators, add-loader, MiningTools, Arborium

Calculation of rocket fuel production

Repost from https://forums.factorio.com/viewtopic.php?f=92&t=30465&start=20


This is a very useful mod! I wish I'd found it before I'd gone to the trouble of putting together my spreadsheet.

I was hoping you might be able to help guide re: correct settings for rocket fuel production. For example, let's say we want the breakdown of ingredients necessary to generate 1 rocket fuel per second, assuming advanced cracking (and no modules or beacons to keep it simple).

We know that 1 rocket fuel requires 10 solid fuel, which we can make from ~11.21 (liters of) crude. Here are the calcs.

  1. Advanced processing of 11.21 crude gives 1.12 heavy, 5.05 light and 6.17 petroleum.
  2. Cracking of 1.12 heavy gives 0.84 light, which we can combine with the 5.05 light from advanced processing to get a total of 5.89 light.
  3. Solid fuel conversion of 5.89 light gives 5.89 solid fuel, and solid fuel conversion of 6.17 petroleum gives 4.11 solid fuel, for a total of 10 solid fuel.

I'm unable to replicate this calculation in Helmod (image below)

The numbers in the blue circle are calculated from the figures above: heavy cracking gives ~14% of all light (0.84 / 5.89), solid fuel conversion of light gives ~59% of all solid fuel (5.89 / 10) and solid fuel conversion of petroleum gives 41% of all solid fuel (4.11 / 10).

What am I doing wrong?

untitled

Indicate factory utilization percentage

[Hey Helfima, thanks for your great mod! I'm just putting down some ideas that might make it even better, feel free (obviously) to ignore me :)]

Helmod rounds up the # of factories required (which makes sense). It would be nice to see to what % the factories are used, i.e. if I have 4 red circuits it requires 1 green, but that is only used 67% of capacity.

There is a percentage next to each recipe, but that seems to always be 100%, so maybe this was a planned feature?

image

E.g. in this screenshot, it would be great if the percentage next to the green circuit plant said 67%.

Mining time calculations are wrong

The game calculates how long it takes a given resource extractor using more than just the speed of the extractor. The formula is:
(mining power - ore mining hardness) * mining speed / mining time = production rate in resources per second. You can verify that on the wiki at https://wiki.factorio.com/Mining

An example of this in the baseline game:
Iron ore has hardness 0.9 and mining time 2. An electric drill has mining power 3 and mining speed 0.5. Plug that into the above and it's (3-.9)*.5/2 = 0.525 ore per second.
However, stone is slight different with 0.4 hardness instead of 0.9. That change results in 0.65 stone being mined per second.

Default assembler/factory type

Currently the default is always assembler level 1, even for chemical products or smelting, even though the selection list is subsequently filtered.

(Also, maybe instead of defaulting to level 1, default to the last picked option as I think most people use almost exclusively level 2 or 3 assemblers by the time they are really designing their plants)

Allow productivity modules

I have a suggestion:

The config component of Bob's mods has two settings:

  1. Allow productivity modules in any recipe, and
  2. Allow productivity modules in beacons

Currently, the former setting prevents you from using productivity modules in any recipe in this mod's GUI, while the latter is ignored (productivity modules can't be placed in beacons regardless of the setting).

This is probably an edge case (not sure how many people play with these settings turned on), but it would be nice to have support for these features.
@see https://forums.factorio.com/viewtopic.php?f=92&t=30465&p=248285#p248285

Stone furnaces throw off energy calculation

So, I was messing around with the mod, seeing what a hypothetical smelting line would require. Apparently the mod doesn't know that stone furnaces don't get power from the electrical grid, because it recommended I power the furnaces with 77 steam engines.

Angels plastic propene chain doesnt update correctly

After I create the full chain for producing plastic with propene from natural gas, using Angels Petrochem, if I increase the output amount of plastic, the chain updates correctly.

But if I then reduce the amount of plastic, the steam cracking methane does not update and does not reduce the amount produced.

This happens on 0.3.1 and 0.3.0

Error on adding mod to existing save

Downloaded the mod and loaded an existing save game and got the error below. Starting a fresh game does not result in an error.

The is on version 0.4.4 of helmod and version 0.15.9 of Factorio.

Error while running event helmod::on_tick (ID 0)
helmod/helmod.lua:135: attempt to index field 'users' (a nil value)

Nominal speed of drills is incorrect?

when I view the summary of the production line you can see how many extractors you need. it defaults to electric mining drills, it says to the right that the nominal speed of the electric mining drill is 0.5, which is correct, but when you change the factory type to burner mining drill or when you click to change to electric mining drill, the value changes to an incorrect value. the nominal speed value of electric mining drills suddenly becomes 1.5 and the value of burner mining drills becomes 0.88.

This is annoying because sometimes I like to mess around with burner inserters for extraction, but I can't change the values or else the nominal speed gets messed up and the calculations get messed up.

Desync on MP when closing a pinned window

Hi,
first of all: great mod, just perfect for those big bases with quadzillions of different (mod) products and I just love to plan my next production line ahead and min-max the shit out of it :)
Unfortunately I had to notice a rather annoying thing. I play on a headless server with a friend and sometimes (not every time, but often enough) when I close my pinned production line window I'll get a desync and have to restart the game. I attached my log file from such a desync, maybe you can look into it? Oh and I once had the same desync issue multiple times in a row while trying to select another production building for a given recipe, so maybe it's not just related to the pinned window.
factorio-previous.txt

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.