frustrating crash bug

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Pete Mack
    Prophet
    • Apr 2007
    • 6883

    #46
    It's fixed, I think. I left a few scattered ')' characters around.

    Comment

    • will_asher
      DaJAngband Maintainer
      • Apr 2007
      • 1124

      #47
      You need two more open parenthesis at the beginning. (I don't really know how to write original code, but I know how to count parenthesis..).
      Now your 'in_bounds_fully' works.
      Thanks
      Will_Asher
      aka LibraryAdventurer

      My old variant DaJAngband:
      http://sites.google.com/site/dajangbandwebsite/home (defunct and so old it's forked from Angband 3.1.0 -I think- but it's probably playable...)

      Comment

      • Nick
        Vanilla maintainer
        • Apr 2007
        • 9637

        #48
        Originally posted by will_asher
        I do a lot of things that way actually. I wouldn't know how to do it from scratch without help, so I just copy it from something similar and tweak it.
        This is a very good way to learn, rather than trying to do everything from scratch and then giving up.
        One for the Dark Lord on his dark throne
        In the Land of Mordor where the Shadows lie.

        Comment

        • PaulBlay
          Knight
          • Jan 2009
          • 657

          #49
          Originally posted by Pete Mack
          Which brings us to the question: why are there two macros where one will serve?
          Because it's easier to follow.

          Sometimes I think it's more important that code is easy to understand than efficient. Of course "easy to understand" depends heavily on the person looking at it.
          Currently turning (Angband) Japanese.

          Comment

          • will_asher
            DaJAngband Maintainer
            • Apr 2007
            • 1124

            #50
            I've quickly gotten to like this Visual C++ debugger a lot. When it finds a bug, it actually lets you know whats wrong, unlike my old compiler.
            Will_Asher
            aka LibraryAdventurer

            My old variant DaJAngband:
            http://sites.google.com/site/dajangbandwebsite/home (defunct and so old it's forked from Angband 3.1.0 -I think- but it's probably playable...)

            Comment

            • will_asher
              DaJAngband Maintainer
              • Apr 2007
              • 1124

              #51
              So I was about to send DJA1098 to pav to post on oook, but I copied DaJAngband to my other computer and it wouldn't run. It gave me a message that said, "The application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem."
              anyone know what this means?
              Will_Asher
              aka LibraryAdventurer

              My old variant DaJAngband:
              http://sites.google.com/site/dajangbandwebsite/home (defunct and so old it's forked from Angband 3.1.0 -I think- but it's probably playable...)

              Comment

              • PaulBlay
                Knight
                • Jan 2009
                • 657

                #52
                Originally posted by will_asher
                It gave me a message that said, "The application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem."
                anyone know what this means?
                I think that means it's a "Debug" compile not a "Release" compile.

                See here for how to do a release compile.

                (You just need to notice the "Set 'configuration' to "Release"." and optionally "Type "/DWINDOWS /DNDEBUG" into the Command line. " bits)
                Currently turning (Angband) Japanese.

                Comment

                • Pete Mack
                  Prophet
                  • Apr 2007
                  • 6883

                  #53
                  It probably means you compiled in /Debug mode, but you don't have the Debug system libraries installed on your other machine. VC expects you to distribute only /Release builds.

                  Comment

                  • will_asher
                    DaJAngband Maintainer
                    • Apr 2007
                    • 1124

                    #54
                    ..oops, okay thanks
                    Last edited by will_asher; May 25, 2009, 22:40.
                    Will_Asher
                    aka LibraryAdventurer

                    My old variant DaJAngband:
                    http://sites.google.com/site/dajangbandwebsite/home (defunct and so old it's forked from Angband 3.1.0 -I think- but it's probably playable...)

                    Comment

                    • will_asher
                      DaJAngband Maintainer
                      • Apr 2007
                      • 1124

                      #55
                      I set configuration to release, but it still gives me the same error when I copy it to my other computer.

                      EDIT: nevermind, I just re-compiled with my old compiler. I guess it's still good for something.

                      unrelated PS: the rephial wiki isn't working
                      Last edited by will_asher; May 25, 2009, 23:25.
                      Will_Asher
                      aka LibraryAdventurer

                      My old variant DaJAngband:
                      http://sites.google.com/site/dajangbandwebsite/home (defunct and so old it's forked from Angband 3.1.0 -I think- but it's probably playable...)

                      Comment

                      • Pete Mack
                        Prophet
                        • Apr 2007
                        • 6883

                        #56
                        You are absolutely sure you copied the right executable? (The one from src/Release--the other ones may or may not be correct.) Also, what exactly does it say for the linker options? (Does it say winmm.lib, or winmm.dll, etc?)

                        Comment

                        • will_asher
                          DaJAngband Maintainer
                          • Apr 2007
                          • 1124

                          #57
                          Just a minute ago I found a copy of my DaJAngband debug folder in my "My Documents" folder. I guess for some reason Visual C++ must've created a copy there and was putting the new executible in a completely unexpected place. That's probably what was wrong.
                          (It does say winmm.lib in the linker options).
                          Will_Asher
                          aka LibraryAdventurer

                          My old variant DaJAngband:
                          http://sites.google.com/site/dajangbandwebsite/home (defunct and so old it's forked from Angband 3.1.0 -I think- but it's probably playable...)

                          Comment

                          • will_asher
                            DaJAngband Maintainer
                            • Apr 2007
                            • 1124

                            #58
                            <serious thread necromancy>

                            I finally got VC++ to install on this computer. yay.

                            I am reusing this thread because I'm using Paul Blay's instructions on page 2 of this thread for compiling in VC++ (and I'm also trying to fix a crash bug again)

                            When compiling the game (after getting rid of my errors in the code which didn't comply with VC++ standards), I'm getting these errors which I don't know what they mean, any help?

                            fatal error CVT1100: duplicate resource. type:MENU, name:ANGBAND, language:0x0409 CVTRES

                            fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt DaJAngband130
                            Will_Asher
                            aka LibraryAdventurer

                            My old variant DaJAngband:
                            http://sites.google.com/site/dajangbandwebsite/home (defunct and so old it's forked from Angband 3.1.0 -I think- but it's probably playable...)

                            Comment

                            • Pete Mack
                              Prophet
                              • Apr 2007
                              • 6883

                              #59
                              Bing, like google, is your friend:


                              Not sure about the COFF failure, but one thing at a time.

                              Comment

                              • will_asher
                                DaJAngband Maintainer
                                • Apr 2007
                                • 1124

                                #60
                                Okay got it to build. I had included the .rc file which was created by DevC++, so I had two .rc files and that apparently messed things up.

                                PS: This is weird. I found a bug that happens when compiling with VC++, but completely dissapears if I compile with DEVC++
                                Last edited by will_asher; January 23, 2011, 04:46.
                                Will_Asher
                                aka LibraryAdventurer

                                My old variant DaJAngband:
                                http://sites.google.com/site/dajangbandwebsite/home (defunct and so old it's forked from Angband 3.1.0 -I think- but it's probably playable...)

                                Comment

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