MU Soapbox

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Muxify
    • Mustard

    Archiving Jobs to mySQL

    MU Code
    5
    14
    4076
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Thenomain
      Thenomain last edited by

      Chime has archiving jobs to phpBB here: https://github.com/lashtear/jobs-archive

      But she says to me, "Theno, PHP needs to be set on fire, and I don't want that on my server anymore. You can't use my code."

      So I said, "Okay," because what can you say to someone giving you space for free? You can say: Let's do it without phpBB.

      https://github.com/thenomain/Mu--Support-Systems/blob/master/SQL Job Archives.txt

      Right now this is strictly a back-end. There is so far no way to pull the information in a familiar (i.e., +jobs) format. And yet, all your jobs can be stored here for now. If anyone wants to help with this project, I will be more than happy to fold in the additions.

      Don't forget to back up the new tables.

      “If you wish to make an apple pie from scratch, you must first invent the universe.”
      ― Carl Sagan, Cosmos

      1 Reply Last reply Reply Quote 1
      • L
        Loki last edited by

        This is probably the purest way to do backups, and what I always wanted to set up for Jobs on HM but never had the time for. My long term goal was to move the entire Database into MySQL and skip the stupid Objects thing. Then the concept of "archival" would be "is the job in a visible status" or "is the job in an archived status" and we wouldn't need these silly post-hook triggers which are prone to failure.

        1 Reply Last reply Reply Quote 0
        • Chime
          Chime last edited by

          This is a really good point.

          @Thenomain, once your jobs-to-sql code has a straightforward mapping of the job objects... you can just (haha, just) use those instead of the objects. It's a nice incremental way to destroy all civilization move to a sql-based database for unlimited job management.

          It is by will alone I set my mind in motion. It is by the juice of Coffea arabica that thoughts acquire speed, the table acquires stains, the stains become a warning. It is by will alone I set my mind in motion.

          1 Reply Last reply Reply Quote 0
          • Thenomain
            Thenomain last edited by

            Yup. That's the plan. First, though, it needs anything resembling a front end to the stored data.

            “If you wish to make an apple pie from scratch, you must first invent the universe.”
            ― Carl Sagan, Cosmos

            1 Reply Last reply Reply Quote 0
            • L
              Loki last edited by

              I am interested in this project, and might be willing to make some pull requests to it. I'll poke my nose at it when I have some free time and inspiration. I desperately want to never use Anomaly Jobs in Object form again.

              1 Reply Last reply Reply Quote 1
              • Thenomain
                Thenomain last edited by

                I'd also like to get Myrd's bboards off local objects and into the database, not to mention channel logging, and, and ...

                What's interesting is that Peverel and his coder did a grotesque amount of this work over eight years ago, or whenever his San Fransisco game was around. All bboards were readable from a web page interface. Huh.

                “If you wish to make an apple pie from scratch, you must first invent the universe.”
                ― Carl Sagan, Cosmos

                L 1 Reply Last reply Reply Quote 0
                • L
                  Loki @Thenomain last edited by

                  @Thenomain I got Myrd's BB into MySQL. Let me see if I can dig it back up and put it somewhere. HM's bboards were not stored on objects. 🙂

                  Thenomain 1 Reply Last reply Reply Quote 0
                  • Thenomain
                    Thenomain @Loki last edited by

                    @Loki
                    That would be great, and interesting.

                    “If you wish to make an apple pie from scratch, you must first invent the universe.”
                    ― Carl Sagan, Cosmos

                    L 1 Reply Last reply Reply Quote 0
                    • 3543thrh67
                      3543thrh67 last edited by

                      I wish I could do these things. I would just break my game if I tried.

                      Thenomain 1 Reply Last reply Reply Quote 0
                      • L
                        Loki @Thenomain last edited by

                        @Thenomain Found it. Will publish to GitHub after I've cleaned it up and retested it. Should be tomorrow or Sunday. Note that there's one small piece of Myrddin's that I never did quite get right related to board locks. There's some room for improvement, there.

                        1 Reply Last reply Reply Quote 0
                        • Thenomain
                          Thenomain @3543thrh67 last edited by

                          @icanbeyourmuse said:

                          I wish I could do these things. I would just break my game if I tried.

                          That's why we do it and package the installer.

                          “If you wish to make an apple pie from scratch, you must first invent the universe.”
                          ― Carl Sagan, Cosmos

                          3543thrh67 1 Reply Last reply Reply Quote 0
                          • Sponge
                            Sponge last edited by

                            An alternative approach that doesn't require MySQL is to have an external bot that can log in, do the decompiles, and save the output somewhere. I have a bot written in Go for this saving to an sqlite3 database. It does require softcode support. I'm using it to currently archive Jobs and Characters+Sheets. I plan to adapt it to grab +bb and census data as well.

                            Full Disclosure: I'm an open RDBMS disliker and MySQL hater.

                            1 Reply Last reply Reply Quote 0
                            • 3543thrh67
                              3543thrh67 @Thenomain last edited by

                              @Thenomain said:

                              @icanbeyourmuse said:

                              I wish I could do these things. I would just break my game if I tried.

                              That's why we do it and package the installer.

                              Will it break easily if I try by myself?

                              Thenomain 1 Reply Last reply Reply Quote 0
                              • Thenomain
                                Thenomain @3543thrh67 last edited by

                                @icanbeyourmuse said:

                                @Thenomain said:

                                @icanbeyourmuse said:

                                I wish I could do these things. I would just break my game if I tried.

                                That's why we do it and package the installer.

                                Will it break easily if I try by myself?

                                An interesting question. We will have to see.

                                “If you wish to make an apple pie from scratch, you must first invent the universe.”
                                ― Carl Sagan, Cosmos

                                1 Reply Last reply Reply Quote 0
                                • 1 / 1
                                • First post
                                  Last post