Search found 32 matches
- Wed Dec 14, 2022 10:14 pm
- Forum: Modding help
- Topic: update
- Replies: 0
- Views: 232
update
Does anyone know how to optimize the recipe search for a specific mode instead of listing the whole list in data.raw
- Thu Nov 24, 2022 7:39 am
- Forum: Modding help
- Topic: next-upgrade
- Replies: 2
- Views: 510
Re: next-upgrade
DaveMcW wrote: βWed Nov 23, 2022 1:44 amCode: Select all
data.raw["furnace"]["mulcher-3"].collision_box = table.deepcopy( data.raw["furnace"]["mulcher-2"].collision_box )
- Tue Nov 22, 2022 10:16 pm
- Forum: Modding help
- Topic: next-upgrade
- Replies: 2
- Views: 510
next-upgrade
can someone help me i created a new entity and this error appeared with the update
- Sun Oct 30, 2022 6:39 pm
- Forum: Modding help
- Topic: pipe connections
- Replies: 6
- Views: 441
Re: pipe connections
the problem was collision_box, selection_box
and pipe_connections = {{ type = "input", position = {1, 0} }}
I changed the entity to assembler and observed the values ββin the selection_box in relation to the tiles
and pipe_connections = {{ type = "input", position = {1, 0} }}
I changed the entity to assembler and observed the values ββin the selection_box in relation to the tiles
- Sun Oct 30, 2022 4:26 pm
- Forum: Modding help
- Topic: pipe connections
- Replies: 6
- Views: 441
Re: pipe connections
{ type = "storage-tank", name = "fish-tank-pump", icon = "__update-fish__/graphics/icons/fish-farm-icon.png", icon_size = 32, flags = {},--{"placeable-player", "player-creation"}, minable = {mining_time = 0.5, result = "fish-tank-pump"}, m...
- Sun Oct 30, 2022 3:32 pm
- Forum: Modding help
- Topic: pipe connections
- Replies: 6
- Views: 441
Re: pipe connections
I set a high value to test and this message continues
- Sun Oct 30, 2022 3:24 pm
- Forum: Modding help
- Topic: pipe connections
- Replies: 6
- Views: 441
Re: pipe connections
The pipe connection offset is the X and Y distance from the *center of the entity* to the center of *the tile where a pipe can be placed to connect to it*. So if you have a 2x2 entity, a valid connection offset would be {1.5, 0.5}, placing the pipe on one half of the right side. when you say entity...
- Sun Oct 30, 2022 2:30 pm
- Forum: Modding help
- Topic: pipe connections
- Replies: 6
- Views: 441
pipe connections
can someone help me with this code
Code: Select all
fluid_box =
{
base_area = 150,
pipe_covers = pipecoverspictures(),
filter = "water",
pipe_connections =
{
{ position = {0.64, -0.12} },
},
hide_connection_info = true,
},- Sun Oct 16, 2022 8:24 pm
- Forum: Modding help
- Topic: on_player_selected_area
- Replies: 39
- Views: 2405
Re: on_player_selected_area
do you know how to block the player from mining an entity... i want the entity to remain operable but the player cannot mine Maybe you can use this? https://lua-api.factorio.com/latest/LuaEntity.html#LuaEntity.minable Or some players seem to listen for the mine event, and then clone the entity agai...
- Sun Oct 16, 2022 7:50 pm
- Forum: Modding help
- Topic: on_player_selected_area
- Replies: 39
- Views: 2405
Re: on_player_selected_area
do you know how to block the player from mining an entity... i want the entity to remain operable but the player cannot mine
- Sun Oct 16, 2022 11:32 am
- Forum: Modding help
- Topic: on_player_selected_area
- Replies: 39
- Views: 2405
- Sat Oct 15, 2022 2:08 pm
- Forum: Modding help
- Topic: on_player_selected_area
- Replies: 39
- Views: 2405
Re: on_player_selected_area
I've never seen that before. I would just click `Contact Support` and try to get it fixed somehow :) I already sent a message today and I'll have to wait "Due to the high volume of support calls, it may take up to seven business days for our support engineers to respond." I already tried ...
- Sat Oct 15, 2022 10:29 am
- Forum: Modding help
- Topic: on_player_selected_area
- Replies: 39
- Views: 2405
Re: on_player_selected_area
evandro_6565 wrote: βSat Oct 15, 2022 10:28 amI have this problem, I don't know how to solve it. I think it's because of thatStringweasel wrote: βSat Oct 15, 2022 6:38 amI think your profile and/or repository is set to private because I can't open the page![]()
- Sat Oct 15, 2022 10:28 am
- Forum: Modding help
- Topic: on_player_selected_area
- Replies: 39
- Views: 2405
Re: on_player_selected_area
I have this problem, I don't know how to solve it. I think it's because of thatStringweasel wrote: βSat Oct 15, 2022 6:38 amI think your profile and/or repository is set to private because I can't open the page![]()
- Fri Oct 14, 2022 11:20 pm
- Forum: Modding help
- Topic: on_player_selected_area
- Replies: 39
- Views: 2405
Re: on_player_selected_area
here is my repository, I couldn't do the division of the table tab.car, tab.entity but I removed those loops and only the one from the flib was left
- Fri Oct 14, 2022 10:31 am
- Forum: Modding help
- Topic: on_player_selected_area
- Replies: 39
- Views: 2405
Re: on_player_selected_area
worked, returning boolean true value
do you know the code to create this hole through this script
do you know the code to create this hole through this script
- Thu Oct 13, 2022 12:41 pm
- Forum: Modding help
- Topic: on_player_selected_area
- Replies: 39
- Views: 2405
Re: on_player_selected_area
about the "for_n_of" loop i was using table.remove and i noticed that the loop is stopping :( and i reread the flib article and i noticed this do you know how to remove without stopping the loop DO NOT delete entires from tbl from within callback, this will break the iteration. Use the de...
- Thu Oct 13, 2022 10:26 am
- Forum: Modding help
- Topic: on_player_selected_area
- Replies: 39
- Views: 2405
Re: on_player_selected_area
a table receiving another table directly only clones the values ββbut does not create another separate table... for example, tab[1].op and op with value 2 when I copy the table to tab[2] the index "op" if it is changed together the value of tab[1] is changed together. global.recorder[ tag ...
- Tue Oct 11, 2022 6:31 pm
- Forum: Modding help
- Topic: on_player_selected_area
- Replies: 39
- Views: 2405
Re: on_player_selected_area
I found this site I tested it worked...
- Tue Oct 11, 2022 12:02 pm
- Forum: Modding help
- Topic: on_player_selected_area
- Replies: 39
- Views: 2405
Re: on_player_selected_area
I have a question, do you know of a tool to visualize this code: shift = util.by_pixel(x, y) I have to keep opening and closing the game to test the positioning