Search found 68 matches

by Linver
Wed Feb 19, 2020 7:21 am
Forum: Implemented mod requests
Topic: Add surface property to LuaTile
Replies: 6
Views: 124

Re: Add surface property to LuaTile

Hi eradicator, so if I have understand because LuaPlayer and player character(LuaEntity) both extend LuaControl, they have surface property, but surface for LuaPlayer is in what surface the player camera is in that tick and for character is where the actual associeted character is? Anyway in this ca...
by Linver
Tue Feb 18, 2020 7:06 pm
Forum: Implemented mod requests
Topic: Add surface property to LuaTile
Replies: 6
Views: 124

Add surface property to LuaTile

Hi, I just wondering if is possible add to class LuaTile the surface[R] property . There's some cases where from set of returned tiles is impossible to understand in what surface they are, for example in the event on_player_selected_area: Called after a player selects an area with a selection-tool i...
by Linver
Sun Feb 02, 2020 1:58 pm
Forum: Modding help
Topic: Dumb question from a non-modder
Replies: 37
Views: 781

Re: Dumb question from a non-modder

Hi, some details are missing, so I don't get what are u doing wrong, but I will list some possible problems hoping one of this will help u: Prototypes are indexed by name. If ur mod or all loaded mods add to the game two prototypes, for example two equipment grids with the same name, they exist and ...
by Linver
Mon Jan 27, 2020 1:18 am
Forum: Wiki Talk
Topic: "burner-generator" Prototype Page
Replies: 1
Views: 220

"burner-generator" Prototype Page

Hi to all, I have some modded entities that used "generator" prototype with burner attribute in 0.17 and I want migrate it to 0.18, changing the prototype to the new introduced in the 0.18 I discover that this attributes: horizontal_animation :: Animation vertical_animation :: Animation In burner-ge...
by Linver
Wed Jan 15, 2020 10:53 pm
Forum: Modding help
Topic: Factorio achievements background (gears) images
Replies: 4
Views: 163

Re: Factorio achievements background (gears) images

I have mention the mod authors for the work on images
by Linver
Wed Jan 15, 2020 2:28 pm
Forum: Modding help
Topic: Factorio achievements background (gears) images
Replies: 4
Views: 163

Re: Factorio achievements background (gears) images

Thank u for the tip, I have try to ask on the mod portal,
anyway the mod page seems quiet, I don't know if I will get an answer.
by Linver
Tue Jan 14, 2020 8:19 am
Forum: Modding help
Topic: Factorio achievements background (gears) images
Replies: 4
Views: 163

Factorio achievements background (gears) images

Hi to all again!
Would anyone have the gears (I think is five or six, normal bronze silver gold red) in background used in Factorio achievements images? I need the empty one for add custom achievements to a mod.
by Linver
Mon Jan 06, 2020 8:27 am
Forum: Modding help
Topic: Help with damage value
Replies: 2
Views: 98

Re: Help with damage value

I dunno if this can help. This is an old code that I made for change the damage of some turrets of a mod, maybe can help u as an example: function applyDamageMultiplierOnAmmo(_target_effects) for _, target_effect in pairs(_target_effects) do if target_effect.damage then target_effect.damage.amount =...
by Linver
Mon Jan 06, 2020 8:23 am
Forum: Modding help
Topic: Synchronize two inserters filters and network connections
Replies: 4
Views: 137

Re: Synchronize two inserters filters and network connections

Hi DaveMcW, maybe I have understand, but about on_gui_closed: on_gui_closed ... Note: It's not advised to open any other GUI during this event because if this is run as a request to open a different GUI the game will force close the new opened GUI without notice to ensure the original requested GUI ...
by Linver
Sun Jan 05, 2020 4:35 pm
Forum: Modding help
Topic: Synchronize two inserters filters and network connections
Replies: 4
Views: 137

Re: Synchronize two inserters filters and network connections

Hi PyroFire, nice to talk to u again! Sorry but I didn't have understand ur comment completely. OK, I suppose that from on_gui_closed I can in some way get the entity associated to the filter gui (right?), and on_entity_settings_pasted? The documentation (as always) is very generic: on_entity_settin...
by Linver
Sun Jan 05, 2020 7:56 am
Forum: Modding help
Topic: Synchronize two inserters filters and network connections
Replies: 4
Views: 137

