Recent content by PeteT

  1. P

    Computer Questions Not Worth Their Own Thread II

    I recently got a new computer with Windows 10 and started having problems editing Civ 4 XML files. Whenever I tried to run the program with a modified file, it wouldn't load and the error message showed some unreadable characters at the beginning of the file. These characters wouldn't show up...
  2. P

    C++ help, please!

    It's called "Hungarian Notation": http://en.wikipedia.org/wiki/Hungarian_notation http://msdn.microsoft.com/en-us/library/aa260976(VS.60).aspx
  3. P

    Defensive Pact Code

    I don't think I would have ever imagined that I would hear "ask your mom" in that context :) .
  4. P

    worker replacement?

    You can get the Call to Power source code over at Poly. See question 4 in this link: http://apolyton.net/forums/showthread.php?s=&threadid=139275 This will show you how they implemented the Public Works system and you could adapt it to do it your way. You also need to know Python to handle...
  5. P

    Enhancing Civ4 interface

    It's undoubtedly possible but, as an old friend of mine once said to me, "Don't even think about doing that unless you're being paid by the hour." :wink:
  6. P

    [NOOB Python] Why won't they attack damn it!

    This can't be right: team2=gc.getTeam(gc.getPlayer(i).getTeam())
  7. P

    Creating an assert build

    Using Visual Studio 2003 (or 2005), right smack in the top center of the screen there's a solution configuration dropdown. Click it and select 'configuration manager' to open a new window. Change both the active solution configuration and the CvGameCoreDLL project configuration to be 'Final...
  8. P

    Installing and using the SDK

    That's your problem: it doesn't (usually) work that way. If there are any duplicate files in the downloads, you pretty well have to get an application (like WinMerge) that lets you compare and merge pairs of files, and then do that with the duplicates. I think you would probably have to be lucky...
  9. P

    Installing and using the SDK

    Bruce, it would be better if you attached your changed files (esp 'CvGame.cpp' and 'CvGame.h').
  10. P

    (SDK) What is GET_PLAYER actually returning?

    Where did "getCanDoCivics" come from? I can't find it in the version I have.
  11. P

    Detailed specialist info?

    It looks like you want to use: int CvCity::getSpecialistCount(SpecialistTypes eIndex)
  12. P

    Increasing collateral damage limit with a promotion?

    I *think* what you're asking about is the mouseovers that are done in CvGameTextMgr:: parsePromotionHelp
  13. P

    Bring back the GLANCE tab to the foreign advisor!

    For the sake of comparison, here's what the old Glance screen looks like with that number of players:
  14. P

    Bring back the GLANCE tab to the foreign advisor!

    That's a good idea. I didn't realize that you could get both vertical and horizontal scrolling on the same panel (which is what is needed). Turns out you can.
  15. P

    Bring back the GLANCE tab to the foreign advisor!

    I did another artistically minimal GLANCE screen. This involves exposing the function AI_getAttitudeVal to Python:
Top Bottom