Help Wanted Ads

I am trying to add a page for Routes in the pedia but it needs some dll work. I am at the point where I need a widget WIDGET_PEDIA_JUMP_TO_ROUTE. I assume it works like all the others eg WIDGET_PEDIA_JUMP_TO_UNIT.

Edit A link to a page saying what files need updating - link.

I don't need this for the new cultural pages because I can do what The_J did with the Heroes.
 
I am trying to add a page for Routes in the pedia but it needs some dll work. I am at the point where I need a widget WIDGET_PEDIA_JUMP_TO_ROUTE. I assume it works like all the others eg WIDGET_PEDIA_JUMP_TO_UNIT.

Edit A link to a page saying what files need updating - link.

I don't need this for the new cultural pages because I can do what The_J did with the Heroes.

Turns out I do need a bit of dll help for the culture pages. I need some way to tell the difference between the Cultural and Manufactured resources without having to search for the word CULTURE in the key. Both have a iConstAppearance of zero so for now I can put the map resources on one page and all the others on another page. But having a 'type' value I can ask of in Python would be better.
 
Turns out I do need a bit of dll help for the culture pages. I need some way to tell the difference between the Cultural and Manufactured resources without having to search for the word CULTURE in the key. Both have a iConstAppearance of zero so for now I can put the map resources on one page and all the others on another page. But having a 'type' value I can ask of in Python would be better.

We could just make another Bonusclass. That is much easier and involves only XML. :mischief:
 
there are three types of bonuses Map, Manufactured and Culture. The bonus class is actually used in a number of different ways but if we made the cultures all have BONUSCLASS_CULTURE I don't think it will cause problems elsewhere whereas changing some of the manufactured may do. That will be enough for me to be able to do the two bonus pages Map and Manufactured. Although the contents of the manufactured page needs to be different to the map resource page.

I think we need something totally different for a Cultures page and it will need to get information from both buildings and bonuses. In fact we may need a new object to allow this. After all neither the buildings (global wonders) nor bonuses is the correct page for these to be on. They need to be on a special page that is just for Cultures that provides all the information needed. Something like
- What is needed to build the culture (tech, resources and terrains)
- What buildings it gives
- What units it gives
- What heroes it gives​
 
One major problem is some code will not list that. Such if say a unit has he "expression system" code for a culture it will not be listed under that culture resource.

Likewise I have also found that if a building has an OR requirement it will not be listed either.

That is most likely because the pedia has not kept up with the tags in C2C. I am going to put a suggestion of what I think I can do with cultures on the UI thread for you to look at as that is probably a better thread.

We need to use the SpecialBuilding tag using a new type SPECIALBUILDING_CULTURE to enable this as well as the BounusClass of BONUSCLASS_CULTURE for the resources.
 
One major problem is some code will not list that. Such if say a unit has he "expression system" code for a culture it will not be listed under that culture resource.

Likewise I have also found that if a building has an OR requirement it will not be listed either.

You can list it in the description section using links.
 
@dll programers When an improvement upgrades does the python event "onImprovementBuilt" get called?

If it doesn't then that would explain why the plant nursery upgrade (improvement) is not being replaced by the forest (feature).

if t does then I did something wrong, but I should be able to remove forest/jungle etc when improvements that don't remove them upgrade to improvements that do.
 
Yeah, that looks plenty good (it is certainly better than mine and that is saying something).

[offtopic]

Thx, right now i have an OLD Vista 32 bit and an old XP Home Prem one just sitting around, collecting dust,
now this PC i am presently working on is an Win 7 Intel icore7 with a HD 5700 (double graphics card)1 GB, 8 GB memory at DDR5 and DX 11. But NOT good enough for me, actually i was looking for a Nvidia 690, but Best Buy doesnt sell any:sad:

I also have a 30 inch monitor/TV (Dell) collect dust also, when i bought this newer HD 32 inch monitor/tv i use for gaming ONLY.;)
 
I am supposed to update Python/Screens/CvScreenEnums,py with the new screens I have added to the pedia. But it uses CivilopediaPageTypes and I have no idea where this is defined.
 
Back
Top Bottom