Stellaris

Stellaris

More Events Mod
Nilserrich 3 Feb, 2021 @ 1:37pm
uses_district_set modding question
Good Evening

I am in the process of looking at various compatibilities. While browsing through the files I noticed that MEM changes many uses_district_set values.

Since this involves a bit of a learning curve, I don't immediately recognize the consequences of individual changes. I only know that this parameter determines where the corresponding district is built or allowed to be. However, I am basically skilled in logical operations. My issue is more with gameplay relevant outcomes of this changes.

What would happen if these were reset to vanilla values? Or asked another way: What purpose do the changes have?

I know that is a very specific question. Nevertheless, I hope that someone or one of the developers themselves can help me here. :)
< >
Showing 1-4 of 4 comments
Violent Beetle  [developer] 3 Feb, 2021 @ 1:45pm 
First of all, I think it no longer does this because it's no longer necessary. In any case, every district checks district sets in conditions to whenever it should be an option to build. Mess with this and you'll be messing with what districts appear on what planets.
Although it's designed for that, it can be used in anything where checking conditions is appropriate. Again, mess with that, and you will change the condition.
From what I can tell it's a simple string comparison.
Nilserrich 3 Feb, 2021 @ 1:58pm 
Thanks for the quick reply

Originally posted by Violent Beetle:
First of all, I think it no longer does this because it's no longer necessary. ......

I don't understand what you mean by that. Is it generally no longer necessary? Or not relevant for the function of MEM?

Where can I find out which variables there are in total and which worlds they cover. I could not find anything in the wiki and the Google search.
Violent Beetle  [developer] 3 Feb, 2021 @ 2:18pm 
Originally posted by Nilserich:
I don't understand what you mean by that. Is it generally no longer necessary? Or not relevant for the function of MEM?
The latter. I checked the code really quickly and didn't find any usage for it.

Anyway, a habitable planet class would have district_set parameter which is a simple string. uses_district_set is a condition that can be checked against the planet to compare its argument against this parameter. If they match, return true.
It's primarily used in districts to make sure they appear on the right planets. After it was implemented MEM could abandon overwrites for districts and employ simpler system of setting sets for custom planets that match existing ones.
Nilserrich 3 Feb, 2021 @ 2:57pm 
All right. Thank you for your effort in answering my questions. It helped me a lot.
< >
Showing 1-4 of 4 comments
Per page: 1530 50