way to print name of mod that adds a specific technology

Place to get help with not working mods / modding interface.
Post Reply
usafphoenix
Long Handed Inserter
Long Handed Inserter
Posts: 58
Joined: Sun Aug 06, 2017 9:42 am
Contact:

way to print name of mod that adds a specific technology

Post by usafphoenix »

Is there a way to get/read the name of a mod which is adding a specific technology for the purpose of debugging/error printing? (or better yet, during load-time, print the modification table for a technology to a log or an error prompt in the event that a known-issue may present itself or for some other reason?

like data.raw.technology[name_of_tech].modname or modification_table
or something like that? that can then be passed to another function for printing to log, generating a quality error-report or for dynamic crash-prevention coding method? such as disabling a specific mod interaction if a technology has been added or edited by something else?

being able to print the modification table (the thing that shows up once you load the game and hover the mouse over a technology icon) would probably be better than just the name of the initial mod that created the technology.

Post Reply

Return to “Modding help”