Search found 86 matches

by yaim904
Sun May 01, 2022 11:12 pm
Forum: Modding help
Topic: Help with GUI - stretch scroll-pane
Replies: 2
Views: 483

Help with GUI - stretch scroll-pane

I want to stretch the scroll-pane pointed in the image as 1.
I want it to occupy all the available space, the space is marked as 2.
(11).png
(11).png (8.25 KiB) Viewed 483 times

Attached additional images for more detail of the situation.
by yaim904
Sun Apr 24, 2022 8:12 pm
Forum: Modding help
Topic: Equation to convert value
Replies: 10
Views: 1418

Re: Equation to convert value

SoShootMe wrote: ↑
Sun Apr 24, 2022 6:03 pm
You are seeing the result of the intermediate calculation
you're right
I was seeing an intermediate value.
by yaim904
Sun Apr 24, 2022 5:36 pm
Forum: Modding help
Topic: Equation to convert value
Replies: 10
Views: 1418

Re: Equation to convert value

FuryoftheStars wrote: ↑
Sun Apr 24, 2022 1:12 pm
I think you should check your calculation

Code: Select all

36288000 / ( 60 ^ 3 ) = 216000

But, this equation is fine.
mmmPI wrote: ↑
Sun Apr 24, 2022 9:17 am
(36288000/60)/3600=168
Use a calculator and you will see who is right, after all it is mathematics.
Image
by yaim904
Sun Apr 24, 2022 9:55 am
Forum: Modding help
Topic: Equation to convert value
Replies: 10
Views: 1418

Re: Equation to convert value

Now I understand
Thank you very much
by yaim904
Sun Apr 24, 2022 8:57 am
Forum: Modding help
Topic: Equation to convert value
Replies: 10
Views: 1418

Re: Equation to convert value

coderpatsy wrote: ↑
Sun Apr 24, 2022 3:16 am
your calculations are wrong

Code: Select all

36288000 / ( 60 ^ 3 ) = 216000
by yaim904
Sun Apr 24, 2022 2:43 am
Forum: Modding help
Topic: Equation to convert value
Replies: 10
Views: 1418

Equation to convert value

