Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - madk

Pages: [1] 2 3 ... 21
1
It doesn't matter, because...

...you can't define your own arbitrary TEXT_SETs.  [TEXT_SET:SECRET_EXAMPLE1] is just ignored.

These are the only TEXT_SET definitions that will do anything, straight from the executable:

Awesome, that's good to know. Though in my case, I was interested in how the parser behaves, not just the practicality of adding new TEXT_SETs.

So in light of all this, I tried modifying the vanilla TEXT_SETs to define two in the same file.

I got an error with Dwarf Fortress when trying to start a new game, saying the TEXT_SET I had pasted below another one couldn't be found.

So I think this confirms that TEXT_SETs are a special case in the parser, and everything following a [TEXT_SET:ID] token in a file is treated as newline-separated strings, not parsed as normal tokens. Meaning you can't put two different TEXT_SETs in the same file.

2
I am also interested in the answer to this. Has anyone figured this out?

3
Mod Releases / Re: Booze from Milk
« on: October 28, 2017, 12:33:03 am »
Hey Ketsuban, I actually put a lot of deliberation into whether I should keep that removal in the PyDwarf mod. In the end I left the make mead reaction be because a little redundancy seemed like not so big of a deal, and I wanted to keep it compatible with other mods that might reference or make their own changes to the reaction.

4
Utilities and 3rd Party Applications / Re: PyDwarf 1.1.4: Werebeast
« on: October 02, 2017, 05:22:09 am »
Today I released a new version of PyDwarf! This is a fairly small update, but I think a lot of people who've been interested in PyDwarf's mod merging capability will be happy to know that it now works correctly with the latest PyDwarf version, and that there is a new tutorial just explaining how to use this feature.

Visit PyDwarf's releases page to download the most recent version and please feel welcome to check out the pineapple.diff tutorial that explains how to get started merging normally manually-installed mods using PyDwarf.

5
Mod Releases / Re: Booze from Milk
« on: October 02, 2017, 05:16:34 am »
Hey Ketsuban - I thought this idea was really cool so I wrote a version of this mod for PyDwarf. The PyDwarf version automatically adds the reaction to every milkable animal, not only the vanilla ones. You can see the mod script here: https://github.com/pineapplemachine/PyDwarf/blob/master/scripts/ketsuban/pydwarf.milkbooze.py And you can try it out by installing and running PyDwarf.

Thank you for making this!

6
Utilities and 3rd Party Applications / Re: PyDwarf 1.1.3: Flux Stone
« on: October 02, 2017, 03:07:15 am »
I believe I have done everything but when I go to run the python manager.py it just flickers and turns off. Did I miss anything?

How are you running it? If you're running it normally in a command line it shouldn't do that, and it should tell you what the program did and what went wrong, if anything.

Here is one short tutorial on how to do this: http://pythoncentral.io/execute-python-script-file-shell/ See the section named "Run a Python script under Windows with the Command Prompt".

7
Utilities and 3rd Party Applications / Re: PyDwarf 1.1.3: Flux Stone
« on: September 19, 2017, 09:01:13 am »
Could you give me a link to download your mod_folder?

8
Utilities and 3rd Party Applications / Re: PyDwarf 1.1.3: Flux Stone
« on: September 18, 2017, 07:11:55 am »
I've tried many times, but I just can't seem to get the pineapple.diff script to work. For starters, I'm not even sure whether I'm passing the right args. It would be nice if there was a usage case example somewhere for what is probably the most interesting script in the bunch... (diff-based mod merging)

Hi, I'm busy as heck this week but I will see if I can't put a proper tutorial together when I get the chance.

pineapple.diff isn't more spectacularly presented because it's so limited. Diff-based merging of mods is also a lot more failure-prone than PyDwarf's normal mod tools. So some things to keep in mind:

- pineapple.diff absolutely must be the first mod in your list. It cannot be run after any other mod, or be run multiple times and still function correctly. (You can pass more than one mod path to merge, though.)

