Log Something When Mod is Missing Dependency

Post your ideas and suggestions how to improve the game.

Moderator: ickputzdirwech

Post Reply
User avatar
DedlySpyder
Filter Inserter
Filter Inserter
Posts: 250
Joined: Fri Jun 20, 2014 11:42 am
Contact:

Log Something When Mod is Missing Dependency

Post by DedlySpyder »

Currently, if a mod is added manually without it's dependencies it will be added to the mod-list.json and enabled, but will silently not run in Factorio.

Can a log message be added to describe that this is happening? Why it is happening would be preferable, but at least that it was skipped on purpose would be better than nothing.

User avatar
ssilk
Global Moderator
Global Moderator
Posts: 12239
Joined: Tue Apr 16, 2013 10:35 pm
Contact:

Re: Log Something When Mod is Missing Dependency

Post by ssilk »

This turning off happens in the loading phase of Factorio, long before the game starts and can be easily seen in the mods-manager. When the game starts it doesn’t know, that there are mods turned off because of missing dependencies.

I tend to move this to not implement.
Cool suggestion: Eatable MOUSE-pointers.
Have you used the Advanced Search today?
Need help, question? FAQ - Wiki - Forum help
I still like small signatures...

User avatar
DedlySpyder
Filter Inserter
Filter Inserter
Posts: 250
Joined: Fri Jun 20, 2014 11:42 am
Contact:

Re: Log Something When Mod is Missing Dependency

Post by DedlySpyder »

ssilk wrote:
Thu Sep 16, 2021 3:21 am
can be easily seen in the mods-manager
This is true, but I have been working with some tooling that runs Factorio through a script, so this isn't possible.

I'm also not sure what you mean by loading phase? Before data/settings, sure, but you mean that the factorio-current.log isn't even being written to until after the mods are determined? I do see log messages from the ModManager about duplicate mods at least.

User avatar
ssilk
Global Moderator
Global Moderator
Posts: 12239
Joined: Tue Apr 16, 2013 10:35 pm
Contact:

Re: Log Something When Mod is Missing Dependency

Post by ssilk »

Exactly that phase. Ah, and with log-message you mean something in the log-file, not something logged out on screen in the game. I misunderstood that.

From the game logic it must be one of the first things, that needs to be decided, because it can be done in the same process that decides the load-order of the mods. And if there is nothing yet, then, yes, it’s a good idea to add it. Maybe - not tested - you can see that, because a log-entry is missing?
Cool suggestion: Eatable MOUSE-pointers.
Have you used the Advanced Search today?
Need help, question? FAQ - Wiki - Forum help
I still like small signatures...

Post Reply

Return to “Ideas and Suggestions”