Search found 55 matches
- Sun Jun 23, 2019 5:19 am
- Forum: Ideas and Requests For Mods
- Topic: Mod Request for Configuring Power Production
- Replies: 18
- Views: 5387
Re: Mod Request for Configuring Power Production
That explains that then. Out of curiosity what mods add them?
- Sun Jun 23, 2019 5:18 am
- Forum: Modding help
- Topic: Control.lua
- Replies: 1
- Views: 753
Control.lua
Is there a way to get the resistance values from an entity when it is placed? and if possible alter them.
- Sun Jun 23, 2019 4:13 am
- Forum: Ideas and Requests For Mods
- Topic: Mod Request for Configuring Power Production
- Replies: 18
- Views: 5387
Re: Mod Request for Configuring Power Production
Update the mod. I have pushed a new version with a safety check that should prevent it from trying to alter a generator that doesn't use fluid.
- Sun Jun 23, 2019 3:34 am
- Forum: Ideas and Requests For Mods
- Topic: Mod Request for Configuring Power Production
- Replies: 18
- Views: 5387
Re: Mod Request for Configuring Power Production
Odd, I can't get it to repeat the same error on mine. I tested it orignally with 5dim's core and energy mods installed and it ran fine. Do you have any other mods that alter or add generators like the steam engine?
I'm wondering if you have a mod that adds a generator that doesn't use fluid.
I'm wondering if you have a mod that adds a generator that doesn't use fluid.
- Sun Jun 23, 2019 3:29 am
- Forum: Modding help
- Topic: [DONE] Entity Size
- Replies: 2
- Views: 970
Re: Entity Size
Yes, it is collision_box. You should also change selection_box, to make them easier to click.
Note that "container" and "logistic-container" do not support direction, so 1x2 cannot be rotated.
Thanks. I knew they had no rotation so was simply going to do 1x2 and 2x1 versions for those.
- Sun Jun 23, 2019 1:46 am
- Forum: Modding help
- Topic: [DONE] Entity Size
- Replies: 2
- Views: 970
[DONE] Entity Size
I'm working on some new storage buildings but I can't find how to make objects take up more than 1 tile.
I want to make larger storage but have it take 1x2 or 2x2 tiles. Is this tied to the image size or the collision box somehow?
I want to make larger storage but have it take 1x2 or 2x2 tiles. Is this tied to the image size or the collision box somehow?
- Sat Jun 22, 2019 7:52 am
- Forum: Ideas and Requests For Mods
- Topic: Mod Request for Configuring Power Production
- Replies: 18
- Views: 5387
Re: Mod Request for Configuring Power Production
Here is a rough run. It doesn't use in-game settings but does reduce output from steam engines and steam ussage by 1/3.
It affects mod added one and Steam Turbines, as they are classed as Generators too. It is possible to exclude these.
Steam Engines
It affects mod added one and Steam Turbines, as they are classed as Generators too. It is possible to exclude these.
Steam Engines
- Sat Jun 22, 2019 2:02 am
- Forum: Modding help
- Topic: [Done] on_chunk_generated - position
- Replies: 4
- Views: 2023
Re: [Done] on_chunk_generated - position
You can safely comment out any of the game.print() or game.writefile() lines.
To use as part of a larger script, simply call variables x and y for the resulting co-ords.
To use as part of a larger script, simply call variables x and y for the resulting co-ords.
- Sat Jun 22, 2019 12:33 am
- Forum: Ideas and Requests For Mods
- Topic: Mod Request for Configuring Power Production
- Replies: 18
- Views: 5387
Re: Mod Request for Configuring Power Production
Testing of various settings has failed to find a way to alter the steam output for the boiler which makes me think the rate is part of the actual core code and not the lua files.
However if your intention was to run 6 engines per boiler, you could do 300kw and 10 steam per second on the engines ...
However if your intention was to run 6 engines per boiler, you could do 300kw and 10 steam per second on the engines ...
- Fri Jun 21, 2019 11:33 pm
- Forum: Modding help
- Topic: [Done] on_chunk_generated - position
- Replies: 4
- Views: 2023
Re: on_chunk_generated - position
The following script in control.lua will output bounding box and the CENTER to both the console and a file called chunks.log in the %appdata%\Factorio\script-output folder. It uses basic maths to calculate the middle of the x and y rows.
local g = 0
script.on_event(defines.events.on_chunk ...
local g = 0
script.on_event(defines.events.on_chunk ...
- Fri Jun 21, 2019 9:45 pm
- Forum: Ideas and Requests For Mods
- Topic: Mod Request for Configuring Power Production
- Replies: 18
- Views: 5387
Re: Mod Request for Configuring Power Production
Adjusting the main engine alone would not change others however if I knew which mod it would be doable to create a set of code to loop through all generators and multiply the values by X amount. You don't actually change the KW directly but instead, manipulate the effectivity and fluid consumption ...
- Fri Jun 21, 2019 8:29 am
- Forum: Ideas and Requests For Mods
- Topic: Mod Request for Configuring Power Production
- Replies: 18
- Views: 5387
Re: Mod Request for Configuring Power Production
I can't find anything in the files that would allow that but it may be possible using things beyond my knowledge
- Fri Jun 21, 2019 5:30 am
- Forum: Ideas and Requests For Mods
- Topic: Mod Request for Configuring Power Production
- Replies: 18
- Views: 5387
Re: Mod Request for Configuring Power Production
Altering KW on steam engines, Coal consumption for boilers are both doable. Not sure if altering the water usage of boilers can be done but you can alter the amount of steam used by the steam engine meaning 1 boiler will run less engines.
You could also change the amount of water the offshore pumps ...
You could also change the amount of water the offshore pumps ...
- Sat Dec 22, 2018 8:13 pm
- Forum: Modding help
- Topic: Increasing Storage Tank Size.
- Replies: 3
- Views: 5063
Re: Increasing Storage Tank Size.
Thank you. I completely missed the duplicate data.raw, I thought it might be something to do with the - being a special character but wasn't sure how to correct that in lua. I'm used to use \ to escape out things like that.
- Sat Dec 22, 2018 8:51 am
- Forum: Modding help
- Topic: Increasing Storage Tank Size.
- Replies: 3
- Views: 5063
Increasing Storage Tank Size.
Trying to increase the vanilla storage tank size to 100K but I keep getting a Syntax error.
I have these 2 lines in data-updates.lua
data.raw.data.raw.storage-tank["storage-tank"].fluid_box.base_area = 1000
data.raw.storage-tank["storage-tank"].max_health = 1000
But trying to load the game ...
I have these 2 lines in data-updates.lua
data.raw.data.raw.storage-tank["storage-tank"].fluid_box.base_area = 1000
data.raw.storage-tank["storage-tank"].max_health = 1000
But trying to load the game ...