Synchronize two inserters filters and network connections

Hi to all! I'm here to ask help about what is the best way (or what is the only one because I haven't yet a solution) about this problem: We are in control script, we have two entities that have inserter prototype, with some filter slots. I want that when a filter is setted(changed/removed) in one o...
by Linver
Mon Dec 23, 2019 4:53 pm
Forum: Mods
Topic: [MOD 0.17-0.18] Fluid Must Flow
Replies: 0
Views: 138

[MOD 0.17-0.18] Fluid Must Flow

Hi all! After many months on mod portal, because our mod is finally stable, I decide to put it on forum too, this is the description from mod portal: Description How sick are you of pipe fluid throughput? This mod aims to add a new set of big pipes to the game called "Ducts" that have better perform...
by Linver
Sun Dec 15, 2019 4:02 pm
Forum: Modding help
Topic: Add shift to on_nth_tick
Replies: 5
Views: 215

Re: Add shift to on_nth_tick

I think in this case is better use the event on_tick and inside the event use someting like: if event.tick % global.wanted_tick == 0 then... And according to Factorio documentation https://lua-api.factorio.com/latest/LuaBootstrap.html#LuaBootstrap.on_nth_tick : on_nth_tick(tick, f) Register a handle...
by Linver
Sun Dec 15, 2019 3:54 pm
Forum: Modding help
Topic: Loader that changes items and counts?
Replies: 3
Views: 119

Re: Loader that changes items and counts?

The solution that I have in mind is something like: simulate this using three entities, but is a long code: Two inserters and one furnace, for examples the position where the furnace will built is the position 0. One inserter take from -1 position and drop the item on position 0 (in the furnace), th...
by Linver
Sat Dec 14, 2019 12:44 pm
Forum: Modding help
Topic: Energy Types
Replies: 4
Views: 239

Re: Energy Types

Hi, Shaderon like u probably have already done, reading this page https://wiki.factorio.com/Types/EnergySource where is writed how in prototypes must be defined the energy soruce, u can see that is specified that five types, this kind of parts of Factorio is called "hardcoded", because is something ...
by Linver
Sat Dec 14, 2019 12:20 pm
Forum: Modding help
Topic: Pipe connections problems
Replies: 23
Views: 814

Re: Pipe connections problems

No darkfrei, I try the normal pipe cover modification, this work for one side but with the pump prototype it the entity rotate the covers don't follow the entity
by Linver
Sat Dec 14, 2019 12:19 pm
Forum: Modding help
Topic: Pipe connections problems
Replies: 23
Views: 814

Re: Pipe connections problems

I will improve the mod better as I can but there's many problems: Factorio documentation is writed for be used not for learn how use it or how the game is form, this make complex find a way to make a good use of it. Factorio mod implementation examples are difficult to find, sometimes need experimen...
by Linver
Wed Dec 11, 2019 1:41 pm
Forum: Modding help
Topic: Event filter explanations
Replies: 11
Views: 363

Re: Event filter explanations

This is what Bilka say to me about (if someone is interested in an answer): Example for a filter: {{filter = "name", name = "portal"}, {filter = "ghost_name", name = "portal"}} "Filters can only be used when registering single events" You can't apply them to an array of events like {defines.events.o...
by Linver
Wed Dec 11, 2019 1:30 pm
Forum: Modding help
Topic: Do an operation each n tick not submitted with on_tick event
Replies: 13
Views: 537

Re: Do an operation each n tick not submitted with on_tick event

Honktown, in my implementation I don't iterate on a table that I modify constantly, I say to the on nth tick callback to take the first sure element and remove it if no one have compute it before. I test it with a constant input and unstable one. No errors. My initial misunderstand was in the filter...
by Linver
Wed Dec 11, 2019 1:19 pm
Forum: Modding help
Topic: Event filter explanations
Replies: 11
Views: 363

Event filter explanations

Hi all guys, I'm trying to use the "Event filter" in paticular "LuaPlayerBuiltEntityEventFilters" on the event "on_built_entity", but I have try to declare a filter without understand if is right because I can't find on web a complete example about how use it. Could anyone give an example to me? Lik...

Go to advanced search