Recent content by Hutma

  1. H

    [MOD] Historia Vincit

    I'm going to download it then :)
  2. H

    Does anyone know how to create Events?

    Cool, how have you done it?
  3. H

    Does anyone know how to create Events?

    Maybe you can go through the python. I've never done something like this in the past but I can try. I'll keep you updated next week ;)
  4. H

    Spawn a civ

    Ok, I'll try to do it, but it won't be before the end of the week, I'm busy for the moment.
  5. H

    Spawn a civ

    Also if you give me the coordinates of the one city you want to spawn I can try to write the python for it.
  6. H

    Spawn a civ

    I'll take a look at it, can you send me the files you have edited?
  7. H

    Spawn a civ

    Here is download for the new version: https://forums.civfanatics.com/resources/xml-python-spawn-a-civ-2020-26-05.28280/
  8. H

    [XML + Python] Spawn A Civ 2020-26-05 2020-05-26

    I have only changed a little bit the code of this modcomp to make it work better. It was made by The_J and I thank him for his work on it. Here is a thread about the discussion regarding the changes: https://forums.civfanatics.com/forums/civ4-mod-components.180/ Here is the original thread...
  9. H

    Spawn a civ

    I haven't seen the code off these two methods but I think you can add a condition in it to test if the picked civ (that will be spawned) by the program is the one you want to prevent from spawning. And if it is you can prevent it by making it picking an other one. I'll take some time to look at...
  10. H

    Spawn a civ

    It took me some time to find out it wasn't working properly ;) I'll try to reput the iHumanTech option before reuploading it. Of course I'll give you credit! I'm also not very good at coding but I'll try to do my best. Many thanks for all your modcomp and participation on this forum, it has...
  11. H

    Spawn a civ

    Here it is! I have a version that works. (I got rid of the iHumanTech but I could put it back I think) Thank you very much Ifgr, you helped me a lot with this. I'm leaning Python in engineering school so I know how it works and how to do things but using python this way is very new for me, thank...
  12. H

    Spawn a civ

    So, after a few tries i found that this line: if not iTechType == gc.getInfoTypeForString(Tech): return isn't working at all. I tried to replace gc.getInfoTypeForString(Tech) by "TECH_XYZ" (XYZ being the name of tech I tested) and even then it doesn't work. I tried...
  13. H

    Spawn a civ

    Bad news, it doesn't really work. Only the Turns are taken into account. If you have the right tech but the turn set in the XML is not reached yet, the civ won't spawn. I thought this is because the "if iTurn" was blocking the "if iTech" but no, it's not for this. Maybe there is something wrong...
  14. H

    Spawn a civ

    It works! I will continue to test it but it seems to work perfectly with your fix, replacing "if Techtype:" and "if iTurn:" by "if iTechType is not None:" and "if iTurn is not None:". Thank you very much, I have been on this for hours!
  15. H

    Spawn a civ

    Thank you for the reply, I'm going to test this, and keep the thread informed of if it produced results or not.
Top Bottom