Announcement

Collapse
No announcement yet.

CivRiver - a small utility to change rivers in scenarios

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

  • #16
    Originally posted by keu View Post
    I'm sorry. I thinked that Civ2 community in general knows what is "command line" because of a number of existing command-line tools such as CivConverter.
    Its been a long time since I used one (CivConverter) and even then it took me ages to get the command right. I have made batch files before but you just double click on them to run. I didn't realise you had to open a separate MS Dos window to run CivRiver. I still can't get it to work. I put the CivRiver folder in my C Drive and then put in the command:

    C:\CivRiver civriver Test.scn -r 54 112 and various other combinations but it always comes up with 'whatever I have typed' is not recognized as an internal or external command, operable program or batch file.

    Sorry to be a dummy but someone will have to break it down a bit more for me. I would really like to understand how this works as there are a few of my scenarios I can already use it on!
    SCENARIO LEAGUE FORUM
    SCENARIO LEAGUE WIKI SITE
    SL INFORMATION THREAD
    CIV WEBRING MULTIPLAYER FORUM

    Comment


    • #17
      Originally posted by McMonkey View Post
      I put the CivRiver folder in my C Drive and then put in the command:

      C:\CivRiver civriver Test.scn -r 54 112 and various other combinations but it always comes up with 'whatever I have typed' is not recognized as an internal or external command, operable program or batch file.
      you should type:

      Code:
      C:\CivRiver\civriver Test.scn -r 54 112
      But don't forget to specify a full path to your "Test.scn" file.

      In general, I recommend you put a copy of civriver.exe into folder with your scenario and run it there to avoid typing full paths. May be it will be simpler to make a .bat file there with content
      Code:
      civriver Test.scn -r 54 112
      and edit it before any run.

      Or more advanced, make a .bat file with content only
      Code:
      cmd
      , place it into folder with your scenario (as civriver.exe too), run it and type
      Code:
      civriver Test.scn -r 54 112
      in that black window with grey letters. You can recall previous commands pressing [up arrow] key, edit it and run again.
      Last edited by keu; July 19, 2010, 05:37.

      Comment


      • #18
        Excellent. Thanks for your patience keu. I will try it out now.
        SCENARIO LEAGUE FORUM
        SCENARIO LEAGUE WIKI SITE
        SL INFORMATION THREAD
        CIV WEBRING MULTIPLAYER FORUM

        Comment


        • #19
          I just tried it out. I put the Test.scn file in the CivRiver folder which is in the C Drive. I typed C:\CivRiver\civriver Test.scn -r 54 112 and got back ERROR: Can't open "Test.scn": No such file or directory Press any key to continue . . .

          I have double checked what I typed and also tried just: civriver Test.scn -r 54 112 and also renaming the .scn file to .sav and trying C:\CivRiver\civriver Test.sav -r 54 112 but it still does not work. Have I left any unnecessary gaps or missed something?
          SCENARIO LEAGUE FORUM
          SCENARIO LEAGUE WIKI SITE
          SL INFORMATION THREAD
          CIV WEBRING MULTIPLAYER FORUM

          Comment


          • #20
            Originally posted by McMonkey View Post
            I just tried it out. I put the Test.scn file in the CivRiver folder which is in the C Drive. I typed C:\CivRiver\civriver Test.scn -r 54 112 and got back ERROR: Can't open "Test.scn": No such file or directory Press any key to continue . . .

            I have double checked what I typed and also tried just: civriver Test.scn -r 54 112 and also renaming the .scn file to .sav and trying C:\CivRiver\civriver Test.sav -r 54 112 but it still does not work. Have I left any unnecessary gaps or missed something?
            Yes, you missed something:

            Originally posted by keu View Post

            But don't forget to specify a full path to your "Test.scn" file.
            In this case you should have typed

            C:\CivRiver\civriver C:\CivRiver\Test.scn -r 54 112

            Comment


            • #21
              Doh! Of course, why didn't I try that. So the \ needs to go between everything the program needs to locate, only the actual command has a gap. Will try again.
              SCENARIO LEAGUE FORUM
              SCENARIO LEAGUE WIKI SITE
              SL INFORMATION THREAD
              CIV WEBRING MULTIPLAYER FORUM

              Comment


              • #22
                Brilliant. Got it to work (or got me to work) finally. Excellent work keu, this will be a much needed new tool in my design tool kit! As you said, it is long overdue.

                Just tested to make sure you can also add a river underneath a city and it works fine. I hope you don't mind if I ask a few questions though:

                1) I tried to use this on a Multiplayer Gold Edition scenario but it would not work. Would it be much work to make a version compatible with MGE? It would be very much appreciated!

                2) Can this be used on save files? I tried it but it didn't recognize the save. This would be useful as I normally have a scenario as a save file until it is finished and only change it to .scn at the very end.

                3) Just so I can understand how it works would you mind breaking down the command (C:\CivRiver\civriver C:\CivRiver\Test.scn -r 54 112). I understand that C:\CivRiver\civriver probably activates the .exe, then C:\CivRiver\Test.scn tells it where the .scn file is it needs to work on and finally -r 54 112 tells it the command to carry out. Is this correct?

                I think this deserves a place in the Scenario League sites utilities archive. Do you mind if I upload it there? I wonder if Mercator would also be willing to add it to his site. If you don't mind I will send him a message (if he doesn't read the post first). It might be appreciated over at Civ Fanatics too.
                SCENARIO LEAGUE FORUM
                SCENARIO LEAGUE WIKI SITE
                SL INFORMATION THREAD
                CIV WEBRING MULTIPLAYER FORUM

                Comment


                • #23
                  Originally posted by McMonkey View Post
                  Brilliant. Got it to work (or got me to work) finally.
                  Yesss! You did it!

                  Originally posted by McMonkey View Post
                  1) I tried to use this on a Multiplayer Gold Edition scenario but it would not work. Would it be much work to make a version compatible with MGE? It would be very much appreciated!
                  I have thinked that MGE is almost obsolete.
                  Probably I'll do it in future. Which reference about MGE binary file formats you recommend?

                  Originally posted by McMonkey View Post
                  2) Can this be used on save files? I tried it but it didn't recognize the save.
                  Yes it can. But current version 1.01 works with ToT 1.1 files only, either *.scn or *.sav

                  Originally posted by McMonkey View Post
                  3) Just so I can understand how it works would you mind breaking down the command (C:\CivRiver\civriver C:\CivRiver\Test.scn -r 54 112). I understand that C:\CivRiver\civriver probably activates the .exe, then C:\CivRiver\Test.scn tells it where the .scn file is it needs to work on and finally -r 54 112 tells it the command to carry out. Is this correct?
                  that's it!

                  Originally posted by McMonkey View Post
                  I think this deserves a place in the Scenario League sites utilities archive. Do you mind if I upload it there? I wonder if Mercator would also be willing to add it to his site. If you don't mind I will send him a message (if he doesn't read the post first). It might be appreciated over at Civ Fanatics too.
                  I answer yes. But let wait a bit until I'll make an improved version. If I shall not upload a final version here during a week or two then publish this version (1.01)
                  Is it OK?

                  Comment


                  • #24
                    That sounds good to me. I will wait for the final version before uploading it to the SL Site (unless this turns out to be the final version).

                    I have thinked that MGE is almost obsolete.
                    Probably I'll do it in future. Which reference about MGE binary file formats you recommend?
                    MGE is technically obsolete compared with ToT but there are a lot of people who still play it and modify old scenarios, especially in the PBEM community. If you were willing to make an MGE version it would be very much appreciated. I would certainly make extensive use of it is some of my PBEM scenarios. I'm not sure which MGE binary file formats would be recommended. Perhaps Catfish, Agricola or Mercator might know.
                    SCENARIO LEAGUE FORUM
                    SCENARIO LEAGUE WIKI SITE
                    SL INFORMATION THREAD
                    CIV WEBRING MULTIPLAYER FORUM

                    Comment


                    • #25
                      Originally posted by McMonkey View Post
                      That sounds good to me. I will wait for the final version before uploading it to the SL Site (unless this turns out to be the final version)
                      I hope that final version is done.
                      See the first message of this thread to get version 1.5. I've added support for ToT multimap files and for MGE/FW.

                      I've tested it and hope it's robust enough. Nevertheless bugreports are welcome.

                      Comment


                      • #26
                        Excellent work, much appreciated!

                        I will test it out and report back any bugs and I will also upload it to the SL Site.
                        SCENARIO LEAGUE FORUM
                        SCENARIO LEAGUE WIKI SITE
                        SL INFORMATION THREAD
                        CIV WEBRING MULTIPLAYER FORUM

                        Comment


                        • #27
                          Ok, I have uploaded CivRiver v1.5 to the Utilities section of the Scenario League. As mentioned a while back this section of the site is looking a bit neglected. I will try and redesign it and add some more content. I was thinking of presenting it as a toolkit for designers with a little explanation under each utility giving details on what is does and how it works.
                          SCENARIO LEAGUE FORUM
                          SCENARIO LEAGUE WIKI SITE
                          SL INFORMATION THREAD
                          CIV WEBRING MULTIPLAYER FORUM

                          Comment


                          • #28
                            I hope this modest program will be useful for somebody.

                            Comment


                            • #29
                              Originally posted by keu View Post
                              I hope this modest program will be useful for somebody.
                              Oh, it will! I have tried to change rivers in the past, but with no success. This will definitely be of use!
                              Ravlon's Facebook fan page

                              Comment


                              • #30
                                Hello keu,

                                could you upload you programm again please?
                                It seems that the files are deleted since moving the forum to another server
                                American War of Independence
                                A Divided Nation - US Civilwar

                                Comment

                                Working...
                                X