Angband.oook.cz
Angband.oook.cz
AboutDownloadVariantsLadderForumCompetitionSpoilersComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Development

Reply
 
Thread Tools Display Modes
Old August 8, 2010, 20:51   #11
nppangband
NPPAngband Maintainer
 
Join Date: Dec 2008
Location: Stat Gain, Angband
Posts: 814
nppangband is on a distinguished road
Quote:
Originally Posted by Tatami View Post
I just rolled a high elf ranger and the character description is missing a few spaces between the different aspects of the char description. I know I know, stop the presses the game doesn't function..
That was a tough one, but I think I came up with something that will hopefully work. Thanks.
nppangband is offline   Reply With Quote
Old August 8, 2010, 21:51   #12
Tatami
Apprentice
 
Join Date: Oct 2009
Posts: 59
Tatami is on a distinguished road
Quote:
Originally Posted by nppangband View Post
That was a tough one, but I think I came up with something that will hopefully work. Thanks.
You guys are miracle workers.

Seriously: Will give NPP another hard player test. Big cheers for the hard wrok! (dont't wrok the grass por favore..)
Tatami is offline   Reply With Quote
Old August 9, 2010, 01:15   #13
Pete Mack
Veteran
 
Join Date: Apr 2007
Location: Seattle, WA
Posts: 2,399
Donated: $40
Pete Mack is on a distinguished road
OK, I got a bit further by removing:
player/.*.h
object/.*.h
monster/.*.h
from Makefile.inc

However, I am still seeing:
Code:
C:\Projects\Exp\npp-0.5.1-src-WIP\src>make -f Makefile.win
gcc -DWINDOWS -Wall -Wextra -Wno-unused-parameter -std=iso9899:199409 -pedantic
-O2 -I. -mno-cygwin -c -o dungeon.o dungeon.c
dungeon.c: In function `recharge_objects':
dungeon.c:524: warning: ISO C90 forbids mixed declarations and code
dungeon.c:540: error: initializer element is not constant
make: *** [dungeon.o] Error 1
C:\Projects\Exp\npp-0.5.1-src-WIP\src>make -f Makefile.win
gcc -DWINDOWS -Wall -Wextra -Wno-unused-parameter -std=iso9899:199409 -pedantic
-O2 -I. -mno-cygwin -c -o dungeon.o dungeon.c
dungeon.c: In function `recharge_objects':
dungeon.c:541: error: initializer element is not constant
make: *** [dungeon.o] Error 1
gcc -DWINDOWS -Wall -Wextra -Wno-unused-parameter -std=iso9899:199409 -pedantic
-O2 -I. -mno-cygwin -c -o feature.o feature.c
feature.c: In function `get_feat_num':
feature.c:1559: error: syntax error before '/' token
make: [feature.o] Error 1 (ignored)
gcc -DWINDOWS -Wall -Wextra -Wno-unused-parameter -std=iso9899:199409 -pedantic
-O2 -I. -mno-cygwin -c -o melee1.o melee1.c
melee1.c: In function `make_attack_ranged':
melee1.c:3986: error: `true' undeclared (first use in this function)
melee1.c:3986: error: (Each undeclared identifier is reported only once
melee1.c:3986: error: for each function it appears in.)
make: [melee1.o] Error 1 (ignored)
I recommend trying to build with:

CFLAGS += $(WARNINGS) -std=iso9899:199409 -pedantic -O2 -I.
or update all gcc-dependent makefiles to use the options of your choice.


There are also lots of warnings, some of them are scary.
Like:
Code:
cmd4.c: In function `do_cmd_change_name':
cmd4.c:215: warning: comparison is always false due to limited range of data typ
e
cmd4.c:226: warning: comparison is always false due to limited range of data typ
e
cmd4.c: In function `do_cmd_messages':
cmd4.c:387: warning: comparison is always false due to limited range of data typ
e
cmd4.c:397: warning: comparison is always false due to limited range of data typ
e
cmd4.c:407: warning: comparison is always false due to limited range of data typ
e
cmd4.c:414: warning: comparison is always false due to limited range of data typ
e
cmd4.c: In function `do_cmd_macro_aux':
cmd4.c:685: warning: comparison is always true due to limited range of data type
I find MinGW a lot more useful than lcc. It's a lot more standards-compliant (whichever standard you pick), and the warnings are much, much stronger.

Visual Studio can help too--the MSVC compiler catches different errors, although setting up a project file is a bit of a pain.

Edit:
PS: the version of cmd-know.c you are using is not copyright by me. (I had nothing to do with it. I want nothing to do with it...)

Last edited by Pete Mack; August 9, 2010 at 01:26.
Pete Mack is offline   Reply With Quote
Old August 9, 2010, 03:28   #14
nppangband
NPPAngband Maintainer
 
Join Date: Dec 2008
Location: Stat Gain, Angband
Posts: 814
nppangband is on a distinguished road
Quote:
Originally Posted by Pete Mack View Post

I find MinGW a lot more useful than lcc. It's a lot more standards-compliant (whichever standard you pick), and the warnings are much, much stronger.

Thanks. I intended to download and workwith MinGW today, but I was killing bugs all day long today.

I think I know what most of those warnings are & the fixes are simple. I will get to work on them & get a clean compile with MinGW.
nppangband is offline   Reply With Quote
Old August 9, 2010, 17:52   #15
ekolis
Knight
 
ekolis's Avatar
 
Join Date: Apr 2007
Location: Cincinnati, OH, USA
Age: 31
Posts: 906
ekolis is on a distinguished road
Send a message via AIM to ekolis Send a message via MSN to ekolis Send a message via Yahoo to ekolis Send a message via Skype™ to ekolis
Do you have a repository out there we can download the latest code from, or will we have to wait for the next WIP version?
__________________
You read the scroll labeled NOBIMUS UPSCOTI...
You are surrounded by a stasis field!
The tengu tries to teleport, but fails!
ekolis is offline   Reply With Quote
Old August 10, 2010, 02:03   #16
nppangband
NPPAngband Maintainer
 
Join Date: Dec 2008
Location: Stat Gain, Angband
Posts: 814
nppangband is on a distinguished road
Quote:
Originally Posted by ekolis View Post
Do you have a repository out there we can download the latest code from, or will we have to wait for the next WIP version?
We have an old one that is out of date. I do intend on setting up a new one once things calm down. I will put out another WIP in a day or two. I am happy to send the altered source files or a diff file to anyone who wants one.
nppangband is offline   Reply With Quote
Old August 13, 2010, 12:27   #17
nppangband
NPPAngband Maintainer
 
Join Date: Dec 2008
Location: Stat Gain, Angband
Posts: 814
nppangband is on a distinguished road
Quote:
Originally Posted by Pete Mack View Post
I recommend trying to build with:

CFLAGS += $(WARNINGS) -std=iso9899:199409 -pedantic -O2 -I.
or update all gcc-dependent makefiles to use the options of your choice.
I did RTFM before I ask these stupid questions, I promise.

I downloaded WINGW (into C:\WinGW) using the automated installer with "MINGW Make" added, added C:\WinGW\bin; to the Environment Variable, rebooted, went to the windows command prompt, got to the source directory, and typed:

make -f makefile.win. MINGW=yes (Is this right command prompt?)

I get the error: 'make" is not recognized as an internal or external command, operable program, or batch file.

I looked, and the wingw\bin directory doesn't have a file or application called "make". It has a mingw32-make. What command should I use?

Also, @Pete: Are you saying this line should be added to the command line or the makefile?

CFLAGS += $(WARNINGS) -std=iso9899:199409 -pedantic -O2 -I.

Thanks for any suggestions anyone may have.
nppangband is offline   Reply With Quote
Old August 13, 2010, 17:12   #18
ekolis
Knight
 
ekolis's Avatar
 
Join Date: Apr 2007
Location: Cincinnati, OH, USA
Age: 31
Posts: 906
ekolis is on a distinguished road
Send a message via AIM to ekolis Send a message via MSN to ekolis Send a message via Yahoo to ekolis Send a message via Skype™ to ekolis
Have you tried msys? That might be the command-line you're after...
__________________
You read the scroll labeled NOBIMUS UPSCOTI...
You are surrounded by a stasis field!
The tengu tries to teleport, but fails!
ekolis is offline   Reply With Quote
Old August 14, 2010, 01:08   #19
andrewdoull
Unangband maintainer
 
andrewdoull's Avatar
 
Join Date: Apr 2007
Location: Sydney, Australia
Age: 39
Posts: 871
andrewdoull is on a distinguished road
Quote:
Originally Posted by nppangband View Post
I did RTFM before I ask these stupid questions, I promise.

I downloaded WINGW (into C:\WinGW) using the automated installer with "MINGW Make" added, added C:\WinGW\bin; to the Environment Variable, rebooted, went to the windows command prompt, got to the source directory, and typed:

make -f makefile.win. MINGW=yes (Is this right command prompt?)

I get the error: 'make" is not recognized as an internal or external command, operable program, or batch file.

I looked, and the wingw\bin directory doesn't have a file or application called "make". It has a mingw32-make. What command should I use?
Use mingw32-make. IIRC Mingw32 prefixes any command where the semantics are not identical to the Unix equivalent.

Andrew
__________________
The Roflwtfzomgbbq Quylthulg summons L33t Paladins -more-
In UnAngband, the level dives you.
ASCII Dreams: http://roguelikedeveloper.blogspot.com
Unangband: http://unangband.blogspot.com
andrewdoull is offline   Reply With Quote
Old August 14, 2010, 04:26   #20
nppangband
NPPAngband Maintainer
 
Join Date: Dec 2008
Location: Stat Gain, Angband
Posts: 814
nppangband is on a distinguished road
Yep. I tried that, and it didn't work.

But I did get cygwin (with gcc) set up and working. So I am going through all of those compile errors now. And you are right, Pete. There are *alot* of them.

Strangely, LCC-WIN had a complete meltdown and won't compile anything any more. It keeps saying it can't compile any straight c commands like ferror or fputc. I believe something in the latest windows update or my latest firewall update has blocked LCCWin's access to the standard C library.
nppangband is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
New Verison of NPPAngband version 050 to be released in about a week nppangband Variants 17 January 31, 2010 19:55
NPPAngband? andrewdoull Variants 2 May 31, 2009 01:04
Gumband 2.3.1 Announce rdanhenry Variants 35 May 22, 2009 07:16
Announce: DaJAngband v1.0.03 will_asher Variants 4 February 6, 2008 21:23
Review: NPPangband TJA Variants 0 August 20, 2007 18:39


All times are GMT +1. The time now is 21:03.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.