How to convert the value of the effect in the corresponding time?? [ 'construction-robotics' ] = { [ 'type' ] = 'technology', [ 'name' ] = 'construction-robotics', [ 'icon_size' ] = 256, [ 'icon_mipmaps' ] = 4, [ 'icon' ] = '__base__/graphics/technology/construction-robotics.png', [ 'effects' ] = { ...
by yaim904
Sun Apr 17, 2022 10:53 am
Forum: Modding help
Topic: How do I overlap two images?
Replies: 7
Views: 725

Re: How do I overlap two images?

If you load Factorio and open/start a map, you can see all the available prototypes by pressing "Ctrl-Shift-E". Select the "sprites" or "utility" category to see what is loaded. This has helped me a lot. I have created a code to overlap the images. About to leave so ca...
by yaim904
Fri Apr 15, 2022 11:03 pm
Forum: Modding help
Topic: How do I overlap two images?
Replies: 7
Views: 725

Re: How do I overlap two images?

I'll try to explain this with little apples, maybe the idea is lost in the translation or I'm not explaining myself well (I think it's the second one) This is the prototype of the technology that I will use as a sample, you can find it in the technology window. [ 'toolbelt' ] = { [ 'type' ] = 'tech...
by yaim904
Fri Apr 15, 2022 6:13 pm
Forum: Modding help
Topic: How do I overlap two images?
Replies: 7
Views: 725

Re: How do I overlap two images?

So, Cannot be overlapped the images when the game has started, I have to create the prototype. I thought that if the game shows it, it means that the prototype already exists, but I can't find it. I looked in the prototypes and did not find them. -- data-final-fixes.lua data.raw[ "utility-sprit...
by yaim904
Fri Apr 15, 2022 1:07 pm
Forum: Modding help
Topic: How do I overlap two images?
Replies: 7
Views: 725

How do I overlap two images?

I want to do this Imagen.png I want to start with the turret What item should I use? Picture.type = "choose-elem-button" Picture.type = "sprite-button" This is the picture of the turret Picture.sprite = "item/gun-turret" This is the image of the sight. Picture.sprite =...
by yaim904
Mon Mar 28, 2022 6:36 pm
Forum: Modding help
Topic: Why can't I use this structure in localised in settings??
Replies: 3
Views: 577

Re: Why can't I use this structure in localised in settings??

:shock:
you're right
I built the localized_name wrong
The names in are different local.cfg
And I understood what you escplicate.

Now I can do what I want, build localized_name at runtime.
Thank you, thank you very much.
by yaim904
Mon Mar 28, 2022 1:37 pm
Forum: Modding help
Topic: Why can't I use this structure in localised in settings??
Replies: 3
Views: 577

Why can't I use this structure in localised in settings??

I want to build the description and the name used localised, but it doesn't work the same as for items and entities. --in settings.lua: data:extend({ { type = "string-setting", name = "my-mod-always-difficult", setting_type = "startup", default_value = "yes", ...
by yaim904
Fri Mar 25, 2022 6:47 pm
Forum: Modding help
Topic: How to customize the tooltip or use the default??
Replies: 1
Views: 505

Re: How to customize the tooltip or use the default??

After staring at the code for two hours, I understood the part I was looking for. What I want is part of the normal operation of the "choose-elem-button", in other words, what I wanted was to learn how to use the "choose-elem-button" and I already learned, at least a part. I stil...
by yaim904
Mon Mar 21, 2022 8:12 pm
Forum: Modding help
Topic: How to customize the tooltip or use the default??
Replies: 1
Views: 505

How to customize the tooltip or use the default??

I want to use the default tooltips for technologies and recipes; and how to create a similar one or modify them. Captura de pantalla 2022-03-21 145947.png I saw that FNEI does it, but I don't understand how it does it. I don't understand why it is programmed in OOP, it doesn't have a clear flow or c...
by yaim904
Tue Mar 15, 2022 8:20 pm
Forum: Modding help
Topic: How does research work in PVP?
Replies: 10
Views: 1331

Re: How does research work in PVP?

I understood everything!! :D

And my question changes to: Why is all this not in the API guide?
Thanks for the explanation.
I have to reconstruct a part of the code, but now that I understand it, it excites me.
by yaim904
Mon Mar 14, 2022 11:48 pm
Forum: Modding help
Topic: How does research work in PVP?
Replies: 10
Views: 1331

Re: How does research work in PVP?

LuaForce I feel that the guide lacks more information and/or details. When I tried to see the name of the forces it showed me this. for _, Force in pairs( game.forces ) do log( "'" .. Force.name .. "'" ) end 'player' 'enemy' 'neutral' 'conquest' 'ignore' 'capture' 'friendly' Wha...
by yaim904
Mon Mar 14, 2022 6:45 pm
Forum: Modding help
Topic: How does research work in PVP?
Replies: 10
Views: 1331

Re: How does research work in PVP?

LuaForce
I thought foce.player has all the players.
Pi-C wrote: ↑
Mon Mar 14, 2022 4:52 pm
So, force has force.team1 and force.team2??

Ok, I'm learning a lot.
by yaim904
Mon Mar 14, 2022 4:35 pm
Forum: Modding help
Topic: How does research work in PVP?
Replies: 10
Views: 1331

Re: How does research work in PVP?

FuryoftheStars wrote: ↑
Mon Mar 14, 2022 3:37 pm
So, not exist difference queues for each team.

And i can use the events to do any i want (or can).
Pi-C wrote: ↑
Mon Mar 14, 2022 4:03 pm
I am right??
by yaim904
Mon Mar 14, 2022 3:13 pm
Forum: Modding help
Topic: How does research work in PVP?
Replies: 10
Views: 1331

How does research work in PVP?

Context I'm creating a MOD that interacts with technologies and research, but I don't know how this part of the game works in multiplayer. Questions Each team investigates the technologies separately?? When researching a technology, does it affect both teams? Each team has a different technology qu...
by yaim904
Sat Mar 12, 2022 2:59 am
Forum: Modding help
Topic: Is it possible to export and import information in the same format as the plans?
Replies: 14
Views: 1794

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

Oh, sorry, I should have tested the function myself. Yes, the blueprints uses a binary-to-base-64 translator. Which is also in the API! Try game.encode_string(game.table_to_json(my_table)) I tried it, it's what I'm looking for, thank you very much. To learn what I did wrong, why did you take so lon...

Go to advanced search