Skip to content

Commit

Permalink
Merge pull request #6 from pineapplemachine/develop
Browse files Browse the repository at this point in the history
Merge for 1.1.0 release
  • Loading branch information
pineapplemachine committed Sep 22, 2015
2 parents 7aa77fb + 31381ad commit 3440488
Show file tree
Hide file tree
Showing 342 changed files with 99,318 additions and 4,168 deletions.
14 changes: 11 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,24 @@
*.pyc
*.xcf
*test.py
.sublime-project
.coverage
htmlcov/*

# Don't worry about my personal config file
config.py

# Manager logs go here
logs/*

# Outputted raws go here (for my personal testing and stuff anyway)
output/*
backup/*
# Raws go here (for my personal testing and stuff anyway)
df/*

# Older DF versions go here (for my help figuring version compatibility)
refs/*

# Stuff that's just not meant to be committed right now
build/*

# Used in a documentation example but don't include the actual file
scripts/mynamespace/*
28 changes: 28 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,31 @@
v1.1.0: Chalcedony

Fixed issue where raws files without headers weren't recognized as such, especially relevant to files like data/init/init.txt.
Fixed some raws classes having shitty __repr__ overrides.
Fixed bug where adding text to a raws.binfile object that had none would cause an exception.
Fixed bug in pineapple.utils.addhack where text that should be added to raw/onLoad.init was added to dfhack.init instead.
Fixed bug where a token's prop methods would also query the immediately following object header.
Renamed some arguments: "implicit_braces" to "implicit", "until_token" to "until", "include_self" to "skip", "fail_on_multiple" to "failmulti".
Renamed some of the short arguments for manager.py.
Removed methods until, getuntil, lastuntil, and alluntil from raws.queryable as their functionality has been absorbed by the get, last, and all methods.
Removed script pineapple.stoneclarity because it was obtuse, not very useful, and getting to be a pain to debug.
Added yaml configuration files and made a yaml file the default configuration option.
Added scripts underneath dragondeplatino.gemset for automated installation of 24px and 48px graphics packs.
Added scripts pineapple.noanimalmen and pineapple.nogiantanimals.
Added a description to pineapple.adoptsowner.
Added docs/bin/verify.py which does something like unit testing to help catch stray bugs.
Added class raws.tokengenerator which most methods that previously returned a generator return now, it allows iterating the same generator multiple times because that's really convenient sometimes even if it can be suboptimal.
Added class pydwarf.registrar, it allows syntax like pydwarf.scripts.pineapple.flybears(df) in place of pydwarf.urist.getfn('pineapple.flybears')(df).
Improved how python override config files are loaded.
Improved converting between file objects, e.g. binfile to rawfile.
Improved how queries are internally handled and made it easier to define custom filters and queries.
Improved documentation and error handling all around.
Improved internal representation of some token attributes, this will make them easier to mess around with in scripts: token.value = x now involves the same input verification as token.setvalue(x).
Improved the way that token collections are represented as strings.
Improved class inheritance in raws and pydwarf packages, any classes that previously weren't new-style are now.



v1.0.2: Magma Forge

Fixed the vagueness of most exceptions in the raws and pydwarf packages, most of them should now be reasonably forthcoming about what went wrong and why.
Expand Down
38 changes: 38 additions & 0 deletions config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Before running the manager you will need to change the
# provided paths to better suit your particular setup.

# Dwarf Fortress file are read from here,
input: 'E:/Sophie/Desktop/Files/Games/Dwarf Fortress/df_40_24_win_original/'
# Are outputted here,
output: 'E:/Sophie/Desktop/Files/Games/Dwarf Fortress/df_40_24_win/'
# And are backed up to here.
backup: 'E:/Sophie/Desktop/Files/Games/Dwarf Fortress/df_40_24_win_backup/'

# Tells PyDwarf which files in the DF directory are important.
# Set to auto for automatic detection.
paths: auto

# Tells PyDwarf the current DF version and DFHack version.
# Set to auto for automatic detection.
version: auto
hackversion: auto

# Which packages to import. (Mainly to register the scripts indicated below.) Most users shouldn't need to worry about this setting.
packages:
- scripts

# Which scripts to run, and in what order.
scripts:
# Run a script by full name.
- pineapple.noexotic
- putnam.materialsplus
- dragondeplatino.gemset.full
- smeeprocket.transgender
- witty.restrictednobles
# Run a script with arguments.
- name: pineapple.deerappear
args: {tile: "'d'", color: [6, 0, 1]}
# Run a script by partial name. (Automatically expands to pineapple.boneflux.)
- boneflux
# Run all scripts under the umiman.smallthings namespace.
- umiman.smallthings.*
41 changes: 0 additions & 41 deletions config_override.py

This file was deleted.

Loading

0 comments on commit 3440488

Please sign in to comment.