# Professions

**URL:** <https://discourse.cataclysmdda.org/t/professions/927>\
**Category:** The Garage\
**Created:** [April 20, 2013, 9:12pm UTC](https://discourse.cataclysmdda.org/t/professions/927 "2013-04-20T21:12:15Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aron](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/aron/32/59_2.png) [@Aron](https://discourse.cataclysmdda.org/u/Aron)\
**Post date:** [April 20, 2013, 9:12pm UTC](https://discourse.cataclysmdda.org/t/professions/927/1 "2013-04-20T21:12:15Z")

</div>

Hey all, I was wondering if I could get some help with professions.  
First when I make a new profession in the file it doesn’t show up in game,'  
Second when I modify a current profession it goes into the create screen and everything but I finish the creation and load the game it has a runtime error how to fix this or if at all?  
Third if you have a step by step guide on how to make a profession I would love if you posted it.  
Maybe the developers could help 😛

I am a sort of a newbie coder…which sucks…

---

<div class="post-metadata">

**Author:** ![bubbadoo14](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/bubbadoo14/32/2716_2.png) [@bubbadoo14](https://discourse.cataclysmdda.org/u/bubbadoo14)\
**Post date:** [April 20, 2013, 9:59pm UTC](https://discourse.cataclysmdda.org/t/professions/927/2 "2013-04-20T21:59:58Z")

</div>

[http://www.cataclysmdda.com/smf/index.php?topic=935.msg9251;boardseen#new](http://www.cataclysmdda.com/smf/index.php?topic=935.msg9251;boardseen#new)

this tells you where to put it in, and how the code should look. 🙂

---

<div class="post-metadata">

**Author:** ![Aron](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/aron/32/59_2.png) [@Aron](https://discourse.cataclysmdda.org/u/Aron)\
**Post date:** [April 20, 2013, 10:48pm UTC](https://discourse.cataclysmdda.org/t/professions/927/3 "2013-04-20T22:48:56Z")

</div>

I did what you said but it didnt work

I got the same error as the guy with the army pants thing but at the startup of the game

heres what my professions file looks like:

[

{  
“ident”:“hunter”,  
“name”: “Hunter”,  
“description”:  
“You were on a hunting trip in the woods, going after big game when the cataclysm hit.\nAs it happens, being away from civilization and armed is a good way to survive.”,  
“points”: 3,  
“items”: [“shotgun\_s”, “shot\_00”, “pants”, “boots”, “tshirt”, “vest”]  
},

{  
“ident”:“aron”  
“name”:“ARON”  
“description”:  
“Your a agent of ARON (Agent of Recon Omega Nega) your mission was to find a lab that had technology to stop the infection, your team was kill along with the organization. You are one of the last…/nYou start with basic ARON equipment.”,  
“points”: 2,  
“items”: [“top\_tank”, “pants\_cargo”, “boots”, “vest”, “rig\_belt”, “coat\_trench”, “socks”]  
},

{  
“ident”: “unemployed”,  
“name”: “Unemployed”,  
“description”:  
“They say you don’t have any ‘useful skills’, but at least your clothes fit\nwell.”,  
“points”: 0,  
“items”: [“jeans”, “tshirt”, “sneakers”]  
},

{  
“ident”: “labtech”,  
“name”: “Lab Tech”,  
“description”:  
“It was your first vist to the lab when the cataclysm hit. You were evacuated\nwith all the civilians, but at least you kept your gear.”,  
“points”: 1,  
“items”: [“shirt\_dress”, “pants\_dress”, “boots”, “coat\_lab”, “gloves\_rubber”, “glasses\_saftey”]  
},

{  
“ident”: “mechanic”,  
“name”: “Wannabe Mechanic”,  
“description”:  
“Although you never got your driver’s license, you’ve always loved cars.\nYou start with a wrench, a toolbelt, and some car-related reading material.”,  
“points”: 2,  
“items”: [“tank\_top”, “jeans”, “beltrig”, “wrench”, “mag\_cars”, “manual\_mechanics”]  
},

{  
“ident”: “smoker”,  
“name”: “Chain Smoker”,  
“description”:  
“Everyone at work knew you as the person who always had a cigarette or two\nin hand. Now, you’re down to a single pack, and you hope you find more soon.\nYou start out with a strong nicotine addiction, and 10 cigarettes.”,  
“points”: -1,  
“items”: [“pants”, “dress\_shirt”, “dress\_shoes”, “cig”]  
}

[

---

<div class="post-metadata">

**Author:** ![Williham](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/williham/32/845_2.png) [@Williham](https://discourse.cataclysmdda.org/u/Williham)\
**Post date:** [April 20, 2013, 10:56pm UTC](https://discourse.cataclysmdda.org/t/professions/927/4 "2013-04-20T22:56:45Z")

</div>

Item idents are a bit of a mixed bag; some are of the style “pants\_army”, some are of the style “tank\_top”.

“pants\_dress” should be “pants”; “top\_tank” should be “tank\_top”; “rig\_belt” should be “beltrig”, “coat\_trench” should be “trenchcoat”.

There might be more, but those are the ones I could spot immediately.

---

<div class="post-metadata">

**Author:** ![Soron](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/soron/32/885_2.png) [@Soron](https://discourse.cataclysmdda.org/u/Soron)\
**Post date:** [April 21, 2013, 1:39am UTC](https://discourse.cataclysmdda.org/t/professions/927/5 "2013-04-21T01:39:58Z")

</div>

You’re also missing commas after the name and ident line for your ARON profession.

That “[” at the end of the file should be a “]”.

---

<div class="post-metadata">

**Author:** ![Aron](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/aron/32/59_2.png) [@Aron](https://discourse.cataclysmdda.org/u/Aron)\
**Post date:** [April 21, 2013, 3:04am UTC](https://discourse.cataclysmdda.org/t/professions/927/6 "2013-04-21T03:04:51Z")

</div>

Ok I found out a way to do it by modfying the tailor profession with the source for cata and added clothes I wanted…

Do you guys know what I type for a FN P90 and its ammo?

---

<div class="post-metadata">

**Author:** ![Soron](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/soron/32/885_2.png) [@Soron](https://discourse.cataclysmdda.org/u/Soron)\
**Post date:** [April 21, 2013, 3:07am UTC](https://discourse.cataclysmdda.org/t/professions/927/7 "2013-04-21T03:07:38Z")

</div>

Search through itypedef.cpp for “FN P90”, and find what it gives as the item identifier (in this case, “fn\_p90”). Same procedure for the ammo.

---

<div class="post-metadata">

**Author:** ![Williham](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/williham/32/845_2.png) [@Williham](https://discourse.cataclysmdda.org/u/Williham)\
**Post date:** [April 21, 2013, 3:10am UTC](https://discourse.cataclysmdda.org/t/professions/927/8 "2013-04-21T03:10:00Z")

</div>

P90 is “fn\_p90”; ammo is “57mm”. Note that the stack size for 5.7x28mm ammo is 100; anything that includes that is likely a 4, or maybe 5 point profession.

> [@Soron](#):
>
> Search through itypedef.cpp for “FN P90”, and find what it gives as the item identifier (in this case, “fn\_p90”). Same procedure for the ammo.

He might not have the source files at all; it’s possible that he has downloaded a recent build.

---

<div class="post-metadata">

**Author:** ![Soron](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/soron/32/885_2.png) [@Soron](https://discourse.cataclysmdda.org/u/Soron)\
**Post date:** [April 21, 2013, 3:13am UTC](https://discourse.cataclysmdda.org/t/professions/927/9 "2013-04-21T03:13:02Z")

</div>

> [@Williham](#):
>
> [quote=“Soron, post:7, topic:927”]Search through itypedef.cpp for “FN P90”, and find what it gives as the item identifier (in this case, “fn\_p90”). Same procedure for the ammo.

He might not have the source files at all; it’s possible that he has downloaded a recent build.[/quote]

True. That’s part of why I look forward to items being pushed out to data files - so we can stop telling people to refer to arcane C++ files.

The source isn’t too hard to find, though. You can find the latest itypedef.cpp copy [here](https://github.com/TheDarklingWolf/Cataclysm-DDA/blob/master/itypedef.cpp), which should generally work for such things.

---

<div class="post-metadata">

**Author:** ![Aron](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/aron/32/59_2.png) [@Aron](https://discourse.cataclysmdda.org/u/Aron)\
**Post date:** [April 21, 2013, 4:49am UTC](https://discourse.cataclysmdda.org/t/professions/927/10 "2013-04-21T04:49:04Z")

</div>

Thanks guys! Its working!
