Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Easily Remove ANIMAL MAN creatures using Notepad++  (Read 4999 times)

zilpin

  • Bay Watcher
  • 437 forever!
    • View Profile
Easily Remove ANIMAL MAN creatures using Notepad++
« on: July 28, 2014, 11:07:46 pm »

I don't know about everyone else, but most of these animal peoples just annoy me.


Using Notepad++ 6.5 or later, here's how to safely remove most of them:
1) open all creature raw files
2) Ctrl-H
3) in Search Mode, select Regular Expression and check ". matches newline".
4) Enter this search text:
Code: [Select]
\[(CREATURE:[^\[\]]*?MAN)\].*?\[APPLY_CREATURE_VARIATION:ANIMAL_PERSON\].*?(\[CREATURE:)5) Enter this replace text:
Code: [Select]
--removed--\1--\r\n\r\n\[CREATURE:6) Click "Replace All in All Opened Documents".


Anything removed will be replaced with a comment line like the one below:
             
Code: [Select]
--removed--CREATURE:PEREGRINE FALCON MAN--
This intentionally leaves creatures like Rodent Men, which are a distinct creature than than an ANIMAL_PEOPLE modification of another creature.


Better regex certainly exists.  Feel free to post it to this thread.

Logged

Jimmy

  • Bay Watcher
    • View Profile
Re: Easily Remove ANIMAL MAN creatures using Notepad++
« Reply #1 on: July 28, 2014, 11:21:03 pm »

I'm personally working on removing a lot of the excess creature types myself, so thanks for this tip. Here's some interesting (at least to me) stats on the creature bloat from the major version releases:

23a
Races: 5
Animals: 55
Aquatic: 2
Humanoids: 19
Semi-Megabeasts: 4
Megabeasts: 4
Nonexistent: 6

40d
Races: 5
Animals: 70
New: Bilou, Black-Crested Gibbon, Black-Handed Gibbon, Donkey, Giant Cave Swallow, Giant Eagle, Giant Olm, Grey Gibbon, Mountain Goat, One-Humped Camel, Orangutan, Pileated Gibbon, Siamang, Silvery Gibbon, Two-Humped Camel, White-Browed Gibbon, White-Handed Gibbon
Moved: Gremlin, Nightwing to Humanoid
Aquatic: 42
New: Numerous additions
Humanoids: 30
New: Cave Swallowman, Dark Gnome, Leechman, Mountain Gnome, Olmman, Slugman, Snailman, Tigerman
Moved: Gremlin, Nightwing from Animal, Merperson from Nonexistant
Semi-Megabeasts: 4
Megabeasts: 4
Nonexistent: 5
Moved: Mermaid to Humanoids

0.31.25
Races: 14
New: Amphibian Man, Cave Fish Man
Moved: Antman, Bat Man, Cave Swallowman, Olmman, Reptile Man, Rodentman, Serpent Man from Humanoids
Outdoor Animals: 92
New: Alpaca, Badger, Blue Peafowl, Buzzard,  Capybara, Cavy, Chicken, Duck, Giant Badger, Giant Capybara, Giant Moose, Giant Platypus, Gigantic Panda, Giraffe, Goat, Goose, Guineafowl, Llama, Moose, Panda, Pig, Playtpus, Rabbit, Reindeer, Rhinoceros, Sheep, Turkey, Vulture, Water Buffalo, Yak, Yeti
Moved: Strangler from Humanoids, Walrus from Aquatic, Harpy to Humanoids
Subterranean Animals: 31
New: Numerous additions
Moved: Cave Crocodile, Giant Bat, Giant Cave Spider, Giant Cave Swallow, Giant Mole, Giant Olm, Giant Rat, Giant Toad, Large Rat, Naked Mole Dog from Animals
Aquatic: 46
New: Emperor Penguin, Giant Penguin, Little Penguin, Penguin, Pond Grabber
Humanoids: 36
New: Amethyst Man, Badger Man, Blind Cave Ogre, Blood Man, Capybara Man, Gabbro Man, Gorlak, Moose Man, Molemarian, Panda Man, Penguin Man, Platypus Man, Plump Helmet Man, Reacher
Moved: Antman, Bat Man, Cave Swallowman, Lizardman, Olmman, Ratman, Snakeman to Races, Strangler to Outdoor Animals, Harpy from Animals
Semi-Megabeasts: 4
Megabeasts: 5
New: Roc
Nonexistent: 3
Removed: Treant, Wizard

I haven't even mentioned the increases of 0.34.11 either, or the 0.40.xx versions.
Logged

Arcvasti

  • Bay Watcher
  • [IS_ALREADY_HERE] [FRIENDSHIPPER:HIGH]
    • View Profile
Re: Easily Remove ANIMAL MAN creatures using Notepad++
« Reply #2 on: July 28, 2014, 11:37:55 pm »

0.31.25
Removed: Wizard

There were WIZARDS in DF? Huh.
Logged
If you expect to live forever then you will never be disappointed.
Spooky Signature
To fix the horrid default colour scheme, follow the below steps:
Profile> Modify Profile> Look and Layout> Current Theme> (change)> Darkling

Jimmy

  • Bay Watcher
    • View Profile
Re: Easily Remove ANIMAL MAN creatures using Notepad++
« Reply #3 on: July 28, 2014, 11:40:41 pm »

Nope.

0.31.25
...
Nonexistent: 3
Removed: Treant, Wizard

They were nonexistent listings for prefstrings that got dumped.
Logged

