Search found 123 matches

by sdgmlj
Thu May 19, 2022 8:39 am
Forum: Modding help
Topic: How can I close a GUI without "name"?
Replies: 2
Views: 138

Re: How can I close a GUI without "name"?

I want to close the GUI of other mods in my mod and replace it with my GUI, but his GUI doesn't have "name", so how can I close it? He wrote: global.inserter_guis[player.index] = player.gui.relative.add{ type = "frame", caption = { "aaaaa" }, anchor = {...................
by sdgmlj
Thu May 19, 2022 3:16 am
Forum: Modding help
Topic: How can I close a GUI without "name"?
Replies: 2
Views: 138

How can I close a GUI without "name"?

I want to close the GUI of other mods in my mod and replace it with my GUI, but his GUI doesn't have "name", so how can I close it? He wrote: global.inserter_guis[player.index] = player.gui.relative.add{ type = "frame", caption = { "aaaaa" }, anchor = {................ ...
by sdgmlj
Thu May 19, 2022 3:03 am
Forum: Ideas and Requests For Mods
Topic: Mod to enable filter on chest slots
Replies: 16
Views: 952

Re: Can such module function be realized?

robot256 wrote:
Thu May 19, 2022 12:24 am
I did end up making a car-type container mod if you want to experiment with it. I think I left filtering enabled. It would be possible to make a 1x1 grid-snapped version, I suppose.

https://mods.factorio.com/mod/shipping-containers
OK, I fully support you
by sdgmlj
Wed May 18, 2022 11:22 pm
Forum: Outdated/Not implemented
Topic: Can the minerals in the starting area not be connected together
Replies: 6
Views: 345

Re: Can the minerals in the starting area not be connected together

Or can this setting be changed by modifying a parameter? Which friend can tell me that I can modify it myself. Thank you :D
by sdgmlj
Wed May 18, 2022 11:14 pm
Forum: Outdated/Not implemented
Topic: Can the minerals in the starting area not be connected together
Replies: 6
Views: 345

Re: Can the minerals in the starting area not be connected together

I know that the original intention of developers is to make the starting area have various minerals, but please let them have a certain distance. Of course, this is only my personal idea. Whether to adopt it or not depends on you, but I don't think this change will have a bad impact on the game
by sdgmlj
Wed May 18, 2022 11:09 pm
Forum: Outdated/Not implemented
Topic: Can the minerals in the starting area not be connected together
Replies: 6
Views: 345

Re: Can the minerals in the starting area not be connected together

Ooo, I like that logistical challenge. :twisted: That aside, do you happen to have any of the generation sliders for ores and starting area set to anything other than default? (Just checking! :D ) I have tested that modifying the size and quantity of minerals can not change whether the minerals in ...
by sdgmlj
Wed May 18, 2022 11:04 pm
Forum: Ideas and Requests For Mods
Topic: Mod to enable filter on chest slots
Replies: 16
Views: 952

Re: Can such module function be realized?

It's the same reason they give for not filtering LuaInventory objects, and for not connecting certain things to the circuit network. It's always a cost-benefit equation, based on the number of chests in a typical game, versus the number of players who will actually use the filtering feature, versus...
by sdgmlj
Wed May 18, 2022 8:35 am
Forum: Outdated/Not implemented
Topic: Can the minerals in the starting area not be connected together
Replies: 6
Views: 345

Can the minerals in the starting area not be connected together

In the initial area, there is a great chance that the minerals will be connected together, so we don't like it very much. It's best to have a certain distance between them
by sdgmlj
Fri Apr 29, 2022 3:14 pm
Forum: Modding help
Topic: Ask for a Lua syntax
Replies: 4
Views: 274

Re: Ask for a Lua syntax

