Sparth
C2C Team Member
- Joined
- Oct 6, 2013
- Messages
- 2,314
I can code it to display a video of pigs flying if I want.
Please do
![Stick Out Tongue :p :p](/data/assets/smilies/tongue.gif)
I can code it to display a video of pigs flying if I want.
Long story short...
Whether it is the tech tree or pedia, both are simply python screens.
Since both are just python screens, you can define what you want to display/hide...
If I can even adjust my tech tree to allow users to decide which era of techs to display/hide, I don't see why you cannot adjust codes to prevent techs from showing up depending on game options.
No need of replacement tech whatever
Who cares about the c programmers
The tech advisor screen is coded in python.
Whatever is coded there determines what is shown in the screen.
I can code it to display a video of pigs flying if I want.
So digging into the xml, creating dummy techs blah blah blah is ultimately a waste of time when eventually it is the python that decides what is displayed
Not true.
The only change in python is:
If tech belongs to module x and module x is not loaded, do not display it.
When done properly, in future even if you add 10 new techs, there is nothing you need to do in python.
The dll method involves modifying the dll and then for every new tech added, you need a corresponding dummy. If there are 100 techs, there are 100 useless dummies created, whereas python does not need any dummy, yet you claim it is less data utilising?
Furthermore, every dummy created involves xml modding, while no additional work required once python coded properly, so obviously the dummy is more prone to errors
The simplest solution is using specific xml types.
Instead of TECH_ABC, just let it be TECH_TBIRD_ABC
If you don't like it, then just add a new xml tag to define it belongs to which module.
Then two lines of codes in tech screen
If module not loaded, and tech belongs to the module, don't display it.
And another line for cannotResearch which can be dll or python for same thing.
How long do I need to code this?
30 seconds
Any future modifications to the codes for future additional techs?
None
Now tell me how is the dummy tech a better idea![]()
It has been done in other mods (AnyFun Mod for example).
And another line for cannotResearch which can be dll or python for same thing.
You are always talking about what is displayed on the screen...
If you just hide the Tech from the Screen the AI continues to see it. This is the real problem and to solve this there are also many different solutions.