# Making sense of the code to edit it

**URL:** <https://discourse.cataclysmdda.org/t/making-sense-of-the-code-to-edit-it/9654>\
**Category:** The Lab\
**Created:** [May 24, 2015, 3:15am UTC](https://discourse.cataclysmdda.org/t/making-sense-of-the-code-to-edit-it/9654 "2015-05-24T03:15:56Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Noctifer](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/noctifer/32/458_2.png) [@Noctifer](https://discourse.cataclysmdda.org/u/Noctifer)\
**Post date:** [May 24, 2015, 3:15am UTC](https://discourse.cataclysmdda.org/t/making-sense-of-the-code-to-edit-it/9654/1 "2015-05-24T03:15:56Z")

</div>

I took a look at the code and it is just chaos… I want to make a new profession and my problem is not compiling but what edits in the code itself need to be made. Can I have some pointers? Where do I add my profession and how to link it to a scenario? What files do I open to it? ect. Thanks is much appreciated!

---

<div class="post-metadata">

**Author:** ![Coolthulhu](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/coolthulhu/32/2446_2.png) [@Coolthulhu](https://discourse.cataclysmdda.org/u/Coolthulhu)\
**Post date:** [May 24, 2015, 7:14am UTC](https://discourse.cataclysmdda.org/t/making-sense-of-the-code-to-edit-it/9654/2 "2015-05-24T07:14:59Z")

</div>

data/json/professions.json  
This won’t require compiling, you can change it in a binary build and it will work.

---

<div class="post-metadata">

**Author:** ![Noctifer](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/noctifer/32/458_2.png) [@Noctifer](https://discourse.cataclysmdda.org/u/Noctifer)\
**Post date:** [May 24, 2015, 5:06pm UTC](https://discourse.cataclysmdda.org/t/making-sense-of-the-code-to-edit-it/9654/3 "2015-05-24T17:06:26Z")

</div>

I got it working but is it a pain to work around with the code…

---

<div class="post-metadata">

**Author:** ![Rivet](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/rivet/32/11_2.png) [@Rivet](https://discourse.cataclysmdda.org/u/Rivet)\
**Post date:** [May 24, 2015, 5:30pm UTC](https://discourse.cataclysmdda.org/t/making-sense-of-the-code-to-edit-it/9654/4 "2015-05-24T17:30:16Z")

</div>

> [@Noctifer](#):
>
> I got it working but is it a pain to work around with the code…

Heh. If you think that’s bad, you should try the C++ parts.

---

<div class="post-metadata">

**Author:** ![Noctifer](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/noctifer/32/458_2.png) [@Noctifer](https://discourse.cataclysmdda.org/u/Noctifer)\
**Post date:** [May 24, 2015, 9:46pm UTC](https://discourse.cataclysmdda.org/t/making-sense-of-the-code-to-edit-it/9654/5 "2015-05-24T21:46:43Z")

</div>

> [@Rivet](#):
>
> [quote=“Noctifer, post:3, topic:9654”]I got it working but is it a pain to work around with the code…

Heh. If you think that’s bad, you should try the C++ parts.[/quote]

I can imagine…I am learning java and hope to learn c++ eventually but damn is it complicated…

---

<div class="post-metadata">

**Author:** ![i2amroy](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/i2amroy/32/909_2.png) [@i2amroy](https://discourse.cataclysmdda.org/u/i2amroy)\
**Post date:** [May 30, 2015, 8:30pm UTC](https://discourse.cataclysmdda.org/t/making-sense-of-the-code-to-edit-it/9654/6 "2015-05-30T20:30:03Z")

</div>

Biggest piece of advice when working with C++: have [CPlusPlus.com](http://www.cplusplus.com) open at all times. It is by far some of the best online programming language documentation that I have seen so far. (Though if you know Java then C++ is only a very tiny step, something like 90% of there code is identical).
