Announcement

Collapse
No announcement yet.

Exchange city

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

  • #16
    Well, I've made a little update to the message file, now it should be alot easier to understand, spelling you good
    Attached Files
    You can't learn me anything.
    I can just listen to your experience, and then get my own.

    Comment


    • #17
      thanks normally people pick up the file they have been after and the treed goes down quick.

      I am working on a ransom mod at the moment were your city is held to ransom or it is blown up.

      keep on the treed for that coming soon (like monday)
      "Every time I learn something new it pushes some old stuff out of my brain" Homer Jay Simpson
      The BIG MC making ctp2 a much unsafer place.
      Visit the big mc’s website

      Comment


      • #18
        Its monday, where is it
        You can't learn me anything.
        I can just listen to your experience, and then get my own.

        Comment


        • #19
          had no response did not think you were interested I will get it done tonight. and post it tomorrow
          "Every time I learn something new it pushes some old stuff out of my brain" Homer Jay Simpson
          The BIG MC making ctp2 a much unsafer place.
          Visit the big mc’s website

          Comment


          • #20
            The Big Mc,
            I was between classes this afternoon and didn't have anything particularly useful to do (I'm at uni and I don't have the game here), so I decided to make some improvements to your 'sell up the river mod', as I saw a number of issues in your code that had room for improvement. Like I said, I don't have the game here so I can't test it, there may be some minor issues with the code (typos and such) but I think it should work much better now. The things I fixed:
            - the code now works when the human player is not player 1 as well (FE in multiplayer or Hotseat)
            - you don't have to wait a turn anymore before getting the city back
            - works for both AI and human and only offers to sell the city to the original owner (in your version the human player seem to get all offers, even if it's a city on the other side of the world that some AI lost to the barbs)
            There's 1 problem introduced with my version but that can easily be solved (I didn't do it as I don't have more time, might to it later on): it currently doesn't work for the human player if more than 1 city is captured in 1 turn (only 1 city can be bought back and which one is non-deterministic)

            Anyway, I attached the SLIC file (you'll have to make the scen_str.txt file yourself, I added all necessary lines as comment at bottom - it's virtually identical to yours).

            Edit: I accidentally called you 'Big Mac' Can you ever forgive me?
            Attached Files
            Administrator of WePlayCiv -- Civ5 Info Centre | Forum | Gallery

            Comment


            • #21
              Locutus, have you seen the code in the top (first post), do you think it could be repaired, as it don't work when uncommented. Exchanging cities with other players through diplomacy would be a nice addition to the game, I believe.
              You can't learn me anything.
              I can just listen to your experience, and then get my own.

              Comment


              • #22
                Well, maybe I'm saying something completely nuts here but can't you already exchange cities? 'Offer' a city to a player and 'demand' one in return, ain't that the whole point? Or am I completely misinterpreting the concept of exchanging cities?

                BTW most of the code from script.slc (esp. the outcommented stuff) comes straight from CtP1. Even if it does anything (in many cases I'm not convinced that it does), it's not particularly interesting or useful. It's mostly about displaying messages for hard-coded features of the game-engine. You can uncomment or change all you want but there's not a chance in hell of getting missing (or broken) features to work by editing these SLIC messages: if the code for the feature isn't in the exe, you'd just be creating messages for things that never happen (while at the same time increasing the chance of getting undesired side-effects)...
                Administrator of WePlayCiv -- Civ5 Info Centre | Forum | Gallery

                Comment


                • #23
                  locutos I just downloaded the modified script. just to set the record straight I don't mind that you messed about with it that's why I did a moders version which was documented a bit.

                  I will have a go with it tonight. I like the idea of selling to the previous owner. do you want your city back. I would probably change that so that it's the players enemy more like real life.

                  Kill1frenzy

                  I had a go at doing shadow mod but just can't get the the effect to happen right so it will have to wait to later in the week when I finish it.

                  locutos I am really really upset about you calling me a big mac .

                  yes I got a few more bits of script in the pip line that's if I could get the sprit maker to work right.
                  "Every time I learn something new it pushes some old stuff out of my brain" Homer Jay Simpson
                  The BIG MC making ctp2 a much unsafer place.
                  Visit the big mc’s website

                  Comment


                  • #24
                    I look at it before I got home

                    theres a few things I like that I did not know about
                    these are

                    LOQ_amount = LOQ_capturedCity.population * 1000;
                    this was why I just put 6000 in

                    and

                    if (IsHumanPlayer(LOQ_oldCityOwner) {

                    The one thing that gets me is that they only try to sell it to the last owner. I wanted them to sell it to every one or try to. I will try to mod it so it works like that, but ask the AI first.

                    The scenario strings are now wrong like

                    they will give {city[0].name} to you for 6000 gold

                    its the start of a bigger script0 I think. I know its getting very scary in the length of it I like it short and simple.

                    for this is my 4 slic code so i still have a lot to learn.
                    "Every time I learn something new it pushes some old stuff out of my brain" Homer Jay Simpson
                    The BIG MC making ctp2 a much unsafer place.
                    Visit the big mc’s website

                    Comment


                    • #25
                      Locutus, if an ai has a city inside my borders, I would like to be able to trade one of my outer cities for the ais, and I don't think the ai is going to accept that by offering and demand. Well, I could be wrong
                      You can't learn me anything.
                      I can just listen to your experience, and then get my own.

                      Comment


                      • #26
                        The AI has been know to do it. you have to be like really close for them to agree but I have had the AI selling me cites let alone exchange. yet it has been known for the AI to just say get stuffed when you give them cities or tech.

                        I have a bit of slic at home which makes the AI really really friendly.

                        so friendly that you can use nukes the works and the next turn sign an alliance.
                        "Every time I learn something new it pushes some old stuff out of my brain" Homer Jay Simpson
                        The BIG MC making ctp2 a much unsafer place.
                        Visit the big mc’s website

                        Comment


                        • #27
                          Big Mc, was that in the original game or with diplomod(or something else)?

                          That slic file of yours sound alittle too much like cheating for my taste
                          You can't learn me anything.
                          I can just listen to your experience, and then get my own.

                          Comment


                          • #28
                            that's because it is.

                            No it was just with the normal game.

                            What I belive the slic at the top to be is the bit that lets the computer ask for a city of you.

                            It was probably removed because the response 9 times out off ten would be no.

                            I am working on improving the swap cities but I am snowed under again but I will try to get some done
                            "Every time I learn something new it pushes some old stuff out of my brain" Homer Jay Simpson
                            The BIG MC making ctp2 a much unsafer place.
                            Visit the big mc’s website

                            Comment


                            • #29
                              I have found one problem with the script you sent me

                              it don't work

                              there is a small problem with you sell back bit it tries to sell the city to the barbarians .

                              I will try to get some way around it
                              "Every time I learn something new it pushes some old stuff out of my brain" Homer Jay Simpson
                              The BIG MC making ctp2 a much unsafer place.
                              Visit the big mc’s website

                              Comment


                              • #30
                                I almost got it to work it just doesn't get it.

                                I will try other Christmas to get it to work and then I will start on my wether mod again.

                                get that to work right this time I just got to find one line of script in the scenarios from Activision put that in the slic and it works.




                                any way have a happy Christmas
                                "Every time I learn something new it pushes some old stuff out of my brain" Homer Jay Simpson
                                The BIG MC making ctp2 a much unsafer place.
                                Visit the big mc’s website

                                Comment

                                Working...
                                X