Using both FactoryOwners+FactoryOwners.Forbidden
Hi... again ;)
I just got back into modding this game after quite a while.
edit: 2019-10-22 I misunderstood the documentation a bit so I will summarize the conclusion short (the misunderstood is moved to the whiteboard below)
- I suggest FactoryOwners.
- the tags' logic should be using OR instead of AND. it's more flexible.
this needs migration for those who used FactoryOwners.
to do so, inverse the list of countries in FactoryOwners.
edit: 2019-10-28
Ares 0.6 FactoryOwner code:
https:/
My attempt to code this suggestion (not sure if it will work tho):
https:/
Blueprint information
- Status:
- Not started
- Approver:
- None
- Priority:
- Undefined
- Drafter:
- FELITH
- Direction:
- Needs approval
- Assignee:
- None
- Definition:
- New
- Series goal:
- None
- Implementation:
-
Unknown
- Milestone target:
- None
- Started by
- Completed by
Related branches
Related bugs
Sprints
Whiteboard
-------
-------
the issue I encountered back when I mess with FactoryOwners still persists.
it's that FactoryOwners.
would you mind make it checks? the tag would easily be more flexible after implementing this.
right now when using both tags at the same time, FactoryOwners.
I mean.. why not it has no downside it doesnt even need migration coz 2 tags dont work together in the first place.
ps. sorry for my poor english.
ps2. I suggested a system that has more flexibility than this before but it involves around creating a new tag, atm we don't need to go that far.
--FELITH 2019-10-20
Example ini:
FactoryOwners=
FactoryOwners.
Right now Ares2.0p1:
the unit will not available at all if not owning Europeans' factory. the FactoryOwners.
When implemented this:
the unit will be available if not owning UnitedStates and Pacific as it should be just like when FactoryOwners.
--FELITH 2019-10-20
I found the code on old version of the open source.
/Ext/House/Body.cpp
bool HouseExt:
HouseClass const* const pHouse, TechnoTypeClass const* const pItem)
{
return HouseExt:
&& HouseExt:
}
If I not wrong I think changing && to || would make this works
edit: I'm 10% sure lol
--FELITH 2019-10-20
err.. I apologize I was confusing with the wording
from "has any factory not built by a ... country" in the documentation to "doesn't have any factory build by a ... country"
so the real suggestion should be, could you rework the FactoryOwners.
I could test it for you if you compile a build for me I just don't have the compiler on my pc
--FELITH 2019-10-22
Ares 0.6 FactoryOwner code:
https:/
My attempt to code this suggestion:
https:/
--FELITH 2019-10-28