Try this
data:extend({
{
type = "recipe",
name ="coal-craking",
category = "chemistry",
enabled = "false",
energy_required = 5,
ingredients = {
{type="item", name="coal", amount=12},
},
results = {
{type="fluid", name="crude-oil", amount=4},
},
subgroup = "fluid",
icon = "__base ...
Search found 76 matches
- Sun Apr 24, 2016 12:45 pm
- Forum: Modding help
- Topic: not listing recipe
- Replies: 3
- Views: 2028
- Sun Apr 24, 2016 12:21 pm
- Forum: Modding help
- Topic: not listing recipe
- Replies: 3
- Views: 2028
Re: not listing recipe
your code is not wrapped properly, see below
{
type = "recipe",
name ="coal-craking",
category = "chemistry",
enabled = "false",
energy_required = 5,
ingredients =
{
{type="item", name="coal", amount=12},
},
results=
{
{type="fluid", name="crude-oil", amount=4}
},
subgroup = "fluid ...
{
type = "recipe",
name ="coal-craking",
category = "chemistry",
enabled = "false",
energy_required = 5,
ingredients =
{
{type="item", name="coal", amount=12},
},
results=
{
{type="fluid", name="crude-oil", amount=4}
},
subgroup = "fluid ...
- Sun Apr 24, 2016 12:10 pm
- Forum: Modding help
- Topic: Electricity help
- Replies: 1
- Views: 961
Re: Electricity help
try adding the following to all of your rails in prototypes
type = "assembling-machine",
crafting_categories = {"no-recipe-category"},
fixed_recipe = "no-recipe",
ingredient_count = 0,
and then adding the following to your recipes
{
type = "recipe",
name = "no-recipe",
enabled = true ...
type = "assembling-machine",
crafting_categories = {"no-recipe-category"},
fixed_recipe = "no-recipe",
ingredient_count = 0,
and then adding the following to your recipes
{
type = "recipe",
name = "no-recipe",
enabled = true ...
- Sun Apr 24, 2016 11:25 am
- Forum: Modding help
- Topic: wierd bug with transport lines and game.tick
- Replies: 8
- Views: 3688
Re: wierd bug with transport lines and game.tick
Yeah, here's the appropriate onLoad stuff.
script.on_load(setup)
function setup()
global.onTickFunctions = global.onTickFunctions or {}
global.elevator_association = global.elevator_association or {}
global.item_elevator = global.item_elevator or {}
global.surface_drillers = global.surface ...
script.on_load(setup)
function setup()
global.onTickFunctions = global.onTickFunctions or {}
global.elevator_association = global.elevator_association or {}
global.item_elevator = global.item_elevator or {}
global.surface_drillers = global.surface ...
- Sun Apr 24, 2016 9:42 am
- Forum: Modding help
- Topic: wierd bug with transport lines and game.tick
- Replies: 8
- Views: 3688
wierd bug with transport lines and game.tick
In multiplayer I have a wierd desync issue with one of our mods, I've tried to fix it to no avail and quite frankly have no idea what I'm doing anymore. I have the feeling that it has something to do with the transport belts not performing the same action on all clients at the same time. The desync ...
- Sat Apr 23, 2016 2:00 pm
- Forum: Mods
- Topic: [WIP][0.12.22+] Subsurfaces 0.0.4 : build beneath your base
- Replies: 222
- Views: 173376
Re: [WIP][0.12.22+] Subsurfaces 0.0.4 : build beneath your base
We are getting a desync error in multiplayer whenever items get stuck in the independent item elevators, as well as when they get stuck in the item elevators that come with the surface drill. Isolated the issue from earlier, I think it has something to do with the move_items function.
- Sun Apr 17, 2016 1:28 pm
- Forum: Mods
- Topic: [Mod 0.12.29] Space Factorio 0.2.4
- Replies: 27
- Views: 19460
Re: [Mod 0.12.29] Space Factorio 0.2.3
Line 52 of control.lua causes a crash when attempting to create world in singleplayer, here's the fix I found for it.
Code: Select all
if global.space_status == "locked" and game.get_player(1) and read_satellites_sent_from_gui(game.get_player(1).force) then- Thu Apr 14, 2016 3:37 am
- Forum: Mods
- Topic: [WIP][0.12.22+] Subsurfaces 0.0.4 : build beneath your base
- Replies: 222
- Views: 173376
Re: [WIP][0.12.22+] Subsurfaces 0.0.3 : build beneath your base
fixed a bug when placing multiple digging robot machines near each other, see my fork on github.
- Thu Apr 14, 2016 2:24 am
- Forum: Mods
- Topic: [WIP][0.12.22+] Subsurfaces 0.0.4 : build beneath your base
- Replies: 222
- Views: 173376
Re: [WIP][0.12.22+] Subsurfaces 0.0.3 : build beneath your base
We can't get the digging robots to work in multiplayer because you are using the global player variable which only works in singleplayer. You will need to update to use the get_player method instead, which will need more parameters to be passed to most of your methods for player index, etc. See ...
- Wed Apr 13, 2016 5:19 pm
- Forum: Mods
- Topic: [WIP][0.12.22+] Subsurfaces 0.0.4 : build beneath your base
- Replies: 222
- Views: 173376
Re: [WIP][0.12.22+] Subsurfaces 0.0.3 : build beneath your base
We can't get the digging robots to work in multiplayer because you are using the global player variable which only works in singleplayer. You will need to update to use the get_player method instead, which will need more parameters to be passed to most of your methods for player index, etc. See here ...
- Wed Apr 13, 2016 12:28 pm
- Forum: Mods
- Topic: [WIP][0.12.22+] Subsurfaces 0.0.4 : build beneath your base
- Replies: 222
- Views: 173376
Re: [WIP][0.12.22+] Subsurfaces 0.0.3 : build beneath your base
Also encountered another bug, this time with the underground fluid tanks. Whenever piping more than 1 fluid into the tank by accident it crashes if the fluid in the tank gets below 1.
"Error while running the event handler: __Subsurface__/control.lua:426: attempt to compare boolean with number"
"Error while running the event handler: __Subsurface__/control.lua:426: attempt to compare boolean with number"
- Wed Apr 13, 2016 10:52 am
- Forum: Mods
- Topic: [WIP][0.12.22+] Subsurfaces 0.0.4 : build beneath your base
- Replies: 222
- Views: 173376
Re: [WIP][0.12.22+] Subsurfaces 0.0.3 : build beneath your base
Ok so I changed line 364 from "if time_spent_dict == 0 then", to "if associative_table_count(time_spent_dict) == 0 then"
One of us got ----Error while running the event handler: __Subsurface__/lib.lua:86: bad argument #1 to 'pairs' (table expected, got number)----
did you remove the ...
One of us got ----Error while running the event handler: __Subsurface__/lib.lua:86: bad argument #1 to 'pairs' (table expected, got number)----
did you remove the ...
- Wed Apr 13, 2016 9:46 am
- Forum: Mods
- Topic: [WIP][0.12.22+] Subsurfaces 0.0.4 : build beneath your base
- Replies: 222
- Views: 173376
Re: [WIP][0.12.22+] Subsurfaces 0.0.3 : build beneath your base
Ok so I changed line 364 from "if time_spent_dict == 0 then", to "if associative_table_count(time_spent_dict) == 0 then"
One of us got ----Error while running the event handler: __Subsurface__/lib.lua:86: bad argument #1 to 'pairs' (table expected, got number)----
did you remove the ...
One of us got ----Error while running the event handler: __Subsurface__/lib.lua:86: bad argument #1 to 'pairs' (table expected, got number)----
did you remove the ...
- Wed Apr 13, 2016 9:27 am
- Forum: Mods
- Topic: [WIP][0.12.22+] Subsurfaces 0.0.4 : build beneath your base
- Replies: 222
- Views: 173376
Re: [WIP][0.12.22+] Subsurfaces 0.0.3 : build beneath your base
Ok so I changed line 364 from "if time_spent_dict == 0 then", to "if associative_table_count(time_spent_dict) == 0 then"
One of us got ----Error while running the event handler: __Subsurface__/lib.lua:86: bad argument #1 to 'pairs' (table expected, got number)----
did you remove the ...
One of us got ----Error while running the event handler: __Subsurface__/lib.lua:86: bad argument #1 to 'pairs' (table expected, got number)----
did you remove the ...
- Tue Apr 12, 2016 4:18 am
- Forum: Mods
- Topic: [WIP][0.12.22+] Subsurfaces 0.0.4 : build beneath your base
- Replies: 222
- Views: 173376
Re: [WIP][0.12.22+] Subsurfaces 0.0.3 : build beneath your base
Another bug occured after some testing with your dev version:
Error while running the event handler: __Subsurface__/control.lua:827: Invalid surface name: Surface names must not be blank and must be unique
This happened when we destroyed a drill and restarted the server because my friend was stuck ...
Error while running the event handler: __Subsurface__/control.lua:827: Invalid surface name: Surface names must not be blank and must be unique
This happened when we destroyed a drill and restarted the server because my friend was stuck ...
- Mon Apr 11, 2016 4:32 am
- Forum: Mods
- Topic: [WIP][0.12.22+] Subsurfaces 0.0.4 : build beneath your base
- Replies: 222
- Views: 173376
Re: [WIP][0.12.22+] Subsurfaces 0.0.3 : build beneath your base
While in multiplayer errors out every time one of us tries to go underground after pausing when gui comes up, after crashing the server error reads:
"Error while running the event handler:
__Subsurface__/control.lua:290 Gui element with name teleportation_progress container already present in the ...
"Error while running the event handler:
__Subsurface__/control.lua:290 Gui element with name teleportation_progress container already present in the ...