Announcement

Collapse
No announcement yet.

Infrastructure SLIC

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Infrastructure SLIC

    Infrastructure SLIC v1.0
    file: infras.slc
    by player1

    Installation:

    Put this file in yours ..\ctp2_data\default\gamedata\ folder
    and add #include "infras.slc" line in script.slc file.

    This code fixes AI bug in which AI players, when trying
    to use Infrastructure or Capitalization, leave build queue empty.
    It detects cities with empty build queues and gives them
    10 * city pop PW and gold bonus, lowered by PW tax percent value.

    Example:
    City size 28, PW tax 20%
    gives 28*10*(1-0.2)=224 gold and PW bonus

    This file is great in combo with pw_cheat.slc

  • #2
    Here it is
    It's now a v1.01
    PW factor is chaged from 10 to 15, so in previous example
    PW bonus would be 336 and gold bonus would stay at 224.
    Attached Files

    Comment


    • #3
      ANY COMMENTS?

      Comment


      • #4
        10 days have passed, 4 downloads (plus some from other threads)
        Any comments, any bugs, is this slic working fine?

        Comment


        • #5
          as far as i can see the slic is working. I added a lot of slics at once from you and Martin and so i cant say why the computer is stronger now but he is.
          The computer is building a lot more tile improvements now then previously in my opinion

          Comment


          • #6
            You know this slic is importatnt in a Mordern age when tile improvments are costly.
            When AI has built almost all of the avalilable buildings, enough units and
            has Mass Prodction, it will get bouns gold & PW, to simulate using of
            capitalization or infrastructure.

            Without slic it would just leave an empty queue.

            Comment


            • #7
              23 days after posting, 6 downloads.
              Probably because it is alredy in other MODs.
              I guess that this SLIC is bug-free, since nobody replies othervise.

              MODers, feel free to use this slic in your MODs!

              Comment


              • #8
                I am not sure I understand the problem. I think that you must have the build queue empty in order to use capitalization or infrastructure. What is happening that is messing up the AI?

                Comment


                • #9
                  For human player all is OK.
                  But,
                  for AI when he wants to build a infastructure & capitalization, he leaves an empy queue (THE BUG)!
                  So since I don't know how to add an infras. (I tried so hard) to his queue, I have added a bonus gold & pw for AI cities with infinite empty queues (to simulate actual building od capitalization or infastructure).

                  Comment


                  • #10
                    So (with this SLIC) anytime when AI WANTS to build infras. or capit.,
                    he will still have an empty queues but will get a bouns of PW & GOLD.

                    Comment

                    Working...
                    X