Problems adding a page to sevopedia

well they are present, but I didn't add them :p

but the thing is why is the None type falling through? there are checks, only continue if it is not None... it should stop there and not continue :lol:
 
I don't see any none check in that section if I recall.
Com off already :D
 
ok here is somethign interesting, I added a debug statement in the getSortedList function, expecting to find some none values (of which there is none :confused:) and instead it shows me something interesting:

it sorts through in this order:

CvTechInfo
CvPromotionInfo
CvPromotionTierInfo

CvTechInfo
CvUnitInfo
CvInfoBase
CvPromotionInfo
CvPromotionTierInfo

CvProjectInfo
CvSpecialistInfo
CvTerrainInfo
CvFeatureInfo
CvBonusInfo
CvImprovementInfo
CvCivilizationInfo
CvLeaderHeadInfo
SevoPediaMain.TraitInfo
CvTechInfo

so, whats going on here?!

CvTechInfo sorting is interrupted by promotions and tiers, then they happen again later, then at the end some more techs are sorted?

whats going on!?

edit: it doesn't state None but says this:

if info:

that rules out None values :p
 
ok I think I have found the cause of the problem!!!

I named my function PediaJumpToPromotionTier() instead of pediaJumpToPromotionTier()!!!! if this works that one less problem down!

edit: ok, the pedia page displays perfectly now, the jump widget works and everything is fine, well except:

The exit button for the pedia doesn't work, you have to ALT + F4
the traits still are not working (yet to be confirmed if that is my fault!)

I can't just leave the exit button not working, I need answers!
 
ok thanks to something emperorfool said somewhere else the exit button not working is caused because I stuck my new widget not at the end of the types, and the close screen is handled in the EXE which will use a hardcoded value instead of the DLL's values. So that problem should be fixed :)

which leaves one problem left: the traits and index. Plat, you seem to know the most about it, can you help identify the problem so we can fix it?
 
Platypedia runs on the same principal of using dummies, but the details are not similar.
But neither will work if the xml files for dummies are not included.

For mine, it will just display the traits in main menu, but you cannot click any of them.
For sevo, I can't be bothered to look up and down to understand full picture
 
so the dummies are in the newconcepts infos, if more traits are added, what happens in that file?

do the traits in there have to be in the exact same order as in the trait infos?
 
For platypedia, if there is no dummy file, the traits will still appear in the main menu.
Just that clicking on them will have no effect.
Because they are all using pedia description widgets for concepts and there are no respective concepts.
Thus, having new traits with no dummy concepts will not create problems.
They will just show up in main menu but not clickable.

In theory, any dummy will work, but concept is the obvious choice

Order is not important because it simply edit the type of the trait info and add CONCEPT_ to locate the respective concept.
Although actually, you do not have to add that as well. It is just for conventional reasons
 
right :) well I checked and it turns out he added some concepts_traits into the file without making their corresponding traits! so the getInfoTypeForString returns -1 and the whole problem starts :)

thanks for your help :)
 
See, told u there is no none check in that section.
Anyway, since u r gonna make a trait widget, y bother to study it
 
because it needed to be fixed now :) and besides I only said might make a trait widget :p the concept stuff works fine, in fact it's a nice system, but has some holes... but they can't be avoided :)
 
Roamty made one for civilopedia before using trait widget
 
Sorry that I'm late to the party. Did you get it fixed?
 
yup everything's fixed now :) it was a great party as well, you would have liked it :lol:
 
if you are all still around we have another problem, with the index this time. both me and psi corps have the exact same python files and DLL. yet for me the index works and for him the index is completely empty, I mean just a title and a box with the exit buttons and contents button, except the contents button doesn't work, doesn't perform the jump or anything :p

any ideas why this isn't working?
 
Back
Top Bottom