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

Topics and discussion about specific mods
Post Reply
Creidhne
Inserter
Inserter
Posts: 28
Joined: Mon Jun 10, 2019 9:43 am
Contact:

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

Post by Creidhne »

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 refined products (or the other way around), and display the result as a graph:

Image

Image

Download & more info on the Mod portal.
Last edited by Creidhne on Wed Dec 02, 2020 9:28 pm, edited 1 time in total.

Bilka
Factorio Staff
Factorio Staff
Posts: 3155
Joined: Sat Aug 13, 2016 9:20 am
Contact:

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

Post by Bilka »

Incredibly impressive use of the rendering API!

Sadly the mod does not work in multiplayer at all:

Code: Select all

"The mod Dana: crafting tree/graph explorer (0.1.0) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event dana::on_player_created (ID 24)
__dana__/lua/logger/Logger.lua:62: [dana][Error] GuiElement: attempt to bind an object twice.
stack traceback:
        [C]: in function 'error'
        __dana__/lua/logger/Logger.lua:62: in function 'error'
        __dana__/lua/logger/ClassLogger.lua:53: in function 'assert'
        __dana__/lua/gui/GuiElement.lua:233: in function <__dana__/lua/gui/GuiElement.lua:227>
        (...tail calls...)
        __dana__/lua/Player.lua:52: in function 'new'
        __dana__/lua/Dana.lua:120: in function 'on_player_created'
        __dana__/control.lua:53: in function <__dana__/control.lua:52>"
Steps to reproduce:
1. Host new multiplayer map
2. Open Dana
3. "How to make.."
4. Select the rocket silo, don't touch anything else
5. Draw
6. Join the game with a second player
7. Above crash
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.

Creidhne
Inserter
Inserter
Posts: 28
Joined: Mon Jun 10, 2019 9:43 am
Contact:

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

Post by Creidhne »

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 (which might take some time ...).

Truth be told I hadn't tested multiplayer until now, so it's probably a bugfest right now. Since I discovered that running a local server and multiple clients isn't rocket science, I should be able to stabilize it in the coming days. Maybe. Hopefully :-)

UPDATE: fixed in 0.1.1 (freshly uploaded on the mod portal). I did some minimal testing on multiplayer and it seemed fine.

Post Reply

Return to “Mods”