Stellaris
Оцінок: 314
Dynamic Mod Menu (2.8)
   
Нагородити
До улюбленого
В улюблених
Прибрати
Розмір файлу
Додано
Оновлено
67.829 MB
19 серп. 2019 о 17:53
29 жовт. 2020 о 11:16
Змін 17 ( перегляд )

Підпишіться, аби завантажити
Dynamic Mod Menu (2.8)

В колекціях (2) автора mario0244
Dynamic Mod Menu Compatibility Patches
Предметів: 7
Dynamic Mod Menu Plugins
Предметів: 5
Опис
Abandoned
Bad news is that it's abandoned. Good news is that it was superseded by a newer mod menu which utilizes all the new goodies given by Stellaris 3.0 making this approach obsolete (as was written during the 2.3 game version).
Get the new Dynamic Mod Menu.

Please note that this new DMM does not have anything in common with this project, what only happened is that the name was transferred onto the new mod.

Load Order
Not important.

Older Versions
For 2.3
For 2.4
For 2.5
For 2.6
For 2.7

For which version of the game is this?
2.8

Menu in action


FAQ

What's the reasoning behind this?
Reasoning is that I wanted a "dynamic" mod GUI but couldn't find one.

The only way for modders to create their own mod options menus are:
1. Using edict screen
2. Creating a custom button by overwriting a .gui file
3. Using Mod Menu mod

The only rather "dynamic" approach is using the edict screen. Others either have mod conflicts or require additional steps to be performed by third party developers.

We already have a mod menu.
Yes, but it's not "dynamic".

Is it truly a "dynamic" mod menu?
Nothing in this game can be truly "dynamic" but this mod menu gives an appearance of being "dynamic".

What the hell do you mean "dynamic"?
This mod menu exposes 100 "slots" for other mods to "inject" as a button into this mod.

Developers get to pick one unique Id (list will be kept somewhere which mods use which Id) and then:
1. Overwrite localization files related to this unique mod Id
2. Overwrite events related to this unique mod Id
3. Set a global flag related to this unique Id (comes via generated code)
4. Create own mod icon for the mod menu by overwriting a GFX resource related to this unique Id

Only 100 slots?
Don't worry the code is auto generated (via script). If the limit is ever hit we can create more ids obviously.

What's the advantage of this approach?
- Mod developers don't have to message back and forth (Mod Menu maintainer and XYZ mod developer)
- Create compatibility patches for custom buttons
- Mods don't clutter the edicts menu

Almost zero communication between myself and mod developers is necessary (only if you require support probably). I don't need to do anything in order for your mod menu button to show here. Only thing mod developers need to do is let everyone know which mod Id they've taken.

What files are overwritten?
main_bottom.gui

Some other mod that I use already overwrites main_bottom.gui.
Let me know which so I can create a patch. Other developers are welcome to create patches themselves as well.

Menu icon is not showing.
It's probably a mod conflict. See above.

Are there any existing compatibility patches?
Here

Mod icon is terrible.
I know and that's not a question.

Can I create my own mod icon for this?
Yes of course. You can send it to me to include in the mod (credits will be given) or create your own mod override. Whatever suits you is fine by me.

I found a typo or grammar error.
Great. Let me know what the error is and where exactly and post a correction so I can update the localization file.

I don't like this mod!
Don't install it then.

Is this mod required to be installed?
If the mod developer who pointed you here implemented the overrides via provided python script then it should not be a dependency. You can use whatever alternate method is present to launch the mod UI that you installed.

Help, Mod Id conflicts with another mod.
Please ask the mod author to change the selected mod Id.

Achievements compatible? Ironman compatible?
I don't care about Achievements or Ironman so assume all my mods are not compatible.

I want to make a menu for my mod.
Here's a python script which can generate bare bones code for you: https://pastebin.com/ugZQEAPD
If you need an actual sample message me and I'll use the following tool to generate one for you.

As a mod developer what can I customize?
Button look on the menu, text on the menu.

Once the menu button is clicked control is transferred to your own dmm event. You can do what you want with it (in the override). Relaunch your own menu, replace whole code.

I only recommend that you add somewhere
remove_global_flag = dmm_mod_<mod_id>_opened
in your close options event code. In the sample it is added in after block.

How can I check if DMM is installed?
has_global_flag = dynamic_mod_menu_installed
Популярні обговорення Переглянути всі (9)
13
15 серп. 2020 о 17:16
ЗАКРІПЛЕНО: Mod Menu Requests\Links
mario0244
11
23 трав. 2020 о 0:24
Bugs
mario0244
2
11 верес. 2019 о 7:54
ЗАКРІПЛЕНО: Other Category Registry
mario0244
Коментарів: 53
Deviant 28 лют. 2021 о 1:28 
Version 2.8.1 - the mod works. Unlike "mod manager", it does not reduce the size of the "government" tab to a vanilla state. The main thing is to download the compatibility patch.
mario0244  [автор] 7 листоп. 2020 о 17:07 
No clue. Don't play the game anymore. If you have problems use Irony to check for conflicts.
Woodwyrm 7 листоп. 2020 о 2:04 
does DMM work with Alpha Mod and Planetary Diversity?
OldEnt 2 листоп. 2020 о 22:49 
Thank you kindly good sir.
mario0244  [автор] 2 листоп. 2020 о 22:46 
Looks fine.
OldEnt 2 листоп. 2020 о 22:42 
Hi, I have implemented DMM into Aggressive Crisis Engine but I am wondering if I haven't missed something. Could you have a quick look? https://github.com/Fiiral/Improved-Crisis/commit/2b1fa2528dbbd92fda999000bfe8d83eaa57ebe9

I have claimed the followin event namespaces:
dmm_mod_utilities.20
dmm_mod_utilities_20_flag
If someone is already using these please let me know so I can change them.
Lady Lucina 29 верес. 2020 о 4:41 
Maybe it's something in Crisis Manager that detects DMM and only fires the event if it is present.

Anyway, thanks for the response!
mario0244  [автор] 27 верес. 2020 о 16:33 
DMM does not show any notifications and honestly I have no clue what's going on in your game. Could be a mod conflict perhaps or related to Crisis Manager.

DMM is just a GUI that launches other peoples events. When you toggle the uninstall of DMM all it does is remove the global flag that DMM sets in the game. No where does it have logic in place to create a notification.
Lady Lucina 27 верес. 2020 о 9:55 
Hm, okay. I just figured it was DMM, because if I click the uninstall option and reload the save (only the save, not the game) then it doesn't reappear.
mario0244  [автор] 27 верес. 2020 о 8:02 
Can't help you, this is a question for the crisis manager author.