Vanilla Code Questions

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • DavidMedley
    Veteran
    • Oct 2019
    • 1004

    #16
    Is there a faster way to check my C syntax than to try to make the whole project?
    Please like my indie game company on Facebook! https://www.facebook.com/RatherFunGames

    Comment

    • backwardsEric
      Knight
      • Aug 2019
      • 527

      #17
      Originally posted by DavidMedley
      Is there a faster way to check my C syntax than to try to make the whole project?
      Are you using Visual Studio (or some other IDE)? For that, I can't offer specific advice. If you're using the makefiles, then you could recompile just one or more of the files, say mon-attack.c and mon-blows.c, by running

      Code:
      make src/mon-attack.o src/mon-blows.o
      in the top-level directory (i.e. for the source file you are interested in, replace the .c with .o). For Mac OS X, the equivalent would be running

      Code:
      make -f Makefile.osx mon-attack.o man-blows.o
      in the src directory. The makefiles, however, should only rebuild what's necessary for a change. So, unless you modified a header file that's widely used, you won't be gaining much by specifically recompiling a handful of files.

      Comment

      • DavidMedley
        Veteran
        • Oct 2019
        • 1004

        #18
        Oh, OK. I tried cc and that was awful. I'll try this way, or not, since you say it won't help much anyway.
        Last edited by DavidMedley; March 17, 2020, 03:06. Reason: Was mistaken
        Please like my indie game company on Facebook! https://www.facebook.com/RatherFunGames

        Comment

        • DavidMedley
          Veteran
          • Oct 2019
          • 1004

          #19
          A bit off-topic, but when I was trying to trace incremental changes to HP and SP, I found that SP regenerates every turn, but HP regens only every fourth turn, except when resting and then the ratio is 2 to 1. I don't understand how or why this is happening. Maybe I screwed something up.

          I don't want to track it down right now, but I couldn't help but wonder aloud about it.
          Please like my indie game company on Facebook! https://www.facebook.com/RatherFunGames

          Comment

          • DavidMedley
            Veteran
            • Oct 2019
            • 1004

            #20
            Can someone explain the difference between power and mult in object_properties.txt?

            # power: the value given to the property in object power calculations
            # mult: relative value of properties, used in power calculations
            # type-mult: extra multiplier used in power for particular properties on
            # particular types of object. Assumed 1 if not mentioned
            Please like my indie game company on Facebook! https://www.facebook.com/RatherFunGames

            Comment

            • Nick
              Vanilla maintainer
              • Apr 2007
              • 9634

              #21
              Originally posted by DavidMedley
              Can someone explain the difference between power and mult in object_properties.txt?
              Look in obj-power.c, mainly modifier_power() and flags_power().
              One for the Dark Lord on his dark throne
              In the Land of Mordor where the Shadows lie.

              Comment

              • DavidMedley
                Veteran
                • Oct 2019
                • 1004

                #22
                Originally posted by Nick
                Look in obj-power.c, mainly modifier_power() and flags_power().
                Can't you just do that for me, and write up a summary? Heh, j/k. Thanks for the direction.
                Please like my indie game company on Facebook! https://www.facebook.com/RatherFunGames

                Comment

                • DavidMedley
                  Veteran
                  • Oct 2019
                  • 1004

                  #23
                  I see these log statements in there. How do I turn those on?
                  Please like my indie game company on Facebook! https://www.facebook.com/RatherFunGames

                  Comment

                  • Nick
                    Vanilla maintainer
                    • Apr 2007
                    • 9634

                    #24
                    Originally posted by DavidMedley
                    I see these log statements in there. How do I turn those on?
                    They're used when generating randarts. If you play a character with randarts, you'll get a (verbose!) randart.log file in your user directory which describes the randart generation process.
                    One for the Dark Lord on his dark throne
                    In the Land of Mordor where the Shadows lie.

                    Comment

                    • DavidMedley
                      Veteran
                      • Oct 2019
                      • 1004

                      #25
                      Originally posted by Nick
                      They're used when generating randarts. If you play a character with randarts, you'll get a (verbose!) randart.log file in your user directory which describes the randart generation process.
                      I didn't get that file when I started a new randarts game
                      Please like my indie game company on Facebook! https://www.facebook.com/RatherFunGames

                      Comment

                      • Nick
                        Vanilla maintainer
                        • Apr 2007
                        • 9634

                        #26
                        Originally posted by DavidMedley
                        I didn't get that file when I started a new randarts game
                        That's odd, I do. Anyone playing randarts - are you seeing a randart.log in your user directory? Please let me know OS and other details if so (or if not).
                        One for the Dark Lord on his dark throne
                        In the Land of Mordor where the Shadows lie.

                        Comment

                        • DavidMedley
                          Veteran
                          • Oct 2019
                          • 1004

                          #27
                          Originally posted by Nick
                          Please let me know OS and other details
                          I'm compiling a modified version of the nightly on linux
                          Please like my indie game company on Facebook! https://www.facebook.com/RatherFunGames

                          Comment

                          • Nick
                            Vanilla maintainer
                            • Apr 2007
                            • 9634

                            #28
                            Originally posted by DavidMedley
                            I'm compiling a modified version of the nightly on linux
                            So you're not seeing a ~/.angband/Angband/randart.log ?
                            One for the Dark Lord on his dark throne
                            In the Land of Mordor where the Shadows lie.

                            Comment

                            • DavidMedley
                              Veteran
                              • Oct 2019
                              • 1004

                              #29
                              Originally posted by Nick
                              So you're not seeing a ~/.angband/Angband/randart.log ?
                              No, pretty sure I'm being thorough.

                              find | grep randart
                              ./angband/src/obj-randart.o
                              ./angband/src/obj-randart.c
                              ./angband/src/obj-randart.h
                              ./angband/src/list-randart-properties.h
                              ./angband/lib/archive/randart_0e7ca6bf.txt

                              find | grep log
                              ./angband/config.log
                              ./angband/.git/logs
                              ./angband/.git/logs/HEAD
                              ./angband/.git/logs/refs
                              ./angband/.git/logs/refs/remotes
                              ./angband/.git/logs/refs/remotes/origin
                              ./angband/.git/logs/refs/remotes/origin/HEAD
                              ./angband/.git/logs/refs/heads
                              ./angband/.git/logs/refs/heads/master
                              Last edited by DavidMedley; March 19, 2020, 21:45. Reason: Mistaken
                              Please like my indie game company on Facebook! https://www.facebook.com/RatherFunGames

                              Comment

                              • DavidMedley
                                Veteran
                                • Oct 2019
                                • 1004

                                #30
                                randart_0e7ca6bf.txt describes the artifacts but nothing about their creation
                                Please like my indie game company on Facebook! https://www.facebook.com/RatherFunGames

                                Comment

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