1. We have added a Gift Upgrades feature that allows you to gift an account upgrade to another member, just in time for the holiday season. You can see the gift option when going to the Account Upgrades screen, or on any user profile screen.
    Dismiss Notice

Dancing Hoskuld's tasks

Discussion in 'Civ4 - Caveman 2 Cosmos' started by Dancing Hoskuld, May 25, 2013.

  1. Johnny Canuck

    Johnny Canuck Warlord

    Joined:
    Sep 23, 2010
    Messages:
    141

    I'm not particularly attached to 5% - it's just that I wouldn't want a Natural Wonder to make too much of a difference to stability.

    On the other hand, perhaps we could attach the stability bonus to culture? I.e. Mount Fuji gives +10% stability if Japanese culture is present in the city (I imagine we could link most Natural Wonders with cultures).



    Perhaps, but why monasteries as the 'needed' religious building? Maybe temples would make more sense - i.e. worshipping the mountain. Alternatively, we could have special 'shrines' that can be built if the Natural Wonder is present that gives the :) bonus - i.e. a 'Mount Fuji' shrine, giving +1 :) in all cities where Shinto is present. Of course, that would mean additional buildings, which means more work for someone! :D




    Ideally, I'd like an event(s) that can trigger after mountaineering that states the mountain has been climbed, which then gives additional :culture:. In the absence of that, additional :culture: on mountaineering would work.
     
  2. Thunderbrd

    Thunderbrd C2C War Dog

    Joined:
    Jan 2, 2010
    Messages:
    26,226
    Gender:
    Male
    Location:
    Las Vegas
    @DH: check out the SVN thread - I put both city buttons (Destroy City and Sell Building) in my FPK for you.
     
  3. Dancing Hoskuld

    Dancing Hoskuld Deity

    Joined:
    Jul 5, 2004
    Messages:
    23,319
    Gender:
    Male
    Location:
    Canberra, Australia
    The only problem will be fitting them on the screen now that the move between city arrows are now up on the city name bar.
     
  4. Dancing Hoskuld

    Dancing Hoskuld Deity

    Joined:
    Jul 5, 2004
    Messages:
    23,319
    Gender:
    Male
    Location:
    Canberra, Australia
    I have been updating my first post but not posting updates. So I updated it again today.
     
  5. Dancing Hoskuld

    Dancing Hoskuld Deity

    Joined:
    Jul 5, 2004
    Messages:
    23,319
    Gender:
    Male
    Location:
    Canberra, Australia
    just an update on what I am actually doing at the moment.

    I have just one file left (main interface one) to get all of BUG 4.4 into C2C. I have just spent time making sure all the bug fixes in our version by us and the Rev team are in the same place as the same bug fixes included in 4.4. This will make things easier for the next upgrade.

    There is only one improvement in BUG 4.4 over what we have and it deals with Raw Yields so that is next to do.

    It looks like I will have to merge and of Platyping's UI changes for specialist stacker into BUG before I merge them into C2C because of all the Rev code we have in there.

    After I get Platyping's specialist stacker in I will look at updating to the latest RevolutionDCM code.

    Note due to recent changes to the pedia I am no longer able to work on it. Someone else will need to take over.
     
  6. Hydromancerx

    Hydromancerx C2C Modder

    Joined:
    Feb 27, 2008
    Messages:
    16,281
    Location:
    California, USA
    @DH

    I am not sure you saw it in the space terrain thread but ever since the Natural Wonders mod was put in the Lunar, Martian and Space terrains have been broken. They are all off by one. Such as they appear with the texture of the terrain next to it. Some of them even give a CTD when you try to place the terrain. I believe we ran into this problem before when adding new terrains and terrain features. Do you recall how to fix it?
     
  7. strategyonly

    strategyonly C2C Supreme Commander

    Joined:
    Mar 13, 2006
    Messages:
    20,460
    Gender:
    Male
    Location:
    MN
    Come on now, all you need to do is delete one file from YOUR copy.
     
  8. Dancing Hoskuld

    Dancing Hoskuld Deity

    Joined:
    Jul 5, 2004
    Messages:
    23,319
    Gender:
    Male
    Location:
    Canberra, Australia
    I had not noticed. It will have to wait until after I get the specialist stacker working as that is stopping many things at the moment including finishing stuff we already have in the game.

    Which just means more likely hood of me accidentally updating the SVN with something wrong.
     
  9. strategyonly

    strategyonly C2C Supreme Commander

    Joined:
    Mar 13, 2006
    Messages:
    20,460
    Gender:
    Male
    Location:
    MN
    Not really, it just goes back to the normal default is all, no biggy to me, really, since i didnt get MY way anyways:cry: Hydro and you always get your ways:rolleyes::p;)
     
  10. Dancing Hoskuld

    Dancing Hoskuld Deity

    Joined:
    Jul 5, 2004
    Messages:
    23,319
    Gender:
    Male
    Location:
    Canberra, Australia
    Well you wont have to worry about me much longer. I am going to be working on a couple of modmods that require ditching everything past classical while I work things out. It just make loading etc so much faster.

    By the way, would it be an idea to move the art out of my FPK and into the core ones? It will reduce some of the confusion and free up one for say civilizations.
     
  11. strategyonly

    strategyonly C2C Supreme Commander

    Joined:
    Mar 13, 2006
    Messages:
    20,460
    Gender:
    Male
    Location:
    MN
    Sure i dont mind, all you need to do is put it into the "regular" art just like you have been doing lately for interface.

    Which modmods are you doing, do you need any help??
     
  12. Dancing Hoskuld

    Dancing Hoskuld Deity

    Joined:
    Jul 5, 2004
    Messages:
    23,319
    Gender:
    Male
    Location:
    Canberra, Australia
    Mostly a redesign of the religion system - evolving religions plus I want to try out some concepts from the Civ III mod "Paths to Glory" which is very different from a normal mod.
     
  13. Azurian

    Azurian The Azurian

    Joined:
    Apr 10, 2012
    Messages:
    2,092
    Location:
    Florida, USA
    Did somebody fix the low graphics Pumpkin, Squash yet?
     
  14. Dancing Hoskuld

    Dancing Hoskuld Deity

    Joined:
    Jul 5, 2004
    Messages:
    23,319
    Gender:
    Male
    Location:
    Canberra, Australia
    No. I tried the simple solution but it did not work. The problem is fairly straight forward, the name of the file name used in the low level definition is not "wheat.???" but the name of the resource (iirc).
     
  15. Azurian

    Azurian The Azurian

    Joined:
    Apr 10, 2012
    Messages:
    2,092
    Location:
    Florida, USA
    DH
    It was just a .dds button icon correct?

    Also this would be extremely useful for us XML Modders, no more hunting down tags, especially for pereq buildings.

    Here a first look at code changes, it seems pretty simple.

    Forgetful Modder.ini Not Needed at all?
    Code:
    [CONFIG]
    
    ; Modular XML Loading
    ModularLoading = 0
    
    ; Skip Main menu
    SkipMainMenu = 0
    
    ; Custom Art from user folder is not loaded
    NoCustomArt = 0
    
    ; Custom XML and Python from user folder are not loaded
    NoCustomAssets = 0
    
    ; No Custom Scenario option in main menu
    NoCustomScenario = 0
    
    ; No team play allowed
    NoTeams = 0
    
    ; Read Game options from XML, not .ini
    ForceGameOptions = 0
    
    ; Always start in the standard era
    ForceStandardEra = 0
    
    ; Scenario file (Single player)
    ForceScenario = 0
    
    ; This mod is only for single player games
    SinglePlayerOnly = 0
    
    ; Allow public maps to be used with this mod
    AllowPublicMaps = 1
    
    ; Mod Image file
    ImageFile = 0
    
    ; Name of Mod
    Name = Forgetful Modder
    
    ; Description of Mod
    Description = Generic Mod
    
    CvScreensInterface.py
    Code:
    [B]Line 50[/B]
    ## Forgetful ##
    import Forgetful
    ## Forgetful ##
    
    [B]Line 919[/B]
    ## Forgetful ##
    FORGETFUL_SCREEN : Forgetful.Forgetful(),
    				
    ## Forgetful ##
    [B][/B]
    CvScreenEnums.py

    Code:
    [B]Line 39[/B]
    ## Forgetful ##
    FORGETFUL_SCREEN = 81
    ## Forgetful ##
    
    
    CvEventManager.py
    WE can change the F1 to another hotkey if needed.
    Code:
    [B]Line 24[/B]
    ## Forgetful Modder ##
    import Forgetful
    ## Forgetful Modder ##
    
    [B]Line 239[/B]
    ## Forgetful Modder ##
    			if theKey == int(InputTypes.KB_[COLOR="Blue"]F1[/COLOR]) and self.bCtrl:
    				Forgetful.Forgetful().interfaceScreen()
    				return 1
    ## Forgetful Modder ##	
    Forgetful.pyNew File Added

    Code:
    ## Sid Meier's Civilization 4
    ## Copyright Firaxis Games 2005
    from CvPythonExtensions import *
    import CvUtil
    import ScreenInput
    import CvScreenEnums
    
    # globals
    gc = CyGlobalContext()
    ArtFileMgr = CyArtFileMgr()
    localText = CyTranslator()
    
    class Forgetful:
    	def __init__(self):
    		self.iForgetfulType = 0
    
    	def interfaceScreen(self):
    		screen = CyGInterfaceScreen("ForgetfulScreen", CvScreenEnums.FORGETFUL_SCREEN)
    		self.nTableWidth = 770
    		self.nScreenWidth = self.nTableWidth + 40
    		self.nScreenHeight = screen.getYResolution()
    		self.nTableHeight = self.nScreenHeight - 120
    		screen.setRenderInterfaceOnly(True)
    		screen.setDimensions(screen.getXResolution()/2 - self.nScreenWidth/2, 0, self.nScreenWidth, self.nScreenHeight)
    		screen.showScreen(PopupStates.POPUPSTATE_IMMEDIATE, False)
    
    		# Here we set the background widget and exit button, and we show the screen
    		screen.addPanel( "ForgetfulBG", u"", u"", False, True, 0, 0, self.nScreenWidth, self.nScreenHeight, PanelStyles.PANEL_STYLE_MAIN )
    		screen.setText("ForgetfulExit", "Background", u"<font=4b>" + localText.getText("TXT_KEY_PEDIA_SCREEN_EXIT", ()).upper() + "</font>", CvUtil.FONT_RIGHT_JUSTIFY, self.nScreenWidth - 25, self.nScreenHeight - 50, -0.1, FontTypes.TITLE_FONT, WidgetTypes.WIDGET_CLOSE_SCREEN, -1, -1 )
    		
    		szDropdownName = "ForgetfulType"
    		screen.addDropDownBoxGFC(szDropdownName, 20, 20, 180, WidgetTypes.WIDGET_GENERAL, -1, -1, FontTypes.GAME_FONT)
    		screen.addPullDownString(szDropdownName, CyTranslator().getText("TXT_KEY_PEDIA_CATEGORY_UNIT", ()), 0, 0, 0 == self.iForgetfulType)
    		screen.addPullDownString(szDropdownName, CyTranslator().getText("TXT_KEY_PEDIA_CATEGORY_BUILDING", ()), 1, 1, 1 == self.iForgetfulType)
    		screen.addPullDownString(szDropdownName, CyTranslator().getText("TXT_KEY_PEDIA_CATEGORY_PROMOTION", ()), 2, 2, 2 == self.iForgetfulType)
    		screen.addPullDownString(szDropdownName, CyTranslator().getText("TXT_KEY_PEDIA_CATEGORY_TECH", ()), 3, 3, 3 == self.iForgetfulType)
    		screen.addPullDownString(szDropdownName, CyTranslator().getText("TXT_KEY_PEDIA_CATEGORY_BONUS", ()), 4, 4, 4 == self.iForgetfulType)
    		screen.addPullDownString(szDropdownName, CyTranslator().getText("TXT_KEY_PEDIA_CATEGORY_TERRAIN", ()), 5, 5, 5 == self.iForgetfulType)
    		screen.addPullDownString(szDropdownName, CyTranslator().getText("TXT_KEY_PEDIA_CATEGORY_FEATURE", ()), 6, 6, 6 == self.iForgetfulType)
    		screen.addPullDownString(szDropdownName, CyTranslator().getText("TXT_KEY_PEDIA_CATEGORY_IMPROVEMENT", ()), 7, 7, 7 == self.iForgetfulType)
    		screen.addPullDownString(szDropdownName, CyTranslator().getText("TXT_KEY_PEDIA_CATEGORY_SPECIALIST", ()), 8, 8, 8 == self.iForgetfulType)
    		screen.addPullDownString(szDropdownName, CyTranslator().getText("TXT_KEY_PEDIA_CATEGORY_UNIT_COMBAT", ()), 9, 9, 9 == self.iForgetfulType)
    		screen.addPullDownString(szDropdownName, CyTranslator().getText("TXT_KEY_PEDIA_CATEGORY_CIV", ()), 10, 10, 10 == self.iForgetfulType)
    		screen.addPullDownString(szDropdownName, CyTranslator().getText("TXT_KEY_PEDIA_CATEGORY_LEADER", ()), 11, 11, 11 == self.iForgetfulType)
    		screen.addPullDownString(szDropdownName, CyTranslator().getText("TXT_KEY_PEDIA_CATEGORY_RELIGION", ()), 12, 12, 12 == self.iForgetfulType)
    		screen.addPullDownString(szDropdownName, CyTranslator().getText("TXT_KEY_CONCEPT_CORPORATIONS", ()), 13, 13, 13 == self.iForgetfulType)
    		screen.addPullDownString(szDropdownName, CyTranslator().getText("TXT_KEY_PEDIA_CATEGORY_CIVIC", ()), 14, 14, 14 == self.iForgetfulType)
    		screen.addPullDownString(szDropdownName, CyTranslator().getText("TXT_KEY_PEDIA_CATEGORY_PROJECT", ()), 15, 15, 15 == self.iForgetfulType)
    		
    		# Build the table	
    		screen.addTableControlGFC("ForgetfulTable", 4, 20, 60, self.nTableWidth, self.nTableHeight, True, False, 24, 24, TableStyles.TABLE_STYLE_STANDARD )[COLOR="RoyalBlue"][/COLOR]
    		screen.setTableColumnHeader("ForgetfulTable", 0, "ID", 50)
    		screen.setTableColumnHeader("ForgetfulTable", 1, localText.getText("TXT_KEY_DOMESTIC_ADVISOR_NAME", ()).upper(), 250)
    		screen.setTableColumnHeader("ForgetfulTable", 2, "TYPE", 350)
    		screen.setTableColumnHeader("ForgetfulTable", 3, "GRAPHICAL", 100)
    		screen.enableSort("ForgetfulTable")
    
    		self.drawTable("ForgetfulTable")
    
    	def drawTable(self, Table):
    		screen = CyGInterfaceScreen("ForgetfulScreen", CvScreenEnums.FORGETFUL_SCREEN)
    
    	## Units ##
    		if self.iForgetfulType == 0:
    			for item in xrange(gc.getNumUnitInfos()):
    				screen.appendTableRow(Table)
    				ItemInfo = gc.getUnitInfo(item)
    				screen.setTableInt(Table, 0, item, str(item), "", WidgetTypes.WIDGET_GENERAL, -1, -1, CvUtil.FONT_LEFT_JUSTIFY)
    				screen.setTableText(Table, 1, item, ItemInfo.getDescription(), ItemInfo.getButton(), WidgetTypes.WIDGET_PEDIA_JUMP_TO_UNIT, item, 1, CvUtil.FONT_LEFT_JUSTIFY)
    				screen.setTableText(Table, 2, item, ItemInfo.getType(), "", WidgetTypes.WIDGET_PEDIA_JUMP_TO_UNIT, item, 1, CvUtil.FONT_LEFT_JUSTIFY)
    				screen.setTableText(Table, 3, item, str(ItemInfo.isGraphicalOnly()), "", WidgetTypes.WIDGET_GENERAL, -1, -1, CvUtil.FONT_LEFT_JUSTIFY)
    	## Buildings ##
    		elif self.iForgetfulType == 1:
    			for item in xrange(gc.getNumBuildingInfos()):
    				screen.appendTableRow(Table)
    				ItemInfo = gc.getBuildingInfo(item)
    				screen.setTableInt(Table, 0, item, str(item), "", WidgetTypes.WIDGET_GENERAL, -1, -1, CvUtil.FONT_LEFT_JUSTIFY)
    				screen.setTableText(Table, 1, item, ItemInfo.getDescription(), ItemInfo.getButton(), WidgetTypes.WIDGET_PEDIA_JUMP_TO_BUILDING, item, 1, CvUtil.FONT_LEFT_JUSTIFY)
    				screen.setTableText(Table, 2, item, ItemInfo.getType(), "", WidgetTypes.WIDGET_PEDIA_JUMP_TO_BUILDING, item, 1, CvUtil.FONT_LEFT_JUSTIFY)
    				screen.setTableText(Table, 3, item, str(ItemInfo.isGraphicalOnly()), "", WidgetTypes.WIDGET_GENERAL, -1, -1, CvUtil.FONT_LEFT_JUSTIFY)
    	## Promotions ##
    		elif self.iForgetfulType == 2:
    			for item in xrange(gc.getNumPromotionInfos()):
    				screen.appendTableRow(Table)
    				ItemInfo = gc.getPromotionInfo(item)
    				screen.setTableInt(Table, 0, item, str(item), "", WidgetTypes.WIDGET_GENERAL, -1, -1, CvUtil.FONT_LEFT_JUSTIFY)
    				screen.setTableText(Table, 1, item, ItemInfo.getDescription(), ItemInfo.getButton(), WidgetTypes.WIDGET_PEDIA_JUMP_TO_PROMOTION, item, 1, CvUtil.FONT_LEFT_JUSTIFY)
    				screen.setTableText(Table, 2, item, ItemInfo.getType(), "", WidgetTypes.WIDGET_PEDIA_JUMP_TO_PROMOTION, item, 1, CvUtil.FONT_LEFT_JUSTIFY)
    				screen.setTableText(Table, 3, item, str(ItemInfo.isGraphicalOnly()), "", WidgetTypes.WIDGET_GENERAL, -1, -1, CvUtil.FONT_LEFT_JUSTIFY)
    	## Techs ##
    		elif self.iForgetfulType == 3:
    			for item in xrange(gc.getNumTechInfos()):
    				screen.appendTableRow(Table)
    				ItemInfo = gc.getTechInfo(item)
    				screen.setTableInt(Table, 0, item, str(item), "", WidgetTypes.WIDGET_GENERAL, -1, -1, CvUtil.FONT_LEFT_JUSTIFY)
    				screen.setTableText(Table, 1, item, ItemInfo.getDescription(), ItemInfo.getButton(), WidgetTypes.WIDGET_PEDIA_JUMP_TO_TECH, item, 1, CvUtil.FONT_LEFT_JUSTIFY)
    				screen.setTableText(Table, 2, item, ItemInfo.getType(), "", WidgetTypes.WIDGET_PEDIA_JUMP_TO_TECH, item, 1, CvUtil.FONT_LEFT_JUSTIFY)
    				screen.setTableText(Table, 3, item, str(ItemInfo.isGraphicalOnly()), "", WidgetTypes.WIDGET_GENERAL, -1, -1, CvUtil.FONT_LEFT_JUSTIFY)
    	## Bonuses ##
    		elif self.iForgetfulType == 4:
    			for item in xrange(gc.getNumBonusInfos()):
    				screen.appendTableRow(Table)
    				ItemInfo = gc.getBonusInfo(item)
    				screen.setTableInt(Table, 0, item, str(item), "", WidgetTypes.WIDGET_GENERAL, -1, -1, CvUtil.FONT_LEFT_JUSTIFY)
    				screen.setTableText(Table, 1, item, ItemInfo.getDescription(), ItemInfo.getButton(), WidgetTypes.WIDGET_PEDIA_JUMP_TO_BONUS, item, 1, CvUtil.FONT_LEFT_JUSTIFY)
    				screen.setTableText(Table, 2, item, ItemInfo.getType(), "", WidgetTypes.WIDGET_PEDIA_JUMP_TO_BONUS, item, 1, CvUtil.FONT_LEFT_JUSTIFY)
    				screen.setTableText(Table, 3, item, str(ItemInfo.isGraphicalOnly()), "", WidgetTypes.WIDGET_GENERAL, -1, -1, CvUtil.FONT_LEFT_JUSTIFY)
    	## Terrains ##
    		elif self.iForgetfulType == 5:
    			for item in xrange(gc.getNumTerrainInfos()):
    				screen.appendTableRow(Table)
    				ItemInfo = gc.getTerrainInfo(item)
    				screen.setTableInt(Table, 0, item, str(item), "", WidgetTypes.WIDGET_GENERAL, -1, -1, CvUtil.FONT_LEFT_JUSTIFY)
    				screen.setTableText(Table, 1, item, ItemInfo.getDescription(), ItemInfo.getButton(), WidgetTypes.WIDGET_PEDIA_JUMP_TO_TERRAIN, item, 1, CvUtil.FONT_LEFT_JUSTIFY)
    				screen.setTableText(Table, 2, item, ItemInfo.getType(), "", WidgetTypes.WIDGET_PEDIA_JUMP_TO_TERRAIN, item, 1, CvUtil.FONT_LEFT_JUSTIFY)
    				screen.setTableText(Table, 3, item, str(ItemInfo.isGraphicalOnly()), "", WidgetTypes.WIDGET_GENERAL, -1, -1, CvUtil.FONT_LEFT_JUSTIFY)
    	## Features ##
    		elif self.iForgetfulType == 6:
    			for item in xrange(gc.getNumFeatureInfos()):
    				screen.appendTableRow(Table)
    				ItemInfo = gc.getFeatureInfo(item)
    				screen.setTableInt(Table, 0, item, str(item), "", WidgetTypes.WIDGET_GENERAL, -1, -1, CvUtil.FONT_LEFT_JUSTIFY)
    				screen.setTableText(Table, 1, item, ItemInfo.getDescription(), ItemInfo.getButton(), WidgetTypes.WIDGET_PEDIA_JUMP_TO_FEATURE, item, 1, CvUtil.FONT_LEFT_JUSTIFY)
    				screen.setTableText(Table, 2, item, ItemInfo.getType(), "", WidgetTypes.WIDGET_PEDIA_JUMP_TO_FEATURE, item, 1, CvUtil.FONT_LEFT_JUSTIFY)
    				screen.setTableText(Table, 3, item, str(ItemInfo.isGraphicalOnly()), "", WidgetTypes.WIDGET_GENERAL, -1, -1, CvUtil.FONT_LEFT_JUSTIFY)
    	## Improvements ##
    		elif self.iForgetfulType == 7:
    			for item in xrange(gc.getNumImprovementInfos()):
    				screen.appendTableRow(Table)
    				ItemInfo = gc.getImprovementInfo(item)
    				screen.setTableInt(Table, 0, item, str(item), "", WidgetTypes.WIDGET_GENERAL, -1, -1, CvUtil.FONT_LEFT_JUSTIFY)
    				screen.setTableText(Table, 1, item, ItemInfo.getDescription(), ItemInfo.getButton(), WidgetTypes.WIDGET_PEDIA_JUMP_TO_IMPROVEMENT, item, 1, CvUtil.FONT_LEFT_JUSTIFY)
    				screen.setTableText(Table, 2, item, ItemInfo.getType(), "", WidgetTypes.WIDGET_PEDIA_JUMP_TO_IMPROVEMENT, item, 1, CvUtil.FONT_LEFT_JUSTIFY)
    				screen.setTableText(Table, 3, item, str(ItemInfo.isGraphicalOnly()), "", WidgetTypes.WIDGET_GENERAL, -1, -1, CvUtil.FONT_LEFT_JUSTIFY)
    	## Specialists ##
    		elif self.iForgetfulType == 8:
    			for item in xrange(gc.getNumSpecialistInfos()):
    				screen.appendTableRow(Table)
    				ItemInfo = gc.getSpecialistInfo(item)
    				screen.setTableInt(Table, 0, item, str(item), "", WidgetTypes.WIDGET_GENERAL, -1, -1, CvUtil.FONT_LEFT_JUSTIFY)
    				screen.setTableText(Table, 1, item, ItemInfo.getDescription(), ItemInfo.getButton(), WidgetTypes.WIDGET_PEDIA_JUMP_TO_SPECIALIST, item, 1, CvUtil.FONT_LEFT_JUSTIFY)
    				screen.setTableText(Table, 2, item, ItemInfo.getType(), "", WidgetTypes.WIDGET_PEDIA_JUMP_TO_SPECIALIST, item, 1, CvUtil.FONT_LEFT_JUSTIFY)
    				screen.setTableText(Table, 3, item, str(ItemInfo.isGraphicalOnly()), "", WidgetTypes.WIDGET_GENERAL, -1, -1, CvUtil.FONT_LEFT_JUSTIFY)
    	## Unit Combats ##
    		elif self.iForgetfulType == 9:
    			for item in xrange(gc.getNumUnitCombatInfos()):
    				screen.appendTableRow(Table)
    				ItemInfo = gc.getUnitCombatInfo(item)
    				screen.setTableInt(Table, 0, item, str(item), "", WidgetTypes.WIDGET_GENERAL, -1, -1, CvUtil.FONT_LEFT_JUSTIFY)
    				screen.setTableText(Table, 1, item, ItemInfo.getDescription(), ItemInfo.getButton(), WidgetTypes.WIDGET_PEDIA_JUMP_TO_UNIT_COMBAT, item, 1, CvUtil.FONT_LEFT_JUSTIFY)
    				screen.setTableText(Table, 2, item, ItemInfo.getType(), "", WidgetTypes.WIDGET_PEDIA_JUMP_TO_UNIT_COMBAT, item, 1, CvUtil.FONT_LEFT_JUSTIFY)
    				screen.setTableText(Table, 3, item, str(ItemInfo.isGraphicalOnly()), "", WidgetTypes.WIDGET_GENERAL, -1, -1, CvUtil.FONT_LEFT_JUSTIFY)
    	## Civilizations ##
    		elif self.iForgetfulType == 10:
    			for item in xrange(gc.getNumCivilizationInfos()):
    				screen.appendTableRow(Table)
    				ItemInfo = gc.getCivilizationInfo(item)
    				screen.setTableInt(Table, 0, item, str(item), "", WidgetTypes.WIDGET_GENERAL, -1, -1, CvUtil.FONT_LEFT_JUSTIFY)
    				screen.setTableText(Table, 1, item, ItemInfo.getDescription(), ItemInfo.getButton(), WidgetTypes.WIDGET_PEDIA_JUMP_TO_CIV, item, 1, CvUtil.FONT_LEFT_JUSTIFY)
    				screen.setTableText(Table, 2, item, ItemInfo.getType(), "", WidgetTypes.WIDGET_PEDIA_JUMP_TO_CIV, item, 1, CvUtil.FONT_LEFT_JUSTIFY)
    				screen.setTableText(Table, 3, item, str(ItemInfo.isGraphicalOnly()), "", WidgetTypes.WIDGET_GENERAL, -1, -1, CvUtil.FONT_LEFT_JUSTIFY)
    	## Leaders ##
    		elif self.iForgetfulType == 11:
    			for item in xrange(gc.getNumLeaderHeadInfos()):
    				screen.appendTableRow(Table)
    				ItemInfo = gc.getLeaderHeadInfo(item)
    				screen.setTableInt(Table, 0, item, str(item), "", WidgetTypes.WIDGET_GENERAL, -1, -1, CvUtil.FONT_LEFT_JUSTIFY)
    				screen.setTableText(Table, 1, item, ItemInfo.getDescription(), ItemInfo.getButton(), WidgetTypes.WIDGET_PEDIA_JUMP_TO_LEADER, item, 1, CvUtil.FONT_LEFT_JUSTIFY)
    				screen.setTableText(Table, 2, item, ItemInfo.getType(), "", WidgetTypes.WIDGET_PEDIA_JUMP_TO_LEADER, item, 1, CvUtil.FONT_LEFT_JUSTIFY)
    				screen.setTableText(Table, 3, item, str(ItemInfo.isGraphicalOnly()), "", WidgetTypes.WIDGET_GENERAL, -1, -1, CvUtil.FONT_LEFT_JUSTIFY)
    	## Religions ##
    		elif self.iForgetfulType == 12:
    			for item in xrange(gc.getNumReligionInfos()):
    				screen.appendTableRow(Table)
    				ItemInfo = gc.getReligionInfo(item)
    				screen.setTableInt(Table, 0, item, str(item), "", WidgetTypes.WIDGET_GENERAL, -1, -1, CvUtil.FONT_LEFT_JUSTIFY)
    				screen.setTableText(Table, 1, item, ItemInfo.getDescription(), ItemInfo.getButton(), WidgetTypes.WIDGET_PEDIA_JUMP_TO_RELIGION, item, 1, CvUtil.FONT_LEFT_JUSTIFY)
    				screen.setTableText(Table, 2, item, ItemInfo.getType(), "", WidgetTypes.WIDGET_PEDIA_JUMP_TO_RELIGION, item, 1, CvUtil.FONT_LEFT_JUSTIFY)
    				screen.setTableText(Table, 3, item, str(ItemInfo.isGraphicalOnly()), "", WidgetTypes.WIDGET_GENERAL, -1, -1, CvUtil.FONT_LEFT_JUSTIFY)
    	## Corporations ##
    		elif self.iForgetfulType == 13:
    			for item in xrange(gc.getNumCorporationInfos()):
    				screen.appendTableRow(Table)
    				ItemInfo = gc.getCorporationInfo(item)
    				screen.setTableInt(Table, 0, item, str(item), "", WidgetTypes.WIDGET_GENERAL, -1, -1, CvUtil.FONT_LEFT_JUSTIFY)
    				screen.setTableText(Table, 1, item, ItemInfo.getDescription(), ItemInfo.getButton(), WidgetTypes.WIDGET_PEDIA_JUMP_TO_CORPORATION, item, 1, CvUtil.FONT_LEFT_JUSTIFY)
    				screen.setTableText(Table, 2, item, ItemInfo.getType(), "", WidgetTypes.WIDGET_PEDIA_JUMP_TO_CORPORATION, item, 1, CvUtil.FONT_LEFT_JUSTIFY)
    				screen.setTableText(Table, 3, item, str(ItemInfo.isGraphicalOnly()), "", WidgetTypes.WIDGET_GENERAL, -1, -1, CvUtil.FONT_LEFT_JUSTIFY)
    	## Civics ##
    		elif self.iForgetfulType == 14:
    			for item in xrange(gc.getNumCivicInfos()):
    				screen.appendTableRow(Table)
    				ItemInfo = gc.getCivicInfo(item)
    				screen.setTableInt(Table, 0, item, str(item), "", WidgetTypes.WIDGET_GENERAL, -1, -1, CvUtil.FONT_LEFT_JUSTIFY)
    				screen.setTableText(Table, 1, item, ItemInfo.getDescription(), ItemInfo.getButton(), WidgetTypes.WIDGET_PEDIA_JUMP_TO_CIVIC, item, 1, CvUtil.FONT_LEFT_JUSTIFY)
    				screen.setTableText(Table, 2, item, ItemInfo.getType(), "", WidgetTypes.WIDGET_PEDIA_JUMP_TO_CIVIC, item, 1, CvUtil.FONT_LEFT_JUSTIFY)
    				screen.setTableText(Table, 3, item, str(ItemInfo.isGraphicalOnly()), "", WidgetTypes.WIDGET_GENERAL, -1, -1, CvUtil.FONT_LEFT_JUSTIFY)
    	## Projects ##
    		elif self.iForgetfulType == 15:
    			for item in xrange(gc.getNumProjectInfos()):
    				screen.appendTableRow(Table)
    				ItemInfo = gc.getProjectInfo(item)
    				screen.setTableInt(Table, 0, item, str(item), "", WidgetTypes.WIDGET_GENERAL, -1, -1, CvUtil.FONT_LEFT_JUSTIFY)
    				screen.setTableText(Table, 1, item, ItemInfo.getDescription(), ItemInfo.getButton(), WidgetTypes.WIDGET_PEDIA_JUMP_TO_PROJECT, item, 1, CvUtil.FONT_LEFT_JUSTIFY)
    				screen.setTableText(Table, 2, item, ItemInfo.getType(), "", WidgetTypes.WIDGET_PEDIA_JUMP_TO_PROJECT, item, 1, CvUtil.FONT_LEFT_JUSTIFY)
    				screen.setTableText(Table, 3, item, str(ItemInfo.isGraphicalOnly()), "", WidgetTypes.WIDGET_GENERAL, -1, -1, CvUtil.FONT_LEFT_JUSTIFY)
    
    	def handleInput (self, inputClass):
    		if (inputClass.getFunctionName() == "ForgetfulType"):
    			self.handlePlatyForgetfulTypeCB(inputClass.getData())
    		return 0
    
    	def handlePlatyForgetfulTypeCB ( self, argsList ) :
    		self.iForgetfulType = int(argsList)
    		self.interfaceScreen()
    		return
    
    	def update(self, fDelta):
    		return 1
     
  16. SargontheGreat2

    SargontheGreat2 Modder

    Joined:
    May 17, 2012
    Messages:
    761
    Location:
    New Jersey, USA
    Now I need something like that
     
  17. Dancing Hoskuld

    Dancing Hoskuld Deity

    Joined:
    Jul 5, 2004
    Messages:
    23,319
    Gender:
    Male
    Location:
    Canberra, Australia
    No it is a skin, I think. Anyway iirc the problem is that the low definition definition looks for a file that is not there. It has the wrong name, I think.

    I am still grumpy and not sure I am modding for c2C at all at the moment.
     
  18. Azurian

    Azurian The Azurian

    Joined:
    Apr 10, 2012
    Messages:
    2,092
    Location:
    Florida, USA
    Oh well hope you get better soon, I just got over the flu!
     
  19. Thunderbrd

    Thunderbrd C2C War Dog

    Joined:
    Jan 2, 2010
    Messages:
    26,226
    Gender:
    Male
    Location:
    Las Vegas
    Me too! That's very cool!

    @DH: You know we love you right? Help us repair our irritating ways... I'm sure the team can be inspired to do so.
     
  20. Azurian

    Azurian The Azurian

    Joined:
    Apr 10, 2012
    Messages:
    2,092
    Location:
    Florida, USA
    For Forgotful Modder I merged all the Python code into the C2C Python, even changed the key to load it from F1 to F10 but couldn't get it to load. I noticed we don't have a CvEventManager.py so I copied the one from Beyond the Sword, so maybe that's why it wouldn't load when I was in the game.

    ## Forgetful ##
     

Share This Page