Search results

  1. vincentz

    Assert Failed

    I have a bunch of Assert Failed when debugging, and while they dont seem to cause any trouble, they do kind of bother me, and I would prefer to atleast understand them before turning them off. They will be added to this thread as they come up in my game. The first one: eBuilding = 139 and...
  2. vincentz

    movesleft()

    Im trying to get the movesLeft() for the attacking unit (this) in void CvUnit::resolveCombat(CvUnit* pDefender, CvPlot* pPlot, CvBattleDefinition& kBattle), but getting a strangely large negative number. The same happens when I try to get maxMoves - getMoves() If I just want the baseMoves() it...
  3. vincentz

    int CvTeam::getTechShareCount(int iIndex) const

    Its been awhile since modding the gamecore, and I have been coding in Java, js, c#, html and css in between, so to say Im a bit rusty is an understatement ;), but I cant get the number of the project internet I tried with int CvTeam::getTechShareCount(int iIndex) const but I always get 0...
  4. vincentz

    infinite looping unit

    Anyone knows what this code does? template <class T> T* FFreeListTrashArray<T>::getAt(int iID) const { int iIndex; if ((iID == FFreeList::INVALID_INDEX) || (m_pArray == NULL)) { return NULL; } iIndex = (iID & FLTA_INDEX_MASK); assert(iIndex >= 0); if...
  5. vincentz

    Nofollow on links to external sites?

    Without knowing mechanics and the https, it seems to be hidden what the referal site is when it comes from civ fanatics. F.ex. when I look at stats on ModDB it shows as unknown. It didnt use to though pre forum upgrade.
  6. vincentz

    gDLL->getInterfaceIFace()->addMessage

    I've been trying everything but I cant get the text to show :( Textfile <TEXT> <Tag>TXT_KEY_GOT_RESEARCH_FROM_PROJECT</Tag> <English>Your projects have gathered research for %s1_TechName (%d2%%)</English> <French>Your projects have gathered research for %s1_TechName (%d2%%)</French>...
  7. vincentz

    Espionage discussion

    I like spies. I like espionage. What I dont like is the espionage points directed to each civ. I'm considering making it a pool instead, and wanted the high councils wise members of the esteemed civ fanatics fantastic forum wanderers opinion on the matter. How would your ideal Espionage...
  8. vincentz

    Scoreboard Civ Widgets

    I added some icons to the mouseover widget, and thought I was going mad, because I was certain that the widget always showed next to the scoreboard. I loaded default vanilla BtS, but that also showed the widget on the left side of the screen. Anyone knows how to permanently show the widget...
  9. vincentz

    CTD

    I had a crash to desktop :( I know its a lot to ask, but if anyone could take a look why it crashed I would be grateful. If I loaded game again, it would crash again. I tried to use Alt+z to go through all the AIs to see where it crashed (if it was a art define or similar), but I could go...
  10. vincentz

    Vincentz Rangestrike

    Download link here This mod adds Rangestrikes (Ranged Combat) to sieges and ships from Frigate and forward. The sieges are no longer able to perform direct combat, only rangestrikes. The ships can do both. AI will use it for Land2Land, Land2Sea, Sea2Land, Continent2Continent and sometimes...
  11. vincentz

    Unit healing costs

    Got another idea that can be executed in 3 different ways. Just throwing it out there for now, but might take it on later. Right now the units magically heal themselves when idle, but what if there was some cost to it: Suggestion 1: It cost gold to replenish troops/weapons/repairs 1 gold for...
  12. vincentz

    Dynamic Player Handicapper / "Rest on one's laurels"

    One thing that have always bothered my about civ (all versions and mods) is the "Winning Point of No Return". Usually my games would progress like this: Beginning = behind Early game = catching up Middle game (usually late medieval to renaissance) = number 1 (WPoNR) Late game = crushing all...
  13. vincentz

    New combat mechanics suggestion

    I once read someone suggested that combat shouldnt be random, and I remember disagreeing, but lately I was feeling the current mechanism being somewhat broke. Especially when a lucky/unlucky streak hits like the first encounter (the lowest one) Imho its a bit silly that my ship escapes...
  14. vincentz

    Leaderhead buttons

    Well, here I am again... I was really tired of the mess in the info panel when there was a big stack. In the top it was going off screen and the bottom was unreadable, so I decided to change things a bit : Problem is that it isnt Elisabeth's units but Willem's. I sat until 3 am last...
  15. vincentz

    Evac or resist?

    In a bit of a pickle here. My pleased friend Willem decided enough was enough and declared war against the only city I have on his continent. Since he come with 60+ units and I only have 4, its a no brainer that im gonna loose the city. I did prepare for this scenario though, and have 3 Cogs who...
  16. vincentz

    CvUnitAI::AI_rangeAttack

    I cant figure out when the AI decides to use CvUnitAI::AI_rangeAttack. It is only listed in one other place in CvUnitAI.cpp and that is in CvUnitAI::AI_anyAttack if (AI_rangeAttack(iRange)) { return true; } Since the AI isnt very consistent in using it, I want to figure out how it...
  17. vincentz

    CvUnit::canEnterArea

    I recently made a small change to the startgame, where all units, before "Enable Open Borders" is researched by Writing, are AlwaysHostile. if ((!m_pUnitInfo->isAlwaysHostile()) && (GET_TEAM(GC.getGameINLINE().getActiveTeam()).isOpenBordersTrading())) While it works pretty sweet, it have 1...
  18. vincentz

    Civic AI Weights problem... heeelp

    I messed up. Im not sure exactly where i did, but I know when I did, which was between my 0.98 and 0.99 gamecore.dll. The AI weights are going through the roof. Problem is I have no idea what causes it, so I plea to the ones who have been blessed by the code gods. Maybe someone can do a...
  19. vincentz

    CvUnit::testSpyIntercepted

    First of all, sorry for spamming lots of threads, but I kinda like this little corner of CFC, and I feel I get very competent answers to my mostly stupid questions :D So, Im lazy, and want to spice up my spies a bit. Since there already is an "Evasion" in promotions, I thought I could use it for...
  20. vincentz

    void CvPlot::doImprovement()

    Got a couple of improvements in my mod that "discovers" resources, but while its ok with mines, it becomes a bit silly when fur is discovered in the tropical and bananas in the polar regions, so I wanted to add a min/max longitude check. So... void CvPlot::doImprovement() if...
Top Bottom