Borg for 4x

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • agoodman
    Adept
    • Jan 2011
    • 114

    Borg for 4x

    Hey All,
    I decided to work on getting the borg working for the latest V, 4.2.4+. I created a GitHub branch named borg_4x:
    GitHub is where people build software. More than 100 million people use GitHub to discover, fork, and contribute to over 420 million projects.

    It should be open to the public, but I am a noob at GitHub so, let me know if you want to contribute but can't. Nick has been supportive of getting this code into V and I have gotten a lot of help from backwardEric getting it compiling clean. Many thanks to them.

    some anticipated questions:
    How far along is it?
    got a druid tootling along at Clvl 20 so... it can borg.

    Is it still stupid?
    Perhaps stupider than ever! It is the stupid it was before plus the bugs I introduced getting it to to v4. Hey, it claims to be an auto-player, not a GOOD auto-player

    Is it still a coward?
    a-yep. Concentrating on getting it working but will try to get it working better once it is stable.

    wait, you said 'druid', so you can use the new classes?
    Well, yes, but not great. Some issues are 1) shapechanging... not sure how to code for this. Need some clear 'if (fighting balrog) become_bear' type thoughts because I haven't actually played those classes myself so I am not sure. 2) blackguard still fights primarily with bows, as is the borg way. Need to teach it to get up close. 3) haven't coded for some of the new spells, such as single combat. Need to figure out when to cast that and what it really means. 4) a few other spells in a similar position. Commented in the code with !FIX !TODO

    How buggy is it?
    Getting better. Haven't seen a crash in almost 12 hrs so it must be perfect Seriously, I am still finding things like loops in buying/selling or it hitting the wrong keys... the code change for V to make it so it only gives options that make sense (like don't ask direction for 'open' if only one door is near you) works great for humans but gives the borg conniptions. I am still finding things I missed.

    What is new in the code?
    I recoded a few things, for example spell casting. No more borg_spell(1, 1) and you have to remember what the first spell in the first book is. Now it does borg_spell(MAGIC_MISSILE) or borg_spell(NETHER_BOLT) hopefully making coding a bit easier. I also tried to eliminate any magic numbers like
    unique_on_level == 110 ||
    becomes
    streq(r_info[unique_on_level].name, "Mughash the Kobold Lord")
    or
    unique_on_level == borg_morgoth_id

    How can I play with it?
    Right now the only way is to get the source from GitHub and compile it yourself. If you want to do more than play with it, hop on and contribute.

    thanks!
    Adam - agoodman00
  • Estie
    Veteran
    • Apr 2008
    • 2347

    #2
    Can you ask chatgpt to learn how to play ?

    Comment

    • agoodman
      Adept
      • Jan 2011
      • 114

      #3
      I asked ChatGPT to do these upgrades for me. It told me to hire some programmers . I asked Bard the same thing and it told me it would get right on it. It then produced some Python that, while entertaining, was pretty useless. Then it kept saying it was working on it but it never made any progress till eventually it told me it would be years of work.

      My guess is that in order to have ChatGPT be a borg, you would need to hook it in via api. Probably doable but not something I have worked on at all.

      Comment

      • Estie
        Veteran
        • Apr 2008
        • 2347

        #4
        Too bad!

        I will be happy for an expert Borg, if there is going to be a somewhat workable windows executable.

        Comment

        • Siemelink
          Rookie
          • Feb 2014
          • 20

          #5
          Oh nice!
          I had some borg winners back in the day. Today, my first mage reached lvl 10. On to Morgoth!
          I used to edit borg.txt all the time, is that file being functional again?

          Cheers, Willem

          Comment

          • agoodman
            Adept
            • Jan 2011
            • 114

            #6
            I removed the formula stuff from borg.txt for now since items and monsters and classes changed around. I was going to redesign it to be more intuitive at some point but haven't gotten to it yet.

            Comment

            • agoodman
              Adept
              • Jan 2011
              • 114

              #7
              oh, and the true/false flags in borg.txt work. And I have made it so that if you don't have a borg.txt, it generates one with reasonable answers.

              Comment

              • iggy_hunter
                Apprentice
                • Sep 2021
                • 97

                #8
                I'm working on an API for Borg integration for AngbandOS ... is that something we can collaborate on?

                Comment

                • agoodman
                  Adept
                  • Jan 2011
                  • 114

                  #9
                  iggy_hunter,

                  I would be glad to give you access to GitHub branch and you can take a look to see. If you just want to look and take my code instead of contribute, I think I made the branch public (I -think-... I am a GitHub noob). Additionally, I think Nick wants to merge the code into V at some point in the not too distant future.

                  Not sure when you will see this reply since I am "moderator filtered" still.

                  Adam

                  Comment

                  • iggy_hunter
                    Apprentice
                    • Sep 2021
                    • 97

                    #10
                    I'd like to be able to merge your borg into AngbandOS. Email me your github details, lets keep in touch.

                    Comment

                    Working...
                    😀
                    😂
                    🥰
                    😘
                    🤢
                    😎
                    😞
                    😡
                    👍
                    👎