![]() |
#31 |
Rookie
Join Date: Jun 2011
Posts: 21
![]() |
If you are trying to run Angband 3.2.0 from VS2010, just unzip downloaded sources and place attached files (sln + vcxproj* into src folder).
The only problematic things are: - size_t in game-cmd.c as mentioned today in the other thread - utils.c and player/utils.c produces same obj by default, so rename player utils to player_utils.c and it should work! - mouse moving is not working due to bug with switched coordinates Debugging works like a charm :-) Tested on 32/64 bit Win7 with VS2010 Ultimate/Express. Regards |
![]() |
![]() |
![]() |
#32 |
Swordsman
Join Date: Apr 2011
Location: Göteborg, Sweden
Posts: 348
![]() |
Nice work! Now if someone would just do this for Eclipse as well ;-)
|
![]() |
![]() |
![]() |
#33 | |
Angband Devteam member
Join Date: Aug 2008
Location: Philadelphia, PA, USA
Age: 40
Posts: 1,516
![]() |
Quote:
I hope to fix the size_t issue and maybe also rename player/utils.c to something else. Magnate has already fixed the mouse issue. Would that mean that Angband would actually work "out of the box" in Visual Studio/VC++?? I am so used to taking flak for having things not work for MSVC that I am actually getting really excited about this ![]() Thanks, -- Erik |
|
![]() |
![]() |
![]() |
#34 |
Adept
Join Date: Jul 2007
Posts: 155
![]() |
Hello Everyone,
I just pulled down the latest version from git. Compiling on windows was fairly easy with cygwin: 1) set MINGW=yes 2) I modified Makefile.win to make it debuggable: changed '-O2' to -g removed the '-s' which strips the libraries removed -static otherwise it moaned about gcc_s library. (maybe I don't have it installed right) 3) had to modify z-file a bit. and that's basically it. make -f Makefile.win and I have a playable game. However, the entire reason I did this exercise was because I wanted to generate stats, and that doesn't work. Any advice on this? - Frank |
![]() |
![]() |
![]() |
#35 |
Rookie
Join Date: Jun 2011
Posts: 21
![]() |
Hi,
Using attached VS project files should work. It reports a lot of warnings, but can be ignored, I hope so... It is sufficient to use only vcxproj only. Of course for people familiar with CygSomething, it would be a lot of easier use this tool than download and install VS, but as I have it already, then working and debugging is a lot of easier. Regards |
![]() |
![]() |
![]() |
#36 |
Adept
Join Date: Jul 2007
Posts: 155
![]() |
Just for clarification before I go downloading all that:
You can run the angband with -mstats option to get the object dumps, right? Although, Looking through the code, it looks it does direct inserts into sqlite? If so I might have to just hack it to dump it direct to a CSV file. - Frank |
![]() |
![]() |
![]() |
#37 |
Rookie
Join Date: Jun 2011
Posts: 21
![]() |
Hmm... I'm not familiar with mstats option. Are you referring to creation of lib subfolders and its content? If so, then this VS project will only compile sources and lib folder I just copy from release.
I've created VS just to more easily debug app on my machine, than substitute building... On the other hand hacking preparation of lib content shouldn't tak too much time... Regards, |
![]() |
![]() |
![]() |
#38 | |
Angband Devteam member
|
Quote:
You have to configure the code to build the stats module - I don't know how you do that on platforms that don't use configure, but it's to do with #defining ENABLE_STATS in the right header files. Also, apparently Windows doesn't support any of the -m options, so I'm not sure you could invoke the stats module even if you built it. Finally, yes it does dump an sqlite db, so you would need to hack it to output CSV. Pls be warned that there's a LOT of data - about 1.2GB if it's uncompressed.
__________________
"3.4 is much better than 3.1, 3.2 or 3.3. It still is easier than 3.0.9, but it is more convenient to play without being ridiculously easy, so it is my new favorite of the versions." - Timo Pietila |
|
![]() |
![]() |
![]() |
#39 | |
Angband Devteam member
Join Date: Apr 2007
Posts: 334
![]() |
Quote:
Frank, is there a particular reason you want to use CSV? What tool do you plan to use to manipulate the data? The database is fairly relational. |
|
![]() |
![]() |
![]() |
#40 |
Prophet
Join Date: Dec 2009
Posts: 9,024
![]() |
I'd guess he's planning to import it into Excel or some other spreadsheet program.
|
![]() |
![]() |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Compiling Angband on MS-DOS | Zababa | Development | 8 | May 27, 2011 18:36 |
Compiling Angband 3.0.9 w/ xcode on OSX | Iemortal | Vanilla | 8 | April 16, 2011 17:41 |
Compiling Z+Angband under Windows | Altefcat | Variants | 8 | December 11, 2008 10:44 |
compiling vanilla angband on msvc++ 9 express | hugh | Vanilla | 6 | March 17, 2008 16:49 |
Trouble compiling angband 3.0.9 on linux | RastaRuedi | Vanilla | 2 | August 1, 2007 18:28 |