Tip for developers.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • d_m
    Angband Devteam member
    • Aug 2008
    • 1517

    #16
    Originally posted by Derakon
    Hey, can we wrap this up by 4? The emacs-vim guys want to get started and you're using their room.

    I don't start the flames, I just fan them!

    EDIT: Seriously though, if there are more Windows developers who want to submit patches, test on Windows, etc. it would be great.
    Last edited by d_m; March 9, 2010, 04:30.
    linux->xterm->screen->pmacs

    Comment

    • takkaria
      Veteran
      • Apr 2007
      • 1951

      #17
      Originally posted by Atarlost
      Too bad Mac OS only runs on Mac hardware unlike Windows and Linux which can run on nearly anything these days.

      And Mac OS is only "more user friendly" than windows in the way that you find speaking English easier than Chinese. For people who grew up with Windows Mac OS might as well be Greek. Even Gnome is less jarring since it shares a lot of the windows conventions. KDE even has everything in the same locations.
      Oh, come on. You have to tweak your intuitions a little bit to move from one to the other, but they're really not as foreign to each other as Greek and English. The adaptation period is pretty quick.
      takkaria whispers something about options. -more-

      Comment

      • konijn_
        Hellband maintainer
        • Jul 2007
        • 367

        #18
        Originally posted by d_m
        I don't start the flames, I just fan them!

        EDIT: Seriously though, if there are more Windows developers who want to submit patches, test on Windows, etc. it would be great.

        Me me ! Just fix the gosh darned directory structure so that MSVC can live with it..

        T.
        * Are you ready for something else ? Hellband 0.8.8 is out! *

        Comment

        • Pete Mack
          Prophet
          • Apr 2007
          • 6883

          #19
          Originally posted by konijn_
          Me me ! Just fix the gosh darned directory structure so that MSVC can live with it..

          T.

          Really, that's the easy part. It's the duplicate file names that MSVC actually chokes on.
          The hard part is getting the project configuration correct. (I haven't got it yet.)

          Comment

          • Napsterbater
            Adept
            • Jun 2009
            • 177

            #20
            Originally posted by d_m
            I submit that Mac OS is more user friendly than windows.
            Based on what? What you gain (marginally) in intuitiveness you lose once you realize that there's even less functionality built into the operating system than Windows. On Windows, you can at least use Paint to make basic image edits like resizing photos and saving to different formats. Can't do that in OSX without downloading additional software.

            I actually prefer Windows. But not by much mind, I'd be happy to banish it from my life forever. Luckily I'm one of the only two Linux guys at my shop and the other guy's on vacation. I need something done on one of our Windows machines, I pick up a phone.
            This thread, it needs more rage. -- Napstopher Walken

            Comment

            • Pete Mack
              Prophet
              • Apr 2007
              • 6883

              #21
              MSVC project file for angband

              Originally posted by konijn_
              Me me ! Just fix the gosh darned directory structure so that MSVC can live with it..
              For what it's worth, I have an MSVC project that compiles, runs, and debugs. It's not very clean, because I didn't configure it intelligently when I started.

              It wasn't significantly more work than writing a portable makefile, even though I didn't really know what I was doing.

              However, before I go any further, (ie: before I agree to maintain an angband .vcproj file) I need to be sure that the angband src directory will conform to MSVC rules:
              * no duplicate .c file names (even in different directories.)
              * preferably no duplicate .h file names to reduce developer confusion, though MSVC can handle them.

              EDIT:
              Technically, it's no longer MSVC; it's VS2008.

              EDIT 2:
              The project file currently depends on powershell for post-build steps (rather than a .bat file.)
              I am assuming this is an acceptable dependency in this day and age...
              Last edited by Pete Mack; March 9, 2010, 07:29.

              Comment

              • Pete Mack
                Prophet
                • Apr 2007
                • 6883

                #22
                Followup on VS2008 compilation: some really annoying warnings, repeating 215 times in total.

                Type 1:
                ..\z-rand.c(290) : warning C4244: '=' : conversion from 'long' to 's16b', possible loss of data
                Type 1a:
                ..\object\randart.c(1093) : warning C4244: '+=' : conversion from 's32b' to 's16b', possible loss of data
                (randart.c is particularly guilty on this.)
                Type 2: Can get rid of this with #define _CRT_SECURE_NO_WARNINGS
                Reduces warning count to 105.
                ..\z-form.c(375) : warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
                c:\Program Files\Microsoft Visual Studio 9.0\VC\include\stdio.h(366) : see declaration of 'sprintf'
                Type 3:
                ..\z-file.c(517) : warning C4996: 'fileno': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _fileno. See online help for details.
                c:\Program Files\Microsoft Visual Studio 9.0\VC\include\stdio.h(722) : see declaration of 'fileno'
                Type 4:
                ..\util.c(2511) : warning C4550: expression evaluates to a function which is missing an argument list
                Type 5:
                ..\ui-birth.c(350) : warning C4090: 'function' : different 'const' qualifiers
                Type 6:
                warning C4090: '=' : different 'const' qualifiers

                Comment

                • will_asher
                  DaJAngband Maintainer
                  • Apr 2007
                  • 1124

                  #23
                  I always just ignored all that stuff when I was using MSVC with DaJAngband.
                  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

                    #24
                    Yeah, that works, mostly.

                    But this kind of thing is really easy to fix, and if there's ever even a single bug related to one of the warnings, the work will pay off. (That kind of error can really hard to track down.)

                    Finally, if you do introduce a new (bad!) warning, it is totally masked by the other 213.

                    Comment

                    • Pete Mack
                      Prophet
                      • Apr 2007
                      • 6883

                      #25
                      Originally posted by d_m
                      I submit that Mac OS is more user friendly than windows.

                      That was probably only true until Oct 2009.
                      Windows 7 is pretty comparable in usability to OSX (no more driver/dll hell!)
                      The desktop works (finally!) as smoothly in Windows 7 as in OSX 10.3 (Quartz Extreme) and later. (No more laggy drag and drop.)

                      Comment

                      • Nick
                        Vanilla maintainer
                        • Apr 2007
                        • 9647

                        #26
                        Originally posted by Pete Mack
                        For what it's worth, I have an MSVC project that compiles, runs, and debugs.
                        The Windows CE port of FA is in a similar state. There was an initial passable port of V to WinCE, which Psi then turned into a superbly functional port of FA. It is available as an Embedded Visual C++ 4 project; sadly there has not been another free WinCE compiler since then, but it still works fine on XP.

                        I have considered from time to time updating the V port, but there are a couple of things (apart from the effort involved) standing in the way:
                        1. V doesn't have full mouse control, although it almost does. I did part of the job, but got to the point where my FA approach was a bit hackish to go in the main V codebase.
                        2. The FA port as it stands is not GPL clean - both Psi and I have tried to contact the original V port author and failed. If someone else wants to have a go at this (I believe he is based in New York State).
                        One for the Dark Lord on his dark throne
                        In the Land of Mordor where the Shadows lie.

                        Comment

                        • SilverD
                          Scout
                          • Nov 2009
                          • 31

                          #27
                          Originally posted by Napsterbater
                          On Windows, you can at least use Paint to make basic image edits like resizing photos and saving to different formats. Can't do that in OSX without downloading additional software.
                          Uhh.. It's called Preview.
                          Reality is what, when you stop believing in it, doesn't go away.
                          Failure is not an option. It is a privilege, reserved only for those who try.

                          Comment

                          • Pete Mack
                            Prophet
                            • Apr 2007
                            • 6883

                            #28
                            Originally posted by Nick
                            The Windows CE port of FA is in a similar state. There was an initial passable port of V to WinCE, which Psi then turned into a superbly functional port of FA. It is available as an Embedded Visual C++ 4 project; sadly there has not been another free WinCE compiler since then, but it still works fine on XP.
                            Is it necessary to have an IDE for this, as well as a compiler? The windows compiler, CL.EXE, still has support for the WinCE build options on VS Express. I suspect what's actually missing from the free version is a WinCE Emulator/Debugger.

                            Comment

                            • Derakon
                              Prophet
                              • Dec 2009
                              • 9022

                              #29
                              Originally posted by Napsterbater
                              Based on what? What you gain (marginally) in intuitiveness you lose once you realize that there's even less functionality built into the operating system than Windows. On Windows, you can at least use Paint to make basic image edits like resizing photos and saving to different formats. Can't do that in OSX without downloading additional software.
                              Argh, I'm getting involved in one of these discussions? Tsk.

                              Anyway, Preview, one of OSX's built-in programs, can resize, crop, adjust brightness/contrast/saturation/etc., and save to PNG, JPG, TIFF, PDF, GIF, TGA, etc. It can even do BMP, but thankfully unlike some programs that's not the default.

                              Comment

                              • Therem Harth
                                Knight
                                • Jan 2008
                                • 926

                                #30
                                Well it looks like I'm a little late to the party, but I need to say a few things...

                                1. Win98 isn't supported any more because it shouldn't be. It's an utter abomination of an OS, an insecure, unstable kludge, and at 12 years old it is *massively* obsolete. It was bad the day it was made; in this age of daily security holes it simply should not be used anywhere, for any purpose. If you must use an obsolete OS use Win2k SP4, which is at least based on the NT kernel.

                                2. The command line interface is *not* archaic. It's older, but that doesn't mean it's worse. Yes, it takes more know-how, but when you do know how it's much more convenient to do certain things by CLI than by GUI. For an example of what I'm talking about, see YAST, which (despite OpenSuSE generally being good) makes system configuration clunky and inconvenient. I should add that there is a reason that Microsoft created Powershell, and it wasn't "because they could".

                                3. Windows 7 is actually pretty good. I can't say it's more user-friendly than XP, but it's certainly more administrator-friendly, offering more configurability and hiding less from the user.

                                Comment

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