Arcvasti

  • Bay Watcher
  • [IS_ALREADY_HERE] [FRIENDSHIPPER:HIGH]
    • View Profile
Re: Easily Remove ANIMAL MAN creatures using Notepad++
« Reply #4 on: July 28, 2014, 11:44:30 pm »

Nope.

0.31.25
...
Nonexistent: 3
Removed: Treant, Wizard

They were nonexistent listings for prefstrings that got dumped.

That's sort of disappointing.
Logged
If you expect to live forever then you will never be disappointed.
Spooky Signature
To fix the horrid default colour scheme, follow the below steps:
Profile> Modify Profile> Look and Layout> Current Theme> (change)> Darkling

Moogie

  • Bay Watcher
    • View Profile
Re: Easily Remove ANIMAL MAN creatures using Notepad++
« Reply #5 on: July 29, 2014, 06:48:32 am »

Thank you for this! I never liked them much, either. 100+ silly animalmen removed.
Logged
I once shot a bear in the eye with a bow on the first shot, cut it up, found another one, and shot it in the eye too. The collective pile of meat weighed more than my house.

Witty

  • Bay Watcher
    • View Profile
Re: Easily Remove ANIMAL MAN creatures using Notepad++
« Reply #6 on: July 29, 2014, 08:41:05 am »

Nope.

0.31.25
...
Nonexistent: 3
Removed: Treant, Wizard

They were nonexistent listings for prefstrings that got dumped.

That's sort of disappointing.

Well, technically there actually were wizards in the game at one point. In pre-release versions, a wizard would arrive at your fort, take some random dwarf and go off on a journey to stop a necromancer. If they failed, a zombie siege would arrive at your fort. Pre-release also had elven warriors with "magical" weapons and druids that could animate trees.
Logged
Quote from: Toady One
I understand that it is disappointing when a dwarf makes a spiked loincloth instead of an axe.

Roses

  • Bay Watcher
    • View Profile
Re: Easily Remove ANIMAL MAN creatures using Notepad++
« Reply #7 on: July 29, 2014, 09:31:31 am »

I also had an old python utility that would separate out all the animal men and giant creature variations and place them in their own files (that way you can choose to get rid of some and not others). You can see it here. I haven't tested it on the new version yet, but I don't see why it wouldn't work.
Logged

Arcvasti

  • Bay Watcher
  • [IS_ALREADY_HERE] [FRIENDSHIPPER:HIGH]
    • View Profile
Re: Easily Remove ANIMAL MAN creatures using Notepad++
« Reply #8 on: July 29, 2014, 11:31:53 am »

Nope.

0.31.25
...
Nonexistent: 3
Removed: Treant, Wizard

They were nonexistent listings for prefstrings that got dumped.

That's sort of disappointing.

Well, technically there actually were wizards in the game at one point. In pre-release versions, a wizard would arrive at your fort, take some random dwarf and go off on a journey to stop a necromancer. If they failed, a zombie siege would arrive at your fort. Pre-release also had elven warriors with "magical" weapons and druids that could animate trees.

Yeah, I vaguely remember Toady mentioning that at some point. I wonder if stuff like that will ever be re-implemented once the magic system is solidified.
Logged
If you expect to live forever then you will never be disappointed.
Spooky Signature
To fix the horrid default colour scheme, follow the below steps:
Profile> Modify Profile> Look and Layout> Current Theme> (change)> Darkling

burned

  • Bay Watcher
    • View Profile
    • burnedFX
Re: Easily Remove ANIMAL MAN creatures using Notepad++
« Reply #9 on: July 29, 2014, 02:14:23 pm »

Thanks for posting this zilpin.

Regarding magic: There are 15 movies bundled in dfmovies2004.zip (thread here). One of them - elfdeath.cmv - shows a few elves using magic to animate trees.
Logged
DFMA Profile | burnedfx Graphic Set

The process of delving into the black abyss is to me the keenest form of fascination. - H. P. Lovecraft
The Delvers
. . .the middle ground between light and shadow . . . - Rod Serling
The Delvers' Podcast

Quietust

  • Bay Watcher
  • Does not suffer fools gladly
    • View Profile
    • QMT Productions
Re: Easily Remove ANIMAL MAN creatures using Notepad++
« Reply #10 on: July 29, 2014, 03:14:03 pm »

One of them - elfdeath.cmv - shows a few elves using magic to animate trees.
Random interesting trivia: while tree reanimation was removed from the game a very long time ago, the magic sparkling animation still exists within Dwarf Fortress's code, and it is possible (using DFHack) to trigger that animation on arbitrary jobs. There's also a "Cast Spell" job, but it doesn't actually do anything.
Logged
P.S. If you don't get this note, let me know and I'll write you another.
It's amazing how dwarves can make a stack of bones completely waterproof and magmaproof.
It's amazing how they can make an entire floodgate out of the bones of 2 cats.

zilpin

  • Bay Watcher
  • 437 forever!
    • View Profile
Re: Easily Remove ANIMAL MAN creatures using Notepad++
« Reply #11 on: August 03, 2014, 01:04:11 pm »

One of them - elfdeath.cmv - shows a few elves using magic to animate trees.
Random interesting trivia: while tree reanimation was removed from the game a very long time ago, the magic sparkling animation still exists within Dwarf Fortress's code, and it is possible (using DFHack) to trigger that animation on arbitrary jobs. There's also a "Cast Spell" job, but it doesn't actually do anything.

How do you DFHack guys find that?!

Seriously, I can poke around disassembly, but only ever find anything with great time and effort.



Logged