Search found 31 matches

by evandro_6565
Thu Nov 24, 2022 7:39 am
Forum: Modding help
Topic: next-upgrade
Replies: 2
Views: 260

Re: next-upgrade

DaveMcW wrote: ↑
Wed Nov 23, 2022 1:44 am

Code: Select all

data.raw["furnace"]["mulcher-3"].collision_box = table.deepcopy( data.raw["furnace"]["mulcher-2"].collision_box )
:D thank you it worked
by evandro_6565
Tue Nov 22, 2022 10:16 pm
Forum: Modding help
Topic: next-upgrade
Replies: 2
Views: 260

next-upgrade

can someone help me i created a new entity and this error appeared with the update
error.png
error.png (24.4 KiB) Viewed 258 times
by evandro_6565
Sun Oct 30, 2022 6:39 pm
Forum: Modding help
Topic: pipe connections
Replies: 6
Views: 207

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 :)
by evandro_6565
Sun Oct 30, 2022 4:26 pm
Forum: Modding help
Topic: pipe connections
Replies: 6
Views: 207

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...
by evandro_6565
Sun Oct 30, 2022 3:32 pm
Forum: Modding help
Topic: pipe connections
Replies: 6
Views: 207

Re: pipe connections

I set a high value to test and this message continues
by evandro_6565
Sun Oct 30, 2022 3:24 pm
Forum: Modding help
Topic: pipe connections
Replies: 6
Views: 207

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...
by evandro_6565
Sun Oct 30, 2022 2:30 pm
Forum: Modding help
Topic: pipe connections
Replies: 6
Views: 207

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,
  },
bug.png
bug.png (28.02 KiB) Viewed 207 times
by evandro_6565
Sun Oct 16, 2022 8:24 pm
Forum: Modding help
Topic: on_player_selected_area
Replies: 39
Views: 1325

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...
by evandro_6565
Sun Oct 16, 2022 7:50 pm
Forum: Modding help
Topic: on_player_selected_area
Replies: 39
Views: 1325

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
by evandro_6565
Sun Oct 16, 2022 11:32 am
Forum: Modding help
Topic: on_player_selected_area
Replies: 39
Views: 1325

Re: on_player_selected_area


try testing again

the message has been withdrawn
by evandro_6565
Sat Oct 15, 2022 2:08 pm
Forum: Modding help
Topic: on_player_selected_area
Replies: 39
Views: 1325

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 ...
by evandro_6565
Sat Oct 15, 2022 10:29 am
Forum: Modding help
Topic: on_player_selected_area
Replies: 39
Views: 1325

Re: on_player_selected_area

evandro_6565 wrote: ↑
Sat Oct 15, 2022 10:28 am
Stringweasel wrote: ↑
Sat Oct 15, 2022 6:38 am
evandro_6565 wrote: ↑
Fri Oct 14, 2022 11:20 pm
here is my repository,
I think your profile and/or repository is set to private because I can't open the page :)
I have this problem, I don't know how to solve it. I think it's because of that
sm.png
sm.png (26.68 KiB) Viewed 366 times
by evandro_6565
Sat Oct 15, 2022 10:28 am
Forum: Modding help
Topic: on_player_selected_area
Replies: 39
Views: 1325

Re: on_player_selected_area

Stringweasel wrote: ↑
Sat Oct 15, 2022 6:38 am
evandro_6565 wrote: ↑
Fri Oct 14, 2022 11:20 pm
here is my repository,
I think your profile and/or repository is set to private because I can't open the page :)
I have this problem, I don't know how to solve it. I think it's because of that
by evandro_6565
Fri Oct 14, 2022 11:20 pm
Forum: Modding help
Topic: on_player_selected_area
Replies: 39
Views: 1325

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
by evandro_6565
Fri Oct 14, 2022 10:31 am
Forum: Modding help
Topic: on_player_selected_area
Replies: 39
Views: 1325

Re: on_player_selected_area

worked, returning boolean true value :)


do you know the code to create this hole through this script
as.png
as.png (587.87 KiB) Viewed 417 times
by evandro_6565
Thu Oct 13, 2022 12:41 pm
Forum: Modding help
Topic: on_player_selected_area
Replies: 39
Views: 1325

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...
by evandro_6565
Thu Oct 13, 2022 10:26 am
Forum: Modding help
Topic: on_player_selected_area
Replies: 39
Views: 1325

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 ...
by evandro_6565
Tue Oct 11, 2022 6:31 pm
Forum: Modding help
Topic: on_player_selected_area
Replies: 39
Views: 1325

Re: on_player_selected_area

I found this site I tested it worked... :)
by evandro_6565
Tue Oct 11, 2022 12:02 pm
Forum: Modding help
Topic: on_player_selected_area
Replies: 39
Views: 1325

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
by evandro_6565
Tue Oct 11, 2022 11:58 am
Forum: Modding help
Topic: on_player_selected_area
Replies: 39
Views: 1325

Re: on_player_selected_area

I got it, good idea to ignore entities in the table to optimize the mod this lessens the effort in the loop. :) I'm still learning to use github... in the debugger where exactly the location of the launch file would be. in the mod folder.. : it generated this I have to change something.. { // Use In...

Go to advanced search