Search found 86 matches

by yaim904
Fri Mar 11, 2022 7:13 pm
Forum: Modding help
Topic: Is it possible to export and import information in the same format as the plans?
Replies: 14
Views: 2365

Re: Is it possible to export and import information in the same format as the plans?

robot256 wrote: ↑
Fri Mar 11, 2022 4:54 pm
Yes, you're right, that function would convert any table from Lua to JSon; but, the result would be in JSon, not in the peculiar format of get_map_exchange_string( ).

I think I'll have to create my encryptor.
by yaim904
Fri Mar 11, 2022 4:34 pm
Forum: Modding help
Topic: Is it possible to export and import information in the same format as the plans?
Replies: 14
Views: 2365

Re: Is it possible to export and import information in the same format as the plans?

robot256 wrote: ↑
Fri Mar 11, 2022 2:17 pm
Do you mean that you want to export your custom data table *as though it were a blueprint*?
Yes!!
But from what I understand, it only works for some parts and structures of the game, am I correct?
by yaim904
Thu Mar 10, 2022 11:42 pm
Forum: Modding help
Topic: Is it possible to export and import information in the same format as the plans?
Replies: 14
Views: 2365

Re: Is it possible to export and import information in the same format as the plans?

I have this data, I want to use the export function that Factorio has. [ "JSON " ] = '{"zzYAIM":{"maximum-stack-size":{"Players":{"yaim904":{}}}}}' [ "LUA" ] = { [ 'zzYAIM' ] = { [ 'maximum-stack-size' ] = { [ 'Players' ] = { [ 'yaim904' ] ...
by yaim904
Sat Mar 05, 2022 3:58 pm
Forum: Modding help
Topic: Is it possible to export and import information in the same format as the plans?
Replies: 14
Views: 2365

Re: Is it possible to export and import information in the same format as the plans?

And mods can import/export blueprints into items (not the Library): https://lua-api.factorio.com/latest/LuaItemStack.html#LuaItemStack.import_stack I appreciate the help, but I don't understand how to use these functions export_stack( ) and import_stack( data ) ; and if I can use it for this data: ...
by yaim904
Sat Feb 12, 2022 2:08 am
Forum: Modding help
Topic: How get or calculate value?
Replies: 2
Views: 790

Re: How get or calculate value?

Silari wrote: ↑
Sat Feb 12, 2022 2:02 am
I understand, and thanks for the clarification.

I already found what I was looking for.

research_unit_energy is equal to the research time of a laboratory, without a module or other improvements.

Just what I was looking for.
by yaim904
Fri Feb 11, 2022 11:56 pm
Forum: Modding help
Topic: Help with replicator mod
Replies: 1
Views: 681

Re: Help with replicator mod

What you ask is very complex, however, I recommend you to understand the Breaking Game mod.

In a section the entities, items and recipes of the game are filtered.
by yaim904
Fri Feb 11, 2022 11:46 pm
Forum: Modding help
Topic: How get or calculate value?
Replies: 2
Views: 790

How get or calculate value?

Is there any way to access data.raw from control.lua?? I want the value of technology > Any technology > unit > time [ 'technology' ] = { [ 'electronics' ] = { [ 'type' ] = 'technology', [ 'name' ] = 'electronics', [ 'icon_size' ] = 256, [ 'icon_mipmaps' ] = 4, [ 'icon' ] = '__base__/graphics/techno...
by yaim904
Sun Feb 06, 2022 4:28 am
Forum: Modding help
Topic: Is it possible to export and import information in the same format as the plans?
Replies: 14
Views: 2365

Is it possible to export and import information in the same format as the plans?

I just want to know if there is a way to access the functions that are used to import and export the information, such as the plans or the map.

I want to use those functions to get information from my mod.

If not possible, no problem, I'll build my own function, but I hope they can be used.
by yaim904
Sat Feb 05, 2022 11:32 pm
Forum: Modding help
Topic: How to place a sign in an interface?
Replies: 5
Views: 1115

Re: How to place a sign in an interface?

I know this can be considered SPAM, but I'm commenting in case it helps someone.

Captura de pantalla 2022-02-05 185038.png
Captura de pantalla 2022-02-05 185038.png (21.39 KiB) Viewed 1038 times
I added an empty-widget with the property horizontally_stretchable between the title and the time.
by yaim904
Sat Feb 05, 2022 8:13 pm
Forum: Modding help
Topic: How to place a sign in an interface?
Replies: 5
Views: 1115

Re: How to place a sign in an interface?

robot256 wrote: ↑
Sat Feb 05, 2022 8:09 pm
Actually, it has a height and width property, which would be very useful, but it's only writeable.

Don't worry, we all start somewhere.
by yaim904
Sat Feb 05, 2022 8:07 pm
Forum: Modding help
Topic: How to place a sign in an interface?
Replies: 5
Views: 1115

Re: How to place a sign in an interface?

robot256 wrote: ↑
Sat Feb 05, 2022 8:04 pm
That's a good idea, but...
yaim904 wrote: ↑
Sat Feb 05, 2022 7:40 pm
I want everything to be relative, because the scale is changed.
Anyway, thanks for the idea.
by yaim904
Sat Feb 05, 2022 7:40 pm
Forum: Modding help
Topic: How to place a sign in an interface?
Replies: 5
Views: 1115

How to place a sign in an interface?

Hello, I've been working on an interface, but I don't know how to put a banner in the top right corner, and at the same time, put another banner in the top left corner. Captura de pantalla 2022-02-05 143732.png I found horizontal_align but how do I overlap two elements?? Captura de pantalla 2022-02-...
by yaim904
Thu Dec 16, 2021 10:11 am
Forum: Modding help
Topic: [1.1] How to know if an object is stackable?
Replies: 9
Views: 2030

Re: [1.1] How to know if an object is stackable?

Silari wrote: ↑
Wed Dec 15, 2021 11:49 pm
I understand, thanks for the help.
by yaim904
Wed Dec 15, 2021 8:44 pm
Forum: Modding help
Topic: [1.1] How to know if an object is stackable?
Replies: 9
Views: 2030

Re: [1.1] How to know if an object is stackable?

So ... there is no way to know if they are not stackable??

Is there a way or can items be created in control.lua ??
by yaim904
Wed Dec 15, 2021 4:25 pm
Forum: Modding help
Topic: [1.1] How to know if an object is stackable?
Replies: 9
Views: 2030

Re: [1.1] How to know if an object is stackable?

As I understand it, I cannot modify the armor because it is not of the Item type, but that would mean that I cannot modify the Module type. [ 'speed-module' ] = { [ 'type' ] = 'module' [ 'name' ] = 'speed-module' [ 'localised_description' ] = { .. } [ 'icon' ] = '__space-exploration-graphics__/grap...
by yaim904
Wed Dec 15, 2021 2:56 pm
Forum: Modding help
Topic: [1.1] How to know if an object is stackable?
Replies: 9
Views: 2030

[1.1] How to know if an object is stackable?

What do I want? I want a way to identify the objects that cannot be stacked. Context I am creating some code to alter the size of the stacks in the objects, however I can't find a way to identify the objects that are stackable from those that are not. According to the documentation, there is a flag...
by yaim904
Sat Nov 27, 2021 2:11 am
Forum: Modding help
Topic: [ 1.1 ] How do I see information before the whole game loads?
Replies: 2
Views: 736

Re: [ 1.1 ] How do I see information before the whole game loads?

Klonan wrote: ↑
Fri Nov 26, 2021 11:30 am
I used it, and it worked great for me. Thanks.

But, I noticed that the values ​​are not preserved when changing from Setting to Data, so I do not know I will insist on writing and reading to a file, ... or do you know a way to avoid that data layering?
by yaim904
Fri Nov 26, 2021 11:15 am
Forum: Modding help
Topic: [ 1.1 ] How do I see information before the whole game loads?
Replies: 2
Views: 736

[ 1.1 ] How do I see information before the whole game loads?

Context When the game is loading, some errors usually appear, however, the message that is displayed does not usually give me all the information I need. I want So I want to know how I do to: Personalize the message. Write to file. Motrar another message. Any of the above works for me. Clarificatio...

Go to advanced search