dfhack fork
 
 
 
 
 
 
Go to file
Josh Cooper bc32d15bea [Release] cxxrandom v2.0
Major Revision
update v2.0
=-=-=-=-=
Native functions(exported to lua):
-GenerateEngine:  returns engine id              (args: seed)
-DestroyEngine:   destroys corresponding engine  (args: rngID)
-NewSeed          re-seeds engine                (args: rngID, seed)
-rollInt          generates random integer       (args: rngID, min, max)
-rollDouble       generates random double        (args: rngID, min, max)
-rollNormal       generates random normal[gaus.] (args: rngID, avg, stddev)
-rollBool         generates random boolean       (args: rngID, chance)
-MakeNumSequence  returns sequence id            (args: start, end)
-AddToSequence    adds a number to the sequence  (args: seqID, num)
-ShuffleSequence  shuffles the number sequence   (args: rngID, seqID)
-NextInSequence   returns the next number in seq.(args: seqID)

Lua plugin functions:
-MakeNewEngine    returns engine id              (args: seed)

Lua plugin classes:
-crng
    methods:
        -init(id, df, dist)     :: constructor
            id                           - Reference ID of engine to use in RNGenerations
            df (optional)                - bool indicating whether to destroy the Engine when the crng object is garbage collected
            dist (optional)              - lua number distribution to use
        -__gc()                 :: destructor
        -changeSeed(seed)       :: alters engine's seed value
        -setNumDistrib(distrib) :: set's the number distribution crng object should use
            distrib                      - number distribution object to use in RNGenerations
        -next()                 :: returns the next number in the distribution
        -shuffle()              :: effectively shuffles the number distribution
-normal_distribution
    methods:
        -init(avg, stddev)      :: constructor
        -next(id)               :: returns next number in the distribution
            id                           - engine ID to pass to native function
-real_distribution
    methods:
        -init(min, max)         :: constructor
        -next(id)               :: returns next number in the distribution
            id                           - engine ID to pass to native function
-int_distribution
    methods:
        -init(min, max)         :: constructor
        -next(id)               :: returns next number in the distribution
            id                           - engine ID to pass to native function
-bool_distribution
    methods:
        -init(min, max)         :: constructor
        -next(id)               :: returns next boolean in the distribution
            id                           - engine ID to pass to native function
-num_sequence
    methods:
        -init(a, b)             :: constructor
        -add(num)               :: adds num to the end of the number sequence
        -shuffle()              :: shuffles the sequence of numbers
        -next()                 :: returns next number in the sequence

Adds missing function exports.

Fixes numerous problems I won't go into
2018-04-29 21:08:44 -07:00
CMake Remove several unused CMake and Doxygen files 2017-05-11 22:01:57 -04:00
build Remove obsolete settings from Windows build scripts, plus misc. updates 2017-03-01 20:29:46 -05:00
depends Fix compile errors on Ubuntu 18.04 Bionic Beaver 2018-03-08 11:42:58 -06:00
dfhack-config Use json for server config. 2017-11-25 11:34:02 +05:30
docs Update changelog (OS X GCC, bump version) 2018-04-04 20:07:41 -04:00
library Install the correct libstdc++ 2018-04-04 20:01:27 -04:00
package Add downloads for OS X GCC 7 stdlib 2018-04-04 19:45:44 -04:00
plugins [Release] cxxrandom v2.0 2018-04-29 21:08:44 -07:00
reversing Properly handle the variety of exception handlers that MSVC 2010 generates 2012-03-03 14:14:31 -06:00
scripts@7d7dd8a749 Update scripts (dfhack/scripts#50) 2018-04-03 11:31:14 -04:00
test Add test runner 2018-02-04 16:00:53 -05:00
travis Add test runner 2018-02-04 16:00:53 -05:00
.gitignore Ignore df_path. again. 2016-10-19 20:00:56 +05:30
.gitmodules Re-add the scripts submodule, with a different internal name 2016-06-29 19:07:45 -04:00
.travis.yml Re-enable IRC notifications 2018-02-05 19:22:07 -05:00
.ycm_extra_conf.py Enable ycmd for project 2016-01-26 20:37:27 -05:00
CMakeLists.txt Bump to 0.44.09-r1 2018-04-04 22:45:34 -04:00
Contributing.rst Document changelog process 2018-04-02 22:22:20 -04:00
LICENSE.rst Further clarify Core; move plugins out; other fixes 2015-11-06 11:44:43 +11:00
README.html Fix html redirection to the docs 2016-04-11 09:30:05 +10:00
README.md Fix forum thread link in README.md 2017-06-20 23:47:04 -07:00
conf.py Ensure that docs/_auto/ exists 2018-04-02 14:14:03 -04:00
dfhack.init-example Make tweak pausing-fps-counter non-default for now 2018-02-12 01:48:09 -05:00
index.rst Add a script to automatically generate both changelogs from a single file 2018-04-02 13:43:32 -04:00
onLoad.init-example Remove warn-stuck-trees from onLoad.init-example 2017-12-23 20:49:24 -05:00

README.md

DFHack Readme

Build Status Documentation Status License Github Issues Open Pulls

DFHack is a Dwarf Fortress memory access library, distributed with scripts and plugins implementing a wide variety of useful functions and tools.

The full documentation is available online here, from the README.html page in the DFHack distribution, or as raw text in the ./docs folder. If you're an end-user, modder, or interested in contributing to DFHack - go read those docs.

If that's unclear or you need more help, try the Bay12 forums thread or the #dfhack IRC channel on freenode.