Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: AUTOMAGICALLY REMOVE ANIMAL MENS FROM RAWS  (Read 2083 times)

KoboldWarmonger

  • Bay Watcher
    • View Profile
AUTOMAGICALLY REMOVE ANIMAL MENS FROM RAWS
« on: May 14, 2012, 09:51:54 pm »

I was tired of mucking about with winmerge every time a new version came out, and possibly undoing changes to the raws from patches, so I wrote a simple little tool in python to look for animal men in your raws and remove them. I call it.. CULLMENS.

GET IT HERE -> http://dffd.wimbli.com/file.php?id=6305

INSTRUCTIONS:
Spoiler (click to show/hide)

COMPLETE PYTHON SOURCE FOR YOUR PERUSAL:
Spoiler (click to show/hide)

It will record all the changes it makes in a file called CULLINGLOG.txt, which you should review after the tool runs, and probably delete or move it out of the folder, lest it create unintentional fun times.

It's really simple at this point, and it would be easy for me to program it to be interactive- (do you want to keep penguin men? swallow men? hippo men?), or just move all the animal men entries to their own raw file, or whatever, if there's interest. All feedback and suggestions are welcome!

Also, as someone who's never put code on the internet before, what should I put at the top of source files? I see people put big blocks of legit-looking copyright claim and stuff at the top of their files, but how does that work? Do I need to do anything special to claim copyright for source files? What should I put up there? Would the GPL be better?

THANKS.
« Last Edit: May 14, 2012, 10:00:57 pm by KoboldWarmonger »
Logged
Re: AUTOMAGICALLY REMOVE ANIMAL MENS FROM RAWS
« Reply #1 on: May 14, 2012, 10:10:01 pm »

Nice.

I'M IN YOUR RAWS. CULLING YOUR MANS.
Logged

aantn

  • Bay Watcher
    • View Profile
Re: AUTOMAGICALLY REMOVE ANIMAL MENS FROM RAWS
« Reply #2 on: May 14, 2012, 10:12:53 pm »

You don't need to put anything. But if you do add a license, you probably want a license that encourages participation rather than restricts it. I would recommend using the BSD license and adding a one-line reference at the top of the file.

Hugo_The_Dwarf

  • Bay Watcher
  • Modding Mentor
    • View Profile
    • Regeneration: Forced Evolution
Re: AUTOMAGICALLY REMOVE ANIMAL MENS FROM RAWS
« Reply #3 on: May 14, 2012, 10:13:19 pm »

That cleans them out nice, You can also add DOES_NOT_EXSIST to their variation too, altho they still show up as undead
Logged

Mrhappyface

  • Bay Watcher
    • View Profile
Re: AUTOMAGICALLY REMOVE ANIMAL MENS FROM RAWS
« Reply #4 on: May 14, 2012, 10:23:10 pm »

Oh. I just used a find and delete tool on my raws. I feel silly.
Logged
This is Dwarf Fortress. Where torture, enslavement, and murder are not only tolerable hobbies, but considered dwarfdatory.

Hugo_The_Dwarf

  • Bay Watcher
  • Modding Mentor
    • View Profile
    • Regeneration: Forced Evolution
Re: AUTOMAGICALLY REMOVE ANIMAL MENS FROM RAWS
« Reply #5 on: May 14, 2012, 10:28:45 pm »

I would have too if someone hadn't mentioned the C-VARIANT solution
Logged

Blakmane

  • Bay Watcher
    • View Profile
Re: AUTOMAGICALLY REMOVE ANIMAL MENS FROM RAWS
« Reply #6 on: May 14, 2012, 10:32:47 pm »

you can also just add them all to a non-spawning entity... although you will still get animalman blood raining in evil biomes this way
Logged

KoboldWarmonger

  • Bay Watcher
    • View Profile
Re: AUTOMAGICALLY REMOVE ANIMAL MENS FROM RAWS
« Reply #7 on: May 15, 2012, 02:22:55 pm »

Well, one person downloaded it.  8)

Are there other very common RAW modifications I could build in that you'd want? I think I'm going to write an interactive tool to look for creatures without the tags necessary for reproduction, and put them in after prompting the user for the desired values there. (clutch size, things like that)

Setting elves and dwarves to build human settlements? I'm trying to think of the things people do immediately after a new release or on a fresh install. What do you do, or what do you want to do that would be too much of a pain in the butt to do by hand? I WANT TO DO WORK FOR YOU PYTHON IS FUN.
Logged

Captain Crazy

  • Bay Watcher
    • View Profile
Re: AUTOMAGICALLY REMOVE ANIMAL MENS FROM RAWS
« Reply #8 on: May 15, 2012, 02:27:58 pm »

If you made a program to add babies to usually non-baby-having things, that'd be wondrous. A hearty jug of sunshine for you and your efforts!
Logged
Quote
I usually think of Armok as the pure essence of FUCK YOU!

Jake

  • Bay Watcher
  • Remember Boatmurdered!
    • View Profile
    • My Web Fiction
Re: AUTOMAGICALLY REMOVE ANIMAL MENS FROM RAWS
« Reply #9 on: May 15, 2012, 04:01:31 pm »

How about making the different kinds of animal-men into separate castes of one of more over-arching creature entries? Separated by biome, perhaps, so that those inclined to do so can create some proper animal-man civilisations.
Logged
Never used Dwarf Therapist, mods or tilesets in all the years I've been playing.
I think Toady's confusing interface better simulates the experience of a bunch of disorganised drunken dwarves running a fort.

Black Powder Firearms - Superior firepower, realistic manufacturing and rocket launchers!

bluefox

  • Bay Watcher
    • View Profile
Re: AUTOMAGICALLY REMOVE ANIMAL MENS FROM RAWS
« Reply #10 on: May 17, 2012, 09:37:05 pm »

Just wanted to reply and say that I think this little script is awesome.

Every time a release comes out, I'm a little annoyed at the animal men for taking up space in my world. I want meat I can butcher, and don't want to have to mark all sentients as fair game (one less thing in common with the elves).

If we can't influence the animal men rarity, then at least we can wipe them out entirely. Thank you for providing a quick and easy way to commit total genocide against multiple species.

^
|
That sentence is how you know you're on the Dwarf Fortress forums.
Logged
....I think Dwarf Fortress may be putting us all into the mindset of being a Greek God.

caddybear

  • Bay Watcher
  • Elf Supporter
    • View Profile
Re: AUTOMAGICALLY REMOVE ANIMAL MENS FROM RAWS
« Reply #11 on: May 18, 2012, 03:05:59 am »

Animal men are annoying, smelly and dirty. I approve this effort to automagically get rid of the primitive bastards.
Logged
And then did ARMOK say, the east is the holiest of directions, and thou shouldst not stand there lest thou be strucketh down by my holiest of beards. And then did the dorfs did say, we shall build from the west, for more do we fear the beard of ARMOK than the strike of the elephant.