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 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' ] ...
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: ...
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...
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-...
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...
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...
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?
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...