action = { { type = "direct", action_delivery = { { type = "projectile", projectile = "anti-material-rifle-ammo-3", starting_speed = 3, direction_deviation = 0.02, range_deviation = 0.02, max_range = 50, source_effects = { { type = "create-explosion", entity_...
by sdgmlj
Fri Apr 29, 2022 2:50 pm
Forum: Modding help
Topic: Ask for a Lua syntax
Replies: 4
Views: 274

Re: Ask for a Lua syntax

a[1]["b"] or a[1].b both work. Thank you, but it still reported an error attempt to index field'?'(a nil value) The content of the original script is as follows: action = { { type = "direct", action_delivery = { { type = "projectile", projectile = "anti-material-r...
by sdgmlj
Fri Apr 29, 2022 2:12 pm
Forum: Modding help
Topic: Ask for a Lua syntax
Replies: 4
Views: 274

Ask for a Lua syntax

There are two layers of braces in a table. How can I get its value?
For example:
a = {
{
b = 5
},
}
a.b = 5 ?? That's wrong,How can I express it?
by sdgmlj
Wed Apr 27, 2022 1:39 pm
Forum: Modding help
Topic: A strange problem, can you help me solve it?
Replies: 2
Views: 202

Re: A strange problem, can you help me solve it?

That's called an 'item-request-proxy' entity. It has the same coordinates as the machine, so you can find it with: local proxies = target.surface.find_entities_filtered{ name = "item-request-proxy", position = target.position } Where target is the assembler LuaEntity object. Thank you. I'...
by sdgmlj
Wed Apr 27, 2022 5:42 am
Forum: Modding help
Topic: A strange problem, can you help me solve it?
Replies: 2
Views: 202

A strange problem, can you help me solve it?

I wrote a script to automatically place the buildings in the blueprint (no robot is required), but after automatically adding the plug-in, the icon of "item demand" still exists. Is there any way to delete this icon?
by sdgmlj
Mon Apr 11, 2022 7:11 am
Forum: Modding help
Topic: Help, game error - no character
Replies: 23
Views: 1262

Re: Help, game error - no character

Such a mistake has occurred: Attempt to remote call outside of an event. stack traceback: [C]: in function 'call' Oh, of course! I've defined all my event handlers in a function that is called from script.on_init, script.on_configuration_changed, and script.on_load. So something like this should wo...
by sdgmlj
Mon Apr 11, 2022 1:13 am
Forum: Modding help
Topic: Help, game error - no character
Replies: 23
Views: 1262

Re: Help, game error - no character

Also, there's this at the top of scripts/respawn.lua: --custon event --/c remote.call("space-exploration", "get_on_player_respawned_event") --script.on_event(remote.call("space-exploration", "get_on_player_respawned_event"), my_event_handler) So you must add ...
by sdgmlj
Mon Apr 11, 2022 12:17 am
Forum: Modding help
Topic: Help, game error - no character
Replies: 23
Views: 1262

Re: Help, game error - no character

I haven't found yet how SE bypasses on_player_respawned, but I've found this in the changelog: --------------------------------------------------------------------------------------------------- Version: 0.4.10 Date: 22. 09. 2020 … Compatibility: - Added remote interface for get_on_player_respawned...
by sdgmlj
Sun Apr 10, 2022 2:20 pm
Forum: Modding help
Topic: Help, game error - no character
Replies: 23
Views: 1262

Re: Help, game error - no character

function character_init(event) local player = game.players[event.player_index] if player.character then player.character_running_speed_modifier = running_speed_modifier ......... end end Seems like you can keep it as simple as this: remote.add_interface("your_interface_name", { on_charact...
by sdgmlj
Wed Apr 06, 2022 10:43 am
Forum: Modding help
Topic: Can I not allow the factory to rotate?
Replies: 2
Views: 266

Re: Can I not allow the factory to rotate?

Klonan wrote:
Wed Apr 06, 2022 10:17 am
You can set an entity prototype flag:
https://wiki.factorio.com/Types/EntityP ... tatable.22
Thank you. Problem solved :D :D :D
by sdgmlj
Wed Apr 06, 2022 6:50 am
Forum: Modding help
Topic: Can I not allow the factory to rotate?
Replies: 2
Views: 266

Can I not allow the factory to rotate?

I made a factory. I just want it to enter the liquid from above, but when I press "R", it has four rest assured, but I only want one direction. What should I do? fluid_boxes = t_fluid_boxes() local function t_pipe_picture() return { filename = "__base__/graphics/entity/pipe-covers/hr-...
by sdgmlj
Tue Apr 05, 2022 12:34 am
Forum: Modding help
Topic: Can you realize the dynamic conversion of formula
Replies: 4
Views: 401

Re: Can you realize the dynamic conversion of formula

Table tabl ={ { type = "recipe", name = "transformation-copper-ore-from-coal", category = "transformation-copper-ore", ingredients = {{"coal", 5}}, result = "copper-ore", }, { type = "recipe", name = "transformation-copper-ore-from-st...

Go to advanced search