- The mods you input must have been made for the same version of Dwarf Fortress that you're playing, otherwise the raws differences from one version to another will screw up the merging.

- Looking at the script I can't immediately remember whether the paths to mods should be paths to raws directories or paths to directories like "df_osx_40_23/" with the mod's raw directory inside. If you've got the other things right and it's still not working, try messing around with the mod paths.

- Also if all of that isn't enough to figure it out, give me more information about how it's failing and I'll do what I can to help. e.g. is PyDwarf giving you an error? Is it making the wrong changes to your DF install? Is it making no changes at all?




9
Utilities and 3rd Party Applications / Re: PyDwarf 1.1.1: Goblins
« on: May 21, 2017, 06:03:25 am »
Extended Agriculture is now part of PyDwarf! You can view the mod online here, converted to work with a broad range of DF versions and to be more compatible with other plant-modifying mods.

With this and some other additions and improvements, a new v1.1.2 release of PyDwarf is now available for download!

The next step is probably to add some kind of a graphical interface to make PyDwarf easier for players to install mods, since the current CLI interface might be a bit intimidating for newcomers. Is there anyone who might be interested in working with me to make something like that?

10
DF Modding / Re: Simple question: How do I use multiple mods?
« on: May 13, 2017, 08:33:01 am »
Just squeezing in here to point out that mods written with PyDwarf won't have compatibility issues like this, and that it has a script named pineapple.diff that will try very hard for you to combine mods that aren't made specifically for PyDwarf and are just modified raws files, provided they were made for the very same version of Dwarf Fortress that you're trying to mod with PyDwarf.

11
I had a magical moment where it was raining in Dwarf Fortress while simultaneously there was the sound of rain from a video I had on in the background, and I realized then that having something that played atmospheric sounds to accompany the game would add so much. Is there anything that does this currently? I saw SoundSense, but it seemed to be much more focused on one-off sound effects than ambiance.

12
Utilities and 3rd Party Applications / Re: PyDwarf 1.1.1: Goblins
« on: May 05, 2017, 07:22:59 am »
Here's a surprise: PyDwarf has just received a new minor release.

I'm getting back into playing DF after a long hiatus. I went to install my customary mods, and was very pleased to find that PyDwarf was still working as intended! ...With the notable exception of an issue arising from how PyDwarf determined script compatibility with Dwarf Fortress versions. This release isn't a very elegant fix, but it will suffice, and it makes PyDwarf less clunky to use for 0.40+ DF versions.

13
Just letting everyone know that with the DF update PyDwarf should continue to function as expected, and off the top of my head none of the recent changes should break any of the scripts packaged with PyDwarf.

I've been thinking about ways to make PyDwarf more accessible by creating a UI for configuring and running it for people who are scared of a CLI, and maybe I'll get to that soonish. (But I'm not making any promises.) Keep an eye out!

14
Utilities and 3rd Party Applications / Re: PyDwarf 1.1.0: Chalcedony
« on: February 01, 2016, 03:44:02 pm »
Oh, shame on me for not having caught that. Copying the lib/yaml/ dir into the pydwarf/ dir will work perfectly well, but you can also run pip install pyyaml or add PyDwarf's lib/yaml/ directory to your PYTHONPATH.

edit: Actually, I pushed a cleaner fix to the PyDwarf repository's develop branch as to avoid this problem in the future. Thank you for pointing it out!

15
Utilities and 3rd Party Applications / Re: PyDwarf 1.1.0: Chalcedony
« on: February 01, 2016, 09:23:29 am »
This will finally realize my lifelong dream of recursively feeding the description, name, etc. tags through a Markov chain chatbot like pyborg! So that's something. Will let you know how it goes if I don't get randomly distracted by some other project like usual.

I look forward to seeing what you make!

Fetching a list of all the description tags, for example, could hardly be easier, using the raws package included with PyDwarf:

Code: [Select]
import raws
df = raws.dir('df_path/raw/objects')
descriptions = [token.args[0] for token in df.all('DESCRIPTION')]

Pages: [1] 2 3 ... 21