New to Angband Dev

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • shinobibear
    Rookie
    • Mar 2010
    • 1

    New to Angband Dev

    Hey there community,
    Im new to the Developers side, but have enjoyed the game for quite some time.
    Are there any good well commented source codes? Ive been trying to navigate the 3.0.9 build but havent any luck. Also Im using Visual Basic Express 2008 if it matters too much on which complier Im using. Any help would be great.
  • d_m
    Angband Devteam member
    • Aug 2008
    • 1517

    #2
    My experience with Angband is that some parts are relatively well-documented but there is very little useful high-level documentation about the source code.
    linux->xterm->screen->pmacs

    Comment

    • Pete Mack
      Prophet
      • Apr 2007
      • 6883

      #3
      You will want to open Angband in 'C' mode, not VB mode in Visual Studio.

      Also: if you have a good angband project, please submit it for checkin to the build. It's crazy not having a VS project available at this point.

      Comment

      • Pete Mack
        Prophet
        • Apr 2007
        • 6883

        #4
        By the way, this is much harder than you think. I've tried it more than once, but I can't figure out how to fix angband.rc to work with VS 2008.

        There are also 358 warnings--almost all are security warnings for use of sscanf, and loss of data warnings for casts from int to byte.

        Note: to get the subdirs to compile, you also have to add .. to additional include paths, but that's not a big problem.

        Comment

        • Pete Mack
          Prophet
          • Apr 2007
          • 6883

          #5
          OK, I got past that problem -- the auto-regenerated rc file contains some LANGUAGE stuff that needed to be commented out.

          Now all I'm seeing is link errors -- 1198 of them!

          Comment

          • Pete Mack
            Prophet
            • Apr 2007
            • 6883

            #6
            Ok, I've got it down to two external symbols:
            Error 362 error LNK2019: unresolved external symbol __imp__PlaySoundW@12 referenced in function _Term_xtra_win_sound main-win.obj angband
            Error 363 error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup MSVCRTD.lib angband

            This should be easy to figure out tomorrow.

            However, absolute requirement is that player/util.c be renamed. VS gets confused when a project includes two source files of the same name, even in different directories. (Eponymous include files are OK to compile, but confusing to navigate.)

            EDIT:

            I've got it linking (and starting up). I'll post the .sln .vcproj, and related files & changes tomorrow after testing.

            EDIT:
            Cool! It opens a dialog box in chinese! Needless to say, I have no idea what it says...
            Last edited by Pete Mack; March 8, 2010, 09:37.

            Comment

            • RogerN
              Swordsman
              • Jul 2008
              • 308

              #7
              Originally posted by Pete Mack
              EDIT:
              Cool! It opens a dialog box in chinese! Needless to say, I have no idea what it says...
              IIRC, you need to set the project to use multi-byte character set instead of Unicode. Unicode is the default.

              Comment

              • Sirridan
                Knight
                • May 2009
                • 560

                #8
                I hate to necro a thread, but do you have a working VS project Pete?

                I'd love to be able to tinker around with Angband with VS. I'm too spoiled... nano and grep just aren't doing it for me... *sigh*

                Comment

                • ekolis
                  Knight
                  • Apr 2007
                  • 921

                  #9
                  You can work around the util.c duplication by assigning player/util.c a custom output file (such as player-util.obj) in the file's property pages.

                  Anyway, I just now put together a solution file for the r1971... anywhere in particular you want me to post it?
                  You read the scroll labeled NOBIMUS UPSCOTI...
                  You are surrounded by a stasis field!
                  The tengu tries to teleport, but fails!

                  Comment

                  • ekolis
                    Knight
                    • Apr 2007
                    • 921

                    #10
                    Here ya go, I've posted it:


                    Extract this into the angband folder (not angband/src) and open up the sln file in VC++ 2010 Express or VS2010

                    Let me know if you have any trouble!
                    You read the scroll labeled NOBIMUS UPSCOTI...
                    You are surrounded by a stasis field!
                    The tengu tries to teleport, but fails!

                    Comment

                    • Sirridan
                      Knight
                      • May 2009
                      • 560

                      #11
                      Originally posted by ekolis
                      Here ya go, I've posted it:


                      Extract this into the angband folder (not angband/src) and open up the sln file in VC++ 2010 Express or VS2010

                      Let me know if you have any trouble!
                      Ah thanks a ton! This will make debugging so much easier!

                      Comment

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