Search found 136 matches

by yaim904
Wed Nov 19, 2025 9:11 pm
Forum: Modding help
Topic: [2.0.72] Intermediate products are not working
Replies: 12
Views: 1712

Re: [2.0.72] Intermediate products are not working

I suppose the translator, my English, and my explanation are so poor that the problem is unclear.
I prefer to believe that, rather than have no one from Wube or the members of this forum see this and think that everything is fine.
by yaim904
Thu Nov 13, 2025 2:14 am
Forum: Modding help
Topic: Unable to use deconstruction, upgrade, or BP on loader-1x1 deepcopy entity
Replies: 2
Views: 395

Re: Unable to use deconstruction, upgrade, or BP on loader-1x1 deepcopy entity

Maybe it's because you didn't remove the hidden property from the entity, or because mining doesn't return an item.

I'm not sure, but you can start there.

I would like to help you more, but your code is not functional.
by yaim904
Sat Nov 08, 2025 1:31 am
Forum: Modding help
Topic: [2.0.72] Intermediate products are not working
Replies: 12
Views: 1712

Re: [2.0.69] How fixed?? It's a bug??


Thank you for the observation. English is not my native language.




I have created alternative recipes to create the items, but for some reason the intermediate products are not working.

I am attaching photographic evidence and test code showing the problem.

Note the number of transport belts ...
by yaim904
Sat Nov 08, 2025 1:16 am
Forum: Modding help
Topic: How to modify entity.tags?
Replies: 7
Views: 534

Re: How to modify entity.tags?





storage["MyPrefix"] = {}
local Save = storage["MyPrefix"]
local Entity_test = "signal-logger"
-- local Entity_test = "steel-chest"

local function create_gui(player, entity)
game.print("entity")
game.print(entity.unit_number)
end

local function create_ghost_gui(player, ghost, event)
game ...
by yaim904
Fri Nov 07, 2025 10:41 pm
Forum: Modding help
Topic: Why isn’t this event handler working?
Replies: 3
Views: 376

Re: Why isn’t this event handler working?



Since you have worked with other languages, you surely understand the basic concepts of programming, so I will get straight to the point.

In Lua, variables do not have a specific type, so you must be careful with values and take advantage of that in your code.
Functions can be declared in two ...
by yaim904
Fri Nov 07, 2025 10:03 pm
Forum: Modding help
Topic: [2.0.72] Intermediate products are not working
Replies: 12
Views: 1712

Re: [2.0.69] How fixed?? It's a bug??

Hello, it's been almost a month since my last post.

I was hoping to have an answer by now, but I still don't know where the error is or if it's a bug.

Today I downloaded version 2.0.72 and the error is still there.

If I need to create another separate post, I will if no one responds, because I ...
by yaim904
Tue Oct 14, 2025 10:23 pm
Forum: Modding help
Topic: [2.0.72] Intermediate products are not working
Replies: 12
Views: 1712

Re: [2.0.39] How fixed?? It's a bug??

Hello, it's me again.
Yesterday I was updating the MOD that uses this code, and I was surprised to find that it doesn't work.

After carefully reviewing it, I found the reason.
It works with only iron plates : Yes
(52).png
(53).png


It works with only iron gears : Yes
(49).png
(50).png ...
by yaim904
Wed Jul 30, 2025 1:45 am
Forum: Modding help
Topic: How do I open a GUI with the radar?
Replies: 5
Views: 589

Re: How do I open a GUI with the radar?

Osmo wrote: Tue Jul 29, 2025 9:38 pm
Thanks for the information, I didn't know that property worked that way.

I tried it and it keeps the animation going, but regardless of whether or not it has power.

I tried an electrical interface, but it doesn't have connections for the red and green cables.

The roboport continues to win.
by yaim904
Tue Jul 29, 2025 7:25 pm
Forum: Modding help
Topic: How do I open a GUI with the radar?
Replies: 5
Views: 589

Re: How do I open a GUI with the radar?





What you mean is...
It only works if the entity prototype has a GUI?

I can only find two entities that meet the requirements I'm looking for (Radar and Roboport):
1. The animation is infinite from the moment it is created (without player intervention).
2. It allows red and green cables to ...
by yaim904
Mon Jul 28, 2025 3:08 am
Forum: Modding help
Topic: How do I open a GUI with the radar?
Replies: 5
Views: 589

How do I open a GUI with the radar?

I have a GUI that I want to open with the Radars.
When I try to open the radar GUI, the on_gui_opened event is not triggered.


script.on_event({
defines.events.on_gui_opened
}, function(event)
game.players[event.player_index].print("Event: Actived")
end)


