Announcement

Collapse
No announcement yet.

scenario problem

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

  • scenario problem

    Hi, I added more text to my scenario in my scenario text document but when I went to start my scenario in the game and looked at the text, it didnt show everything that I had typed in the scenario text document. I typed about 4 lines of text in the text document and only 2 lines showed when I started my scenario game. Is there a way to get more text to show in the game and if so, how is this done?

  • #2
    Re: scenario problem

    Originally posted by ctp1addict
    Hi, I added more text to my scenario in my scenario text document but when I went to start my scenario in the game and looked at the text, it didnt show everything that I had typed in the scenario text document. I typed about 4 lines of text in the text document and only 2 lines showed when I started my scenario game. Is there a way to get more text to show in the game and if so, how is this done?
    Do you have a copy of this text file?

    If so what are you using to edit with?

    I will ask some folks, although my "limited" scenario experiences focus's around small text alterations and a few SLIC Commands, perhaps by you zipping it up and attaching here we can figure it out.

    Hopefully we can

    Gramps
    Hi, I'm RAH and I'm a Benaholic.-rah

    Comment


    • #3
      here is a copy of the text file, I am using notepad

      Comment


      • #4
        sorry, sent you the rong zipped file. here is the correct zipped file.
        Attached Files

        Comment


        • #5
          Originally posted by ctp1addict
          sorry, sent you the rong zipped file. here is the correct zipped file.
          I have notified one of our highly paid experts, staff members and owners

          Hopefully we will soon get on resolving your issue or at the bare minium guide you to a gentle place to sit you down and tell you it cant be done

          Gramps
          Hi, I'm RAH and I'm a Benaholic.-rah

          Comment


          • #6
            hello again. I guess you or other staff are still trying to figure out if you can add more text to the scenario game
            in the scenario pack/myscenario/scenario picker screen. well if no one can figure it out or it cant be done then I would like to know if it is possable to add text to my scenario game after the game is launched like in the tutorial game where once it is launched there is a little screen or box that pops up and welcomes you to civalization call to power. can you do the same in a scenario game to where you can add text in a pop up screen after the game is launched?. if you can then how is it done and I would also like to know if you can have the end game year warning and end game year set to a time before 0AD

            Comment


            • #7
              There are two problems with the text in your scenario.txt file.
              - It simply is too long to be shown entirely.
              - You have a line break before the word "migration". CtP will not show the text after the line break.

              The good news is, that it is easily possible to show a welcome message like the tutorial does. I attached a zipped minimum scenario, that does exactly that. The text in this kind of message boxes is also limited in length, but your welcome text is about the maximum that fits in the box.

              I don't know a way to set the end year. But it is possible to write a trigger that ends the game after an arbitrary number of turns. The attached example scenario includes a trigger that ends the game after 10 turns (in the year 3500BC). If your cities rank is 1, you win, otherwise you loose .

              If you are interested in programming scenarios, you should definitely read the SLIC documentation in the CtP modification section .
              Attached Files

              Comment


              • #8
                thankyou very much for the information. your help is greatly apreciated. It's to bad that the game wont let you put in more text, I was hoping that it would let me put more text becuase I am palnnning to make more scenarios that have a lot of text in it. maby some time in the future I will plan to program scenarios for the public.

                Comment


                • #9
                  Originally posted by ctp1addict
                  thankyou very much for the information. your help is greatly apreciated. It's to bad that the game wont let you put in more text, I was hoping that it would let me put more text becuase I am palnnning to make more scenarios that have a lot of text in it. maby some time in the future I will plan to program scenarios for the public.
                  Looking forward and Thanks to Hatschy for stepping in the gap

                  Gramps
                  Hi, I'm RAH and I'm a Benaholic.-rah

                  Comment


                  • #10
                    Hi, I am having problems with my game again, I cant figure out how to get the message box with the text into my saved scenario that I made. I loaded the scenario that hatchy made and it worked on that map however I wanted the message box to appear in my saved scenario map instaid so I moved hatchys string text file to my scenario pack/my scenario/scen0000(not hatchys scen file)/defult/gamedata, it loaded my map but not the message box. I would like to know step by step on how to correctly get a message box with text into my saved scenario map and also like to know if you can add more message boxes to my saved scenario map for when the scenario game is luanched. I would also like to know exactly how to set a arbitrary trigger to where the game ends after the turn that I want it to end in.

                    Comment


                    • #11
                      Originally posted by ctp1addict
                      Hi, I am having problems with my game again, I cant figure out how to get the message box with the text into my saved scenario that I made. I loaded the scenario that hatchy made and it worked on that map however I wanted the message box to appear in my saved scenario map instaid so I moved hatchys string text file to my scenario pack/my scenario/scen0000(not hatchys scen file)/defult/gamedata, it loaded my map but not the message box. I would like to know step by step on how to correctly get a message box with text into my saved scenario map and also like to know if you can add more message boxes to my saved scenario map for when the scenario game is luanched. I would also like to know exactly how to set a arbitrary trigger to where the game ends after the turn that I want it to end in.
                      PM Hatchy

                      He helped me and if anyone like me can make a mess and he straightened it out, he can surely help you!

                      Good luck

                      Gramps
                      Hi, I'm RAH and I'm a Benaholic.-rah

                      Comment


                      • #12
                        Showing several message boxes one after each other isn't a problem. I extended the example to show two additional message boxes after the first one. This is done by displaying the next message box in that piece of code that handles the event of pressing the "Close" button.

                        Additionally I added some lines of code that prevent the player from closing the box by clicking anything but the "Close" button (DisableClose()) and from ending the turn before closing the last of the boxes (CantEndTurn(1)).

                        As for the end game trigger, you'll have to count the turns it takes to reach the year you want the game to end. The example ends after 10 turns (g.year == 10), which is equivalent to the year 3500BC in the game. Look at the T_GameOver trigger of the example (hint: You can choose any name you like for a trigger, "T_GameOver" is just what I used to clarify what it does).

                        Now for the bad news. As the SLIC code is stored with the map, it is (to my knowledge) impossible to add SLIC code once the map was created. So the only way to create a scenario with a handcrafted map AND custom SLIC code is to write the SLIC code first, then start a new game with that scenario in cheat mode, edit the generated random map and save the game with the cheat mode dialog's "Save scenario" button. This produces a saved game with the custom map plus the scenario's SLIC code inside. Now you can rename the saved game to "savegame.csg" and copy that file to the scenario folder.

                        If there is anyone out there, who knows how to load map data only in cheat mode, please tell me.
                        Attached Files

                        Comment


                        • #13
                          Thanks for help Hatschy
                          Hi, I'm RAH and I'm a Benaholic.-rah

                          Comment


                          • #14
                            thank you again for your help guys

                            Comment


                            • #15
                              Ok, I modified the example a little bit. Now any scenario map saved with scenario name "Welcome" (via the button "Save Scenario As" of the cheat dialog), renamed "savegame.csg" and copied to the Welcome scenario's "scen0000" folder should work. Of course you can replace "Welcome" with the name of your own scenario.

                              The problem with the previous version was the "g.year == 0" in the "when" clause of the welcome message trigger. CtP doesn't fire this kind of trigger for the first civ when it loads a scenario with a map. So I'm now using the "unit.selected" event instead. This works, if there is a unit for your civ on the scenario map (e.g. your first settler) and if CtP autoselects your first unit (which should be the default and I don't know if this can be turned off).

                              As for the videos: I don't know, if they can be turned off. They play automatically when using the "GameOver" function. So, if you don't call that function, the movies won't play. But then you'll have to find another way to end the game.

                              I suggest you read the descriptions of the available SLIC functions to get an impression of what is possible.
                              Attached Files

                              Comment

                              Working...
                              X