Announcement

Collapse
No announcement yet.

Advance from city capture

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

  • #31
    Thn))))))))

    Comment


    • #32
      Hi Pedrunn,

      Copied the CRA_CityAdvance.slc file as downloaded and Inserted the code lines as described above but now I cant launch the game. Went to Modswapper then it starts to load and then reverts to desktop.

      Changed everything back and same thing happened. Reloaded Cradle 1.33 and same thing. Dont know what happened.

      Comment


      • #33
        Further update.

        I had to go back and reinstall CTP2, the patch and all the Cradle zip files in approximately the order I downloaded them to get it to run again.

        When I removed the #include "CRA_CityAdvance.slc" lines from the four files I wonder if I didnt do it exactly, ie, left a space accidentally.

        I hope that this feature can be incorporated into Cradle 1.33.

        Comment


        • #34
          Thats not a slic error . Spaces, enter and tabs wont give problems. Although letters and numbers would give you slic error messages at the very end of the loading. The very end loading of CTP2 is when slics are being checked. So if the crash happenned before it wasnt the slic. Still I really dont believe my code was the problem. I suggest you reinstall the craddle (no need to re install the CTP2) and launch the game if ti worked include the CRA_CityAdvance.slc in the scripts files and launch it again. It should work for new version of Craddle since doesnt seemed to have any change in advances in the mod. That is really odd :confuse:
          "Kill a man and you are a murder.
          Kill thousands and you are a conquer.
          Kill all and you are a God!"
          -Jean Rostand

          Comment


          • #35
            Originally posted by stankarp
            Hi Pedrunn,

            Copied the CRA_CityAdvance.slc file as downloaded and Inserted the code lines as described above but now I cant launch the game. Went to Modswapper then it starts to load and then reverts to desktop.

            Changed everything back and same thing happened. Reloaded Cradle 1.33 and same thing. Dont know what happened.
            How often you tried to load Cradle, from time to time if I start a new game the game crashes so I reloaded and no problem.

            -Martin
            Civ2 military advisor: "No complaints, Sir!"

            Comment


            • #36
              I am now running the game again OK.

              I will save a copy of the Gamedata folder and try again later.

              One Question. I have never been able to run Med Mod by Wes. I downloaded it twice and it crashes everytime I try to load. Are Cradle and Med Mod incompatible?

              Thanks for everyones help. I like the looting feature in Cradle where you get a PW and sometimes gold bonus. Its a nice "balancer" against the Ai who obviously gets a lot of bonuses and freebies at impossible difficulty level.

              Comment


              • #37
                I found the problem

                The CRA_CityAdvance.slc file as downloaded actually had a slightly different name to the one above. I renamed it and the game now works. I started playing and used editor to cheat to hurry up the process.)))

                When I captured the first enemy city, I received an advance entitled "Rational Thought" which is not in the great library When I clicked on rational thought in the science window it locked the game and I use cntrl/alt/del to stop CTP2.

                Then I captured three more cities and nothing happened. When I captured the next one, that was the end ot that AI, I suddenly received about 8 or 9 techs. I had actually given the etrurians a few more techs than me so they had something to cough up but it appears when that AI player was eliminated I may have been given techs from all the AI. Could that be possible? Then again, that AI may have just been given a big bonus of other AI players techs. But I certainly got at least 8 or 9 techs.

                I will play some more tonight.

                Thanks for the help

                Comment


                • #38
                  I made some small changes including the disable of the code if the conquered player is loosing its last city.

                  Rational though I cant even find it in the tech tree. I made some really small changes but i hope it works now.

                  But be aware that this wasnt even tested. I will test today.
                  Attached Files
                  "Kill a man and you are a murder.
                  Kill thousands and you are a conquer.
                  Kill all and you are a God!"
                  -Jean Rostand

                  Comment


                  • #39
                    Game running now OK except about turn 35-40 it crashed a couple of times when i ended turn. Rekoade autosave, went to editor and reloaded slic and it worked fine.

                    I am up to turn 100 about and it appears to be working. The Rational Thought advance just seems to come from nowhere. I have got one advance from capturing cities which is a nice touch.

                    Thanks for your help)

                    Comment


                    • #40
                      This Rational Thought will be out with the code i attached in the craddle game .
                      Just download it and overwites the one with same name in the \ctp2_data\default\gamedata.
                      When loading your saved game during your play press ' wich will open the chat box and write in it
                      Code:
                      /reloadslic
                      and press enter.
                      "Kill a man and you are a murder.
                      Kill thousands and you are a conquer.
                      Kill all and you are a God!"
                      -Jean Rostand

                      Comment


                      • #41
                        Pedrunn this is an important file youve created here. Especially for some ctp1 players who may miss this feature in ctp2

                        I think maybe you should create a small little tut on how to get it working for both original and cradle mod and release it as a little mod of its own right for the files directory. Of course its primary function is for future and current mods eg MM2 current and HotW for definite future

                        deserves a little news item which i would write if u want?
                        Oxygen should be considered a drug
                        Tiberian Sun Retro
                        My Mod for Tiberian Sun Webmaster of
                        http://www.tiberiumsun.com

                        Comment


                        • #42
                          Originally posted by Martin Gühmann


                          Actual this is the original indented chance I found in my GM1_Const.txt.

                          -Martin
                          Wow! A lot of work by Pedrunn has been made on the .slc code. Unless I have misunderstood what everyone is trying to do here, in the Const.txt file there is a line:

                          CAPTURE_CITY_ADVANCE_CHANCE 0.5 # chance of gaining an advance when capturing a city (assuming they have advances you don't)

                          If you change the variable to a higher #, even 1.0 if you want, I think you will get the advances you want.

                          I think this is what Martin was saying earlier.

                          Comment


                          • #43
                            Wow! A lot of work by Pedrunn has been made on the .slc code. Unless I have misunderstood what everyone is trying to do here, in the Const.txt file there is a line:
                            Dont tell anyone but the cityadvance.slc is basicly made of repetitive lines written by the J ByTheWay application. The only thing really done by me was the idea of how to make it work and the 26 lines code at the end .

                            If you change the variable to a higher #, even 1.0 if you want, I think you will get the advances you want.

                            I think this is what Martin was saying earlier.
                            The chance of getting the advance is in the code. In the line
                            Code:
                            Random(4)
                            wich means 1 out if 4 (therefore 25%). You can change the numer if you want.
                            The string in the const.txt is obsolete and useless.
                            "Kill a man and you are a murder.
                            Kill thousands and you are a conquer.
                            Kill all and you are a God!"
                            -Jean Rostand

                            Comment


                            • #44
                              Originally posted by Pedrunn
                              The chance of getting the advance is in the code. In the line
                              Code:
                              Random(4)
                              wich means 1 out if 4 (therefore 25%). You can change the numer if you want.
                              Pedrunn, you just don’t disappoint - great code – again!

                              I don’t consider myself a SLICer, but if I remember correctly (please correct me if I’m wrong), the random function starts counting at 0 (like Locutus et al ). Which means random(4) would actually give you a 1-in-5 change (20%) of gaining an advance. Right?
                              If something doesn't feel right, you're not feeling the right thing.

                              Comment


                              • #45
                                It does start at 0, but it stops counting before 4. ie, at 3. Giving you an outcome of 0,1,2, or 3. 1-in-4
                                Concrete, Abstract, or Squoingy?
                                "I don't believe in giving scripting languages because the only additional power they give users is the power to create bugs." - Mike Breitkreutz, Firaxis

                                Comment

                                Working...
                                X