Recent content by Chaloup

  1. C

    GUIDE: Adding new units

    I found the error. My folder was stupidly named "Unit" instead of "Units"... :blush: Thanks by the way for your solicitud...
  2. C

    Basic questions

    Ok, thank you for your patience... :blush: I understand quickly but I need to be told several times!:lol: I think that will do the trick: if (iBuildingType == gc.getInfoTypeForString("BUILDING_NINEELEVENTH")): PostWar.globalwar(pCity) and then: def globalwar(pCity): cyVictim =...
  3. C

    GUIDE: Adding new units

    I get an XML error on loading concerning added units, but I really can't figure what is the problem: [359309.437] info type UNIT_IL2 not found, Current XML file is: xml\Civilizations/CIV4CivilizationInfos.xml CivilizationInfos seems OK: <Units> <Unit>...
  4. C

    Basic questions

    That is my first question. pCity is defined in onBuildingBuilt def onBuildingBuilt(self, argsList): 'Building Completed' pCity, iBuildingType = argsList game = gc.getGame() blabla... and then if (iBuildingType ==...
  5. C

    Basic questions

    Well, my log file is not that clear! It is basically one line per pop-up, with the empty pop-ups replaced by something like "Unable to load CvEventManager"! :lol: I can't show you as I have cleaned all the errors at loading, so the file is empty now. I will test in-game this week-end when I...
  6. C

    Basic questions

    Thank you All! God EMperor, Got it, only a coincidence... So insPlayer.initUnit(unitType, iX, iY, 1) would be better, right? The J, Ok, so that's the use of defining cyMap = CyMap()... It was included but I had no idea about the use :) I was asking for global checking if my writing is...
  7. C

    Basic questions

    OK, so now it should be cleaner, at least with good instances. For the spawning: def guerilla (player, iX, iY): insPlayer = PyPlayer(player) unitType = gc.getInfoTypeForString("UNIT_WARRIOR") insPlayer.initUnit(unitType, iX, iY, UnitAITypes.NO_UNITAI) Still intending to spawn a...
  8. C

    Basic questions

    Well, it would be more exact to say that I'm in the abysses actually... Basically, what I'm doing is looking scripts in other mods, and adapting what I think I understand... (that's what I have done with the self. stuff, if it's working for others, why not for me :D) Let me work again on...
  9. C

    Basic questions

    Hello All Another noob questions thread, sorry... I started looking at Python few weeks ago (thanks Baldyr for the help and links you provided, very usefull). But I'm still quite confused... Let's check. For the context, I'm planning a mod that recreates the post war events (revolutions...
Back
Top Bottom