Announcement

Collapse
No announcement yet.

Help with Events inside the SAV

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

  • Help with Events inside the SAV

    Hello civers,

    I would like to know if someone have the structure format of the Events INSIDE the SAV/NET/SCN. Its quite different from the original form in the Events.txt. I have seen some batch files for scenarios that merges the events into a saved game file, so i guess someone discovered this.

    ATM, i only know that the events stuff starts with a string "EVNT" and then continues with a unsigned long(4 bytes) telling the number of triggers.

    Please need help, thank you.

  • #2
    Dario, I don't think I can answer your question, but if you post it on the Civ2 creation forum, above this one in the forum hierarchy, I'm sure someone can help you. The creation forum gets a lot more traffic.

    Comment


    • #3
      If you use delevent.exe on the SAV, the events will be removed and Civ2 will reload the ones from the text-file.
      Blog | Civ2 Scenario League | leo.petr at gmail.com

      Comment


      • #4
        Re: Help with Events inside the SAV

        Originally posted by Dario86
        I have seen some batch files for scenarios that merges the events into a saved game file, so i guess someone discovered this.
        You must mean what St Leo described.

        I would like to know if someone have the structure format of the Events INSIDE the SAV/NET/SCN.
        As a matter of fact, I'm working on it (well, on and mostly off for the past few years). I don't yet know all the details though. Especially on how the events refer to the string heap.
        Civilization II: maps, guides, links, scenarios, patches and utilities (+ Civ2Tech and CivEngineer)

        Comment


        • #5
          re:

          Mercator, i know from you thanks to yaroslav. And yes would be very interisting having the description of that section of Events. If you have some stuff or documents about, can you post them. Atm, im trying to "decode" the same stuff.

          Good Luck

          Comment


          • #6
            All right then... Are you trying to do anything with it?
            Civilization II: maps, guides, links, scenarios, patches and utilities (+ Civ2Tech and CivEngineer)

            Comment


            • #7
              My contribute to this, is that we have a full description about the File Format of Civ2, i was looking to code a new tool about "something" new, but i see you have all done with your tools

              thanks.

              Comment


              • #8

                Well, feel free to hack away then.
                What version(s) of civ2 are you working with? And what sort of tool were you thinking about?
                Civilization II: maps, guides, links, scenarios, patches and utilities (+ Civ2Tech and CivEngineer)

                Comment


                • #9
                  Mainly talking with Javier, i wanted to help him improving his civdip pbem tool. but he is "blinded" with Java language which i dont work, im with using borland delphi applications. Yes, also my goals are pointed to get
                  better results for pbems and MP, i use MGE. my read/write routine only works for all MGE files. i have some ideas in my head, but i dont know if they are possible since i dont have the full description of the File Format. May be you mercator have some of what i need.

                  In my routines, i have the full structures until the last city of the game. Afther that, i cant match/understand a lot of information. Im lost in that part, so i decided to put the rest of bytes in a big "chunk" until the EOF. But i miss the info about, cursors, Passwords, description about the scenario/game and then jump to the "EVNT" structure. if you have a good way to show me how its structured the format afther the first byte of cities until the "EVNT" string, that could be very useful. You can send me a PM, or put it here, may be could be useful for other as well.

                  Other thing: is there a way in the events, to activate a trigger just when a "X" Civ is up to play?. Coz the triggers are activated when the 0 civs(barbarians) are playing.

                  Well i guess, this is all. wait for your answer.

                  Dario.

                  Comment


                  • #10
                    Well, the hex editing doc is far from complete. It focusses on FW, though it's got bits and pieces of the other versions in it too.

                    I doubt you have the full structure until the cities. Many parts of that are well-known, but there is plenty that's still pretty vague, and after the cities even more so. Don't expect to ever have the full description.

                    I have the latest version of the document though, and I was supposed to be posting it... I'll start a new thread in the Hints, Tips & Guides subforum in one of the next few days...

                    Originally posted by Dario86
                    Other thing: is there a way in the events, to activate a trigger just when a "X" Civ is up to play?. Coz the triggers are activated when the 0 civs(barbarians) are playing.
                    I don't think there's anything you can do with the events structure that you can't do in the events.txt (not anything as fundamental as that anyway)... And you're thinking about it in the wrong way. They're not triggered when the barbarians are playing, they're triggered at the start of each turn.
                    Last edited by Mercator; March 15, 2005, 13:15.
                    Civilization II: maps, guides, links, scenarios, patches and utilities (+ Civ2Tech and CivEngineer)

                    Comment


                    • #11
                      I posted the new version of the hex-editing document...


                      ... Though to be honest, it doesn't quite contain the latest info about the map and event sections. It was a bit of a quick clean-up of what I had.
                      Civilization II: maps, guides, links, scenarios, patches and utilities (+ Civ2Tech and CivEngineer)

                      Comment

                      Working...
                      X