# Blacklisting professions: is it possible?

**URL:** <https://discourse.cataclysmdda.org/t/blacklisting-professions-is-it-possible/11770>\
**Category:** The Bunker\
**Created:** [April 26, 2016, 5:25pm UTC](https://discourse.cataclysmdda.org/t/blacklisting-professions-is-it-possible/11770 "2016-04-26T17:25:28Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![BorkBorkGoesTheCode](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/borkborkgoesthecode/32/2343_2.png) [@BorkBorkGoesTheCode](https://discourse.cataclysmdda.org/u/BorkBorkGoesTheCode)\
**Post date:** [April 26, 2016, 5:25pm UTC](https://discourse.cataclysmdda.org/t/blacklisting-professions-is-it-possible/11770/1 "2016-04-26T17:25:28Z")

</div>

I know it’s possible to blacklist items, is it possible to blacklist professions using a mod? If so, what would I need to do?

---

<div class="post-metadata">

**Author:** ![jedibob5](https://avatars.discourse-cdn.com/v4/letter/j/ecccb3/32.png) [@jedibob5](https://discourse.cataclysmdda.org/u/jedibob5)\
**Post date:** [April 27, 2016, 12:38am UTC](https://discourse.cataclysmdda.org/t/blacklisting-professions-is-it-possible/11770/2 "2016-04-27T00:38:23Z")

</div>

Couldn’t you just… not use that profession? I’m not sure I see what the point of this would be.

Unless you mean blacklisting professions from specific starting scenarios? I’m sure there’s a way to do that.

---

<div class="post-metadata">

**Author:** ![BorkBorkGoesTheCode](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/borkborkgoesthecode/32/2343_2.png) [@BorkBorkGoesTheCode](https://discourse.cataclysmdda.org/u/BorkBorkGoesTheCode)\
**Post date:** [April 27, 2016, 3:35am UTC](https://discourse.cataclysmdda.org/t/blacklisting-professions-is-it-possible/11770/3 "2016-04-27T03:35:57Z")

</div>

> [@Research Photography](https://discourse.cataclysmdda.org/t/research-photography/11492/12):
>
> The mod series I currently have planned will allow a player to create a world set in any decade between the current default era and the year 1800 AD, but I may expand the series to include every year within that time. The first mods will be set in the present: From there, I plan to make a mod for the 1980’s, followed by the 1960’s.

I want to remove professions that rely on future tech, such as the bionic professions, from any of the game starts that use my mod, without removing the professions from the main game.

---

<div class="post-metadata">

**Author:** ![BeerBeer](https://avatars.discourse-cdn.com/v4/letter/b/c67d28/32.png) [@BeerBeer](https://discourse.cataclysmdda.org/u/BeerBeer)\
**Post date:** [April 27, 2016, 4:40am UTC](https://discourse.cataclysmdda.org/t/blacklisting-professions-is-it-possible/11770/4 "2016-04-27T04:40:48Z")

</div>

I might be speaking out of ignorance but maybe look at the mod “Roguelike Classes” or somesuch, to see how that mod creates the classes. I’ve never tried that mod myself though. I’m suggesting an approach where you’d recreate only the classes and professions you wish to include, as opposed to blacklisting certain ones.

---

<div class="post-metadata">

**Author:** ![BorkBorkGoesTheCode](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/borkborkgoesthecode/32/2343_2.png) [@BorkBorkGoesTheCode](https://discourse.cataclysmdda.org/u/BorkBorkGoesTheCode)\
**Post date:** [April 27, 2016, 4:54am UTC](https://discourse.cataclysmdda.org/t/blacklisting-professions-is-it-possible/11770/5 "2016-04-27T04:54:19Z")

</div>

When I say blacklist, I mean something like the No Rivtech Guns mod, only for things like the bionic professions and some scenarios.

> [@BeerBeer](#):
>
> I might be speaking out of ignorance but maybe look at the mod “Roguelike Classes” or somesuch, to see how that mod creates the classes. I’ve never tried that mod myself though. I’m suggesting an approach where you’d recreate only the classes and professions you wish to include, as opposed to blacklisting certain ones.

Do you mean the mod bundled with the game, or another version? The prepackaged Roguelike Classes mod only adds more classes, it doesn’t do anything to modify the core classes.

---

<div class="post-metadata">

**Author:** ![BeerBeer](https://avatars.discourse-cdn.com/v4/letter/b/c67d28/32.png) [@BeerBeer](https://discourse.cataclysmdda.org/u/BeerBeer)\
**Post date:** [April 27, 2016, 6:38am UTC](https://discourse.cataclysmdda.org/t/blacklisting-professions-is-it-possible/11770/6 "2016-04-27T06:38:21Z")

</div>

Oh. Then I was talking ignorantly. I thought the mod would only allow roguelike classes. But, yeah, instead it just ADDS a bunch.

OK, so if you look at No Rivtech Guns, or any item blacklister mod, it includes a line “type”: “ITEM\_BLACKLIST”. Perhaps the first thing to do is try “type”: “PROFESSION\_BLACKLIST”

Then you would look at professions.json to get the names ("ident"s) of each target profession, such as Bionic Prepper, which is called bionic\_prepper, and you would list those idents in the mod file.

And really, I’m just guessing here.

---

<div class="post-metadata">

**Author:** ![BorkBorkGoesTheCode](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/borkborkgoesthecode/32/2343_2.png) [@BorkBorkGoesTheCode](https://discourse.cataclysmdda.org/u/BorkBorkGoesTheCode)\
**Post date:** [April 27, 2016, 6:55am UTC](https://discourse.cataclysmdda.org/t/blacklisting-professions-is-it-possible/11770/7 "2016-04-27T06:55:16Z")

</div>

Thank you for the suggestion BeerBeer. I have tested PROFESSION\_EXCLUDE and PROF\_EXCLUDE using a test mod just now and both return an error. It may be necessary for me to dive into the source code and find out where the X\_EXCLUDE stuff is.

---

<div class="post-metadata">

**Author:** ![kevin.granade](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/kevin.granade/32/1316_2.png) [@kevin.granade](https://discourse.cataclysmdda.org/u/kevin.granade)\
**Post date:** [April 27, 2016, 4:29pm UTC](https://discourse.cataclysmdda.org/t/blacklisting-professions-is-it-possible/11770/8 "2016-04-27T16:29:52Z")

</div>

That feature does not exist currently, but would be very easy to add.

---

<div class="post-metadata">

**Author:** ![BorkBorkGoesTheCode](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/borkborkgoesthecode/32/2343_2.png) [@BorkBorkGoesTheCode](https://discourse.cataclysmdda.org/u/BorkBorkGoesTheCode)\
**Post date:** [April 27, 2016, 7:50pm UTC](https://discourse.cataclysmdda.org/t/blacklisting-professions-is-it-possible/11770/9 "2016-04-27T19:50:16Z")

</div>

> [@Kevin Granade](#):
>
> That feature does not exist currently, but would be very easy to add.

Is it going to be added to mainline by the development team, or are you saying I could easily add it myself?  
Either way, I’m happy.

---

<div class="post-metadata">

**Author:** ![jcd](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/jcd/32/338_2.png) [@jcd](https://discourse.cataclysmdda.org/u/jcd)\
**Post date:** [April 27, 2016, 8:26pm UTC](https://discourse.cataclysmdda.org/t/blacklisting-professions-is-it-possible/11770/10 "2016-04-27T20:26:40Z")

</div>

> [@BorkBorkGoesTheCode](#):
>
> [quote=“Kevin Granade, post:8, topic:11770”]That feature does not exist currently, but would be very easy to add.

Is it going to be added to mainline by the development team, or are you saying I could easily add it myself?  
Either way, I’m happy.[/quote]  
It means anyone can create a mod that blacklists professions, and it will be merged into the main game as an optional mod, handled by the mod system.

---

<div class="post-metadata">

**Author:** ![Valiant](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/valiant/32/4788_2.png) [@Valiant](https://discourse.cataclysmdda.org/u/Valiant)\
**Post date:** [April 28, 2016, 6:07am UTC](https://discourse.cataclysmdda.org/t/blacklisting-professions-is-it-possible/11770/11 "2016-04-28T06:07:52Z")

</div>

I think Kevin meant complexity of task, not his or anyone else willingness to do it.

---

<div class="post-metadata">

**Author:** ![kevin.granade](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/kevin.granade/32/1316_2.png) [@kevin.granade](https://discourse.cataclysmdda.org/u/kevin.granade)\
**Post date:** [April 29, 2016, 4:15pm UTC](https://discourse.cataclysmdda.org/t/blacklisting-professions-is-it-possible/11770/12 "2016-04-29T16:15:27Z")

</div>

Exactly that, though if you aren’t able, I can take a look at it some time, but it will probably be a while before I get around to it.

Look at the methods that mention the “blacklist” keyword near the top of item-factory.cpp if you’re looking into it.  
If I do it I’ll probably spend a little time to make a generic blacklisting module since this would be the 4th one I think.

---

<div class="post-metadata">

**Author:** ![BorkBorkGoesTheCode](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/borkborkgoesthecode/32/2343_2.png) [@BorkBorkGoesTheCode](https://discourse.cataclysmdda.org/u/BorkBorkGoesTheCode)\
**Post date:** [April 29, 2016, 7:34pm UTC](https://discourse.cataclysmdda.org/t/blacklisting-professions-is-it-possible/11770/13 "2016-04-29T19:34:00Z")

</div>

[quote=“Kevin Granade, post:12, topic:11770”]Exactly that, though if you aren’t able, I can take a look at it some time, but it will probably be a while before I get around to it.

Look at the methods that mention the “blacklist” keyword near the top of item-factory.cpp if you’re looking into it.  
If I do it I’ll probably spend a little time to make a generic blacklisting module since this would be the 4th one I think.[/quote]  
Thanks for telling me where to find the blacklist code! I’m going to try adding it myself. If I don’t post a working blacklist within 4 months, I probably cannot add it, and would need you to add it if you’re interested. Either way, in my opinion, it’s worth adding to the game.
