Coding new unrandarts/fixedarts?


Questions, Explanations, Howtos

User avatar

Eringya's Employee

Posts: 1783

Joined: Friday, 7th October 2011, 19:24

Location: Athens, Greece

Post Wednesday, 16th November 2011, 03:11

Coding new unrandarts/fixedarts?

Hello! I've been playing this game for more than a year (or has it been more? hm...) and recently I got this urge to create some artifacts (for flavour's sake mostly), for my own, personal use. Problem is, I have almost no idea of how to program. Could you be so kind as to inform me where and more importantly how to find the code? Do i have to use other programs than just a text editor (I'm using Notepad++). Also, I'm running Win7, don't have Linux, never used it before anyway, so that's not a possibility.
MuCK;
  Code:
612 | D:1      | Xom revived you
614 | D:1      | Xom revived you
614 | D:1      | Slain by a gnoll
User avatar

Vestibule Violator

Posts: 1509

Joined: Wednesday, 21st September 2011, 01:10

Location: St. John's, NL, Canada

Post Wednesday, 16th November 2011, 03:50

Re: Coding new unrandarts/fixedarts?

It appears you will need to compile the game to make changes like that. Download the source from crawl.develz.org, and try to learn how to compile it - I haven't done that myself yet, so I'm not sure how easy it will be without any unix experience. You shouldn't need to muck about with git, just altering the stable release would be easiest.

I strongly recommend getting cygwin (cygwin.org) as a way to have access to the powerful tools and environment of unix, within windows.

within the source, my searching suggests you will only need to edit dc-player.txt and art-data.txt, as well as have some sort of tile for the item (you can use tiles from previously existing items).
Won all race/bg, unwon (online): Nem* Hep Uka
Favourites: 15-rune Trog, OgNe/OgIE/OgSu (usually Ash), Ds, Ru, SpEn, Ce of Chei, Qaz

For this message the author rchandra has received thanks:
TehDruid
User avatar

Dungeon Master

Posts: 4031

Joined: Thursday, 16th December 2010, 20:37

Location: France

Post Wednesday, 16th November 2011, 09:57

Re: Coding new unrandarts/fixedarts?

The instructions to build crawl are in INSTALL.txt. Don't use cygwin, you need MinGW. The recommended mingw distribution is msysgit. Pick the netinstall.
<+Grunt> You dereference an invalid pointer! Ouch! That really hurt! The game dies...

For this message the author galehar has received thanks:
TehDruid
User avatar

Eringya's Employee

Posts: 1783

Joined: Friday, 7th October 2011, 19:24

Location: Athens, Greece

Post Wednesday, 16th November 2011, 14:06

Re: Coding new unrandarts/fixedarts?

Thanks a lot, both of you guys! I'll see what I can do. :)

EDIT: I made my first artifact appear in game, cheers! :D
MuCK;
  Code:
612 | D:1      | Xom revived you
614 | D:1      | Xom revived you
614 | D:1      | Slain by a gnoll

Return to Coding

Who is online

Users browsing this forum: No registered users and 4 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.