Competition 143

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • DaviddesJ
    Swordsman
    • Mar 2008
    • 254

    #16
    Not playable on Mac?

    Comment

    • Darin
      Apprentice
      • Jun 2010
      • 53

      #17
      Originally posted by DaviddesJ
      Not playable on Mac?
      Actually it is playable on a mac with OS X and dev tools. I just posted my latest comp death playing on my mac.

      Download the source tarball, change the instances of #include <malloc.h> to #include <malloc/malloc.h> in int-map.c and str-map.c, and compile using makefile.linux. Then move the poschengband binary and lib directory to a convenient location. Then fire up the poschengband binary using XQuartz or X11. Oh, and make sure that the lib directory has a save directory. The original source tarball for 1.0.37 didn't have a save directory, but that may be fixed by now.

      Comment

      • chris
        PosChengband Maintainer
        • Jan 2008
        • 702

        #18
        Originally posted by Darin
        change the instances of #include <malloc.h> to #include <malloc/malloc.h>...
        Thanks for the heads up ... I'll fix this as well for future versions.

        Apparently, though, the correct way to include malloc is to #include <stdlib.h>.

        Comment

        • DaviddesJ
          Swordsman
          • Mar 2008
          • 254

          #19
          Originally posted by Darin
          Download the source tarball, change the instances of #include <malloc.h> to #include <malloc/malloc.h> in int-map.c and str-map.c, and compile using makefile.linux. Then move the poschengband binary and lib directory to a convenient location. Then fire up the poschengband binary using XQuartz or X11. Oh, and make sure that the lib directory has a save directory. The original source tarball for 1.0.37 didn't have a save directory, but that may be fixed by now.
          Would you be willing to give more step-by-step details? I'm sure I could figure it out, but I have no idea how to run the binary under X11, for example.

          Comment

          • Darin
            Apprentice
            • Jun 2010
            • 53

            #20
            Originally posted by DaviddesJ
            Would you be willing to give more step-by-step details? I'm sure I could figure it out, but I have no idea how to run the binary under X11, for example.
            1. Download the source tarball and unpack the archive.
            2. Open int-map.c in a text editor and replace the line
              Code:
              #include <malloc.h>
              with
              Code:
              #include <malloc/malloc.h>
            3. Do the same with str-map.c
            4. Open the Terminal and cd to the src directory.
            5. Compile the source using the command
              Code:
              make -f makefile.linux
            6. cd up a level and move the poschengband binary and the lib directory to a convenient directory. Alternatively, you can just remove the src directory and leave the binary and lib directory in place.
            7. Examine the lib directory and make sure there is a save directory. If not, then make an empty save directory.
            8. Install XQuartz or X11 (an optional install in the OS X install disk). Personally I prefer XQuartz since it is usually a more recent version.
            9. Open the XQuartz/X11 application and open a new terminal window from within the application (command-N in XQuartz).
            10. cd to the directory with the poschengband binary.
            11. To run poschengband use the command
              Code:
              ./poschengband
              in the XQuartz/X11 terminal window.
            Last edited by Darin; August 6, 2013, 04:20.

            Comment

            • DaviddesJ
              Swordsman
              • Mar 2008
              • 254

              #21
              Thanks! The step-by-step method worked, except that I had to do step 8 before step 5 so that the compiler could find the X libraries. Now trying to figure out the game!

              Comment

              • DaviddesJ
                Swordsman
                • Mar 2008
                • 254

                #22
                I'm having trouble getting the debug/wizard-mode commands to work in Poschengband. Is there a trick to that?

                Comment

                • chris
                  PosChengband Maintainer
                  • Jan 2008
                  • 702

                  #23
                  Originally posted by DaviddesJ
                  I'm having trouble getting the debug/wizard-mode commands to work in Poschengband. Is there a trick to that?
                  I don't ship PosChengband with Wizard/Debug commands enabled. If you really want these, you will need to do one of two things:

                  [1] Recompile with _DEBUG defined. Find the CFLAGS line you are using in makefile.linux and add a switch like:
                  Code:
                  -D"_DEBUG"
                  [2] Alternatively, open up z-config.h and search for where ALLOW_WIZARD is #defined. Remove the #ifdef _DEBUG check a couple lines up as well as the matching #endif. Recompile.

                  Comment

                  • DaviddesJ
                    Swordsman
                    • Mar 2008
                    • 254

                    #24
                    Thanks! I tried something similar but not quite that. Will give it a shot.

                    Comment

                    • DaviddesJ
                      Swordsman
                      • Mar 2008
                      • 254

                      #25
                      Originally posted by chris
                      [2] Alternatively, open up z-config.h and search for where ALLOW_WIZARD is #defined. Remove the #ifdef _DEBUG check a couple lines up as well as the matching #endif. Recompile.
                      This didn't work, because it enables code that tries to call other debug code that isn't enabled. But the first approach looks ok (so far). Thanks!

                      Comment

                      • ShadowTechnology
                        Apprentice
                        • Jan 2009
                        • 71

                        #26
                        Multiple weapons and digging questions

                        I'm new to PosChengBand.

                        Is there a way for me to see how many attacks per round I'm getting with a melee weapon (wielded or carried)?

                        If I wield two weapons (or more, depending on number of hands...), do they all act independantly with full number of attacks, or is one primary and the other(s) secondary with some sort of penalty?

                        If I "Tunnel" while wielding two weapons does the game select the best digger, or apply both, or...? And what if one of them is an official digging tool like a pick - does it matter if it's in the (a) or (b) slot?

                        It might be worth spending some time mining gold with an uber-digger in each hand!

                        Thanks.

                        Comment

                        • chris
                          PosChengband Maintainer
                          • Jan 2008
                          • 702

                          #27
                          Originally posted by ShadowTechnology
                          Is there a way for me to see how many attacks per round I'm getting with a melee weapon (wielded or carried)?
                          Press 'C' to view character sheet, then 'w' for weapon information.

                          If I wield two weapons (or more, depending on number of hands...), do they all act independantly with full number of attacks, or is one primary and the other(s) secondary with some sort of penalty?
                          Normally the player only has a single pair of arms, which means they can wield one weapon, or two. Wielding two weapons (aka dual wielding) is a skill which is difficult to master (i.e. you incur a penalty applied to both weapons). It requires practice to train both your dual wielding skill (Press '~' then 'e') and your skill in the individual weapon you are wielding (Press '~' then 'c'). You can gauge your effectiveness with dual wielding by viewing the weapon info screen (Press '~' then 'w' -OR- press 'C' then 'w'), which is also included in your character dump.

                          However, a couple of monster races offer the player multiple pairs of arms, either two pairs (Xorn and Xaren) or three pairs (Marilith). Each *pair* of arms functions independently as described in the preceding paragraph, so the player can choose to single wield or dual wield independently for each pair of arms. Use the weapon info screen to decide which is best. Also, additional pairs of arms are less effective then the primary pair: You get less max blows and are less accurate as well.

                          If I "Tunnel" while wielding two weapons does the game select the best digger, or apply both, or...? And what if one of them is an official digging tool like a pick - does it matter if it's in the (a) or (b) slot?
                          It doesn't matter, at least when using shovels. In fact, two shovels will dig better than just one, but one should be enough and the advantage of using two won't be large enough to make a noticeable difference IMO.

                          Good Luck!

                          Comment

                          • ShadowTechnology
                            Apprentice
                            • Jan 2009
                            • 71

                            #28
                            Thanks, very helpful info.

                            Comment

                            • debo
                              Veteran
                              • Oct 2011
                              • 2402

                              #29
                              Is there a reason why all you folks who are contributing to the flood of Possessor chardumps aren't uploading them to the comp ladder? I just took a brief look, but it looks like at least one of the winners would be 1st place atm...

                              Just sayin
                              Glaurung, Father of the Dragons says, 'You cannot avoid the ballyhack.'

                              Comment

                              • Arjen
                                Adept
                                • Dec 2010
                                • 241

                                #30
                                Originally posted by debo
                                Is there a reason why all you folks who are contributing to the flood of Possessor chardumps aren't uploading them to the comp ladder? I just took a brief look, but it looks like at least one of the winners would be 1st place atm...

                                Just sayin
                                I didn't because the possessor is a newer version so I thought it doesn't belong on it

                                Comment

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