j_mie6
Deity
Hello,
This is literally driving me insane
twitch
, how can I add a new page into the sevopedia? I have a new class called SevoPediaPromotionTier and that just is the page. but several things are happening when I try to add it (I will explain what I have done in a second)
1)the exit button on the pedia doesn't work (I literally have to Alt + F4 out of the pedia!
) (Fixed)
2) the page won't display, if I click promotion tiers in the contents I can see a list of all the tiers but I can't click on any of them (Fixed)
3) the trait page displays a python exception when it is opened (ditto for the index page)
4)if I click a link in to the tiers page it just doesn't respond to me. (Fixed)
so, what have I done:
C++
Python
Can anybody help me with this? I can't just keep scrolling through the same files again and again looking for answers
Thanks,
Jamie
This is literally driving me insane


1)

3) the trait page displays a python exception when it is opened (ditto for the index page)
Spoiler :
Code:
Traceback (most recent call last):
File "CvScreensInterface", line 933, in handleInput
File "SevoPediaMain", line 888, in handleInput
File "SevoPediaMain", line 332, in showIndex
File "SevoPediaIndex", line 37, in interfaceScreen
File "SevoPediaIndex", line 64, in buildIndex
File "SevoPediaMain", line 606, in getTraitList
File "SevoPediaMain", line 924, in getSortedList
File "SevoPediaMain", line 620, in getDescription
AttributeError: 'NoneType' object has no attribute 'getDescription'
ERR: Python function handleInput failed, module CvScreensInterface
4)
so, what have I done:
C++
- created some enum types in CvEnums.h (the screen and the widget for jumping)
- added some functions into CvGameTextMgr (not important I don't think)
- defined two new behaviors for the page in CvDLLWidgetData, namely a doPediaJump for the tier and a parseHelp() (note the parse help is actually working!)
Python
- added the new screen into the CvScreenEnums and SevoScreenEnums
- added the appropriate function in the ScreensInterface (for doPediaJump)
- went through SevoPediaMain and SevoPediaIndex, where ever there was reference to promotions I added in simillar code for the tiers.
Can anybody help me with this? I can't just keep scrolling through the same files again and again looking for answers

Thanks,
Jamie