Stellaris

Stellaris

More Civics in Ethics and Civics Rebuild - No Traditions
Wise Repeater 11 Jul, 2018 @ 12:17am
Probably find a bug/typo in file
When reading the error log I found it suggests: "Invalid Scope type for trigger has_planet_flag in common/edicts/ethic_rebuild_edicts.txt line : 1185"

Which is in file written as: "
planet_edict = {
name = "new_babylon"
length = @EdictDuration
cost = { influence = @Edict1Cost }
potential = {

has_comms_with_alien_empire = yes
exists = owner
owner = {
OR = {
has_ascension_perk = ap_new_babylon
}
NOT = {
has_country_flag = new_babylon_established //Line: 1185
}
NOT = {
has_planet_flag = new_babylon_planet
}
}


}



effect = {
custom_tooltip = edict_new_babylon.tooltip
planet_event = { id = new_babylon.1 }
}

ai_weight = {
weight = 1
}

}
"
I thought this might be the reason why they're infinite log print of "invalid scope for trigger. got [planet], expected {country}. file: common/scripted_triggers/00_scripted_triggers.txt line: 877" stuff, since line 887 is actually "has_comms_with_alien_empire", which is scope based on country.

This part of code should be adjusted.
I changed it a little but did not test about it
potential = {

NOT = {
has_planet_flag = new_babylon_planet
}

exists = owner
owner = {
has_comms_with_alien_empire = yes
OR = {
has_ascension_perk = ap_new_babylon
}
NOT = {
has_country_flag = new_babylon_established
}
}


}

I am still kind of new in modding so it might not work at all. I just simply post this here for finding some help!
< >
Showing 1-3 of 3 comments
NewAgeKid52  [developer] 11 Jul, 2018 @ 7:05pm 
Hi TP2020
I tried your fix but it didn't manage to stop the error log file from becoming huge. Thanks for bringing it to my attention.

If anyone here can figure out how to fix this problem please post here. I like modding civics, but this does seem a bit over my level of expertise.
Wise Repeater 11 Jul, 2018 @ 8:08pm 
@NewAgeKid52
THX for updating this great mod anyways. Kind of sorry this did not help though. It's really weird that same error log continuously pop up because it seems that no other file has planet scope in this mod touches 00_trigger line877 so far as i read...
NewAgeKid52  [developer] 13 Jul, 2018 @ 9:25am 
I managed to fix the problem and I don't see an infinite error log anymore. I looked at what you did with the New Babylon edict, and I copied from Petruxa's old file and pasted it to mine. It seemed to solve the problem.
< >
Showing 1-3 of 3 comments
Per page: 1530 50