Search found 2893 matches

by darkfrei
Wed Apr 27, 2022 7:04 am
Forum: Modding help
Topic: Question about the global table
Replies: 10
Views: 327

Re: Question about the global table

Is it okay if I recycle this code with credit? This is my current code, if that's not the case - perhaps you might know how to retool it to have the functionality I need. function inserter_utils.get_max_range(inserter, this_force) -- The original function appears to grab the maximum range from the ...
by darkfrei
Mon Apr 25, 2022 9:29 am
Forum: Modding help
Topic: Question about the global table
Replies: 10
Views: 327

Re: Question about the global table

See code of https://mods.factorio.com/mod/RocketExplosions function get_tech_level (force, tech_name) local level = 0 local techs = force.technologies local tech = techs[tech_name] or techs[tech_name..'-1'] if tech and tech.researched then level = tech.level local i = 1 local fl = true while fl do i...
by darkfrei
Mon Apr 04, 2022 10:21 am
Forum: Modding help
Topic: I want "electric furnace" to manually select the recipe
Replies: 3
Views: 141

Re: I want "electric furnace" to manually select the recipe

I want "electric furnace" to manually select the formula like an assembly machine. Where should I modify it? thank you Just create the assembling machine with furnace's recipe category "smelting". https://wiki.factorio.com/Prototype/RecipeCategory https://wiki.factorio.com/Data....
by darkfrei
Mon Apr 04, 2022 7:15 am
Forum: Modding help
Topic: Can you realize the dynamic conversion of formula
Replies: 4
Views: 328

Re: Can you realize the dynamic conversion of formula

Table tabl ={ { type = "recipe", name = "transformation-copper-ore-from-coal", category = "transformation-copper-ore", ingredients = {{"coal", 5}}, result = "copper-ore", }, { type = "recipe", name = "transformation-copper-ore-from-sto...
by darkfrei
Wed Mar 30, 2022 7:19 am
Forum: Modding help
Topic: Is there any way for the data stage to effect the settings stage?
Replies: 9
Views: 733

Re: Is there any way for the data stage to effect the settings stage?

My question was: Why we have data.raw? I mean, why not just data? And why not settings.raw or data.settings?
by darkfrei
Mon Mar 28, 2022 3:23 pm
Forum: Modding help
Topic: Is there any way for the data stage to effect the settings stage?
Replies: 9
Views: 733

Re: Is there any way for the data stage to effect the settings stage?

No. The reason is: Data stage is defined based off the values of the settings stage. If the settings stage could be defined based off the values of the data stage it would be an infinite loop. Must be something like (but never will be implemented) data-pre-settings settings data data-updates data-f...
by darkfrei
Wed Mar 23, 2022 10:46 am
Forum: Technical Help
Topic: [Solved] Can't change the data directory.
Replies: 34
Views: 8731

Re: [Solved] Can't change the data directory.

Make it portable: Factorio/config-path.cfg must be: config-path=__PATH__executable__/../../config #This value specifies the way the aplication generates default values for path.read-data and path.write-data #When set to true, it will use system directories (Users/Name/AppData/Roaming/Factorio on win...
by darkfrei
Fri Mar 04, 2022 1:04 pm
Forum: Modding help
Topic: How to offset sprite so that it looks good when entity rotates?
Replies: 6
Views: 566

Re: How to offset sprite so that it looks good when entity rotates?

AlveKatt wrote:
Tue Mar 01, 2022 1:37 pm
Your sprite sheet will be bigger with a lot of empty space, but I think you have to live with that.
There is a script for that:
viewtopic.php?p=335708#p335708
by darkfrei
Fri Mar 04, 2022 11:33 am
Forum: News
Topic: We support Ukraine
Replies: 2440
Views: 81789

Re: We support Ukraine

Also, why for 8 years everybody was so silent about Donetsk and Lugansk, about horror that was going there for entire 8 years? I want to know the opinion of the people who lives there, not from any state press. The Ukraine cannot bombing it because it's also the Ukraine, but the Russia cannot bombi...
by darkfrei
Tue Jan 25, 2022 3:45 pm
Forum: Ideas and Suggestions
Topic: [0.16.51] Factorio Ultrawide Monitor support?
Replies: 23
Views: 6546

Re: [0.16.51] Factorio Ultrawide Monitor support?

Here must be limitations in multiplayer, that all forces and players can see the same area.
But in single play the player must zoom out until drop of FPS.
by darkfrei
Mon Jan 24, 2022 8:13 am
Forum: Modding help
Topic: Made my first mod but need advice on extra feature
Replies: 5
Views: 698

Re: Made my first mod but need advice on extra feature

Can the hidden teleportation to the same place or to other surface and back to this one help in this situation?
by darkfrei
Mon Jul 05, 2021 8:22 pm
Forum: Modding help
Topic: Last in mod load order
Replies: 8
Views: 1036

Re: Last in mod load order

The mod that named "_modname" will be loaded after "zmodname".
by darkfrei
Tue May 25, 2021 4:42 pm
Forum: Off topic
Topic: [photos] Factorio in real life
Replies: 147
Views: 229938

Re: [photos] Factorio in real life

Electricity
by darkfrei
Mon Apr 12, 2021 5:07 pm
Forum: Modding help
Topic: Limit Modded Module to specific entity
Replies: 5
Views: 673

Re: Limit Modded Module to specific entity

But you can check the event and extract the module, remove from entity and place on the ground.
by darkfrei
Sun Mar 28, 2021 4:41 am
Forum: Ideas and Requests For Mods
Topic: Fluid science
Replies: 2
Views: 608

Re: Fluid science

pichutarius wrote:
Fri Mar 26, 2021 11:33 am
Turn science into fluid, labs accept pipe input and passes science through adjacent labs.

Now science can be pumped into tank cargo or barreled.

Not sure if mod-able, lab probably need 7 input site?
https://mods.factorio.com/mod/liquid-science
by darkfrei
Wed Mar 24, 2021 9:39 pm
Forum: Modding discussion
Topic: Why no new alien graphics / overhaul / addition mods?
Replies: 7
Views: 1259

Re: Why no new alien graphics / overhaul / addition mods?

Ball Biters! https://mods.factorio.com/mod/BallBiters

The asked mod needs a modder / modding team with free time and good modding skills, but it's hard and can be not popular.
So, such mod can be done if the modder want to make it :)

Go to advanced search