![]() |
#1 |
Adept
Join Date: Nov 2009
Posts: 166
![]() |
Compiling a "Windows Console" version
Hi All,
This is my first post here, but some of you may remember me from a few years ago (I wrote the Cthangband and Hellband variants). After a long hiatus, I've got into Angband again, but I'm having trouble with the latest source. I notice on the download page that the older versions (e.g. 3.0.9) have "Windows Console" versions for download, but the latest version (3.1.1 beta) doesn't. How do I compile the "Windows Console" version for myself? Do I need to include a different "main-???" file other than "main-win"? Or do I include "main-win" but set various compiler options? I have Visual Studio 2008, if that helps. |
![]() |
![]() |
![]() |
#2 | |
Hellband maintainer
Join Date: Jul 2007
Location: New York, the Big Apple
Age: 43
Posts: 367
Donated: $120
![]() |
Quote:
Wow, the man himself ![]() I have sent you several emails to which you never replied so I thought you had fallen from the face of the earth ![]() I kind of took over Hellband, you might want to give it a spin ;] T.
__________________
* Are you ready for something else ? Hellband 0.8.8 is out! * |
|
![]() |
![]() |
![]() |
#3 |
Angband Devteam member
|
Hi. I have a nasty suspicion that you mean main-ibm.c, which was (IIRC) removed during the GPL effort. Also known as the "DOS" port. I noticed only yesterday that it wasn't there any more. Best ask Takkaria if there's any scope for resurrecting it - not sure how much was un-GPL-able.
|
![]() |
![]() |
![]() |
#4 | |
Adept
Join Date: Nov 2009
Posts: 166
![]() |
Quote:
I'll download the 3.0.9 source-code and see if that still includes "main-ibm.c"... ETA: I've just checked, and the 3.0.9 source doesn't include "main-ibm.c", so it can't have been that unless someone manually patched it. Last edited by Dean Anderson; November 30, 2009 at 19:39. Reason: Add info |
|
![]() |
![]() |
![]() |
#5 | ||
Adept
Join Date: Nov 2009
Posts: 166
![]() |
Quote:
Quote:
|
||
![]() |
![]() |
![]() |
#6 | |
Angband Devteam member
Join Date: Aug 2008
Location: Philadelphia, PA, USA
Age: 40
Posts: 1,516
![]() |
Quote:
Thanks so much for writing Cthangband. Back in college that variant was my favorite and really got me into Angband variants in general. Anyway, welcome to the forums! |
|
![]() |
![]() |
![]() |
#7 |
Adept
Join Date: Nov 2009
Posts: 166
![]() |
Found it (I think!)
The "makefile.win" file allows you to define the "USE_CONSOLE" variable, and that causes it to include "main_gcu.c" instead of "main_win.c". However, it requires the Windows version of the PDCurses library if you want to use it on Windows. Hopefully, I'll be able to shoehorn that into a Visual Studio project and get it to work (I can't stand makefiles - I much prefer an IDE with an integrated debugger...) |
![]() |
![]() |
![]() |
#8 | |
Hellband maintainer
Join Date: Jul 2007
Location: New York, the Big Apple
Age: 43
Posts: 367
Donated: $120
![]() |
Quote:
![]() T.
__________________
* Are you ready for something else ? Hellband 0.8.8 is out! * |
|
![]() |
![]() |
![]() |
#9 |
Adept
Join Date: Nov 2009
Posts: 166
![]() |
Depends how much you've changed it, but all my Hellband code was written in Visual Studio in the first place, so you should be able to simply create a project (A Win32 Application - make sure you click the "Empty Project" option) and add the files...
|
![]() |
![]() |
![]() |
#10 | |
Hellband maintainer
Join Date: Jul 2007
Location: New York, the Big Apple
Age: 43
Posts: 367
Donated: $120
![]() |
Quote:
For giggles, I created a new Win32 app, put c files under Source Files, h files under Header Files and angband.res and angband.rc under resource files. Then I noticed a booboo where MS is less forgiving than GNU Code:
/* * Birth item info */ typedef struct birth_item birth_item; struct birth_item { byte race; /* Race of the counterpart */ byte class; /* Class of the counterpart */ t Code:
ypedef struct birth_item birth_item; struct birth_item { byte prace; /* Race of the counterpart */ byte pclass; /* Class of the counterpart */ 1>birth.obj : error LNK2001: unresolved external symbol "struct player_race p_race" (?p_race@@3Uplayer_race@@A) 1>birth.obj : error LNK2001: unresolved external symbol "char reallyTRUE" (?reallyTRUE@@3DA) 1>birth.obj : error LNK2019: unresolved external symbol "unsigned long __cdecl Rand_div(unsigned long)" (?Rand_div@@YAKK@Z) referenced in function "void __cdecl create_random_name(int,unsigned char,char *)" (?create_random_name@@YAXHEPAD@Z) 1>birth.obj : error LNK2019: unresolved external symbol "unsigned long __cdecl Rand_num(unsigned long)" (?Rand_num@@YAKK@Z) referenced in function "void __cdecl create_random_name(int,unsigned char,char *)" (?create_random_name@@YAXHEPAD@Z) 1>birth.obj : error LNK2001: unresolved external symbol "char rand_unbiased" (?rand_unbiased@@3DA) And this ad nauseum until 101 thingies are not found, and thats the end of it. T.
__________________
* Are you ready for something else ? Hellband 0.8.8 is out! * |
|
![]() |
![]() |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
"repeat" Command just little bit "smarter" | ClaytonAguiar | Vanilla | 8 | June 17, 2009 15:01 |
Feature request: generalize "drop chosen" | bron | Vanilla | 23 | December 23, 2008 16:33 |
Blast! Killed by a "summon monster" trap | Wraitheist | Vanilla | 10 | April 27, 2008 18:36 |
Love The New Windows Console Patch | Malak Darkhunter | Vanilla | 0 | December 8, 2007 18:50 |
Roguelike idea from "Lost Magic" DS game - Mr. @ teaches typing! | ekolis | Idle chatter | 10 | October 19, 2007 03:25 |