Wonder Techs

Just wondering, is there a way to make technologies like wonders, as only one person can research them?

Probably with python. Using canResearch and onTechAcquired; but I am not sure how that will go for nations that have started studying the tech but did not finish it. You will probably have to check each nation and change the Tech being researched. Also not sure what effect Tech Diffusion may have.
 
First of all, do note that techs are linked to teams, not players. It's a minor detail, which often doesn't matter, but in some cases it matters a great deal.

Personally I would add something like this in the DLL rather than python. The DLL is much faster and the debugger is a great help when fixing bugs. However python works on mac too and it can be used without installing the compiler. This mean the real answer to which place to add it is "it depends". It can be done in the DLL and most likely also in python.

Regardless of picking DLL or python, I think the steps are pretty much as Dancing Hoskuld said.
canResearch() have to check to see if it is researched by somebody. Presumably the easiest way to do this is to borrow the code to check for gaining gifts for first to research.

onTechAcquired should loop all teams and remove the tech from the research queue. Do consider what should happen, like a message or something.

You also need to ensure that the tech isn't traded, gained from a goody hut or similar.

I kind of like the idea to have techs like that. Now I wonder if I should add it to Medieval Conquest.
 
First of all, do note that techs are linked to teams, not players. It's a minor detail, which often doesn't matter, but in some cases it matters a great deal.

Personally I would add something like this in the DLL rather than python. The DLL is much faster and the debugger is a great help when fixing bugs. However python works on mac too and it can be used without installing the compiler. This mean the real answer to which place to add it is "it depends". It can be done in the DLL and most likely also in python.

Regardless of picking DLL or python, I think the steps are pretty much as Dancing Hoskuld said.
canResearch() have to check to see if it is researched by somebody. Presumably the easiest way to do this is to borrow the code to check for gaining gifts for first to research.

onTechAcquired should loop all teams and remove the tech from the research queue. Do consider what should happen, like a message or something.

You also need to ensure that the tech isn't traded, gained from a goody hut or similar.

I kind of like the idea to have techs like that. Now I wonder if I should add it to Medieval Conquest.

Thankyou for your keen insight Nightingale. I thought it would be really cool to have super technologies which give unique benefits, there are many possibilities I was thinking of.

One was, to reference Dancing Hoskuld(you were very helpful as well btw :) ) and his fine team's C2C mod, they have alternate histories, like Steampunk, which was such a cool idea I think about it from time to time. I thought of other things too, there are many possibilities.
 
Back
Top Bottom