Recent content by Victarus

  1. V

    Best earth map?

    That's incorrect: the magic number "18" is enshrined as a constant in the DLL, and (if I remember correctly) is used as the length for several static arrays, as well as for other constants (the maximum number of teams, for example). The maximum number of players could become variable, but it...
  2. V

    python memory leak and video memory?

    It's probably still the same problem: "B" is just an object on the map or something. (Video memory gets allocated from code, remember. ;)) Despite the fact that the object stops rendering, the memory itself is never released (either the reference problem above or a forgotten function call when...
  3. V

    python memory leak and video memory?

    Garbage collected languages don't protect you from memory leaks; they just change the circumstances they happen in. Most likely, you have something like this somewhere in the code: A.member = B B.member = A That's it. A will never be deleted because it's referenced by B, and B will never...
  4. V

    What is the current best way to re(compile) the SDK

    It will work the same. You're actually only using it as an IDE -- the compiler is the 2003 one that you download.
  5. V

    Wanted: One Pythoneer and one SDKer

    No, just grumpy. :D Again, if you need any help just post and I'm sure someone will be able to help you understand anything. I'm going over the code myself (its nice to see how others do things, and I might make a mod just to force myself to work in an existing system), so I'd be pleased to...
  6. V

    Wanted: One Pythoneer and one SDKer

    Sorry to be a curmudgeony old man here, but this is a very frequent message for amateur game programmers to see. Nothing against you or your team, and this is half in jest, but in the context of the countless messages like this out there, your request gets translated as: Again, tongue in cheek...
  7. V

    Why scenario editing in Civ4 sucks..

    Ok, maybe it's the bitter programmer in me, but I really hate seeing these posts. What could you mod in Civilization 2 or 3? It's been a while since I've played them, but I remember the answer being "not much", at least relatively speaking. Almost any possible change was throwing a different...
  8. V

    Programmers: Help me CUT TURN TIMES IN HALF OR MORE!

    Well I'm not talking about doubling where it's listed necessarily, but putting it where it would result in the least amount of overhead - in this case, listing the plots in the areas instead of vice versa (or, if it's used enough by both, put a pointer in both to eachother or something similar -...
  9. V

    Programmers: Help me CUT TURN TIMES IN HALF OR MORE!

    Actually, this is a fairly common way of doing things in the SDK unfortunately. For example: int CvArea::calculateTotalBestNatureYield() { CvPlot* pLoopPlot; int iCount; int iI; iCount = 0; for (iI = 0; iI < GC.getMapINLINE().numPlotsINLINE(); iI++) { pLoopPlot =...
  10. V

    Blind Research??

    CvPlayerAI.cpp, lines 1830-2690: CvPlayerAI::AI_bestTech() CvPlayerAI::AI_chooseFreeTech() CvPlayerAI::AI_chooseResearch() AI_bestTech() is probably the one you're looking for.
  11. V

    Blind Research??

    Then why the debate? Don't give me the idea that ideas are needed and then go "Oh, we're done with that part". :D As for the algorithm, it's based on getting the "best" technology. I was thinking of it being more even across the board since there wouldn't be that competition to get the best...
  12. V

    Blind Research??

    Just to give an idea for the algorithm, you don't need to necessarily have it be random to have it be blind. For example, you could take the costs given and multiply that cost (just for this algorithm, that is) based on priorities - a "Militaristic" research priority, for example, might multiply...
  13. V

    question about merc. recruitment

    Yes, yes, and yes. Of course, that doesn't mean it'll be as easy as adding a line to the XML though - you'll need to do some SDK work, and not just changing a few lines either. I don't think it would be too hard though - I think the easiest implementation would be through a custom mission, but...
  14. V

    More C++ Help

    It already tells you where your problems are: Both of the problems are in CvPlayer.cpp. The first is on line 2029, the second is on line 2030 (well, actually it's sort of on the same line, but it notices on line 2030). Change this: to this: I'm not at a computer with a compiler at...
Back
Top Bottom