Recent content by Gerikes

  1. Gerikes

    python action buttons in MP?

    Unfrotunately, I wrote that guide years ago, and I believe the message-sending system has changed since vanilla Civ4, but it seems like you have the right idea with sendModNetMessage. I think that function was included in the newer Civ4 versions for just this type of situation that you are...
  2. Gerikes

    Civ4 Multiplayer Compatability Guide

    Try CvUtil.pyPrint(self.log) all by itself (I'm assuming CvUtil.pyPrint is an actual function :)) It looks like you have CvUtil.pyPrint(self.log) which is a function, then try to add the results (NoneType) to a string (unicode). But yes, hopefully that gets you the log files printed out.
  3. Gerikes

    Civ4 Multiplayer Compatability Guide

    I can't remember what the exact code is, but there's some way in python to write to the actual log files. So you could write in code.... CySomething.LogMessage("Test") And it would log "Test" to the log files. You can use this to do... CySomething.LogMessage(self.log) In fact, it...
  4. Gerikes

    Civ4 Multiplayer Compatability Guide

    It will only produce the log when it finally does go OOS, so you won't see anything until then. I haven't seen the code base since vanilla, so I'm not sure what has changed. I think I once looked at the Warlords code and saw that it hadn't changed much, so I'm assuming just as much with BtS...
  5. Gerikes

    [SDK] Build Errors... Help!?!

    I think it's a lowercase 'i'.
  6. Gerikes

    [SDK] Build Errors... Help!?!

    It's not an XML problem. The XML has no effect whatsoever on compiling the SDK, problems may happen when the SDK tries to read from the XML at run time, but not now. There are different info classes in the SDK, normally one per XML file. At the beginning of the game, the XML files are...
  7. Gerikes

    [SDK] Build Errors... Help!?!

    1.) Do you come from a C# background? If so, there aren't really such things as "properties" in C++, the "IsRequiresWater" function is just that: a function, so it needs the ()'s after it.... 2.) pPlot is a pointer to a CvPlot, and because it's a pointer, you need to use "->IsFreshWater"...
  8. Gerikes

    CIV-like 3D game engine?

    Best source I've found for engines is here. Don't know if it'll have what you're looking for, but it's typically where I go first.
  9. Gerikes

    Python Usefulness IRL

    With more web developing firms moving towards agile methods, dynamic languages are starting to take off, although much of that lies in Ruby. This site takes a look at different languages and their usage stats, although truthfully it's not that important unless you're going for a job with...
  10. Gerikes

    HitPoints, MaxHitpoints (Help needed)

    In Civcraft, I gave each unit their own HP. But, of course, I changed the combat a ton and the standard "strength value" of Civ4 wasn't in my way. It looks like in most of the cases in the SDK, one of three things are happening when the SDK checks for the MAX_HIT_POINTS... 1.)...
  11. Gerikes

    C++ development question

    I agree with Impaler, it's nice to have a system like SVN. I typically will, on a new project, commit all the standard, unmodified source files as my first bunch, and then can always see changes from the first commit. Another thing you can try is diff. Put the standard SDK in some folder...
  12. Gerikes

    GlobalYieldModifiers - exactly what does it do?

    That affect will be added to every city. So, if you give it values of 1,2 and 3, every city owned by the player who has that building (or wonder) will get an extra 1 food, two hammers and three gold per turn. It shouldn't affect other civs.
  13. Gerikes

    Python Questions: Text manipulation + Adding unit Movement Limitation

    Unfortunately, once the unit moves, they will have already done combat / movement changes / line of sight changes / etc. So, moving it back might not have the desired effect you want.
  14. Gerikes

    Global Warming!!!

    That should work. Here's the vanilla SDK's "doGlobalWarming" function... void CvGame::doGlobalWarming() { CvCity* pCity; CvPlot* pPlot; CvWString szBuffer; TerrainTypes eWarmingTerrain; bool bChanged; int iI; eWarmingTerrain =...
  15. Gerikes

    Crash/Promotion ?

    ... well, you can do exactly as I said. Start putting the pieces of python back in bit-by-bit until you get the code that causes the crash put in, which will crash the game. You could also put a bunch of debug statements in the code you think could be causing it (for example, put one debug...
Top Bottom