Search found 7 matches
- Wed Jun 08, 2016 6:48 am
- Forum: Modding help
- Topic: making a furnace accept coal + custom item
- Replies: 4
- Views: 2660
Re: making a furnace accept coal + custom item
Ahhh no worries, thanks for the help. I have made it an assembly machine and all is well
- Sat Jun 04, 2016 3:29 pm
- Forum: Ideas and Requests For Mods
- Topic: Character acceleration when running
- Replies: 9
- Views: 3225
Re: Character acceleration when running
Just uploaded a mod here - http://www.factoriomods.com/mods/the-running-man
It has a config file which lets you choose between player and armor mode, player having the bugs mentioned above.
I haven't tested it all to much but armor mode (default) works great.
It has a config file which lets you choose between player and armor mode, player having the bugs mentioned above.
I haven't tested it all to much but armor mode (default) works great.
- Sat Jun 04, 2016 3:27 pm
- Forum: Modding help
- Topic: [SOLVED]Is there an event when I click a machine?
- Replies: 11
- Views: 4574
Re: [SOLVED]Is there an event when I click a machine?
nice to hear you have gotten it all working with some trial and error, good luck with the mod you are creating
- Fri Jun 03, 2016 9:33 am
- Forum: Ideas and Requests For Mods
- Topic: Character acceleration when running
- Replies: 9
- Views: 3225
Re: Character acceleration when running
You could make copies of the player entity a few times say 5 or 6 change the speed on each of them one faster then the other say named player-default, player-speed1, player-speed2, etc
Then you could write a script to change your player between the entities. (I am not sure how this effects ...
Then you could write a script to change your player between the entities. (I am not sure how this effects ...
- Thu Jun 02, 2016 7:05 pm
- Forum: Modding help
- Topic: [SOLVED]Is there an event when I click a machine?
- Replies: 11
- Views: 4574
Re: [SOLVED]Is there an event when I click a machine?
Here is working code to do what you wish to do.
This will raise the custom event when ever an assembly machine is opened
require "defines"
require "util"
events = defines.events
events.machine_opened = script.generate_event_name()
script.on_init(function()
if global.open == nil then ...
This will raise the custom event when ever an assembly machine is opened
require "defines"
require "util"
events = defines.events
events.machine_opened = script.generate_event_name()
script.on_init(function()
if global.open == nil then ...
- Thu Jun 02, 2016 5:57 pm
- Forum: Modding help
- Topic: [SOLVED]Is there an event when I click a machine?
- Replies: 11
- Views: 4574
Re: [SOLVED]Is there an event when I click a machine?
you could always write a custom event.
I am new to modding myself but it is possible that you could look for the open inventory in control.lua
I think you would use get_inventory(inventory)
inventory.assembling_machine_input
inventory.assembling_machine_output
inventory.assembling_machine ...
I am new to modding myself but it is possible that you could look for the open inventory in control.lua
I think you would use get_inventory(inventory)
inventory.assembling_machine_input
inventory.assembling_machine_output
inventory.assembling_machine ...
- Thu Jun 02, 2016 5:16 pm
- Forum: Modding help
- Topic: making a furnace accept coal + custom item
- Replies: 4
- Views: 2660
making a furnace accept coal + custom item
I am trying to make a furnace take two inputs which I would like to be coal and a custom item which name at the moment is new-fuel
I have written it so far like so
{
type = "item",
name = "new-fuel",
icon = "__ModTest__/graphics/icons/new-fuel.png",
flags = {"goes-to-main-inventory ...
I have written it so far like so
{
type = "item",
name = "new-fuel",
icon = "__ModTest__/graphics/icons/new-fuel.png",
flags = {"goes-to-main-inventory ...