Announcement

Collapse
No announcement yet.

Replacement for Modswapper

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

  • #16
    Originally posted by The Big Mc
    I have a question how the hell do you change the daters on a mod I can change them in a scenario but not in a mod.
    Daters? What do you mean by daters?

    Comment


    • #17
      dates you no the 3000bc to what ever dates.
      "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
        Big Mc, you do realize that you can change the dates through the DiffDB.txt right?
        "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


        • #19
          yah but i can't find the file with the dates in 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


          • #20
            Do you mean the kind of alterations you make with turnlength.txt? I believe that is impossible except in scenarios.

            Comment


            • #21
              ahhhghghghghghhfzxigbriabeiu2gi
              "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


              • #22
                Originally posted by J Bytheway
                I'm trying to replicate the behaviour of ModSwapper in its copying of files, but what I'd like to know is how it handles different language versions? What paths does it copy from/to for the mods' versions of Great_Library.txt? Is this always english, or does it vary?
                No it is not always english it depends on the content of your civpath.txt, here is mine for example:

                Code:
                .
                setup\data\max\ctp_data\videos
                default
                german
                ..\..\ctp2_data
                ..\..\scenarios
                .\save
                games
                queues
                mp
                scen
                maps
                clips
                gamedata
                gamedata
                aidata
                uidata
                uidata\layouts
                uidata\fonts
                graphics
                graphics\sprites
                graphics\tiles
                graphics\patterns
                graphics\pictures
                graphics\icons
                graphics\cursors
                sound
                videos
                That's the file to look it up how the language folder is named.

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

                Comment


                • #23
                  Originally posted by Martin GĂĽhmann
                  No it is not always english it depends on the content of your civpath.txt, here is mine for example:
                  So it copies both from and to the language folder there specified? Presumably that means that you have to copy all the files across when you install a mod with only english files?

                  Comment


                  • #24
                    Originally posted by J Bytheway
                    So it copies both from and to the language folder there specified? Presumably that means that you have to copy all the files across when you install a mod with only english files?
                    Yes, if you don't have the English version of the game and you have a mod that is not in your language then you have to copy the files on your own to the right location.
                    Civ2 military advisor: "No complaints, Sir!"

                    Comment


                    • #25
                      Celebration!

                      For the first time I actually got some mods to appear in my program! And the first thing I discover is that my list box is not nearly big enough . This deserves a screenshot.

                      Although (as you can see) you have the option to change language, it is initially selected automatically from civpaths.txt, so don't worry about that - I'm trying to make this newbie-friendly and moderately-competant-person-proof (I'd never aspire to fool-proof), which are things at which my programs rarely succeed...

                      I'm at 1829 lines of code and counting... I didn't think I'd need quite that many, and it'll be longer before it's done. However, considering CTPEd has ~10,000 lines I guess this is still pretty small by comparison... My contemporary Computer Scientists seem to be churning out thousands of lines every day at the moment .
                      Attached Files

                      Comment


                      • #26
                        Looking good, John.

                        Comment


                        • #27
                          Originally posted by J Bytheway
                          However, considering CTPEd has ~10,000 lines


                          And i thought I wasa big-shot by making the city expansion 1,630 slic code. How prepotent

                          BTW, looks great indeed. Infinite times better than I had imagined with all this new functions
                          Last edited by Pedrunn; February 27, 2003, 22:57.
                          "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


                          • #28
                            Pedrunn: I bet 1600 lines of SLIC are harder to debug than even 10,000 lines of Visual Basic .

                            Another random and probably unimportant question:

                            Would people prefer this if it appears centre screen or in the Windows default position?

                            Comment


                            • #29
                              The LOTR slic I just finished has about 3000 lines. About 2/5 of that is messageboxes.

                              But I'd still rather that than any vB. Good job, John.

                              *Centrescreen
                              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


                              • #30
                                OK, here's a preliminary version. It seems to at least do everything that ModSwapper does and all the obvious further options, but I have yet to test all the advanced stuff that mods are supposedly able to do (since none of the mods that currently exist utilise these features, for obvious reasons, and I'm going to have to make some up to test them).

                                Have a go and tell me what you think, especially anything which isn't obvious or self-explanatory.

                                I've provided a minimal readme (basically it only tells you the command line options so that you can create shortcuts for your favorite mods), and a sample mod definition file showing off all the other features (the ones which I haven't tested yet, but feel free to do so yourself )

                                Either unzip into your main CTP2 directory and run it from there, or else look in the readme to see how you can specify the CTP2 path on the command line.

                                This is just the executable, and that should be OK for most people since I used only standard Windows Common Controls, but if you're missing .ocx (likely with Windows 95 or 98) files you can get the relevant ones here.

                                (Incidentally, it totals 2287 lines now)

                                I hope this doesn't screw up too many peoples' installation's .

                                [Edit: Attachment removed, obsolete. Find a newer version later in the thread]
                                Last edited by J Bytheway; November 1, 2003, 09:48.

                                Comment

                                Working...
                                X