Stellaris

Stellaris

Not enough ratings
Paradox!Where have my fxxking buildings gone!
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
144.674 KB
19 May @ 2:01am
17 Jun @ 4:15am
21 Change Notes ( view )

Subscribe to download
Paradox!Where have my fxxking buildings gone!

Description
4.0版本更新后,区划和建筑耦合,导致将行星改造为mod添加的行星时,若mod行星用了非原版区划组,则所有建筑会消失,连行星首府都没了。
since 4.0, buildings just disappear with old districts when terraform a planet into a mod planet class.
——even Planetary Administration.

该建筑消失问题可以通过在原版区划中convert_to字段添加mod新增的区划名解决,遂有此mod
to fix this, we need to change the convert_to of distrcts in vanilla, by overwriting. that's why this mod here.

目前支持 supported mods:
如果 mod 不生效: if mod not work:
如果本 mod 没有生效,说明有其他的 mod 也覆盖了原版的区划,请尝试订阅更多建筑槽-兼容(当然,也需要更多建筑槽本体),把他们全覆盖了:)
if this mod doesnt work, there must be another mod overwrites vanilla districts. try use BPV - More Building Slots - Compatibility (and ~~ BPV - More Building Slots) to overwrite them all :)

本mod通过js脚本生成
this mod is auto generated, using javascript.
编辑GitHub上的脚本代码[github.com] 为更多mod提供支持
27 Comments
Dave_12138  [author] 16 Jun @ 4:36am 
@570951430:大概是你改后的球不接受原来选的特化导致的
570951430 16 Jun @ 2:21am 
特化区域的建筑丢失是正常的规则吗?打了这个mod之后,首府区域的6个建筑能保留,但是特化区域的建筑(比如舰R的科研建筑)还是会不见
Dave_12138  [author] 6 Jun @ 9:17am 
我其实应该把下面这仨删了,让决议通过effect 4:1转化才符合设计
Dave_12138  [author] 6 Jun @ 9:00am 
哦,把上面的政府区划记作0,我把下面的1、2、3转化成3、1、3了
Tzeentch Bot 6 Jun @ 8:54am 
测试了一下,问题其实是,区域已经被转化到目标区域类型了,但是因为采矿区域的专精,导致其图标和名称和描述没有转换到目标区域类型的对应值。非常奇怪的是对于农业区域,这个问题并没有出现。
Tzeentch Bot 6 Jun @ 8:29am 
某个不可说mod里的圣殿行星支持有问题,改了以后会导致采矿区划留着,某个自定义区划无法成型
Dave_12138  [author] 3 Jun @ 12:05am 
@喵小夕 · F_thx:测了一下发现多个convert_to都会被读取,和之前说的那样直接在原版区划的覆盖的最后加本mod的inline_script就可以
另:要不给更多槽位兼容的介绍里加上一句【更多槽位-兼容mod使以下mod与更多槽位mod兼容,不代表以下mod彼此兼容】
喵小夕 · F_thx 2 Jun @ 10:58pm 
@Dave_12138
更多槽位兼容不会尝试兼容不同mod之间的问题,完全就是修改建筑槽位,加载顺序和原mod相同
在顺序上只会在修改的模组靠后一位,所以其他兼容模组都能正常工作

实际加载顺序:
district_city
更多槽位 district_city
其他模组 district_city
更多槽位兼容 - 其他模组 district_city 覆盖
其他模组 的兼容
更多槽位兼容 - 其他模组 的兼容 覆盖
Dave_12138  [author] 2 Jun @ 10:38pm 
@喵小夕・F_thx:我先试试一个 district 里有多个 convert_to 的时候是靠前的生效还是靠后的生效还是合并
另,游戏读 district 是只用后来加载的,之前同名的都舍弃的吧(也有可能我理解有误?),那么更多槽位兼容让我有点疑惑:
举个例子,某播放集现有除更多槽位外,modA 用一个 a 开头的文件覆盖了 district_city 的 potential 使其能用在 mod A 的星球,modB 用一个 b 开头的文件覆盖了 district_city 的 convert_to 以修复原版格式塔上环的 bug
现在更多槽位兼容基于 scripted_variable 动态覆盖了 modA 和 modB 对 district_city 的覆盖以添加额外槽,但 modA 和 modB 对 district_city 的修改实际上都被更多槽位以更后来者居上的 district_city 修改给覆盖掉了,实际 A 修改的 potential 和 B 修改的 convert_to 都不生效 —— 是这样吧?
喵小夕 · F_thx 2 Jun @ 8:31pm 
def PWMB_convert_to(codeItem):
districtName = codeItem['name']
codeItem['code'].append(f'\tinline_script = districts/PWMB_convert_to/{districtName} \n')

我直接在所有(主要区划)末尾全部加上你的tinline_script可以吧,你这边没有写的话应该就不会调用
还是说需要过滤一下