Skip to content

Commit 3440488

Browse files
Merge pull request #6 from pineapplemachine/develop
Merge for 1.1.0 release
2 parents 7aa77fb + 31381ad commit 3440488

342 files changed

Lines changed: 99318 additions & 4168 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,24 @@
22
*.pyc
33
*.xcf
44
*test.py
5+
.sublime-project
6+
.coverage
7+
htmlcov/*
8+
9+
# Don't worry about my personal config file
10+
config.py
511

612
# Manager logs go here
713
logs/*
814

9-
# Outputted raws go here (for my personal testing and stuff anyway)
10-
output/*
11-
backup/*
15+
# Raws go here (for my personal testing and stuff anyway)
16+
df/*
1217

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

1621
# Stuff that's just not meant to be committed right now
1722
build/*
23+
24+
# Used in a documentation example but don't include the actual file
25+
scripts/mynamespace/*

changelog.txt

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,31 @@
1+
v1.1.0: Chalcedony
2+
3+
Fixed issue where raws files without headers weren't recognized as such, especially relevant to files like data/init/init.txt.
4+
Fixed some raws classes having shitty __repr__ overrides.
5+
Fixed bug where adding text to a raws.binfile object that had none would cause an exception.
6+
Fixed bug in pineapple.utils.addhack where text that should be added to raw/onLoad.init was added to dfhack.init instead.
7+
Fixed bug where a token's prop methods would also query the immediately following object header.
8+
Renamed some arguments: "implicit_braces" to "implicit", "until_token" to "until", "include_self" to "skip", "fail_on_multiple" to "failmulti".
9+
Renamed some of the short arguments for manager.py.
10+
Removed methods until, getuntil, lastuntil, and alluntil from raws.queryable as their functionality has been absorbed by the get, last, and all methods.
11+
Removed script pineapple.stoneclarity because it was obtuse, not very useful, and getting to be a pain to debug.
12+
Added yaml configuration files and made a yaml file the default configuration option.
13+
Added scripts underneath dragondeplatino.gemset for automated installation of 24px and 48px graphics packs.
14+
Added scripts pineapple.noanimalmen and pineapple.nogiantanimals.
15+
Added a description to pineapple.adoptsowner.
16+
Added docs/bin/verify.py which does something like unit testing to help catch stray bugs.
17+
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.
18+
Added class pydwarf.registrar, it allows syntax like pydwarf.scripts.pineapple.flybears(df) in place of pydwarf.urist.getfn('pineapple.flybears')(df).
19+
Improved how python override config files are loaded.
20+
Improved converting between file objects, e.g. binfile to rawfile.
21+
Improved how queries are internally handled and made it easier to define custom filters and queries.
22+
Improved documentation and error handling all around.
23+
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).
24+
Improved the way that token collections are represented as strings.
25+
Improved class inheritance in raws and pydwarf packages, any classes that previously weren't new-style are now.
26+
27+
28+
129
v1.0.2: Magma Forge
230

331
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.

config.yaml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Before running the manager you will need to change the
2+
# provided paths to better suit your particular setup.
3+
4+
# Dwarf Fortress file are read from here,
5+
input: 'E:/Sophie/Desktop/Files/Games/Dwarf Fortress/df_40_24_win_original/'
6+
# Are outputted here,
7+
output: 'E:/Sophie/Desktop/Files/Games/Dwarf Fortress/df_40_24_win/'
8+
# And are backed up to here.
9+
backup: 'E:/Sophie/Desktop/Files/Games/Dwarf Fortress/df_40_24_win_backup/'
10+
11+
# Tells PyDwarf which files in the DF directory are important.
12+
# Set to auto for automatic detection.
13+
paths: auto
14+
15+
# Tells PyDwarf the current DF version and DFHack version.
16+
# Set to auto for automatic detection.
17+
version: auto
18+
hackversion: auto
19+
20+
# Which packages to import. (Mainly to register the scripts indicated below.) Most users shouldn't need to worry about this setting.
21+
packages:
22+
- scripts
23+
24+
# Which scripts to run, and in what order.
25+
scripts:
26+
# Run a script by full name.
27+
- pineapple.noexotic
28+
- putnam.materialsplus
29+
- dragondeplatino.gemset.full
30+
- smeeprocket.transgender
31+
- witty.restrictednobles
32+
# Run a script with arguments.
33+
- name: pineapple.deerappear
34+
args: {tile: "'d'", color: [6, 0, 1]}
35+
# Run a script by partial name. (Automatically expands to pineapple.boneflux.)
36+
- boneflux
37+
# Run all scripts under the umiman.smallthings namespace.
38+
- umiman.smallthings.*

config_override.py

Lines changed: 0 additions & 41 deletions
This file was deleted.

0 commit comments

Comments
 (0)