Search found 114 matches

by yaim904
Sat May 17, 2025 12:54 am
Forum: Modding help
Topic: cannot read recipe subgroup from data.raw
Replies: 3
Views: 206

Re: cannot read recipe subgroup from data.raw


I don't see any error in your code, I think you are missing information.

I suggest changing this line

new_recipe.localised_name=recipe.name


To the following line, if you want to assign a name to the object depending on the language and not just the name of the object.

new_recipe ...
by yaim904
Tue May 13, 2025 1:42 am
Forum: Modding help
Topic: GUI update (Help me, Please)
Replies: 4
Views: 275

Re: GUI update (Help me, Please)

eugenekay wrote: Sun May 11, 2025 8:55 pm
This may help me, thank you very much.
by yaim904
Sun May 11, 2025 3:31 pm
Forum: Modding help
Topic: GUI update (Help me, Please)
Replies: 4
Views: 275

Re: GUI update (Help me, Please)

Now I have another question

Before I used to use this line to close the menu when using Esc, E or opening another menu; but now it is not working.
player.opened = main_frame

Can you tell me
What I am doing wrong?

The following code is functional
---> control.lua <---
script.on_event(defines ...
by yaim904
Sat May 03, 2025 12:34 am
Forum: Modding help
Topic: GUI update (Help me, Please)
Replies: 4
Views: 275

Re: [2.0.43] GUI update (Help me, Please)

I have created a Frame as the main container
But I don't know how to add the buttons in the title bar.
In the images you can see that there are two children
How can I select a children from an element ...
by yaim904
Fri May 02, 2025 9:08 pm
Forum: Gameplay Help
Topic: How to deactivate the Flat character GUI
Replies: 2
Views: 237

Re: How to deactivate the Flat character GUI

NineNine wrote: Fri May 02, 2025 6:38 pm
What I want to do is, hide the character's inventory, something that could be done in previous versions, but I don't know how to do it now.
by yaim904
Fri May 02, 2025 12:24 pm
Forum: Gameplay Help
Topic: How to deactivate the Flat character GUI
Replies: 2
Views: 237

How to deactivate the Flat character GUI

I want to see only the recipes and not the character's inventory.
Screenshot (8).png
Screenshot (8).png (136.03 KiB) Viewed 237 times
Captura de pantalla (356).png
Captura de pantalla (356).png (140.16 KiB) Viewed 237 times
by yaim904
Thu May 01, 2025 6:05 pm
Forum: Modding help
Topic: GUI update (Help me, Please)
Replies: 4
Views: 275

GUI update (Help me, Please)

Context
Some time ago I created my version of Star whit items, but I couldn't get the GUI to look like the Vanilla GUI.

Now that I'm updating it, I'm in the same place, I don't know what styles to use and in what sequence to use; I also didn't find updated guides on the subject.

I tried to check ...
by yaim904
Wed Apr 30, 2025 1:43 pm
Forum: Modding help
Topic: [Solved][2.0.43] How can I set the icon for a recipe?
Replies: 5
Views: 250

Re: [2.0.43] How can I set the icon for a recipe?



Changing the names separates the recipes from the object.

It's not what I expected but it might work for me.
Thank you.

I still find it strange that the recipe ignores its own icons in favour of the result icons ...
by yaim904
Wed Apr 30, 2025 1:32 am
Forum: Modding help
Topic: [Solved][2.0.43] How can I set the icon for a recipe?
Replies: 5
Views: 250

Re: [2.0.43] How can I set the icon for a recipe?



I changed the localised_name in the following code but it is the same result.


---------------------------------------------------------------------------------------------------
---> data.lua ...
by yaim904
Mon Apr 28, 2025 10:50 am
Forum: Modding help
Topic: [Solved][2.0.43] How can I set the icon for a recipe?
Replies: 5
Views: 250

Re: [2.0.43] How can I set the icon for a recipe?

What I mean is, what is the point of defining the icons of the recipes if in the end they will be ignored and another one will be used.
by yaim904
Sun Apr 27, 2025 4:54 pm
Forum: Modding help
Topic: cannot read recipe subgroup from data.raw
Replies: 3
Views: 206

Re: cannot read recipe subgroup from data.raw

I think I can help you, but I don't understand the explanation.

Can you give me a code or before and after data?
by yaim904
Sun Apr 27, 2025 4:29 pm
Forum: Modding help
Topic: [Solved][2.0.43] How can I set the icon for a recipe?
Replies: 5
Views: 250

[Solved][2.0.43] How can I set the icon for a recipe?

Context
I am creating a new object with its own icon. The new object is used in two recipes.

What I am trying to do is that each recipe has a different icon.

The following code is functional and the image shows the problem ...
by yaim904
Wed Apr 16, 2025 3:02 pm
Forum: Modding help
Topic: [Solved][[2.0.39] How fixed?? It's a bug??
Replies: 6
Views: 512

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

I didn't hear that this was resolved.
I just checked and it is now working.
Thank you.
by yaim904
Fri Mar 14, 2025 6:07 pm
Forum: Modding help
Topic: mod_gui without children
Replies: 2
Views: 315

Re: mod_gui without children

Hi, can you share the code to do some tests?
It doesn't have to be everything, just the essentials.
by yaim904
Fri Mar 14, 2025 5:31 pm
Forum: Modding help
Topic: Is it possible to put the recipes of a subgroup together??
Replies: 1
Views: 169

Re: Is it possible to put the recipes of a subgroup together??

No, you can't.
By default they are organized by placing the objects/recipes first and then the alternative recipes.
by yaim904
Fri Mar 14, 2025 5:20 pm
Forum: Modding help
Topic: TabbedPane with tabs on bottom?
Replies: 1
Views: 163

Re: TabbedPane with tabs on bottom?

Hi, I don't know much about GUI, but I think there is no easy way to do it, I mean, the one that comes programmed doesn't include it.

But I think you can play with shapes and colors to simulate one.
by yaim904
Fri Mar 14, 2025 12:25 am
Forum: Modding help
Topic: [Solved][[2.0.39] How fixed?? It's a bug??
Replies: 6
Views: 512

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

Update
This is the simplified and FUNCTIONAL example code, it still has the error, and I still don't know why it doesn't work not with the gears but with the other objects.


--- --- --- --- --- --- --- --- --- --- --- --- --- ---
---> data.lua ...
by yaim904
Thu Mar 13, 2025 11:14 pm
Forum: Modding help
Topic: [Solved][[2.0.39] How fixed?? It's a bug??
Replies: 6
Views: 512

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

I think I have made some progress on this issue.

I am now using this code, which works fine with all objects in the game, except iron gears.

This code is NOT FUNCTIONAL , it is only for reference.

--- Contenedor de las recetas
GPrefix.addDataRaw({
{ type = "recipe-category", name = ThisMOD ...
by yaim904
Thu Mar 13, 2025 1:11 am
Forum: Modding help
Topic: [Solved][[2.0.39] How fixed?? It's a bug??
Replies: 6
Views: 512

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



Thank you, but that does not solve the problem, it evades it, but does not solve it.

With iron plates it works without any problem.

Captura de pantalla (16).png


I am looking for everything to work the same way.

The result of the recipe should be included in the other recipes, as seen in ...
by yaim904
Wed Mar 12, 2025 11:20 pm
Forum: Modding help
Topic: [Solved][[2.0.39] How fixed?? It's a bug??
Replies: 6
Views: 512

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

This message has been deleted by the author

Go to advanced search