How to mod a limit of specialized tech trading?

So, I always go around trying to collect all the specialized tech through trading, but in the end I find it very unsatisfying to have EVERYONEENDSUPWITHALLTECH.  Ruins the point of the specializations.

How can I mod the game to disallow trading a specialization tech if you already have one of the other specializations?  And while we're at it, how to disallow trading tech that requires a species ability?

25,768 views 6 replies
Reply #1 Top

I can tell you for GCII.  In the tech definitions file (techtree.xml for the base, then one for each race that are mostly tweaks), for each tech there is an attribute <WillingnessToTrade> with a nominal range of {0..100}.  There is also a <No Trade> flag that I don't recall the proper name of.  I rather suspect that GCIII is doing something quite similar. 

First figure out how to mod, and where to put the changed files.  Then find the tech trees and do some reading.  It should be easy to dope out a fix.

 

Gosh, I hope it's not totally different in GCIII...

 

Reply #2 Top

Alright, well there is an <AICannotTrade> parameter, but I would like them to be able to trade as long as the recipient doesn't have one of the other specializations exclusive with it.

Reply #3 Top

That would have to be done in code, which is not moddable. 

Reply #4 Top

Don't the tech defs have aitradeprioriry weights you can tinker with?

(on my phone or I'd dive in the files and answer this for you.

Reply #5 Top

Yeah, I think they have weights.  But I want tradable 100% if the recipient doesn't have an exclusive specialization and 0% if they do.  I think it might not be moddable.

I think if I have to choose between having specialization choices and having trading I guess I'll choose the specialization.  Last time I was looking at a specialization choice, I was thinking, "hmm 15% ship health gives me power now, or I can get the mass limit which will maybe let me build stronger ships at higher cost later."  But then I realized I'd eventually get it all from trading so the specialization tree was meaningless.

Reply #6 Top

That may be more a function of the number of trading partners.  With only a few (3-4) partners, the available specializations are somewhat more limited.