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.

Topics - Kazimuth

Pages: [1]
1
I'm working on a mod that spawns a bunch of creatures of a custom race using DFHack, and I was hoping I could keep the creatures from fighting each other, while allowing them to fight other units. Does anyone know if there's some way to do this, either via raw editing or dfhack scripting?

edit: wait, this should go in the q&a thread, sorry mods

2
Utilities and 3rd Party Applications / [TOOL] dwarffortress.vim
« on: June 23, 2017, 03:13:11 pm »
dwarffortress.vim
Hi again! I've written another raw file syntax highlighting tool, this time for the Vim text editor :)

Preview
(warning, big)
Spoiler (click to show/hide)

Installation
https://github.com/kazimuth/dwarffortress.vim
(If you've ever installed vim plugins before, it should be pretty painless.)

What is Vim?
I've always thought of vim as the Dwarf Fortress of text editors: it's an anachronistic, bewildering ASCII interface, but once you know your way around it, you're made. (The basics only take a few hours.) If you're interested in learning vim, I'd check out the book A Byte of Vim, which is free to read online. Then, you can install git and vim-plug, which will let you install dwarffortress.vim, so you can mod faster than ever before!

Configuration
See :help dwarffortress

Features
Currently this plugin only provides syntax highlighting. As a general rule, it tries to highlight anything that's built into the game, and not highlight things that aren't; but that can get a little fuzzy.

I'm open to adding more features, like custom snippets or autocomplete support, but I'm not entirely sure what would be useful, since I don't actually do too much raw modding myself. Let me know if you have ideas, or just open a PR if you want to add stuff.

Changelog
Spoiler (click to show/hide)

3
DF Modding / [outdated] New Notepad++ raw file highlighting mode!
« on: August 28, 2013, 04:48:55 pm »
This project is out of date! Go to the updated version here:

http://www.bay12forums.com/smf/index.php?topic=158324.0

(thanks Sirmaril!)



I made a highlighting mode for Notepad++!

A sample:
Spoiler (click to show/hide)

The download: https://www.dropbox.com/s/bmor3vsz5nf6c1k/df_raw_lang_npp_0.2.zip

To install:
Download the archive and unzip it somewhere.
Start up NPP, open the languages menu, and select 'Define your language':
Spoiler (click to show/hide)
In the language dialog, select 'Import':
Spoiler (click to show/hide)
Select the extracted xml file and hit 'Open':
Spoiler (click to show/hide)
Reboot notepad. Now, you should see something like this:
Spoiler (click to show/hide)
Select that option when you're working with a raw file and boom, highlighting!

It's supposed to highlight only tokens built in to DF, so as to still work with total-conversion mods. If something is highlighted and shouldn't be, or isn't and should, either you're missing a bracket somewhere or I missed some tokens; if you can't find the problem, post in the thread and I'll try to fix it.

Original post:
Spoiler (click to show/hide)

Pages: [1]