PDA

View Full Version : Competition 106


Nick
July 14, 2011, 03:02
Competition 106 is now available from the competition page (http://angband.oook.cz/competition.php?showcompo=106); it is a Chengband Half Troll Blood Knight.

Note that comp 105 still has a day or two to run.

ewan
July 14, 2011, 07:34
A repeat plea for an OS X build; I even got so far as downloading the source... but am sadly helpless at that point :(

Nick
July 14, 2011, 08:15
A repeat plea for an OS X build; I even got so far as downloading the source... but am sadly helpless at that point :(

I've tried and failed, I'm afraid.

chris
July 14, 2011, 15:02
I've tried and failed, I'm afraid.

How did you try? How did you fail? :)

I tried looking at the makefile.osx from vanilla, but can't really make sense of, for example, how $(BASEOBJS) gets defined, or where it lives. But one thing that is *definitely* wrong with Chengband (which, based on Heng, lacks any osx makefile) is that the file listings in the makefiles are wrong. See, there are 5 makefiles, each of them listing all the object files that need to be compiled. 5 lists, and me rapidly changing the true list of files to compile (in Hengband.vcxproj), means they aren't kept up to date. Especially since none of them work on Windows :(

But, I can provide a list of files that need to be compiled, if that is where the error is occurring. Or is it a compilation error in main-mac.c? I can't help with that, I'm afraid.

Nick
July 14, 2011, 15:36
How did you try? How did you fail? :)

I failed by not trying very hard...


Running the autotools to generate configure script and makefiles, and then ./configure and make worked until it tried to compile main-gcu.c
make -f Makefile.std fell over at mutation.c
Then I gave up.


So I didn't use main-mac.c at all, and I didn't try to hack the makefiles. My knowledge of OSX is not very 1337.

I suspect that probably the right thing to do is edit Makefile.std to have the right sources, and then compile for x11 only; I may try and do this some time in the next few days.

chris
July 14, 2011, 16:14
I failed by not trying very hard...
I suspect that probably the right thing to do is edit Makefile.std to have the right sources, and then compile for x11 only; I may try and do this some time in the next few days.

I'm trying to attach a modified makefile.std. I had to add a .txt extension to get this to work. Modifying this file took about 20 minutes to do, so I'd feel really guilty if anybody other than me had to suffer :)

766

Is makefile.std how everyone compiles on Linux? I had an e-mail from someone who ended up using makefile.am. I suppose I can make an effort to keep one makefile up to date.

ewan
July 14, 2011, 17:31
As a clueless beneficiary of all these efforts: thankyou!

[Let me know next time you want some neurologically inspired monsters, or advice on English grammar...]

artes
July 14, 2011, 22:11
Can someone please tell me how to compile Chengband on Linux?

I tried with "make -fmakefile.std" but got the error:
cc1: error: unrecognized command line option "-m486"
make: *** [z-util.o] Error 1

chris
July 14, 2011, 22:33
Can someone please tell me how to compile Chengband on Linux?

I tried with "make -fmakefile.std" but got the error:
cc1: error: unrecognized command line option "-m486"
make: *** [z-util.o] Error 1

Make sure you are using the makefile.std attached earlier in this thread. And I think just removing the -m486 will work.

For reference, my troubles with getting Hengband (not Chengband) to compile under linux are documented here http://angband.oook.cz/forum/showthread.php?t=2648, and I did eventually make it work. So, at least there is a chance Chengband can run on linux :)

artes
July 15, 2011, 01:31
Thank you, chris. With your advice I could advance a bit further in the process. Then I got the error:
readdib.c:20:21: error: windows.h: No such file or directory

I think I'll try out the Windows version instead, and possibly try to compile it in Windows, since you developed it in Windows.

chris
July 15, 2011, 02:56
Thank you, chris. With your advice I could advance a bit further in the process. Then I got the error:
readdib.c:20:21: error: windows.h: No such file or directory

I think I'll try out the Windows version instead, and possibly try to compile it in Windows, since you developed it in Windows.

Do you mind trying to just remove readdib from the makefile? There are three places:

SRCS = ... readdib.c ...

OBJS = ... readdib.o ...

and later,
readdib.o: readdib.c $(INCS)

I don't have a linux handy or I would get this working ... Sorry for the troubles!

For Windows, just use the Hengband.sln with Visual Studio 2010 Express. None of the makefiles work ... though I suspect makefile.bcc could be made to work but then you can't debug.

Nick
July 15, 2011, 11:59
OK, I can get a little further. I have hacked makefile.std a little more:
767

This now compiles on the command line on my Mac (Snow Leopard), but hangs on running. I tried with and without a savefile - on the attempt with, it seemed to be hanging in the while(1) loop in Rand_div in z-rand.c while trying to generate wilderness seeds.

It would be interesting to see if this works on linux.

chris
July 15, 2011, 15:49
It would be interesting to see if this works on linux.

After immense pains, I was able to compile and run on linux. (The hardest part was figuring out all the developer packages to install for external dependencies. The second hardest part was actually working on my ancient crappy laptop :). Seems to run fine, so I think the hang up must be a Mac thing ...

I committed a makefile.std to the repository that works for linux.

buzzkill
July 16, 2011, 07:35
Oh, I see now. This competition is being judged IN REAL TIME! A quaint notion, though not particularly endearing.

kingvictory2003
July 17, 2011, 00:42
Oh, I see now. This competition is being judged IN REAL TIME! A quaint notion, though not particularly endearing.

I agree, sometimes it's a little disturbing to know how much time you REALLY spend playing :D

artes
July 17, 2011, 18:40
I've entered the competition on Windows. Presently at level 17.

artes
July 18, 2011, 17:43
Chengband compiles on Linux now. Awesome! I'm collecting variants.

artes
July 18, 2011, 17:50
Yesterday I stocked up with 52 potions of food and went walking on the road. Half an hour later I still hadn't found anything interesting, even though I ran along the road with arrow key pressed down almost all the time. The world seems to be really huge. Is it supposed to be like that? In the end I was almost killed by a horde of orcs and had to recall to the bottom of the yeek cave, and take the stairs up to the town.

chris
July 18, 2011, 20:06
Yesterday I stocked up with 52 potions of food and went walking on the road. Half an hour later I still hadn't found anything interesting, even though I ran along the road with arrow key pressed down almost all the time. The world seems to be really huge. Is it supposed to be like that? In the end I was almost killed by a horde of orcs and had to recall to the bottom of the yeek cave, and take the stairs up to the town.

For the wilderness, press '<' to go into big map mode. Use 'l' (for look) to see the various towns and dungeon entrances, and use arrows to travel where you want. When ready, press '>' to go back to normal mode.

Shinedog
July 19, 2011, 02:27
Where is the arena?

Also, what is a good order to start? Which quests/dungeons in which order for the early game? Never played Cheng/Heng before.

Roch
July 19, 2011, 07:31
The arena is one of the upper left buildings in telmora. Can't use magic including scrolls and potions there. I think it's just melee and ranged weapons.

I've been doing the thief quest immediately, then the warg quest, then I do a few levels in angband before doing the sewer quest, then the orc quest, then more levels in angband before trying the level 25 quests like Doom I, mimics, and vapors. But I'm pretty new to the game myself so Chris or others can probably say a lot more. I looked at his dump for an idea of what quests he starts with. I don't know much about the other dungeons.

Arjen
July 19, 2011, 09:30
Where is the arena?

Also, what is a good order to start? Which quests/dungeons in which order for the early game? Never played Cheng/Heng before.

Finally no more programming talk. With my 0% knowledge of it I found it be quiet boring. ;)

