Announcement

Collapse
No announcement yet.

Maximum # of Events in FW?

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

  • Maximum # of Events in FW?

    What is it? Something is crashing out my new scenario, and this HAS got to be the problem. Any help on this matter would be great.

  • #2
    AFAIK, There's not a fixed number. The amount depends on what sort of events you have and how complex they are (or something).
    If you suspect it's the problem, try deleting most of your events and see if it works. If it does, add events until it goes wrong again.
    Or open it in the FW editor and see what the indicator there says (although I'm not sure if doing that might screw up the events).
    Civilization II: maps, guides, links, scenarios, patches and utilities (+ Civ2Tech and CivEngineer)

    Comment


    • #3
      The limit 16368 bytes, but the space is shared to the effect that it is actually a little less.
      Blog | Civ2 Scenario League | leo.petr at gmail.com

      Comment


      • #4
        The problem is indeed the size of the event file. Now, what is the limit?

        Comment


        • #5
          Oooh, an answer already, thanks. It started to work somewhere around 12.5 K.

          Comment


          • #6
            For some strange reason, the maximum size for events files varies from version to version. Jesús Balsinde, for example, repeatedly told me the size of his events file was at the maximum limit, which was at around 14 KB. The size of the events files of Capt. Nemos multiple events scenarios are between 16 and 19 KB.
            In my scenario Artaxerxes, I made the events file with the FW editor, and when it was "full", the size was 17 KB. Somewhere else, one of my manually made events files was up to 21 KB.
            Follow the masses!
            30,000 lemmings can't be wrong!

            Comment


            • #7
              It's not the size of the file that's the problem, it's the size the events will occupy in the stack space in Civ2. Those things are probably in the same vicinity, but not exactly the same. It depends on what kind of events you have etc.
              Civilization II: maps, guides, links, scenarios, patches and utilities (+ Civ2Tech and CivEngineer)

              Comment


              • #8
                This seems to make sense, as I have already gotten it to work with different version of the event.txt file that were larger in size but had different content.

                Comment


                • #9
                  In savegames of scenarios, the events are in some way attached at the end of the savegame (which is the part that is thrown out when running delevent). I imagine that part of the savegame is limited to 16K.
                  And that part doesn't look like the events.txt is pasted onto the savegame.

                  Now this events limit wouldn't be just a little number somewhere in the Civ2 executable (like the money limit) now would it??? That would be mighty fine... Unlimited events!
                  Civilization II: maps, guides, links, scenarios, patches and utilities (+ Civ2Tech and CivEngineer)

                  Comment


                  • #10
                    Just as a little test, a .sav file was 168 K. I ran delevents on it and it is now 156 K. the events that were coded into the file are 6.36 K. Another example is: Al-andalus.sav = 189 K / events = 12.3 / delevent .sav = 160K - Hmmm....

                    Comment


                    • #11
                      Originally posted by Mercator
                      It's not the size of the file that's the problem, it's the size the events will occupy in the stack space in Civ2. Those things are probably in the same vicinity, but not exactly the same. It depends on what kind of events you have etc.
                      Mercator is right. It's not the external size of your text file, but the available space, or 'heap' available in the Civ program itself. For Civ2 Scenarios it was 16KB, in FW/MGE it was 32 KB, and in ToT it's 100KB.
                      Tecumseh's Village, Home of Fine Civilization Scenarios

                      www.tecumseh.150m.com

                      Comment


                      • #12
                        So then . . .

                        Is there any way to enlarge the size of the heap?
                        Lost in America.
                        "a freaking mastermind." --Stefu
                        "or a very good liar." --Stefu
                        "Jesus" avatars created by Mercator and Laszlo.

                        Comment


                        • #13
                          Re: So then . . .

                          Originally posted by Exile
                          Is there any way to enlarge the size of the heap?
                          Get Test of Time! (You had to have seen that one coming. )
                          Tecumseh's Village, Home of Fine Civilization Scenarios

                          www.tecumseh.150m.com

                          Comment


                          • #14
                            Well, you learn something new every day I guess. Everything I've tried (for FW) seems to have topped out at a little under 25K.
                            Is there any guide for establishing rough normalized quanta for particular event types or is it more complicated than that? ie: Event combinations not equal to the some of their parts or somesuch...

                            Comment


                            • #15
                              I think we are in uncharted territory here, Ravagon. There are sooo many possible combos that I doubt it will ever be documented.

                              Comment

                              Working...
                              X