What am I doing wrong?
How do I fix ...
by yaim904
Sun Jul 27, 2025 3:53 pm
Forum: Modding help
Topic: [Solved] How do I change the sound of a dropdown menu?
Replies: 6
Views: 616

Re: How do I change the sound of a dropdown menu?

EvilPLa wrote: Sun Jul 27, 2025 2:07 pm
This is what I need.
Thank you very much.
by yaim904
Sat Jul 26, 2025 8:32 pm
Forum: Modding help
Topic: [Solved] How do I change the sound of a dropdown menu?
Replies: 6
Views: 616

Re: How do I change the sound of a dropdown menu?



Seeing your response, it's possible that I didn't explain myself correctly.

I want to change the sound when selecting one of the options displayed.


I am already changing the style of the dropdown.


But, I still appreciate your response.

The following is the last code I tried, but it doesn ...
by yaim904
Fri Jul 25, 2025 11:17 pm
Forum: Modding help
Topic: [2.0.60] Event "on_player_placed_equipment" Firing Twice
Replies: 2
Views: 474

Re: [2.0.60] Event "on_player_placed_equipment" Firing Twice

I tested your code and you're right.
Perhaps you should use another event.

Code: Select all

defines.events.on_equipment_inserted
on_equipment_inserted

Try it and let me know if it works for you. I'll be waiting to hear from you.
by yaim904
Fri Jul 25, 2025 11:27 am
Forum: Modding help
Topic: [Solved] How do I change the sound of a dropdown menu?
Replies: 6
Views: 616

[Solved] How do I change the sound of a dropdown menu?

Hello, I am creating an interface and would like to customize the selection sound.
(10).png



I created the custom dropdown style.

Styles["zzzYAIM0425_0900_drop_down_channels"] = {
type = "dropdown_style",
width = 282 + 32
}

(11).png



When the options are displayed, each option has a ...
by yaim904
Thu Jul 24, 2025 9:06 pm
Forum: Modding help
Topic: [Solved] How do I upload a sound to use when pressing a button?
Replies: 2
Views: 324

Re: How do I upload a sound to use when pressing a button?

My solution

---> data-final-fixes.lua <---
data:extend({{
type = "sound",
name = "gui_tool_button",
filename = "__core__/sound/gui-tool-button.ogg"
}})

---> control.lua <---
Player.play_sound({ path = "gui_tool_button" })



Thanks for the message.
The truth is that I solved it on my own ...
by yaim904
Wed Jul 23, 2025 12:02 pm
Forum: Modding help
Topic: [Solved] How do I upload a sound to use when pressing a button?
Replies: 2
Views: 324

[Solved] How do I upload a sound to use when pressing a button?

Hello, today I wanted to use a sound that comes with Factorio, but it is not available for use in mods. So I am trying to load it myself and then call it.
It is not working for me.

Help

The following is the code I am using.


---> data-final-fixes.lua <---
data.raw["utility-sounds"]["default ...
by yaim904
Tue Jun 10, 2025 2:56 am
Forum: Modding help
Topic: [Solved] What will happen to entities when merging two forces?
Replies: 5
Views: 645

Re: What will happen to entities when merging two forces?

robot256 wrote: Tue Jun 10, 2025 2:50 am
Now I understand, thanks for the clarification.
Out of curiosity, at what point do the forces combine? I can't imagine a scenario where two forces merge.
by yaim904
Tue Jun 10, 2025 2:30 am
Forum: Modding help
Topic: [Solved] What will happen to entities when merging two forces?
Replies: 5
Views: 645

Re: What will happen to entities when merging two forces?

robot256 wrote: Tue Jun 10, 2025 1:53 am
Thanks for the answer
I think the message got lost in translation.
The entities will be destroyed?
I have to change the force on the entities?
Please be more detailed, I don't know much about the force.
by yaim904
Tue Jun 10, 2025 1:19 am
Forum: Modding help
Topic: [Solved] What will happen to entities when merging two forces?
Replies: 5
Views: 645

[Solved] What will happen to entities when merging two forces?

I want to program the event on_forces_merged, but I don't know what happens with the entities in forces to be eliminated, are they destroyed? are they kept and the force is changed? or what happens?

I know it's a simple question, but I don't know of an event that merges forces for testing.
by yaim904
Mon Jun 09, 2025 6:13 pm
Forum: Modding help
Topic: [Solved] How to disconnect the radar from the signal network?
Replies: 2
Views: 501

Re: How to disconnect the radar from the signal network?

boskid wrote: Mon Jun 09, 2025 1:38 pm
I had not realized this property.
THANK YOU VERY MUCH.

Go to advanced search