I always start with the Thieves Quest, followed by the Wargs. After that I dive to lvl 12 in Angband. Depending on my level i like to go to the castle and get myself to lvl 20-25. (Watch out for fire breathing Hs). At level 20 you can easily complete the Sewer, Orc camp, Doom Quest I (with fire res and pots). Welcome to level 25? ;)

You can complete a few more levels in Angband afterwards.

artes
July 19, 2011, 23:19
For the wilderness, press '<' to go into big map mode. Use 'l' (for look) to see the various towns and dungeon entrances, and use arrows to travel where you want. When ready, press '>' to go back to normal mode.
Thank you. That helped a lot. Now I'm back on track in the orc cave.

This game is great! I like the new uniques, the quests, and the map with different dungeons.

artes
July 24, 2011, 23:06
Died today, so I began anew with an android. Now I just don't know how to construct it. Which command? I tried commands like eat, drink, destroy and so on.

chris
July 25, 2011, 16:52
Died today, so I began anew with an android. Now I just don't know how to construct it. Which command? I tried commands like eat, drink, destroy and so on.

Androids construct by wearing equipment. The better the equipment, the more constructed you become. Some slots are worth much more than others (e.g. body armor) and the calculation of construction might not favor what you would otherwise want to use (e.g. Fingolfin vs. Cambeleg). Rings, lights and amulets do not help in your construction.

To start an android quickly, you might spend a couple minutes digging on DL1 of the yeek cave. Get 1400gp or so, and buy the heaviest suit of armor you can afford. This can often get you up to CL10 relatively quickly. Then, you just need to dive in the dungeon and hope to get a lucky drop :)

artes
July 26, 2011, 04:15
Ah, I see. I collected the money but when I was to go to another town to buy an armour I hardly took two steps before I was ambushed 3 times in a row, my arrows and teleports ran out and I was killed by an insect swarm. :(
I guess the risk of being ambushed is higher when at a lower level, because with the blood knight I was almost never ambushed.

artes
July 26, 2011, 16:20
Now I play with a titan warlock. I made her totally randomly, even with random stats, so I have only one hit per turn. It makes it difficult. Though today I found a staff of treasure location, and that made my day when I used it the first time.

dzhang
July 27, 2011, 02:06
Er... Warlocks are not supposed to melee (unless you're Dragon Pact, and even then, not so much). Check out the "m"agic menu. You get ranged attacks that never miss for free.

Nick
August 7, 2011, 14:50
Competition 106 is now officially over - congratulations to chris for winning (in his own variant...)