summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/util
Commit message (Collapse)AuthorAgeFilesLines
...
* pcre: implement QUIET_CC, etc. for more pretty buildSteven Noonan2009-10-121-5/+13
| | | | Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* pcre: use global CFLAGS when compilingSteven Noonan2009-10-121-1/+1
| | | | Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* makefiles: set up global vs. local cflags, optimize sqlite buildSteven Noonan2009-10-122-2/+3
| | | | Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* makefiles: inherit CC and CXX variables from top-level MakefileSteven Noonan2009-10-112-7/+7
| | | | Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* Makefiles: unifying makefile.unix and makefile_tiles.unix, and cleaning upSteven Noonan2009-10-103-9/+56
| | | | | | | | | | | | | | | | | | | | | | | | Lots of major build changes here: - No longer have multiple makefiles for Linux, Mac, MinGW, etc. - To build a USE_TILE build, simply do 'make <target> TILES=y'. - Makefiles now use a much prettier output while building. To see verbose messages, add 'V=1' to the command-line for 'make'. - Lots of weird dependency bugs corrected in the Makefiles. - makefile.unix now works for Mac OS X builds too (both tiles and ASCII builds). - Added GCC precompiled header support to makefile.unix. In my tests, it doesn't add much of a speedup, if any, but it's at least convenient to have it implemented. To use it, add 'PCH=y' to your 'make' command line. - Added fastdep support, and enabled by default on machines with fastdep installed. This allows for the Makefile to be sensitive to changed header files (recompiling those source files that are affected by the changes). If fastdep isn't installed, you can still use the the old (and much slower) GCC built-in dependency generator, but it's not enabled by default. Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* Fix includes.sh: POSIX sed doesn't support alternation...Robert Vollmert2009-10-091-1/+2
|
* Further improvements to util/includes.sh.Robert Vollmert2009-10-091-5/+38
| | | | | | | Currently running $ checkall | cleanup | removelst strips a bunch of includes while the result still compiles (Unix console build).
* Extend and correct includes.sh slightly.Robert Vollmert2009-10-091-5/+29
| | | | | | | You can now do say $ . util/include.sh $ checkhdr view.h | removelst to remove all doubtful includes of view.h.
* Add shell script to find unneeded includes.Robert Vollmert2009-10-091-0/+56
|
* Drop obsolete CVS last-committed headers ($Author$).Adam Borowski2009-10-062-5/+0
|
* Add develop/ and license/ folders in docs/.David Ploog2009-10-062-130/+7
|
* autogenerated art data needed by the Windows buildAdam Borowski2009-10-051-1/+1
|
* Amulet of guardian spirit, it comes as an amulet or a cap.Adam Borowski2009-10-051-1/+2
| | | | | | | | When worn, all non-poison damage will drain mana instead, hurting hp only after mana is depleted. The cap brand is intended only for a fixedart, but per dpeg's request, it will be generated on ordinary caps for now, as a test.
* Revert "util/*/Makefile: allow compiler selection on command-line"Steven Noonan2009-09-302-2/+2
| | | | | | | | This reverts commit 4be2bf2502f892afebbb0ea51d621556c0e88019. For some reason, CC is defined by GNU make by default. Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* Lua updated to v5.1.4Steven Noonan2009-09-2964-655/+1077
| | | | | | | | | | | | | | | | | | | | | | | | Worth noting that this was done as follows, to preserve the project-specific changes we've made: wget http://www.lua.org/ftp/lua-5.1.2.tar.gz wget http://www.lua.org/ftp/lua-5.1.4.tar.gz tar -xzf lua-5.1.2.tar.gz tar -xzf lua-5.1.4.tar.gz cd lua-5.1.2 git init git add . git commit -sv -m "Lua 5.1.2" rsync --exclude .git ../lua-5.1.4/. . git commit -asv -m "Lua 5.1.4" git checkout -b patched-version HEAD~1 rsync --exclude .git ~/Development/crawl-ref/crawl-ref/source/util/lua/. . git commit -asv -m "patched" git rebase master And voila, we've rebased our patches with the latest Lua! Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* util/sqlite: update from v3.3.16 to v3.6.18Steven Noonan2009-09-292-30857/+78647
| | | | | | Why has a two year old sqlite been used this long? Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* util/*/Makefile: allow compiler selection on command-lineSteven Noonan2009-09-292-2/+2
| | | | | | | Allows neat compilers like 'llvm-gcc' or even experimental ones like 'clang' to be used. Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* Lua: load/save architecture-independent bytecodeSteven Noonan2009-09-252-5/+49
| | | | | | | | | | | If you run the Intel version of Crawl and then the PowerPC version, you will get "Lua error: global_prelude: bad header in precompiled chunk" seven times during the start of Crawl. This patch corrects the issue by making the bytecode architecture independent. Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* Bring release.txt up to date with SF's new file release system.j-p-e-g2009-07-301-22/+25
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10462 c06c8d41-db1a-0410-9941-cceddc491573
* Don't change dungeon flavour for tiles out of sight. (Fixes 2828717.)j-p-e-g2009-07-291-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10461 c06c8d41-db1a-0410-9941-cceddc491573
* Resync credits with 0.5.dolorous2009-07-251-1/+2
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10401 c06c8d41-db1a-0410-9941-cceddc491573
* Allow unrandart launchers to modify the beam of the missile they fire.zelgadis2009-07-211-6/+30
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10363 c06c8d41-db1a-0410-9941-cceddc491573
* Fix typo.evktalo2009-07-061-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10108 c06c8d41-db1a-0410-9941-cceddc491573
* Add some documentation on the steps needed for a project release.j-p-e-g2009-07-031-0/+119
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10089 c06c8d41-db1a-0410-9941-cceddc491573
* * Moved most hard-coded non-standard unrandart behaviour to art-func.h,zelgadis2009-06-271-39/+185
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | specifically code for equipping, unequpping, an equipped unrandart doing something every time world_reacts() is called (special wield effects), melee hit effects, and evoking. Left hardcoded outside of art-func.h: * Sword of Cerebov temproarily downgrading the defender's fire resistance. * Staff of Olgreb boosting poison spells, as if it were a staff of poison. * Vampire's Tooth always getting maximal vampiric drain. * Mace of Variablity's initial pluses being chosen at creation time. * Since what used to be special wield effects is now handled very differently, noisy weapons and the lantern of shadows effects are handled with player attributes rather than SPWLD_NOISES and SPWLD_SHADOW. * Unrandarts can now have an elemental colour for their colour (currently only used for the Mace of Variability). * Unrandarts' value modification, being special, and being evil are now handled in art-data.txt rather than being hardcoded. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10055 c06c8d41-db1a-0410-9941-cceddc491573
* * Also allow definition of equipment tiles in art-data.txt.j-p-e-g2009-06-261-2/+133
| | | | | | | * Rename some tiles and tile folders. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10054 c06c8d41-db1a-0410-9941-cceddc491573
* Add tile definitions into art-data.txt, though only for the item tiles.j-p-e-g2009-06-261-6/+148
| | | | | | | (The doll definitions are too complicated.) git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10050 c06c8d41-db1a-0410-9941-cceddc491573
* Unrandart properites which are either on/off are now turned on via thezelgadis2009-06-261-21/+48
| | | | | | | | | | | BOOL field, with the different properties all listed at once, separated by commas. E.g., "BOOL: poison, life, elec" gives resistance to posion, negative energy and lightning. Added documentation of fields to art-data.txt git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10048 c06c8d41-db1a-0410-9941-cceddc491573
* Fix tiles build, and mention tiles handling in art-data.txt.j-p-e-g2009-06-251-2/+2
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10038 c06c8d41-db1a-0410-9941-cceddc491573
* First part of the merger of fixed artefacts into unrandom artefactszelgadis2009-06-251-0/+680
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (further changes will be much smaller). Breaks savefile compatibility, and bumps the major savefile version up to 6. Some changes made to some tiles files, but it hasn't been tested with a tiles build. Overview of changes: * Unrand artefacts are now defined in art-data.txt and is turned into C code via util/art-data.pl. This has the dual advantage of being more readable by humans, and that if the unrand data structure changes then you can just change util/art-data.pl and regenerate the C code rather than having to change some 70 different C structs by hand. * util/art-data.pl automatically updates NO_UNRANDARTS, and also automatically generates an enumeration of all the unrands which are equal to their item.special field. * randart.cc and randart.h have been renamed to artefact.cc and artefact.h, since the files covers all types of artefacts, and the differences between randarts, unrandarts and (former) fixed arts have been minimized since the terms were introduced. Also renamed unrand.h to art-data.h * The brands and resistances of former fixed arts are now handled via artefact properties, but the rest of their special behaviours are still hardcoded. * Unrandarts are now distinguished between normal and "special", with the special ones currently just being identical to the list of the formed fixed arts. Special unrandarts are randomly generated less often than normal unrandarts, can be generated in the Abyss if they've been lost, can't be picked up by monsters, and can't be affected by Tukima's Dance. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10035 c06c8d41-db1a-0410-9941-cceddc491573
* Apply r9964 to trunk, and documentation update.j-p-e-g2009-06-111-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9965 c06c8d41-db1a-0410-9941-cceddc491573
* Mention use of SDL and SDL_image libraries in the READMEs and that they falldploog2009-06-101-0/+3
| | | | | | | under the LGPL 2.1 license which has been added. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9949 c06c8d41-db1a-0410-9941-cceddc491573
* A few consistency changes to the trunk README.j-p-e-g2009-06-101-4/+4
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9945 c06c8d41-db1a-0410-9941-cceddc491573
* Mention Ctrl-T for tutorials (again) in README.tex and pdf.dploog2009-06-101-2/+2
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9942 c06c8d41-db1a-0410-9941-cceddc491573
* Minor changes to README files.dploog2009-06-091-14/+14
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9934 c06c8d41-db1a-0410-9941-cceddc491573
* Forward-port applicable parts of 0.5 r9925 to trunk.dolorous2009-06-091-7/+8
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9926 c06c8d41-db1a-0410-9941-cceddc491573
* Update documenation.dploog2009-05-132-2/+29
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9762 c06c8d41-db1a-0410-9941-cceddc491573
* Adding FTILE/RTILE vault commands for setting per-glyph floor and rock ↵ennewalker2009-01-202-21/+58
| | | | | | | | | | | tiles. Most vaults with COLOUR tags now also use FTILE/RTILE. FLOORCOL, ROCKCOL, FLOORTILE, and ROCKTILE have been renamed to LFLOORCOL, LROCKCOL, LFLOORTILE, and LROCKTILE to emphasize the fact that they are a per-level setting (similar to LFLAGS) and to disambiguate them from COLOUR/FTILE/RTILE. This change also fixes green water not appearing green outside of the sewers and vaults (like the ice cave) not getting their default tiles set appropriately due to a recent change. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8615 c06c8d41-db1a-0410-9941-cceddc491573
* [2054793] Partial implementation of the request to have COLOUR tags affect ↵ennewalker2008-12-012-1/+23
| | | | | | | | | tile choice. Vaults can now override the default tileset (walls and floors) for an entire level. This has been pushed to vaults where it makes sense (sewers, ice caves, ziggurats, bazaars, Shoals:5, Zot). ROCKTILE and FLOORTILE can be used when authoring vaults to set these values, both of which take a single tile name as a string. These values are ignored in console builds. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7700 c06c8d41-db1a-0410-9941-cceddc491573
* Removed redundant buffer used to go from map_def to env.grid and all the ↵dshaligram2008-11-231-0/+1
| | | | | | tedious code used to mess with this pointless buffer. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7560 c06c8d41-db1a-0410-9941-cceddc491573
* Lua functions for FLOORCOL and ROCKCOL are now named floorcol() and ↵dshaligram2008-11-231-2/+2
| | | | | | rockcol() instead of floor_colour and rock_colour, to match the convention for other .des headers (dpeg). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7547 c06c8d41-db1a-0410-9941-cceddc491573
* Separate CHANCE and WEIGHT. CHANCE is a probability, WEIGHT is a raw number ↵dshaligram2008-11-192-6/+40
| | | | | | used as a generation weight (i.e. WEIGHT is what the old CHANCE used to be). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7501 c06c8d41-db1a-0410-9941-cceddc491573
* Lua marker code is now converted into an anonymous function in the same ↵dshaligram2008-11-182-38/+29
| | | | | | scope as the rest of the map Lua code so that locals defined in the map Lua are visible to the marker code. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7479 c06c8d41-db1a-0410-9941-cceddc491573
* Allow continuation lines in .des files (dpeg).dshaligram2008-10-191-51/+106
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7283 c06c8d41-db1a-0410-9941-cceddc491573
* Applying r6696 back to trunk (PCRE support).ennewalker2008-07-2784-0/+88177
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6698 c06c8d41-db1a-0410-9941-cceddc491573
* Do "keypress -> command_type" via keybindings. Solves bug 2018200,zelgadis2008-07-171-0/+76
| | | | | | | | | | | | | | | | where you couldn't do macros with the old 3.4 keymap since the 3.4 keys were done via macros and macros can't recursively invoke macros. Has the little snag that it doesn't exactly reproduce the 3.4 "fire ammo" command since 3.4 automatically goes to the inventory list but 4.0 doesn't. TODO: * Get levelmap commands to use keybindings instead of hardcoded mappings. * Let function keys and alt keys be bound to commands. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6587 c06c8d41-db1a-0410-9941-cceddc491573
* Update pdf files.j-p-e-g2008-07-131-1/+1
| | | | | | | | Apply Will's patch for sorting by identifed status. Fix a few oddly broken monster descriptions. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6539 c06c8d41-db1a-0410-9941-cceddc491573
* Add more documentation updates for Ctrl-G/G.dolorous2008-07-131-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6533 c06c8d41-db1a-0410-9941-cceddc491573
* Fix 2017251: The annotation prompt not escaping properly.j-p-e-g2008-07-131-2/+2
| | | | | | | | | | | | | Fix 2016627: Ranged weapons of protection autoIDing when wielded by monsters. Fix the double prompt when using Ctrl-P in the quivering interface (part of BR 2017260), fix targetting via monster list to be turned off if there are no monsters in sight, and map auto-travel to both G and Ctrl-G. (The monster list command moves to V.) Again, I'm not sure I got all the relevant documentation. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6529 c06c8d41-db1a-0410-9941-cceddc491573
* Add documentation updates from Markus Maier.dolorous2008-07-121-4/+4
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6521 c06c8d41-db1a-0410-9941-cceddc491573