Search found 28 matches

by Creidhne
Tue Jul 28, 2020 6:19 pm
Forum: Modding interface requests
Topic: LuaPlayer.open_map(position, scale, surface)
Replies: 9
Views: 2656

Re: LuaPlayer.open_map(position, scale, surface)

Hi, I just wanted to +1 for this feature. it would be quite useful for my WIP mod: Dana . Right now I have to work with LuaPlayer.set_controller() & LuaPlayer.teleport() to swith from/to my interactive graphs, and that causes quite a few issues. Being able to just open a map (ideally with an opt...
by Creidhne
Mon Jul 27, 2020 11:39 am
Forum: Mods
Topic: [MOD 0.18-1.1] Dana: In-game crafting tree/graph explorer.
Replies: 2
Views: 1344

Re: [MOD 0.18] Dana: In-game crafting tree/graph explorer.

Thanks for testing and the bug report, I was able to reproduce. It seems to be coming from me misunderstanding a part of the Lua API. If that's the case the fix should be pretty trivial. I just need to figure out migration scripts & Factorio changelogs to be able to release a proper v0.1.1 (whic...
by Creidhne
Mon Jul 27, 2020 11:26 am
Forum: Resolved Problems and Bugs
Topic: [0.18.X] LuaGuiElement.index: misleading API documentation.
Replies: 1
Views: 1335

[0.18.X] LuaGuiElement.index: misleading API documentation.

Hi, In the API documentation , LuaGuiElement.index is said to be unique. While it appears to be unique in single player, it seems that in multiplayer two different players can have different buttons sharing the same ID. Suggestion: The unique index of this GUI element. ----> Index of this GUI elemen...
by Creidhne
Sun Jul 26, 2020 7:19 pm
Forum: Mods
Topic: [MOD 0.18-1.1] Dana: In-game crafting tree/graph explorer.
Replies: 2
Views: 1344

[MOD 0.18-1.1] Dana: In-game crafting tree/graph explorer.

Dana: crafting tree/graph explorer >>> Mod portal <<< License: GPLv3 Status: Alpha / work in progress Dana is an experimental assistant mod to help you understand the crafting graph of your vanilla/modded game. It is able to lookup for complete production chains, from raw materials to the most refi...
by Creidhne
Thu Jul 16, 2020 4:41 pm
Forum: Modding help
Topic: [Solved] How to make a GUI button to give a selection tool ?
Replies: 4
Views: 1172

Re: [Solved] How to make a GUI button to give a selection tool ?

"only-in-cursor" works perfectly for my use case.

Thanks for the tip :-)
by Creidhne
Thu Jul 16, 2020 4:21 pm
Forum: Modding help
Topic: [Solved] How to make a GUI button to give a selection tool ?
Replies: 4
Views: 1172

Re: How to make a GUI button to give a selection tool ?

Hi,
thanks for the quick answer. It almost fixes the issue, except if the inventory is full. The player gets a "Cannot put away XXX. Player inventory is full" message, and this event isn't triggered (the cursor stack isn't modified).
by Creidhne
Thu Jul 16, 2020 1:42 pm
Forum: Modding help
Topic: [Solved] How to make a GUI button to give a selection tool ?
Replies: 4
Views: 1172

[Solved] How to make a GUI button to give a selection tool ?

Hi, I would like to make a GUI button that gives a custom "selection-tool" item when clicked. Exactly like a shortcut button, I just want to place it somewhere else with a specific caption. This is my best attempt so far: -- player: https://lua-api.factorio.com/latest/LuaPlayer.html player...
by Creidhne
Mon Jun 10, 2019 11:30 am
Forum: Resolved Problems and Bugs
Topic: [0.17.47] rendering.draw_line(): some lines disappear from screen depending on player position/zoom
Replies: 1
Views: 1720

[0.17.47] rendering.draw_line(): some lines disappear from screen depending on player position/zoom

What's happening: When using rendering.draw_line to draw a set long & almost parallel lines, some lines aren't rendered on screen. Moving the character or zooming in/out may change which lines are displayed/hidden. Sometimes no lines are rendered at all. https://i.imgur.com/1UhiYyq.gif Expected...

Go to advanced search